@beesolve/analytics-dashboard 0.3.0 → 0.4.0
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/build/client/_app/immutable/assets/3.DC70NXH2.css +1 -0
- package/dist/build/client/_app/immutable/assets/3.DC70NXH2.css.br +0 -0
- package/dist/build/client/_app/immutable/assets/3.DC70NXH2.css.gz +0 -0
- package/dist/build/client/_app/immutable/entry/{app.DcoZt0U0.js → app.CqVVbP_6.js} +2 -2
- package/dist/build/client/_app/immutable/entry/app.CqVVbP_6.js.br +0 -0
- package/dist/build/client/_app/immutable/entry/app.CqVVbP_6.js.gz +0 -0
- package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js +2 -0
- package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js.br +0 -0
- package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js.gz +0 -0
- package/dist/build/client/_app/version.json +1 -1
- package/dist/build/client/_app/version.json.br +0 -0
- package/dist/build/client/_app/version.json.gz +0 -0
- package/dist/build/server/{0-PQXN2GCF.js → 0-XGUHJA4P.js} +2 -2
- package/dist/build/server/{10-H55HRISL.js → 10-5JTZP322.js} +2 -2
- package/dist/build/server/{3-E6ECYK3Q.js → 3-DIPWJHM6.js} +2 -2
- package/dist/build/server/{4-LYPNA465.js → 4-F76Y5N5S.js} +2 -2
- package/dist/build/server/{5-CQ43IO74.js → 5-ROQRH7VU.js} +2 -2
- package/dist/build/server/{8-MKTPCY5S.js → 8-4QMUUNSQ.js} +2 -2
- package/dist/build/server/{9-OUE6SJTV.js → 9-AXPM2XC2.js} +2 -2
- package/dist/build/server/{_page.svelte-Z5AQ7KBK.js → _page.svelte-ABHCB3JO.js} +2 -2
- package/dist/build/server/{_page.svelte-NSCCNVEO.js → _page.svelte-F23I4Q3N.js} +2 -2
- package/dist/build/server/{_page.svelte-QIL4T3VO.js → _page.svelte-IGUB24UQ.js} +2 -2
- package/dist/build/server/{_page.svelte-NVXYICSM.js → _page.svelte-K2OMF23F.js} +2 -2
- package/dist/build/server/{_page.svelte-24LHC6VQ.js → _page.svelte-N72PJISX.js} +2 -2
- package/dist/build/server/{_page.svelte-5DCYRJWX.js → _page.svelte-RJXW4ENQ.js} +2 -2
- package/dist/build/server/{chunk-XTAQG2FO.js → chunk-3AWMNMNO.js} +2 -2
- package/dist/build/server/{chunk-HXDVSFOX.js → chunk-3J753MEA.js} +2 -2
- package/dist/build/server/{chunk-GNL4KYOY.js → chunk-BWCPJTPJ.js} +2 -2
- package/dist/build/server/{chunk-GNL4KYOY.js.map → chunk-BWCPJTPJ.js.map} +1 -1
- package/dist/build/server/chunk-DPYCV7DC.js +3 -0
- package/dist/build/server/chunk-DPYCV7DC.js.map +6 -0
- package/dist/build/server/{chunk-BAUTKWWD.js → chunk-EDVCNAY4.js} +3 -3
- package/dist/build/server/{chunk-KWQJNOZ2.js → chunk-MJOYXXCW.js} +2 -2
- package/dist/build/server/{chunk-OOE2VK5R.js → chunk-N5VHPYVR.js} +2 -2
- package/dist/build/server/{chunk-AYJKHSE7.js → chunk-PXUKBFFD.js} +2 -2
- package/dist/build/server/{chunk-V2MZF7NX.js → chunk-QVI2JPUZ.js} +2 -2
- package/dist/build/server/chunk-SUG3COTW.js +3 -0
- package/dist/build/server/{chunk-36NBV5AB.js.map → chunk-SUG3COTW.js.map} +2 -2
- package/dist/build/server/{chunk-2T6ZBHEX.js → chunk-TFJKZQFL.js} +2 -2
- package/dist/build/server/{chunk-WZZDXJI7.js → chunk-UJJESI6B.js} +2 -2
- package/dist/build/server/{chunk-LMS6E3CC.js → chunk-W5YFYASF.js} +2 -2
- package/dist/build/server/{chunk-QL7PSEVY.js → chunk-YGLOO2DN.js} +2 -2
- package/dist/build/server/{dist-es-AVADEC7O.js → dist-es-CXXNDADM.js} +2 -2
- package/dist/build/server/{dist-es3-4ISV2HRY.js → dist-es3-DHVCSDXO.js} +2 -2
- package/dist/build/server/{dist-es4-PESPZJSW.js → dist-es4-WVQHEEGI.js} +2 -2
- package/dist/build/server/{dist-es6-JK5HPBPV.js → dist-es6-GJBWAT3F.js} +2 -2
- package/dist/build/server/{dist-es7-WSTPOL6F.js → dist-es7-V42RESE5.js} +2 -2
- package/dist/build/server/{event-streams-PLPNBN46.js → event-streams-JVKHUG3W.js} +2 -2
- package/dist/build/server/handler.js +1 -1
- package/dist/build/server/{hooks.server-FFG26NKK.js → hooks.server-UAWULKDF.js} +2 -2
- package/dist/build/server/{instance-PALVCDT7.js → instance-RUFH64NE.js} +4 -4
- package/dist/build/server/{loadSso-MEO5OCNN.js → loadSso-ZGYF2F3K.js} +2 -2
- package/dist/build/server/{remote-14csdey-GRG24XME.js → remote-14csdey-33RQIQJZ.js} +2 -2
- package/dist/build/server/{remote-1tatjnv-ZUMEFB2R.js → remote-1tatjnv-MDXYNSQP.js} +2 -2
- package/dist/build/server/{remote-nc6tv3-N6LY5KAK.js → remote-nc6tv3-QTYODRCA.js} +2 -2
- package/dist/build/server/{remote-qvubti-H7SUSB2N.js → remote-qvubti-KL657QDB.js} +2 -2
- package/dist/build/server/{signin-VCLN5AMS.js → signin-AB626ZML.js} +2 -2
- package/dist/build/server/{sso-oidc-HGY5SLYJ.js → sso-oidc-MUW3SC56.js} +2 -2
- package/dist/build/server/stream.js +1 -1
- package/dist/build/server/{sts-NE2YLHBM.js → sts-7UNDUHY2.js} +2 -2
- package/package.json +2 -2
- package/dist/build/client/_app/immutable/assets/3.BDtmxVgh.css +0 -1
- package/dist/build/client/_app/immutable/assets/3.BDtmxVgh.css.br +0 -0
- package/dist/build/client/_app/immutable/assets/3.BDtmxVgh.css.gz +0 -0
- package/dist/build/client/_app/immutable/entry/app.DcoZt0U0.js.br +0 -0
- package/dist/build/client/_app/immutable/entry/app.DcoZt0U0.js.gz +0 -0
- package/dist/build/client/_app/immutable/nodes/3.DiwGtjat.js +0 -2
- package/dist/build/client/_app/immutable/nodes/3.DiwGtjat.js.br +0 -0
- package/dist/build/client/_app/immutable/nodes/3.DiwGtjat.js.gz +0 -0
- package/dist/build/server/chunk-36NBV5AB.js +0 -3
- package/dist/build/server/chunk-WJ3HJGC3.js +0 -3
- package/dist/build/server/chunk-WJ3HJGC3.js.map +0 -6
- /package/dist/build/server/{0-PQXN2GCF.js.map → 0-XGUHJA4P.js.map} +0 -0
- /package/dist/build/server/{10-H55HRISL.js.map → 10-5JTZP322.js.map} +0 -0
- /package/dist/build/server/{3-E6ECYK3Q.js.map → 3-DIPWJHM6.js.map} +0 -0
- /package/dist/build/server/{4-LYPNA465.js.map → 4-F76Y5N5S.js.map} +0 -0
- /package/dist/build/server/{5-CQ43IO74.js.map → 5-ROQRH7VU.js.map} +0 -0
- /package/dist/build/server/{8-MKTPCY5S.js.map → 8-4QMUUNSQ.js.map} +0 -0
- /package/dist/build/server/{9-OUE6SJTV.js.map → 9-AXPM2XC2.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-Z5AQ7KBK.js.map → _page.svelte-ABHCB3JO.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-NSCCNVEO.js.map → _page.svelte-F23I4Q3N.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-QIL4T3VO.js.map → _page.svelte-IGUB24UQ.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-NVXYICSM.js.map → _page.svelte-K2OMF23F.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-24LHC6VQ.js.map → _page.svelte-N72PJISX.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-5DCYRJWX.js.map → _page.svelte-RJXW4ENQ.js.map} +0 -0
- /package/dist/build/server/{chunk-XTAQG2FO.js.map → chunk-3AWMNMNO.js.map} +0 -0
- /package/dist/build/server/{chunk-HXDVSFOX.js.map → chunk-3J753MEA.js.map} +0 -0
- /package/dist/build/server/{chunk-BAUTKWWD.js.map → chunk-EDVCNAY4.js.map} +0 -0
- /package/dist/build/server/{chunk-KWQJNOZ2.js.map → chunk-MJOYXXCW.js.map} +0 -0
- /package/dist/build/server/{chunk-OOE2VK5R.js.map → chunk-N5VHPYVR.js.map} +0 -0
- /package/dist/build/server/{chunk-AYJKHSE7.js.map → chunk-PXUKBFFD.js.map} +0 -0
- /package/dist/build/server/{chunk-V2MZF7NX.js.map → chunk-QVI2JPUZ.js.map} +0 -0
- /package/dist/build/server/{chunk-2T6ZBHEX.js.map → chunk-TFJKZQFL.js.map} +0 -0
- /package/dist/build/server/{chunk-WZZDXJI7.js.map → chunk-UJJESI6B.js.map} +0 -0
- /package/dist/build/server/{chunk-LMS6E3CC.js.map → chunk-W5YFYASF.js.map} +0 -0
- /package/dist/build/server/{chunk-QL7PSEVY.js.map → chunk-YGLOO2DN.js.map} +0 -0
- /package/dist/build/server/{dist-es-AVADEC7O.js.map → dist-es-CXXNDADM.js.map} +0 -0
- /package/dist/build/server/{dist-es3-4ISV2HRY.js.map → dist-es3-DHVCSDXO.js.map} +0 -0
- /package/dist/build/server/{dist-es4-PESPZJSW.js.map → dist-es4-WVQHEEGI.js.map} +0 -0
- /package/dist/build/server/{dist-es6-JK5HPBPV.js.map → dist-es6-GJBWAT3F.js.map} +0 -0
- /package/dist/build/server/{dist-es7-WSTPOL6F.js.map → dist-es7-V42RESE5.js.map} +0 -0
- /package/dist/build/server/{event-streams-PLPNBN46.js.map → event-streams-JVKHUG3W.js.map} +0 -0
- /package/dist/build/server/{hooks.server-FFG26NKK.js.map → hooks.server-UAWULKDF.js.map} +0 -0
- /package/dist/build/server/{instance-PALVCDT7.js.map → instance-RUFH64NE.js.map} +0 -0
- /package/dist/build/server/{loadSso-MEO5OCNN.js.map → loadSso-ZGYF2F3K.js.map} +0 -0
- /package/dist/build/server/{remote-14csdey-GRG24XME.js.map → remote-14csdey-33RQIQJZ.js.map} +0 -0
- /package/dist/build/server/{remote-1tatjnv-ZUMEFB2R.js.map → remote-1tatjnv-MDXYNSQP.js.map} +0 -0
- /package/dist/build/server/{remote-nc6tv3-N6LY5KAK.js.map → remote-nc6tv3-QTYODRCA.js.map} +0 -0
- /package/dist/build/server/{remote-qvubti-H7SUSB2N.js.map → remote-qvubti-KL657QDB.js.map} +0 -0
- /package/dist/build/server/{signin-VCLN5AMS.js.map → signin-AB626ZML.js.map} +0 -0
- /package/dist/build/server/{sso-oidc-HGY5SLYJ.js.map → sso-oidc-MUW3SC56.js.map} +0 -0
- /package/dist/build/server/{sts-NE2YLHBM.js.map → sts-7UNDUHY2.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
|
|
2
|
-
import{b as xa}from"./chunk-SGVNW5YS.js";import{c as Qs,d as Ws,e as Gs,
|
|
2
|
+
import{b as xa}from"./chunk-SGVNW5YS.js";import{c as Qs,d as Ws,e as Gs,p as Xs}from"./chunk-DPYCV7DC.js";import{a as js,c as qs,d as Ks,g as Vs}from"./chunk-5LMY6JUI.js";import{a as Be}from"./chunk-4B4T2UH4.js";import{c as Bs,d as Lr,f as Et,h as Oe,i as zs,j as de,m as re,n as Ur,o as Fr,p as Hs}from"./chunk-EPPCNHKZ.js";import{c as Sa}from"./chunk-W5YFYASF.js";import{a as ha,b as va,c as fa,d as ga,e as ya,f as Ea}from"./chunk-3AWMNMNO.js";import{a as pa,b as ma}from"./chunk-5CIVNFOJ.js";import{a as oa,b as ca,c as ua,d as da,e as la,f as jr}from"./chunk-QVI2JPUZ.js";import{$ as Jt,A as at,B as kt,Ba as vr,C as $t,D as Ot,E as Dt,F as Lt,G as Ut,H as sa,I as Ft,J as Bt,K as zt,L as Ht,M as jt,N as qt,O as aa,T as na,V as Kt,W as Vt,X as Qt,Y as Wt,Z as Gt,_ as Xt,a as Pe,aa as Yt,b as et,ba as le,c as tt,ca as Zt,d as wt,da as er,e as ze,ea as tr,f as xe,fa as rr,g as It,ga as ia,h as ta,ha as sr,i as Ct,ja as ar,k as Te,ka as nr,l as At,la as ir,m as Rt,ma as or,n as _t,na as cr,o as Pt,oa as ur,p as Tt,pa as dr,q as He,qa as lr,r as Nt,s as rt,t as je,ta as pr,ua as mr,w as ra,wa as hr,x as Mt,xa as zr,y as Le,ya as Hr,z as st}from"./chunk-MJOYXXCW.js";import{a as bt,c as U}from"./chunk-BG6ZI4RE.js";import{a as ea}from"./chunk-53BPHZUZ.js";import{a as Je,b as Js,e as Ys,f as _e,g as Zs,h as Br,m as Ye,o as St,q as xt}from"./chunk-OS5FKECH.js";import{a as De}from"./chunk-QDCEVKAE.js";import{b as Ze}from"./chunk-AHIUOSMB.js";import{b as Ts,d as Ns,h as Ms,i as ks,j as $s}from"./chunk-Q2IEUOHW.js";import{i as Os,j as Ds,m as Ls,n as Us,q as Fs}from"./chunk-NFXTMZA7.js";import{a as n}from"./chunk-WFJCOJII.js";import{Readable as ft,Writable as t0}from"node:stream";import{createHash as lt,createHmac as r0,randomBytes as ba}from"node:crypto";import*as ds from"node:zlib";function qr(...t){let e=t.length;return e?({event:r,resolve:s})=>{let{state:a}=Os();return i(0,r,{});function i(o,c,u){let p=t[o];return Ls({name:`sveltekit.handle.sequenced.${p.name?p.name:o}`,attributes:{},fn:n(async d=>{let l=Us(c,d);return await Ds({event:l,state:a},()=>p({event:l,resolve:n((m,v)=>{let g=n(async({html:N,done:H})=>(v?.transformPageChunk&&(N=await v.transformPageChunk({html:N,done:H})??""),u?.transformPageChunk&&(N=await u.transformPageChunk({html:N,done:H})??""),N),"transformPageChunk"),_=u?.filterSerializedResponseHeaders??v?.filterSerializedResponseHeaders,I=u?.preload??v?.preload;return o<e-1?i(o+1,m,{transformPageChunk:g,filterSerializedResponseHeaders:_,preload:I}):s(m,{transformPageChunk:g,filterSerializedResponseHeaders:_,preload:I})},"resolve")}))},"fn")})}}:({event:r,resolve:s})=>s(r)}n(qr,"sequence");var pe={null:"_n",undefined:"_u",positiveInfinity:"_pi",negativeInfinity:"_ni",nan:"_nan",string:"s",number:"n",boolean:"b",date:"d",bigInt:"B",buffer:"p",formData:"f"},wa=30;function s0(t){return{encodedValue:ls(t),___encoded:"v1"}}n(s0,"encodeToStringifiable");function ls(t,e=0){if(e>wa)throw Error(`Cannot encode - max object depth (${wa}) reached.`);if(typeof t=="function")throw Error("Cannot encode function");if(typeof t=="symbol")throw Error("Cannot encode symbol");if(t===null)return pe.null;if(t===void 0)return pe.undefined;if(typeof t=="boolean")return`${pe.boolean}${t}`;if(typeof t=="string")return`${pe.string}${t}`;if(typeof t=="number"){if(Number.isFinite(t))return`${pe.number}${t}`;if(t>0)return pe.positiveInfinity;if(t<0)return pe.negativeInfinity}if(Number.isNaN(t))return pe.nan;if(typeof t=="bigint")return`${pe.bigInt}${t}`;if(t instanceof Date)return`${pe.date}${t.toISOString()}`;if(globalThis.Buffer!=null&&Buffer.isBuffer(t))return`${pe.buffer}${t.toString("base64url")}`;if(Array.isArray(t))return t.map(r=>ls(r,e+1));if(t instanceof FormData)return`${pe.formData}${JSON.stringify(Object.fromEntries(t.entries()))}`;if(a0(t))return Object.entries(t).reduce((r,[s,a])=>(r[s]=ls(a,e+1),r),{});throw Error(`Cannot encode - unsupported value ${typeof t}: "${t}"`)}n(ls,"encodeValue");function a0(t){return typeof t=="object"&&t!==null&&t.constructor===Object}n(a0,"isPlainObject");function n0(t,e=JSON.stringify(t)){throw Error(`An unreachable state reached!
|
|
3
3
|
`+e)}n(n0,"assertUnreachable");function i0(t){return t()}n(i0,"call");var o0=class extends ft{static{n(this,"ChecksumStream$1")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:s,base64Encoder:a}){if(super(),typeof r.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);this.source=r,this.base64Encoder=a??je,this.expectedChecksum=t,this.checksum=e,this.checksumSourceLocation=s,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=n(t=>{if(!this.destroyed){try{this.checksum.update(t)}catch(e){this.destroy(e);return}this.push(t)||this.source.pause()}},"onSourceData");onSourceEnd=n(async()=>{if(!this.destroyed){try{let t=await this.checksum.digest(),e=this.base64Encoder(t);if(this.expectedChecksum!==e){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${e}" in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)}},"onSourceEnd");onSourceError=n(t=>{this.destroy(t)},"onSourceError");onSourceClose=n(()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))},"onSourceClose");_read(t){this.source.resume()}_destroy(t,e){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),e(t)}},c0=typeof ReadableStream=="function"?ReadableStream:function(){},u0=class extends c0{static{n(this,"ChecksumStream")}},d0=n(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:s,base64Encoder:a})=>{if(!Ye(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let i=a??pa;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},async transform(u,p){e.update(u),p.enqueue(u)},async flush(u){let p=await e.digest(),d=i(p);if(t!==d){let l=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${s}".`);u.error(l)}else u.terminate()}});r.pipeThrough(o);let c=o.readable;return Object.setPrototypeOf(c,u0.prototype),c},"createChecksumStream$1");function l0(t){return typeof ReadableStream=="function"&&Ye(t.source)?d0(t):new o0(t)}n(l0,"createChecksumStream");var ps=class{static{n(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let r=this.byteArrays[0];return this.reset(),r}let t=this.allocByteArray(this.byteLength),e=0;for(let r=0;r<this.byteArrays.length;++r){let s=this.byteArrays[r];t.set(s,e),e+=s.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}};function p0(t,e,r){let s=t.getReader(),a=!1,i=0,o=["",new ps(p=>new Uint8Array(p))],c=-1,u=n(async p=>{let{value:d,done:l}=await s.read(),m=d;if(l){if(c!==-1){let v=Qe(o,c);Me(v)>0&&p.enqueue(v)}p.close()}else{let v=Mn(m,!1);if(c!==v&&(c>=0&&p.enqueue(Qe(o,c)),c=v),c===-1){p.enqueue(m);return}let g=Me(m);i+=g;let _=Me(o[c]);if(g>=e&&_===0)p.enqueue(m);else{let I=Nn(o,c,m);!a&&i>e*2&&(a=!0,r?.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${e}, automatically buffering.`)),I>=e?p.enqueue(Qe(o,c)):await u(p)}}},"pull");return new ReadableStream({pull:u})}n(p0,"createBufferedReadableStream");function Nn(t,e,r){switch(e){case 0:return t[0]+=r,Me(t[0]);case 1:case 2:return t[e].push(r),Me(t[e])}}n(Nn,"merge");function Qe(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}n(Qe,"flush");function Me(t){return t?.byteLength??t?.length??0}n(Me,"sizeOf");function Mn(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}n(Mn,"modeOf");function m0(t,e,r){if(Ye(t))return p0(t,e,r);let s=new ft({read(){}}),a=!1,i=0,o=["",new ps(u=>new Uint8Array(u)),new ps(u=>Buffer.from(new Uint8Array(u)))],c=-1;return t.on("data",u=>{let p=Mn(u,!0);if(c!==p&&(c>=0&&s.push(Qe(o,c)),c=p),c===-1){s.push(u);return}let d=Me(u);i+=d;let l=Me(o[c]);if(d>=e&&l===0)s.push(u);else{let m=Nn(o,c,u);!a&&i>e*2&&(a=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),m>=e&&s.push(Qe(o,c))}}),t.on("end",()=>{if(c!==-1){let u=Qe(o,c);Me(u)>0&&s.push(u)}s.push(null)}),s}n(m0,"createBufferedReadable");var h0=n((t,e)=>{let{base64Encoder:r,bodyLengthChecker:s,checksumAlgorithmFn:a,checksumLocationName:i,streamHasher:o}=e,c=r!==void 0&&s!==void 0&&a!==void 0&&i!==void 0&&o!==void 0,u=c?o(a,t):void 0;Promise.resolve(u).catch(()=>{});let p=t.getReader();return new ReadableStream({async pull(d){let{value:l,done:m}=await p.read();if(m){if(d.enqueue(`0\r
|
|
4
4
|
`),c){let v=r(await u);d.enqueue(`${i}:${v}\r
|
|
5
5
|
`),d.enqueue(`\r
|
|
@@ -18,7 +18,7 @@ ${l}\r
|
|
|
18
18
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
19
19
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
20
20
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
21
|
-
`),Ia=!0)),new Ze("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Sa(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:s,ssoRegion:a,ssoRoleName:i,ssoSession:o}=t;if(!r&&!s&&!a&&!i&&!o)throw new Ze("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=await import("./dist-es6-JK5HPBPV.js");return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await import("./dist-es3-4ISV2HRY.js");return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await import("./dist-es5-KVZQJJU3.js");return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await import("./dist-es7-WSTPOL6F.js");return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await f0(t))()),async()=>{throw new Ze("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],E0),"defaultProvider"),E0=n(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired"),S0=class extends oa{static{n(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e}),this.serviceTarget=r,this.codec=a??new ya({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new zr(this.awsQueryCompatible)}async serializeRequest(t,e,r){let s=await super.serializeRequest(t,e,r);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(ta(t.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(t,e,r,s,a){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(s,r);let o=ga(r,s,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,r,s,a,i?this.mixin.findQueryCompatibleError:void 0),p=Te.of(c),d=s.message??s.Message??"UnknownError",l=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),m={},v=this.codec.createDeserializer();for(let[g,_]of p.structIterator())s[g]!=null&&(m[g]=v.readObject(_,s[g]));throw i&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(l,u,{$fault:p.getMergedTraits().error,message:d},m),s)}},x0=class extends S0{static{n(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}},b0=/[&<>"]/g,w0={"&":"&","<":"<",">":">",'"':"""};function I0(t){return t.replace(b0,e=>w0[e])}n(I0,"escapeAttribute");var C0=/[&"'<>\r\n\u0085\u2028]/g,A0={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function R0(t){return t.replace(C0,e=>A0[e])}n(R0,"escapeElement");var ms=class{static{n(this,"XmlText")}value;constructor(t){this.value=t}toString(){return R0(""+this.value)}},ge=class Cr{static{n(this,"XmlNode")}name;children;attributes={};static of(e,r,s){let a=new Cr(e);return r!==void 0&&a.addChildNode(new ms(r)),s!==void 0&&a.withName(s),a}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,s=r){if(e[r]!=null){let a=Cr.of(r,e[r]).withName(s);this.c(a)}}l(e,r,s,a){e[r]!=null&&a().map(i=>{i.withName(s),this.c(i)})}lc(e,r,s,a){if(e[r]!=null){let i=a(),o=new Cr(s);i.map(c=>{o.c(c)}),this.c(o)}}toString(){let e=!!this.children.length,r=`<${this.name}`,s=this.attributes;for(let a of Object.keys(s)){let i=s[a];i!=null&&(r+=` ${a}="${I0(""+i)}"`)}return r+=e?`>${this.children.map(a=>a.toString()).join("")}</${this.name}>`:"/>"}},_0=n((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode"),P0=class extends Hr{static{n(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,e){let r=Te.of(t);if(r.isStringSchema()&&typeof e=="string")this.stringBuffer=e;else if(r.isBlobSchema())this.byteBuffer="byteLength"in e?e:(this.serdeContext?.base64Decoder??rt)(e);else{this.buffer=this.writeStruct(r,e,void 0);let s=r.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,e,r){let s=t.getMergedTraits(),a=t.isMemberSchema()&&!s.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():s.xmlName??t.getName();if(!a||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);let i=ge.of(a),[o,c]=this.getXmlnsAttribute(t,r);for(let[p,d]of t.structIterator()){let l=e[p];if(l!=null||d.isIdempotencyToken()){if(d.getMergedTraits().xmlAttribute){i.addAttribute(d.getMergedTraits().xmlName??p,this.writeSimple(d,l));continue}if(d.isListSchema())this.writeList(d,l,i,c);else if(d.isMapSchema())this.writeMap(d,l,i,c);else if(d.isStructSchema())i.addChildNode(this.writeStruct(d,l,c));else{let m=ge.of(d.getMergedTraits().xmlName??d.getMemberName());this.writeSimpleInto(d,l,m,c),i.addChildNode(m)}}}let{$unknown:u}=e;if(u&&t.isUnionSchema()&&Array.isArray(u)&&Object.keys(e).length===1){let[p,d]=u,l=ge.of(p);if(typeof d!="string")if(e instanceof ge||e instanceof ms)i.addChildNode(e);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,d,l,c),i.addChildNode(l)}return c&&i.addAttribute(o,c),i}writeList(t,e,r,s){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);let a=t.getMergedTraits(),i=t.getValueSchema(),o=i.getMergedTraits(),c=!!o.sparse,u=!!a.xmlFlattened,[p,d]=this.getXmlnsAttribute(t,s),l=n((m,v)=>{if(i.isListSchema())this.writeList(i,Array.isArray(v)?v:[v],m,d);else if(i.isMapSchema())this.writeMap(i,v,m,d);else if(i.isStructSchema()){let g=this.writeStruct(i,v,d);m.addChildNode(g.withName(u?a.xmlName??t.getMemberName():o.xmlName??"member"))}else{let g=ge.of(u?a.xmlName??t.getMemberName():o.xmlName??"member");this.writeSimpleInto(i,v,g,d),m.addChildNode(g)}},"writeItem");if(u)for(let m of e)(c||m!=null)&&l(r,m);else{let m=ge.of(a.xmlName??t.getMemberName());d&&m.addAttribute(p,d);for(let v of e)(c||v!=null)&&l(m,v);r.addChildNode(m)}}writeMap(t,e,r,s,a=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);let i=t.getMergedTraits(),o=t.getKeySchema(),c=o.getMergedTraits().xmlName??"key",u=t.getValueSchema(),p=u.getMergedTraits(),d=p.xmlName??"value",l=!!p.sparse,m=!!i.xmlFlattened,[v,g]=this.getXmlnsAttribute(t,s),_=n((I,N,H)=>{let X=ge.of(c,N),[Re,ce]=this.getXmlnsAttribute(o,g);ce&&X.addAttribute(Re,ce),I.addChildNode(X);let $e=ge.of(d);u.isListSchema()?this.writeList(u,H,$e,g):u.isMapSchema()?this.writeMap(u,H,$e,g,!0):u.isStructSchema()?$e=this.writeStruct(u,H,g):this.writeSimpleInto(u,H,$e,g),I.addChildNode($e)},"addKeyValue");if(m)for(let I in e){let N=e[I];if(l||N!=null){let H=ge.of(i.xmlName??t.getMemberName());_(H,I,N),r.addChildNode(H)}}else{let I;a||(I=ge.of(i.xmlName??t.getMemberName()),g&&I.addAttribute(v,g),r.addChildNode(I));for(let N in e){let H=e[N];if(l||H!=null){let X=ge.of("entry");_(X,N,H),(a?r:I).addChildNode(X)}}}}writeSimple(t,e){if(e===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let r=Te.of(t),s=null;if(e&&typeof e=="object")if(r.isBlobSchema())s=(this.serdeContext?.base64Encoder??je)(e);else if(r.isTimestampSchema()&&e instanceof Date)switch(na(r,this.settings)){case 5:s=e.toISOString().replace(".000Z","Z");break;case 6:s=Br(e);break;case 7:s=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",e),s=Br(e)}else{if(r.isBigDecimalSchema()&&e)return e instanceof ra?e.string:String(e);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(s=String(e)),r.isStringSchema()&&(e===void 0&&r.isIdempotencyToken()?s=aa():s=String(e)),s===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${e}`);return s}writeSimpleInto(t,e,r,s){let a=this.writeSimple(t,e),i=Te.of(t),o=new ms(a),[c,u]=this.getXmlnsAttribute(i,s);u&&r.addAttribute(c,u),r.addChildNode(o)}getXmlnsAttribute(t,e){let[r,s]=t.getMergedTraits().xmlNamespace??[];return s&&s!==e?[r?`xmlns:${r}`:"xmlns",s]:[void 0,void 0]}},T0=class extends Hr{static{n(this,"XmlCodec")}settings;constructor(t){super(),this.settings=t}createSerializer(){let t=new P0(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new la(this.settings);return t.setSerdeContext(this.serdeContext),t}},N0=class extends ha{static{n(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new zr;constructor(t){super(t);let e={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new T0(e),this.serializer=new fa(this.codec.createSerializer(),e),this.deserializer=new va(this.codec.createDeserializer(),e)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,e,r){let s=await super.serializeRequest(t,e,r),a=Te.of(t.input);if(!s.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);i&&(s.headers["content-type"]=i)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(a)&&(s.body='<?xml version="1.0" encoding="UTF-8"?>'+s.body),s}async deserializeResponse(t,e,r){return super.deserializeResponse(t,e,r)}async handleError(t,e,r,s,a){let i=_0(r,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let v of Object.keys(s.Error))s[v]=s.Error[v],v.toLowerCase()==="message"&&(s.message=s.Error[v]);s.RequestId&&!a.requestId&&(a.requestId=s.RequestId);let{errorSchema:o,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,r,s,a),u=Te.of(o),p=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",d=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,r,s);let l={},m=this.codec.createDeserializer();for(let[v,g]of u.structIterator()){let _=g.getMergedTraits().xmlName??v,I=s.Error?.[_]??s[_];l[v]=m.readSchema(g,I)}throw this.mixin.decorateServiceException(Object.assign(d,c,{$fault:u.getMergedTraits().error,message:p},l),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(let[,e]of t.structIterator())if(e.getMergedTraits().httpPayload)return!(e.isStructSchema()||e.isMapSchema()||e.isListSchema());return!1}},M0=class extends t0{static{n(this,"HashCalculator")}hash;constructor(t,e){super(e),this.hash=t}_write(t,e,r){try{this.hash.update(Le(t))}catch(s){return r(s)}r()}},k0=n((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,s=new M0(r);return e.pipe(s),new Promise((a,i)=>{e.on("error",o=>{s.end(),i(o)}),s.on("error",i),s.on("finish",()=>{r.digest().then(a).catch(i)})})},"readableStreamHasher"),$0=class{static{n(this,"Md5Js")}digestLength=16;state=Uint32Array.from(Ca);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){let e=Le(t),r=0,s=e.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,e[r++]),--s,this.bufferLength===64&&(Kr(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let t=Uint32Array.from(this.state),e=new DataView(this.writeBuffer.buffer.slice(0)),r=this.bufferLength,s=this.bytesHashed*8;if(e.setUint8(r++,128),this.bufferLength%64>=56){for(let o=r;o<64;++o)e.setUint8(o,0);Kr(t,e),r=0}for(let o=r;o<56;++o)e.setUint8(o,0);e.setUint32(56,s>>>0,!0),e.setUint32(60,Math.floor(s/2**32),!0),Kr(t,e);let a=new Uint8Array(16),i=new DataView(a.buffer);for(let o=0;o<4;++o)i.setUint32(o*4,t[o],!0);return a}reset(){this.state.set(Ca),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},Ca=[1732584193,4023233417,2562383102,271733878],Ne=4294967295,O0=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),D0=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);function Kr(t,e){let r=t[0],s=t[1],a=t[2],i=t[3];for(let o=0;o<64;++o){let c,u;o<16?(c=s&a|~s&i,u=o):o<32?(c=i&s|a&~i,u=(5*o+1)%16):o<48?(c=s^a^i,u=(3*o+5)%16):(c=a^(s|~i),u=7*o%16);let p=e.getUint32(u*4,!0),d=i;i=a,a=s;let l=O0[(o>>4)*4+(o&3)],m=(r+c&Ne)+(p+D0[o]&Ne)&Ne;s=s+((m<<l|m>>>32-l)>>>0)&Ne,r=d}t[0]=t[0]+r&Ne,t[1]=t[1]+s&Ne,t[2]=t[2]+a&Ne,t[3]=t[3]+i&Ne}n(Kr,"compress");var kn=(()=>{try{return lt("md5"),!0}catch{return!1}})()?L0():$0;function L0(){return class{static{n(this,"Md5Node")}digestLength=16;hash=lt("md5");update(e){this.hash.update(Le(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=lt("md5")}}}n(L0,"buildNativeClass$2");var $n=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;$n[t]=e>>>0}var Vr=4294967295,U0=class{static{n(this,"Crc32Js")}digestLength=4;checksum=Vr;update(t){for(let e=0;e<t.length;++e)this.checksum=this.checksum>>>8^$n[(this.checksum^t[e])&255]}digestSync(){return(this.checksum^Vr)>>>0}async digest(){let t=this.digestSync(),e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,t,!1),e}reset(){this.checksum=Vr}},Aa=typeof ds.crc32=="function"?ds.crc32:void 0,Is=Aa?F0(Aa):U0;function F0(t){return class{static{n(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}n(F0,"buildNativeClass$1");var _r=Be.ANALYTICS_TABLE_NAME,On=Be.ANALYTICS_REVERSE_INDEX,Dn=Be.ANALYTICS_USERS_TABLE,B0=Be.ANALYTICS_USERS_REVERSE_INDEX;Be.IPINFO_API_KEY;var Qr=class Ln{static{n(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let s=7,a=Math.abs(Math.round(e));s>-1&&a>0;s--,a/=256)r[s]=a;return e<0&&Ra(r),new Ln(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&Ra(e),parseInt(_e(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function Ra(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}n(Ra,"negate");var z0=class{static{n(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(t,e){this.toUtf8=t,this.fromUtf8=e}format(t){let e=[];for(let a in t){if(!Je(t,a))continue;let i=this.fromUtf8(a);e.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[a]))}let r=new Uint8Array(e.reduce((a,i)=>a+i.byteLength,0)),s=0;for(let a of e)r.set(a,s),s+=a.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let e=new DataView(new ArrayBuffer(3));return e.setUint8(0,3),e.setInt16(1,t.value,!1),new Uint8Array(e.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(t.value.bytes,1),s;case"binary":let a=new DataView(new ArrayBuffer(3+t.value.byteLength));a.setUint8(0,6),a.setUint16(1,t.value.byteLength,!1);let i=new Uint8Array(a.buffer);return i.set(t.value,3),i;case"string":let o=this.fromUtf8(t.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(o,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(Qr.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!X0.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(Ys(t.value.replace(/-/g,"")),1),d}}parse(t){let e={},r=0;for(;r<t.byteLength;){let s=t.getUint8(r++),a=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,s));switch(r+=s,t.getUint8(r++)){case 0:e[a]={type:Pa,value:!0};break;case 1:e[a]={type:Pa,value:!1};break;case 2:e[a]={type:H0,value:t.getInt8(r++)};break;case 3:e[a]={type:j0,value:t.getInt16(r,!1)},r+=2;break;case 4:e[a]={type:q0,value:t.getInt32(r,!1)},r+=4;break;case 5:e[a]={type:K0,value:new Qr(new Uint8Array(t.buffer,t.byteOffset+r,8))},r+=8;break;case 6:let i=t.getUint16(r,!1);r+=2,e[a]={type:V0,value:new Uint8Array(t.buffer,t.byteOffset+r,i)},r+=i;break;case 7:let o=t.getUint16(r,!1);r+=2,e[a]={type:Q0,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,o))},r+=o;break;case 8:e[a]={type:W0,value:new Date(new Qr(new Uint8Array(t.buffer,t.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let c=new Uint8Array(t.buffer,t.byteOffset+r,16);r+=16,e[a]={type:G0,value:`${_e(c.subarray(0,4))}-${_e(c.subarray(4,6))}-${_e(c.subarray(6,8))}-${_e(c.subarray(8,10))}-${_e(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return e}},_a;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(_a||(_a={}));var Pa="boolean",H0="byte",j0="short",q0="integer",K0="long",V0="binary",Q0="string",W0="timestamp",G0="uuid",X0=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,J0=4,nt=8,Wr=4,Y0=16;function Z0({byteLength:t,byteOffset:e,buffer:r}){if(t<Y0)throw new Error("Provided message too short to accommodate event stream message overhead");let s=new DataView(r,e,t),a=s.getUint32(0,!1);if(t!==a)throw new Error("Reported message length does not match received message length");let i=s.getUint32(J0,!1),o=s.getUint32(nt,!1),c=s.getUint32(t-Wr,!1),u=new Is;if(u.update(new Uint8Array(r,e,nt)),o!==u.digestSync())throw new Error(`The prelude checksum specified in the message (${o}) does not match the calculated CRC32 checksum (${u.digestSync()})`);if(u.update(new Uint8Array(r,e+nt,t-12)),c!==u.digestSync())throw new Error(`The message checksum (${u.digestSync()}) did not match the expected value of ${c}`);return{headers:new DataView(r,e+nt+Wr,i),body:new Uint8Array(r,e+nt+Wr+i,a-i-16)}}n(Z0,"splitMessage");var eu=class{static{n(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(t,e){this.headerMarshaller=new z0(t,e),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){let t=this.messageBuffer.pop(),e=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return e}}}getAvailableMessages(){let t=this.messageBuffer;this.messageBuffer=[];let e=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return e}}}encode({headers:t,body:e}){let r=this.headerMarshaller.format(t),s=r.byteLength+e.byteLength+16,a=new Uint8Array(s),i=new DataView(a.buffer,a.byteOffset,a.byteLength),o=new Is;return i.setUint32(0,s,!1),i.setUint32(4,r.byteLength,!1),o.update(a.subarray(0,8)),i.setUint32(8,o.digestSync(),!1),a.set(r,12),a.set(e,r.byteLength+12),o.update(a.subarray(8,s-4)),i.setUint32(s-4,o.digestSync(),!1),a}decode(t){let{headers:e,body:r}=Z0(t);return{headers:this.headerMarshaller.parse(e),body:r}}formatHeaders(t){return this.headerMarshaller.format(t)}},tu=class{static{n(this,"MessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.decoder.decode(t)}},ru=class{static{n(this,"MessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}},su=class{static{n(this,"SmithyMessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream){let e=await this.options.deserializer(t);e!==void 0&&(yield e)}}},au=class{static{n(this,"SmithyMessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.serializer(t)}};function nu(t){let e=0,r=0,s=null,a=null,i=n(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,s=new Uint8Array(c),new DataView(s.buffer).setUint32(0,c,!1)},"allocateMessage"),o=n(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:u,done:p}=await c.next();if(p){if(e)if(e===r)yield s;else throw new Error("Truncated event message received.");else return;return}let d=u.length,l=0;for(;l<d;){if(!s){let v=d-l;a||(a=new Uint8Array(4));let g=Math.min(4-r,v);if(a.set(u.slice(l,l+g),r),r+=g,l+=g,r<4)break;i(new DataView(a.buffer).getUint32(0,!1)),a=null}let m=Math.min(e-r,d-l);s.set(u.slice(l,l+m),r),r+=m,l+=m,e&&e===r&&(yield s,s=null,e=0,r=0)}}},"iterator");return{[Symbol.asyncIterator]:o}}n(nu,"getChunkedStream");function iu(t,e){return async function(r){let{value:s}=r.headers[":message-type"];if(s==="error"){let a=new Error(r.headers[":error-message"].value||"UnknownError");throw a.name=r.headers[":error-code"].value,a}else if(s==="exception"){let a=r.headers[":exception-type"].value,i=await t({[a]:r});if(i.$unknown){let o=new Error(e(r.body));throw o.name=a,o}throw i[a]}else if(s==="event"){let a=await t({[r.headers[":event-type"].value]:r});return a.$unknown?void 0:a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}n(iu,"getMessageUnmarshaller");var ou=class{static{n(this,"EventStreamMarshaller$1")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:e}){this.eventStreamCodec=new eu(t,e),this.utfEncoder=t}deserialize(t,e){return new su({messageStream:new tu({inputStream:nu(t),decoder:this.eventStreamCodec}),deserializer:iu(e,this.utfEncoder)})}serialize(t,e){return new ru({messageStream:new au({inputStream:t,serializer:e}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},cu=class{static{n(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:e}){this.universalMarshaller=new ou({utf8Decoder:e,utf8Encoder:t})}deserialize(t,e){let r=typeof t[Symbol.asyncIterator]=="function"?t:uu(t);return this.universalMarshaller.deserialize(r,e)}serialize(t,e){return ft.from(this.universalMarshaller.serialize(t,e))}},Un=n(t=>new cu(t),"eventStreamSerdeProvider");async function*uu(t){let e=!1,r=!1,s=new Array;for(t.on("error",a=>{if(e||(e=!0),a)throw a}),t.on("data",a=>{s.push(a)}),t.on("end",()=>{e=!0});!r;){let a=await new Promise(i=>setTimeout(()=>i(s.shift()),0));a&&(yield a),r=e&&s.length===0}}n(uu,"readableToIterable");var Fn=n(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig"),nx=class{static{n(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:e,deserializer:r,serdeContext:s,defaultContentType:a,compositeErrorRegistry:i}){this.marshaller=t,this.serializer=e,this.deserializer=r,this.serdeContext=s,this.defaultContentType=a,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r,initialMessageType:s}){let a=this.marshaller,i=e.getEventStreamMember(),o=e.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,p=Symbol("initialRequestMarker"),d={async*[Symbol.asyncIterator](){if(r){let l={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(e,r);let m=c.flush();yield{[p]:!0,headers:l,body:m}}for await(let l of t)yield l}};return a.serialize(d,l=>{if(l[p])return{headers:l.headers,body:l.body};let m="";for(let N in l)if(Je(l,N)&&N!=="__type"){m=N;break}let{additionalHeaders:v,body:g,eventType:_,explicitPayloadContentType:I}=this.writeEventBody(m,o,l);return{headers:{":event-type":{type:"string",value:_},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:I??u},...v},body:g}})}async deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r,initialMessageType:s}){let a=this.marshaller,i=e.getEventStreamMember(),o=e.getMemberSchema(i).getMemberSchemas(),c=Symbol("initialResponseMarker"),u=a.deserialize(t.body,async l=>{let m="";for(let g in l)if(Je(l,g)&&g!=="__type"){m=g;break}let v=l[m].body;if(m===(s??"initial-response")){let g=await this.deserializer.read(e,v);return delete g[i],{[c]:!0,...g}}else if(m in o){let g=o[m];if(g.isStructSchema()){let _={},I=!1;for(let[N,H]of g.structIterator()){let{eventHeader:X,eventPayload:Re}=H.getMergedTraits();if(I=I||!!(X||Re),Re)H.isBlobSchema()?_[N]=v:H.isStringSchema()?_[N]=(this.serdeContext?.utf8Encoder??tt)(v):H.isStructSchema()&&(_[N]=await this.deserializer.read(H,v));else if(X){let ce=l[m].headers[N]?.value;ce!=null&&(H.isNumericSchema()?ce&&typeof ce=="object"&&"bytes"in ce?_[N]=BigInt(ce.toString()):_[N]=Number(ce):_[N]=ce)}}return{[m]:await this.readEventMember(g,v,I,_)}}return{[m]:await this.deserializer.read(g,v)}}else return{$unknown:l}}),p=u[Symbol.asyncIterator](),d=await p.next();if(d.done)return u;if(d.value?.[c]){if(!e)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let l in d.value)Je(d.value,l)&&(r[l]=d.value[l])}return{async*[Symbol.asyncIterator](){for(d?.value?.[c]||(yield d.value);;){let{done:l,value:m}=await p.next();if(l)break;yield m}}}}async readEventMember(t,e,r,s){let a,i=t.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Pe.for(c);this.compositeErrorRegistry?.copyFrom(u),a=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let o=r?s:e.byteLength===0?{}:await this.deserializer.read(t,e);if(a){let c=o.message??o.Message??"Unknown",u={},p=t.getMergedTraits().error;return p&&(u.$fault=p),Object.assign(new a({}),u,{message:c},o)}return o}writeEventBody(t,e,r){let s=this.serializer,a=t,i=null,o,c=e.getSchema()[4].includes(t),u={};if(c){let d=e.getMemberSchema(t);if(d.isStructSchema()){for(let[l,m]of d.structIterator()){let{eventHeader:v,eventPayload:g}=m.getMergedTraits();if(g)i=l;else if(v){let _=r[t][l],I="binary";m.isNumericSchema()?(-2)**31<=_&&_<=2**31-1?I="integer":I="long":m.isTimestampSchema()?I="timestamp":m.isStringSchema()?I="string":m.isBooleanSchema()&&(I="boolean"),_!=null&&(u[l]={type:I,value:_},delete r[t][l])}}if(i!==null){let l=d.getMemberSchema(i);l.isBlobSchema()?o="application/octet-stream":l.isStringSchema()&&(o="text/plain"),s.write(l,r[t][i])}else s.write(d,r[t])}else if(d.isUnitSchema())s.write(d,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[d,l]=r[t];a=d,s.write(15,l)}let p=s.flush()??new Uint8Array;return{body:typeof p=="string"?(this.serdeContext?.utf8Decoder??et)(p):p,eventType:a,explicitPayloadContentType:o,additionalHeaders:u}}},du=n(async(t,e,r)=>({operation:ze(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultLambdaHttpAuthSchemeParametersProvider");function lu(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:n((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}n(lu,"createAwsAuthSigv4HttpAuthOption$2");var pu=n(t=>{let e=[];switch(t.operation){default:e.push(lu(t))}return e},"defaultLambdaHttpAuthSchemeProvider"),mu=n(t=>{let e=hr(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig$2"),hu=n(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),"resolveClientEndpointParameters$2"),vu={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fu={name:"@aws-sdk/client-lambda",version:"3.1150.0",description:"AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-lambda"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}},pt="ref",Ue=-1,fr=!0,Ta="isSet",Bn="PartitionResult",gr="booleanEquals",Na="getAttr",Ma={[pt]:"Endpoint"},ka={[pt]:Bn},it={},$a=[{[pt]:"Region"}],Oa={conditions:[[Ta,[Ma]],[Ta,$a],["aws.partition",$a,Bn],[gr,[{[pt]:"UseFIPS"},fr]],[gr,[{[pt]:"UseDualStack"},fr]],[gr,[{fn:Na,argv:[ka,"supportsDualStack"]},fr]],[gr,[{fn:Na,argv:[ka,"supportsFIPS"]},fr]]],results:[[Ue],[Ue,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ue,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ma,it],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",it],[Ue,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",it],[Ue,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",it],[Ue,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",it],[Ue,"Invalid Configuration: Missing Region"]]},gu=2,yu=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),Eu=Ft.from(yu,gu,Oa.conditions,Oa.results),Su=new Bt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),xu=n((t,e={})=>Su.get(t,()=>Ht(Eu,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver$2");zt.aws=ur;var y=class zn extends At{static{n(this,"LambdaServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambda#LambdaServiceException";constructor(e){super(e),Object.setPrototypeOf(this,zn.prototype)}},bu=class Hn extends y{static{n(this,"InvalidParameterValueException")}static shapeId="com.amazonaws.lambda#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";Type;constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,Hn.prototype),this.Type=e.Type}},wu=class jn extends y{static{n(this,"PolicyLengthExceededException")}static shapeId="com.amazonaws.lambda#PolicyLengthExceededException";name="PolicyLengthExceededException";$fault="client";Type;constructor(e){super({name:"PolicyLengthExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,jn.prototype),this.Type=e.Type}},Iu=class qn extends y{static{n(this,"PreconditionFailedException")}static shapeId="com.amazonaws.lambda#PreconditionFailedException";name="PreconditionFailedException";$fault="client";Type;constructor(e){super({name:"PreconditionFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,qn.prototype),this.Type=e.Type}},Cu=class Kn extends y{static{n(this,"ResourceConflictException")}static shapeId="com.amazonaws.lambda#ResourceConflictException";name="ResourceConflictException";$fault="client";Type;constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,Kn.prototype),this.Type=e.Type}},Au=class Vn extends y{static{n(this,"ResourceNotFoundException$1")}static shapeId="com.amazonaws.lambda#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";Type;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Vn.prototype),this.Type=e.Type,this.Message=e.Message}},Ru=class Qn extends y{static{n(this,"ServiceException")}static shapeId="com.amazonaws.lambda#ServiceException";name="ServiceException";$fault="server";Type;Message;constructor(e){super({name:"ServiceException",$fault:"server",...e}),Object.setPrototypeOf(this,Qn.prototype),this.Type=e.Type,this.Message=e.Message}},_u=class Wn extends y{static{n(this,"TooManyRequestsException")}static shapeId="com.amazonaws.lambda#TooManyRequestsException";name="TooManyRequestsException";$fault="client";retryAfterSeconds;Type;Reason;constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Wn.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.Type=e.Type,this.Reason=e.Reason}},Pu=class Gn extends y{static{n(this,"PublicPolicyException")}static shapeId="com.amazonaws.lambda#PublicPolicyException";name="PublicPolicyException";$fault="client";Type;Message;constructor(e){super({name:"PublicPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,Gn.prototype),this.Type=e.Type,this.Message=e.Message}},Tu=class Xn extends y{static{n(this,"AliasLimitExceededException")}static shapeId="com.amazonaws.lambda#AliasLimitExceededException";name="AliasLimitExceededException";$fault="client";Type;constructor(e){super({name:"AliasLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Xn.prototype),this.Type=e.Type}},Nu=class Jn extends y{static{n(this,"CapacityProviderLimitExceededException")}static shapeId="com.amazonaws.lambda#CapacityProviderLimitExceededException";name="CapacityProviderLimitExceededException";$fault="client";Type;constructor(e){super({name:"CapacityProviderLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Jn.prototype),this.Type=e.Type}},Mu=class Yn extends y{static{n(this,"KMSAccessDeniedException")}static shapeId="com.amazonaws.lambda#KMSAccessDeniedException";name="KMSAccessDeniedException";$fault="server";Type;Message;constructor(e){super({name:"KMSAccessDeniedException",$fault:"server",...e}),Object.setPrototypeOf(this,Yn.prototype),this.Type=e.Type,this.Message=e.Message}},ku=class Zn extends y{static{n(this,"KMSDisabledException")}static shapeId="com.amazonaws.lambda#KMSDisabledException";name="KMSDisabledException";$fault="server";Type;Message;constructor(e){super({name:"KMSDisabledException",$fault:"server",...e}),Object.setPrototypeOf(this,Zn.prototype),this.Type=e.Type,this.Message=e.Message}},$u=class ei extends y{static{n(this,"KMSInvalidStateException")}static shapeId="com.amazonaws.lambda#KMSInvalidStateException";name="KMSInvalidStateException";$fault="server";Type;Message;constructor(e){super({name:"KMSInvalidStateException",$fault:"server",...e}),Object.setPrototypeOf(this,ei.prototype),this.Type=e.Type,this.Message=e.Message}},Ou=class ti extends y{static{n(this,"KMSNotFoundException")}static shapeId="com.amazonaws.lambda#KMSNotFoundException";name="KMSNotFoundException";$fault="server";Type;Message;constructor(e){super({name:"KMSNotFoundException",$fault:"server",...e}),Object.setPrototypeOf(this,ti.prototype),this.Type=e.Type,this.Message=e.Message}},Du=class ri extends y{static{n(this,"ResourceInUseException")}static shapeId="com.amazonaws.lambda#ResourceInUseException";name="ResourceInUseException";$fault="client";Type;Message;constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,ri.prototype),this.Type=e.Type,this.Message=e.Message}},Lu=class si extends y{static{n(this,"CodeSigningConfigNotFoundException")}static shapeId="com.amazonaws.lambda#CodeSigningConfigNotFoundException";name="CodeSigningConfigNotFoundException";$fault="client";Type;Message;constructor(e){super({name:"CodeSigningConfigNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,si.prototype),this.Type=e.Type,this.Message=e.Message}},Uu=class ai extends y{static{n(this,"CodeStorageExceededException")}static shapeId="com.amazonaws.lambda#CodeStorageExceededException";name="CodeStorageExceededException";$fault="client";Type;constructor(e){super({name:"CodeStorageExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,ai.prototype),this.Type=e.Type}},Fu=class ni extends y{static{n(this,"CodeVerificationFailedException")}static shapeId="com.amazonaws.lambda#CodeVerificationFailedException";name="CodeVerificationFailedException";$fault="client";Type;Message;constructor(e){super({name:"CodeVerificationFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,ni.prototype),this.Type=e.Type,this.Message=e.Message}},Bu=class ii extends y{static{n(this,"FunctionVersionsPerCapacityProviderLimitExceededException")}static shapeId="com.amazonaws.lambda#FunctionVersionsPerCapacityProviderLimitExceededException";name="FunctionVersionsPerCapacityProviderLimitExceededException";$fault="client";Type;constructor(e){super({name:"FunctionVersionsPerCapacityProviderLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,ii.prototype),this.Type=e.Type}},zu=class oi extends y{static{n(this,"InvalidCodeSignatureException")}static shapeId="com.amazonaws.lambda#InvalidCodeSignatureException";name="InvalidCodeSignatureException";$fault="client";Type;Message;constructor(e){super({name:"InvalidCodeSignatureException",$fault:"client",...e}),Object.setPrototypeOf(this,oi.prototype),this.Type=e.Type,this.Message=e.Message}},Hu=class ci extends y{static{n(this,"CodeArtifactUserDeletedException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserDeletedException";name="CodeArtifactUserDeletedException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserDeletedException",$fault:"client",...e}),Object.setPrototypeOf(this,ci.prototype),this.Type=e.Type}},ju=class ui extends y{static{n(this,"CodeArtifactUserFailedException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserFailedException";name="CodeArtifactUserFailedException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,ui.prototype),this.Type=e.Type}},qu=class di extends y{static{n(this,"CodeArtifactUserPendingException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserPendingException";name="CodeArtifactUserPendingException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,di.prototype),this.Type=e.Type}},Ku=class li extends y{static{n(this,"DurableExecutionAlreadyStartedException")}static shapeId="com.amazonaws.lambda#DurableExecutionAlreadyStartedException";name="DurableExecutionAlreadyStartedException";$fault="client";Type;Message;constructor(e){super({name:"DurableExecutionAlreadyStartedException",$fault:"client",...e}),Object.setPrototypeOf(this,li.prototype),this.Type=e.Type,this.Message=e.Message}},Vu=class pi extends y{static{n(this,"EC2AccessDeniedException")}static shapeId="com.amazonaws.lambda#EC2AccessDeniedException";name="EC2AccessDeniedException";$fault="server";Type;Message;constructor(e){super({name:"EC2AccessDeniedException",$fault:"server",...e}),Object.setPrototypeOf(this,pi.prototype),this.Type=e.Type,this.Message=e.Message}},Qu=class mi extends y{static{n(this,"EC2ThrottledException")}static shapeId="com.amazonaws.lambda#EC2ThrottledException";name="EC2ThrottledException";$fault="server";Type;Message;constructor(e){super({name:"EC2ThrottledException",$fault:"server",...e}),Object.setPrototypeOf(this,mi.prototype),this.Type=e.Type,this.Message=e.Message}},Wu=class hi extends y{static{n(this,"EC2UnexpectedException")}static shapeId="com.amazonaws.lambda#EC2UnexpectedException";name="EC2UnexpectedException";$fault="server";Type;Message;EC2ErrorCode;constructor(e){super({name:"EC2UnexpectedException",$fault:"server",...e}),Object.setPrototypeOf(this,hi.prototype),this.Type=e.Type,this.Message=e.Message,this.EC2ErrorCode=e.EC2ErrorCode}},Gu=class vi extends y{static{n(this,"EFSIOException")}static shapeId="com.amazonaws.lambda#EFSIOException";name="EFSIOException";$fault="client";Type;Message;constructor(e){super({name:"EFSIOException",$fault:"client",...e}),Object.setPrototypeOf(this,vi.prototype),this.Type=e.Type,this.Message=e.Message}},Xu=class fi extends y{static{n(this,"EFSMountConnectivityException")}static shapeId="com.amazonaws.lambda#EFSMountConnectivityException";name="EFSMountConnectivityException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountConnectivityException",$fault:"client",...e}),Object.setPrototypeOf(this,fi.prototype),this.Type=e.Type,this.Message=e.Message}},Ju=class gi extends y{static{n(this,"EFSMountFailureException")}static shapeId="com.amazonaws.lambda#EFSMountFailureException";name="EFSMountFailureException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,gi.prototype),this.Type=e.Type,this.Message=e.Message}},Yu=class yi extends y{static{n(this,"EFSMountTimeoutException")}static shapeId="com.amazonaws.lambda#EFSMountTimeoutException";name="EFSMountTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,yi.prototype),this.Type=e.Type,this.Message=e.Message}},Zu=class Ei extends y{static{n(this,"ENILimitReachedException")}static shapeId="com.amazonaws.lambda#ENILimitReachedException";name="ENILimitReachedException";$fault="server";Type;Message;constructor(e){super({name:"ENILimitReachedException",$fault:"server",...e}),Object.setPrototypeOf(this,Ei.prototype),this.Type=e.Type,this.Message=e.Message}},ed=class Si extends y{static{n(this,"ENINotReadyException")}static shapeId="com.amazonaws.lambda#ENINotReadyException";name="ENINotReadyException";$fault="server";Type;Message;constructor(e){super({name:"ENINotReadyException",$fault:"server",...e}),Object.setPrototypeOf(this,Si.prototype),this.Type=e.Type,this.Message=e.Message}},td=class xi extends y{static{n(this,"InvalidRequestContentException")}static shapeId="com.amazonaws.lambda#InvalidRequestContentException";name="InvalidRequestContentException";$fault="client";Type;constructor(e){super({name:"InvalidRequestContentException",$fault:"client",...e}),Object.setPrototypeOf(this,xi.prototype),this.Type=e.Type}},rd=class bi extends y{static{n(this,"InvalidRuntimeException")}static shapeId="com.amazonaws.lambda#InvalidRuntimeException";name="InvalidRuntimeException";$fault="server";Type;Message;constructor(e){super({name:"InvalidRuntimeException",$fault:"server",...e}),Object.setPrototypeOf(this,bi.prototype),this.Type=e.Type,this.Message=e.Message}},sd=class wi extends y{static{n(this,"InvalidSecurityGroupIDException")}static shapeId="com.amazonaws.lambda#InvalidSecurityGroupIDException";name="InvalidSecurityGroupIDException";$fault="server";Type;Message;constructor(e){super({name:"InvalidSecurityGroupIDException",$fault:"server",...e}),Object.setPrototypeOf(this,wi.prototype),this.Type=e.Type,this.Message=e.Message}},ad=class Ii extends y{static{n(this,"InvalidSubnetIDException")}static shapeId="com.amazonaws.lambda#InvalidSubnetIDException";name="InvalidSubnetIDException";$fault="server";Type;Message;constructor(e){super({name:"InvalidSubnetIDException",$fault:"server",...e}),Object.setPrototypeOf(this,Ii.prototype),this.Type=e.Type,this.Message=e.Message}},nd=class Ci extends y{static{n(this,"InvalidZipFileException")}static shapeId="com.amazonaws.lambda#InvalidZipFileException";name="InvalidZipFileException";$fault="server";Type;Message;constructor(e){super({name:"InvalidZipFileException",$fault:"server",...e}),Object.setPrototypeOf(this,Ci.prototype),this.Type=e.Type,this.Message=e.Message}},id=class Ai extends y{static{n(this,"ModeNotSupportedException")}static shapeId="com.amazonaws.lambda#ModeNotSupportedException";name="ModeNotSupportedException";$fault="client";Type;constructor(e){super({name:"ModeNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,Ai.prototype),this.Type=e.Type}},od=class Ri extends y{static{n(this,"NoPublishedVersionException")}static shapeId="com.amazonaws.lambda#NoPublishedVersionException";name="NoPublishedVersionException";$fault="client";Type;Message;constructor(e){super({name:"NoPublishedVersionException",$fault:"client",...e}),Object.setPrototypeOf(this,Ri.prototype),this.Type=e.Type,this.Message=e.Message}},cd=class _i extends y{static{n(this,"RecursiveInvocationException")}static shapeId="com.amazonaws.lambda#RecursiveInvocationException";name="RecursiveInvocationException";$fault="client";Type;Message;constructor(e){super({name:"RecursiveInvocationException",$fault:"client",...e}),Object.setPrototypeOf(this,_i.prototype),this.Type=e.Type,this.Message=e.Message}},ud=class Pi extends y{static{n(this,"RequestTooLargeException")}static shapeId="com.amazonaws.lambda#RequestTooLargeException";name="RequestTooLargeException";$fault="client";Type;constructor(e){super({name:"RequestTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,Pi.prototype),this.Type=e.Type}},dd=class Ti extends y{static{n(this,"ResourceNotReadyException")}static shapeId="com.amazonaws.lambda#ResourceNotReadyException";name="ResourceNotReadyException";$fault="server";Type;constructor(e){super({name:"ResourceNotReadyException",$fault:"server",...e}),Object.setPrototypeOf(this,Ti.prototype),this.Type=e.Type}},ld=class Ni extends y{static{n(this,"S3FilesMountConnectivityException")}static shapeId="com.amazonaws.lambda#S3FilesMountConnectivityException";name="S3FilesMountConnectivityException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountConnectivityException",$fault:"client",...e}),Object.setPrototypeOf(this,Ni.prototype),this.Type=e.Type,this.Message=e.Message}},pd=class Mi extends y{static{n(this,"S3FilesMountFailureException")}static shapeId="com.amazonaws.lambda#S3FilesMountFailureException";name="S3FilesMountFailureException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,Mi.prototype),this.Type=e.Type,this.Message=e.Message}},md=class ki extends y{static{n(this,"S3FilesMountTimeoutException")}static shapeId="com.amazonaws.lambda#S3FilesMountTimeoutException";name="S3FilesMountTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,ki.prototype),this.Type=e.Type,this.Message=e.Message}},hd=class $i extends y{static{n(this,"SerializedRequestEntityTooLargeException")}static shapeId="com.amazonaws.lambda#SerializedRequestEntityTooLargeException";name="SerializedRequestEntityTooLargeException";$fault="client";Type;constructor(e){super({name:"SerializedRequestEntityTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,$i.prototype),this.Type=e.Type}},vd=class Oi extends y{static{n(this,"ServiceQuotaExceededException")}static shapeId="com.amazonaws.lambda#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";Type;Message;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Oi.prototype),this.Type=e.Type,this.Message=e.Message}},fd=class Di extends y{static{n(this,"SnapStartException")}static shapeId="com.amazonaws.lambda#SnapStartException";name="SnapStartException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartException",$fault:"client",...e}),Object.setPrototypeOf(this,Di.prototype),this.Type=e.Type,this.Message=e.Message}},gd=class Li extends y{static{n(this,"SnapStartNotReadyException")}static shapeId="com.amazonaws.lambda#SnapStartNotReadyException";name="SnapStartNotReadyException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartNotReadyException",$fault:"client",...e}),Object.setPrototypeOf(this,Li.prototype),this.Type=e.Type,this.Message=e.Message}},yd=class Ui extends y{static{n(this,"SnapStartRegenerationFailureException")}static shapeId="com.amazonaws.lambda#SnapStartRegenerationFailureException";name="SnapStartRegenerationFailureException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartRegenerationFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,Ui.prototype),this.Type=e.Type,this.Message=e.Message}},Ed=class Fi extends y{static{n(this,"SnapStartTimeoutException")}static shapeId="com.amazonaws.lambda#SnapStartTimeoutException";name="SnapStartTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,Fi.prototype),this.Type=e.Type,this.Message=e.Message}},Sd=class Bi extends y{static{n(this,"SubnetIPAddressLimitReachedException")}static shapeId="com.amazonaws.lambda#SubnetIPAddressLimitReachedException";name="SubnetIPAddressLimitReachedException";$fault="server";Type;Message;constructor(e){super({name:"SubnetIPAddressLimitReachedException",$fault:"server",...e}),Object.setPrototypeOf(this,Bi.prototype),this.Type=e.Type,this.Message=e.Message}},xd=class zi extends y{static{n(this,"UnsupportedMediaTypeException")}static shapeId="com.amazonaws.lambda#UnsupportedMediaTypeException";name="UnsupportedMediaTypeException";$fault="client";Type;constructor(e){super({name:"UnsupportedMediaTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,zi.prototype),this.Type=e.Type}},bd=class Hi extends y{static{n(this,"ProvisionedConcurrencyConfigNotFoundException")}static shapeId="com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException";name="ProvisionedConcurrencyConfigNotFoundException";$fault="client";Type;constructor(e){super({name:"ProvisionedConcurrencyConfigNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Hi.prototype),this.Type=e.Type}},wd=class ji extends y{static{n(this,"CallbackTimeoutException")}static shapeId="com.amazonaws.lambda#CallbackTimeoutException";name="CallbackTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"CallbackTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,ji.prototype),this.Type=e.Type,this.Message=e.Message}},Id="AliasLimitExceededException",Cd="Blob",Ad="CodeArtifactUserDeletedException",Rd="CodeArtifactUserFailedException",_d="CodeArtifactUserPendingException",Pd="ClientContext",Td="CapacityProviderLimitExceededException",Nd="CodeSigningConfigNotFoundException",Md="CodeStorageExceededException",kd="CallbackTimeoutException",$d="CodeVerificationFailedException",Od="DurableExecutionArn",Dd="DurableExecutionAlreadyStartedException",Ld="DurableExecutionName",Ud="EC2AccessDeniedException",Fd="EC2ErrorCode",Bd="EC2ThrottledException",zd="EC2UnexpectedException",Hd="EFSIOException",jd="EFSMountConnectivityException",qd="EFSMountFailureException",Kd="EFSMountTimeoutException",Vd="ENILimitReachedException",Qd="ENINotReadyException",Wd="ExecutedVersion",Gd="FunctionError",Xd="FunctionName",Jd="FunctionVersionsPerCapacityProviderLimitExceededException",Yd="InvalidCodeSignatureException",Zd="InvalidParameterValueException",el="InvalidRequestContentException",tl="InvalidRuntimeException",rl="InvocationRequest",sl="InvocationResponse",al="InvalidSecurityGroupIDException",nl="InvalidSubnetIDException",il="InvocationType",ol="InvalidZipFileException",cl="Invoke",ul="KMSAccessDeniedException",dl="KMSDisabledException",ll="KMSInvalidStateException",pl="KMSNotFoundException",ml="LogResult",hl="LogType",R="Message",vl="ModeNotSupportedException",fl="NoPublishedVersionException",gl="ProvisionedConcurrencyConfigNotFoundException",yl="PreconditionFailedException",El="PolicyLengthExceededException",Sl="PublicPolicyException",qi="Payload",Da="Qualifier",xl="Reason",bl="Retry-After",wl="ResourceConflictException",Il="RecursiveInvocationException",Cl="ResourceInUseException",Al="ResourceNotFoundException",Rl="ResourceNotReadyException",_l="RequestTooLargeException",Pl="StatusCode",Tl="ServiceException",Nl="S3FilesMountConnectivityException",Ml="S3FilesMountFailureException",kl="S3FilesMountTimeoutException",$l="SubnetIPAddressLimitReachedException",Ol="ServiceQuotaExceededException",Dl="SerializedRequestEntityTooLargeException",Ll="SnapStartException",Ul="SnapStartNotReadyException",Fl="SnapStartRegenerationFailureException",Bl="SnapStartTimeoutException",S="Type",zl="TenantId",Hl="TooManyRequestsException",jl="UnsupportedMediaTypeException",ql="X-Amz-Client-Context",Kl="X-Amz-Durable-Execution-Arn",Vl="X-Amz-Durable-Execution-Name",Ql="X-Amz-Executed-Version",Wl="X-Amz-Function-Error",Gl="X-Amz-Invocation-Type",Xl="X-Amz-Log-Result",Jl="X-Amz-Log-Type",Yl="X-Amz-Tenant-Id",C="client",x="error",Zl="http",b="httpError",Ee="httpHeader",ep="httpQuery",Z="message",tp="retryAfterSeconds",Ki="smithy.ts.sdk.synthetic.com.amazonaws.lambda",ne="server",f="com.amazonaws.lambda",Vi=new Pe(Ki),rp=[-3,Ki,"LambdaServiceException",0,[],[]];Vi.registerError(rp,y);var E=new Pe(f),sp=[-3,f,Id,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(sp,Tu);var ap=[-3,f,kd,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(ap,wd);var np=[-3,f,Td,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(np,Nu);var ip=[-3,f,Ad,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(ip,Hu);var op=[-3,f,Rd,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(op,ju);var cp=[-3,f,_d,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(cp,qu);var up=[-3,f,Nd,{[x]:C,[b]:404},[S,R],[0,0]];E.registerError(up,Lu);var dp=[-3,f,Md,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(dp,Uu);var lp=[-3,f,$d,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(lp,Fu);var pp=[-3,f,Dd,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(pp,Ku);var mp=[-3,f,Ud,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(mp,Vu);var hp=[-3,f,Bd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(hp,Qu);var vp=[-3,f,zd,{[x]:ne,[b]:502},[S,R,Fd],[0,0,0]];E.registerError(vp,Wu);var fp=[-3,f,Hd,{[x]:C,[b]:410},[S,R],[0,0]];E.registerError(fp,Gu);var gp=[-3,f,jd,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(gp,Xu);var yp=[-3,f,qd,{[x]:C,[b]:403},[S,R],[0,0]];E.registerError(yp,Ju);var Ep=[-3,f,Kd,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Ep,Yu);var Sp=[-3,f,Vd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Sp,Zu);var xp=[-3,f,Qd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(xp,ed);var bp=[-3,f,Jd,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(bp,Bu);var wp=[-3,f,Yd,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(wp,zu);var Ip=[-3,f,Zd,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Ip,bu);var Cp=[-3,f,el,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Cp,td);var Ap=[-3,f,tl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Ap,rd);var Rp=[-3,f,al,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Rp,sd);var _p=[-3,f,nl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(_p,ad);var Pp=[-3,f,ol,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Pp,nd);var Tp=[-3,f,ul,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Tp,Mu);var Np=[-3,f,dl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Np,ku);var Mp=[-3,f,ll,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Mp,$u);var kp=[-3,f,pl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(kp,Ou);var $p=[-3,f,vl,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError($p,id);var Op=[-3,f,fl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Op,od);var Dp=[-3,f,El,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Dp,wu);var Lp=[-3,f,yl,{[x]:C,[b]:412},[S,Z],[0,0]];E.registerError(Lp,Iu);var Up=[-3,f,gl,{[x]:C,[b]:404},[S,Z],[0,0]];E.registerError(Up,bd);var Fp=[-3,f,Sl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Fp,Pu);var Bp=[-3,f,Il,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Bp,cd);var zp=[-3,f,_l,{[x]:C,[b]:413},[S,Z],[0,0]];E.registerError(zp,ud);var Hp=[-3,f,wl,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(Hp,Cu);var jp=[-3,f,Cl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(jp,Du);var qp=[-3,f,Al,{[x]:C,[b]:404},[S,R],[0,0]];E.registerError(qp,Au);var Kp=[-3,f,Rl,{[x]:ne,[b]:502},[S,Z],[0,0]];E.registerError(Kp,dd);var Vp=[-3,f,Nl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Vp,ld);var Qp=[-3,f,Ml,{[x]:C,[b]:403},[S,R],[0,0]];E.registerError(Qp,pd);var Wp=[-3,f,kl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Wp,md);var Gp=[-3,f,Dl,{[x]:C,[b]:413},[S,Z],[0,0]];E.registerError(Gp,hd);var Xp=[-3,f,Tl,{[x]:ne,[b]:500},[S,R],[0,0]];E.registerError(Xp,Ru);var Jp=[-3,f,Ol,{[x]:C,[b]:402},[S,R],[0,0]];E.registerError(Jp,vd);var Yp=[-3,f,Ll,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Yp,fd);var Zp=[-3,f,Ul,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(Zp,gd);var em=[-3,f,Fl,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(em,yd);var tm=[-3,f,Bl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(tm,Ed);var rm=[-3,f,$l,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(rm,Sd);var sm=[-3,f,Hl,{[x]:C,[b]:429},[tp,S,Z,xl],[[0,{[Ee]:bl}],0,0,0]];E.registerError(sm,_u);var am=[-3,f,jl,{[x]:C,[b]:415},[S,Z],[0,0]];E.registerError(am,xd);var nm=[Vi,E],Qi=[0,f,Cd,8,21],im=[3,f,rl,0,[Xd,il,hl,Pd,Ld,qi,Da,zl],[[0,1],[0,{[Ee]:Gl}],[0,{[Ee]:Jl}],[0,{[Ee]:ql}],[0,{[Ee]:Vl}],[()=>Qi,16],[0,{[ep]:Da}],[0,{[Ee]:Yl}]],1],om=[3,f,sl,0,[Pl,Gd,ml,qi,Wd,Od],[[1,32],[0,{[Ee]:Wl}],[0,{[Ee]:Xl}],[()=>Qi,16],[0,{[Ee]:Ql}],[0,{[Ee]:Kl}]]],cm=[9,f,cl,{[Zl]:["POST","/2015-03-31/functions/{FunctionName}/invocations",200]},()=>im,()=>om],um=n(t=>({apiVersion:"2015-03-31",base64Decoder:t?.base64Decoder??rt,base64Encoder:t?.base64Encoder??je,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??xu,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pu,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pr}],logger:t?.logger??new He,protocol:t?.protocol??Ea,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambda",errorTypeRegistries:nm,version:"2015-03-31",serviceTarget:"AWSGirApiService"},serviceId:t?.serviceId??"Lambda",sha256:t?.sha256??vr,urlParser:t?.urlParser??bt,utf8Decoder:t?.utf8Decoder??et,utf8Encoder:t?.utf8Encoder??tt}),"getRuntimeConfig$5"),dm=n(t=>{_t(process.version);let e=Ut(t),r=n(()=>e().then(Rt),"defaultConfigProvider"),s=um(t);wt(process.version);let a={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??U(mr,a),bodyLengthChecker:t?.bodyLengthChecker??Mt,credentialDefaultProvider:t?.credentialDefaultProvider??ws,defaultUserAgentProvider:t?.defaultUserAgentProvider??or({serviceId:s.serviceId,clientVersion:fu.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??Un,maxAttempts:t?.maxAttempts??U(Gt,t),region:t?.region??U(Ot,{...Dt,...a}),requestHandler:xt.create(t?.requestHandler??r),retryMode:t?.retryMode??U({...Jt,default:n(async()=>(await r()).retryMode||Wt,"default")},t),streamCollector:t?.streamCollector??St,useDualstackEndpoint:t?.useDualstackEndpoint??U(kt,a),useFipsEndpoint:t?.useFipsEndpoint??U($t,a),userAgentAppId:t?.userAgentAppId??U(cr,a)}},"getRuntimeConfig$4"),lm=n(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(a){let i=e.findIndex(o=>o.schemeId===a.schemeId);i===-1?e.push(a):e.splice(i,1,a)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(a){r=a},httpAuthSchemeProvider(){return r},setCredentials(a){s=a},credentials(){return s}}},"getHttpAuthExtensionConfiguration$2"),pm=n(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig$2"),mm=n((t,e)=>{let r=Object.assign(dr(t),Pt(t),Kt(t),lm(t));return e.forEach(s=>s.configure(r)),Object.assign(t,lr(r),Tt(r),Vt(r),pm(r))},"resolveRuntimeExtensions$2"),hm=class extends It{static{n(this,"LambdaClient")}config;constructor(...[t]){let e=dm(t||{});super(e),this.initConfig=e;let r=hu(e),s=nr(r),a=Xt(s),i=Lt(a),o=i,c=mm(mu(Fn(jt(o))),t?.extensions||[]);this.config=c,this.middlewareStack.use(Ct(this.config)),this.middlewareStack.use(ir(this.config)),this.middlewareStack.use(Yt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Zt(this.config)),this.middlewareStack.use(er(this.config)),this.middlewareStack.use(tr(this.config)),this.middlewareStack.use(rr(this.config,{httpAuthSchemeParametersProvider:du,identityProviderConfigProvider:n(async u=>new ar({"aws.auth#sigv4":u.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(sr(this.config))}destroy(){super.destroy()}},vm=Nt(vu,"AWSGirApiService","LambdaClient",qt),fm={},gm=n((t,e,r,s)=>[],"_mw0$1"),ym=class extends vm(fm,gm,"Invoke",cm){static{n(this,"InvokeCommand")}},Em={DryRun:"DryRun",Event:"Event",RequestResponse:"RequestResponse"},Sm=de({BEESOLVE_AUTH_SDK_HANDLER_ARN:re()}),xm=Fr(Sm,process.env),bm=class{static{n(this,"AuthClient")}props;lambdaArn;lambdaClient;constructor(t={}){this.props=t,this.lambdaArn=t.lambdaArn??xm.BEESOLVE_AUTH_SDK_HANDLER_ARN,this.lambdaClient=t.lambdaClient??new hm}invoke=n(async t=>this.invokeLambda(t),"invoke");invokeLambda=n(async t=>{let{Payload:e,StatusCode:r,FunctionError:s}=await this.lambdaClient.send(new ym({FunctionName:this.lambdaArn,InvocationType:Em.RequestResponse,Payload:JSON.stringify(s0(t))}));if(r!==200)throw new Error(`Cannot invoke synchronous action: ${s}`);let a=JSON.parse(e?.transformToString()??"null");if(a!=null&&typeof a=="object"&&"errorMessage"in a)throw new Error(`SDK handler error: ${a.errorMessage}`);return a},"invokeLambda")},wm=Ur("impersonating",[de({userId:re(),sessionId:re(),expiresAt:re(),impersonating:Oe(!1)}),de({userId:re(),sessionId:re(),expiresAt:re(),impersonating:Oe(!0),impersonatedBy:re()})]),Gr=de({sid:re(),maxAge:zs()}),Im=Ur("type",[de({type:Oe("none")}),de({type:Oe("invalid"),error:re(),setCookiesParams:Et(Gr)}),de({type:Oe("expired"),expiredSession:de({userId:re(),sessionId:re(),expiredAt:re()}),setCookiesParams:Et(Gr)}),de({type:Oe("valid"),validSession:wm,setCookiesParams:Et(Gr)})]),Cm=Hs(re(),Bs(t=>JSON.parse(t)),Im),La=de({session:Cm});async function Am(){if(!Ms())return{type:"none"};let t=Ns();return Ts(t)?(await ks(La)).session:(await $s(La)).session}n(Am,"getSessionContext2");function Rm(t){for(let{sid:e,maxAge:r}of t.cookies)[`__Host-SID=${e}; HttpOnly; Max-Age=${r}; SameSite=Strict; Secure; Path=/`,`aSID=${r>0?1:0}; Max-Age=${r}; SameSite=Strict; Secure; Path=/`].forEach(s=>t.headers.append("Set-Cookie",s));return t.headers}n(Rm,"addSetCookies2");var _m={type:"valid",validSession:{userId:"dev-user",sessionId:"dev-session",expiresAt:new Date(Date.now()+2592e6).toISOString(),impersonating:!1},setCookiesParams:[]};new Date(Date.now()-36e5).toISOString();var Pm=process.env.LAMBDA_TASK_ROOT!=null;function Tm(t){return Pm?async({event:e,resolve:r})=>{let s=await Am();e.locals.session=s;let a=await r(e);return s.type!=="none"&&s.setCookiesParams.length>0&&Rm({headers:a.headers,cookies:s.setCookiesParams}),a}:Nm(t?.fallbackSession??_m)}n(Tm,"createSessionHandle");function Nm(t){return async({event:e,resolve:r})=>(e.locals.session=t,r(e))}n(Nm,"createFallbackHandle");var ke={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Wi=ke.WHEN_SUPPORTED,dt={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Gi=ke.WHEN_SUPPORTED,B;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(B||(B={}));var Ua;(function(t){t.HEADER="header",t.TRAILER="trailer"})(Ua||(Ua={}));var hs=B.CRC32,We;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(We||(We={}));var Ar=n((t,e,r,s)=>{if(!(e in t))return;let a=t[e].toUpperCase();if(!Object.values(r).includes(a))throw new TypeError(`Cannot load ${s} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return a},"stringUnionSelector"),Mm="AWS_REQUEST_CHECKSUM_CALCULATION",km="request_checksum_calculation",$m={environmentVariableSelector:n(t=>Ar(t,Mm,ke,We.ENV),"environmentVariableSelector"),configFileSelector:n(t=>Ar(t,km,ke,We.CONFIG),"configFileSelector"),default:Wi},Om="AWS_RESPONSE_CHECKSUM_VALIDATION",Dm="response_checksum_validation",Lm={environmentVariableSelector:n(t=>Ar(t,Om,dt,We.ENV),"environmentVariableSelector"),configFileSelector:n(t=>Ar(t,Dm,dt,We.CONFIG),"configFileSelector"),default:Gi},Um=n((t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:s})=>{if(!r)return s===ke.WHEN_SUPPORTED||e?hs:void 0;if(t[r])return t[r]},"getChecksumAlgorithmForRequest"),Rr=n(t=>t===B.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`,"getChecksumLocationName"),Fm=n((t,e)=>{let r=t.toLowerCase();for(let s of Object.keys(e))if(r===s.toLowerCase())return!0;return!1},"hasHeader"),Bm=n((t,e)=>{let r=t.toLowerCase();for(let s of Object.keys(e))if(s.toLowerCase().startsWith(r))return!0;return!1},"hasHeaderWithPrefix"),Xi=n(t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Js(t),"isStreaming"),Ji=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;Ji[t]=e>>>0}var zm=class{static{n(this,"Crc32cJs")}digestLength=4;crc=4294967295;update(t){let e=this.crc;for(let r=0;r<t.length;++r)e=e>>>8^Ji[(e^t[r])&255];this.crc=e}async digest(){let t=(this.crc^4294967295)>>>0,e=new Uint8Array(4);return e[0]=t>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e}reset(){this.crc=4294967295}},Hm=zm,jm={CrtCrc64Nvme:null},qm=n(()=>{let e=new Array(8);for(let r=0;r<8;r++){let s=new Array(512);for(let a=0;a<256;a++){let i=BigInt(a);for(let o=0;o<8*(r+1);o++)i&1n?i=i>>1n^11127430586519243189n:i=i>>1n;s[a*2]=Number(i>>32n&4294967295n),s[a*2+1]=Number(i&4294967295n)}e[r]=new Uint32Array(s)}return e},"generateCRC64NVMETable"),Xr,ct,vs,fs,gs,ys,Es,Ss,xs,Km=n(()=>{Xr||(Xr=qm(),[ct,vs,fs,gs,ys,Es,Ss,xs]=Xr)},"ensureTablesInitialized"),Vm=class{static{n(this,"Crc64NvmeJs")}c1=0;c2=0;constructor(){Km(),this.reset()}update(t){let e=t.length,r=0,s=this.c1,a=this.c2;for(;r+8<=e;){let i=((a^t[r++])&255)<<1,o=((a>>>8^t[r++])&255)<<1,c=((a>>>16^t[r++])&255)<<1,u=((a>>>24^t[r++])&255)<<1,p=((s^t[r++])&255)<<1,d=((s>>>8^t[r++])&255)<<1,l=((s>>>16^t[r++])&255)<<1,m=((s>>>24^t[r++])&255)<<1;s=xs[i]^Ss[o]^Es[c]^ys[u]^gs[p]^fs[d]^vs[l]^ct[m],a=xs[i+1]^Ss[o+1]^Es[c+1]^ys[u+1]^gs[p+1]^fs[d+1]^vs[l+1]^ct[m+1]}for(;r<e;){let i=((a^t[r])&255)<<1;a=(a>>>8|(s&255)<<24)>>>0,s=s>>>8^ct[i],a^=ct[i+1],++r}this.c1=s,this.c2=a}async digest(){let t=this.c1^4294967295,e=this.c2^4294967295;return new Uint8Array([t>>>24,t>>>16&255,t>>>8&255,t&255,e>>>24,e>>>16&255,e>>>8&255,e&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Qm=class{static{n(this,"Crc64Nvme")}impl;constructor(){let t=jm.CrtCrc64Nvme;this.impl=t?new t:new Vm}update(t){this.impl.update(t)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}},Wm=[B.CRC32,B.CRC32C,B.CRC64NVME,B.SHA1,B.SHA256],Fa=[B.SHA256,B.SHA1,B.CRC32,B.CRC32C,B.CRC64NVME],Yi=n((t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case B.MD5:return r?.MD5??e.md5;case B.CRC32:return r?.CRC32??Is;case B.CRC32C:return r?.CRC32C??Hm;case B.CRC64NVME:return r?.CRC64NVME??Qm;case B.SHA1:return r?.SHA1??e.sha1;case B.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${Wm}, or provide an implementation to the client constructor checksums field.`)}},"selectChecksumAlgorithmFunction"),Zi=n((t,e)=>{let r=new t;return r.update(Le(e||"")),r.digest()},"stringHasher"),Gm={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},Xm=n((t,e)=>(r,s)=>async a=>{if(!De.isInstance(a.request)||Bm("x-amz-checksum-",a.request.headers))return r(a);let{request:i,input:o}=a,{body:c,headers:u}=i,{base64Encoder:p,streamHasher:d}=t,{requestChecksumRequired:l,requestAlgorithmMember:m}=e,v=await t.requestChecksumCalculation(),g=m?.name,_=m?.httpHeader;g&&!o[g]&&(v===ke.WHEN_SUPPORTED||l)&&(o[g]=hs,_&&(u[_]=hs));let I=Um(o,{requestChecksumRequired:l,requestAlgorithmMember:m?.name,requestChecksumCalculation:v}),N=c,H=u;if(I){switch(I){case B.CRC32:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case B.CRC32C:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case B.CRC64NVME:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case B.SHA1:le(s,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case B.SHA256:le(s,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}let X=Rr(I),Re=Yi(I,t);if(Xi(c)){let{getAwsChunkedEncodingStream:ce,bodyLengthChecker:$e}=t;N=ce(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8192?m0(c,t.requestStreamBufferSize,s.logger):c,{base64Encoder:p,bodyLengthChecker:$e,checksumLocationName:X,checksumAlgorithmFn:Re,streamHasher:d}),H={...u,"content-encoding":u["content-encoding"]?`${u["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":u["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":X},delete H["content-length"]}else if(!Fm(X,u)){let ce=await Zi(Re,c);H={...u,[X]:p(ce)}}}try{return await r({...a,request:{...i,headers:H,body:N}})}catch(X){if(X instanceof Error&&X.name==="InvalidChunkSizeError")try{X.message.endsWith(".")||(X.message+="."),X.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw X}},"flexibleChecksumsMiddleware"),Jm={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},Ym=n((t,e)=>(r,s)=>async a=>{let i=a.input,{requestValidationModeMember:o}=e,c=await t.requestChecksumCalculation(),u=await t.responseChecksumValidation();switch(c){case ke.WHEN_REQUIRED:le(s,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case ke.WHEN_SUPPORTED:le(s,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(u){case dt.WHEN_REQUIRED:le(s,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case dt.WHEN_SUPPORTED:le(s,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return o&&!i[o]&&u===dt.WHEN_SUPPORTED&&(i[o]="ENABLED"),r(a)},"flexibleChecksumsInputMiddleware"),eo=n((t=[])=>{let e=[],r=Fa.length;for(let s of t){let a=Fa.indexOf(s);a!==-1?e[a]=s:e[r++]=s}return e.filter(Boolean)},"getChecksumAlgorithmListForResponse"),Zm=n(t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let s=parseInt(r,10);if(!isNaN(s)&&s>=1&&s<=1e4)return!0}}return!1},"isChecksumWithPartNumber"),eh=n(async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await Zi(e,t)),"getChecksum"),th=n(async(t,{config:e,responseAlgorithms:r,logger:s})=>{let a=eo(r),{body:i,headers:o}=t;for(let c of a){let u=Rr(c),p=o[u];if(p){let d;try{d=Yi(c,e)}catch(v){if(c===B.CRC64NVME){s?.warn(`Skipping ${B.CRC64NVME} checksum validation: ${v.message}`);continue}throw v}let{base64Encoder:l}=e;if(Xi(i)){t.body=l0({expectedChecksum:p,checksumSourceLocation:u,checksum:new d,source:i,base64Encoder:l});return}let m=await eh(i,{checksumAlgorithmFn:d,base64Encoder:l});if(m===p)break;throw new Error(`Checksum mismatch: expected "${m}" but received "${p}" in response header "${u}".`)}}},"validateChecksumFromResponse"),rh={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},sh=n((t,e)=>(r,s)=>async a=>{if(!De.isInstance(a.request))return r(a);let i=a.input,o=await r(a),c=o.response,{requestValidationModeMember:u,responseAlgorithms:p}=e;if(u&&i[u]==="ENABLED"){let{clientName:d,commandName:l}=s,m=Object.keys(t.checksumAlgorithms??{}).filter(g=>{let _=Rr(g);return c.headers[_]!==void 0}),v=eo([...p??[],...m]);if(d==="S3Client"&&l==="GetObjectCommand"&&v.every(g=>{let _=Rr(g),I=c.headers[_];return!I||Zm(I)}))return o;await th(c,{config:t,responseAlgorithms:v,logger:s.logger})}return o},"flexibleChecksumsResponseMiddleware"),ah=n((t,e)=>({applyToStack:n(r=>{r.add(Xm(t,e),Gm),r.addRelativeTo(Ym(t,e),Jm),r.addRelativeTo(sh(t,e),rh)},"applyToStack")}),"getFlexibleChecksumsPlugin"),nh=n(t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:s}=t;return Object.assign(t,{requestChecksumCalculation:xe(e??Wi),responseChecksumValidation:xe(r??Gi),requestStreamBufferSize:Number(s??0),checksumAlgorithms:t.checksumAlgorithms??{}})},"resolveFlexibleChecksumsConfig"),ih="content-length",oh="x-amz-decoded-content-length";function ch(){return(t,e)=>async r=>{let{request:s}=r;if(De.isInstance(s)&&!(ih in s.headers)&&!(oh in s.headers)){let a="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof He)?e.logger.warn(a):console.warn(a)}return t({...r})}}n(ch,"checkContentLengthHeader");var uh={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},dh=n(t=>({applyToStack:n(e=>{e.add(ch(),uh)},"applyToStack")}),"getCheckContentLengthHeaderPlugin"),lh=n(t=>(e,r)=>async s=>{let a=await t.region(),i=t.region,o=n(()=>{},"unlock");r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:n(async()=>r.__s3RegionRedirect,"value")}),o=n(()=>Object.defineProperty(t,"region",{writable:!0,value:i}),"unlock"));try{let c=await e(s);if(r.__s3RegionRedirect&&(o(),a!==await t.region()))throw new Error("Region was not restored following S3 region redirect.");return c}catch(c){throw o(),c}},"regionRedirectEndpointMiddleware"),ph={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function mh(t){return(e,r)=>async s=>{try{return await e(s)}catch(a){if(t.followRegionRedirects){let i=a?.$metadata?.httpStatusCode,o=r.commandName==="HeadBucketCommand",c=a?.$response?.headers?.["x-amz-bucket-region"];if(c&&(i===301||i===400&&(a?.name==="IllegalLocationConstraintException"||o))){try{let u=c;r.logger?.debug(`Redirecting from ${await t.region()} to ${u}`),r.__s3RegionRedirect=u,le(r,"S3_REGION_REDIRECT","Ah")}catch(u){throw new Error("Region redirect failed: "+u)}return e(s)}}throw a}}}n(mh,"regionRedirectMiddleware");var hh={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},vh=n(t=>({applyToStack:n(e=>{e.add(mh(t),hh),e.addRelativeTo(lh(t),ph)},"applyToStack")}),"getRegionRedirectMiddlewarePlugin"),fh=class to{static{n(this,"S3ExpressIdentityCache")}data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+to.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let s=this.data[r];if(!s.isRefreshing){let a=await s.identity;a.expiration&&a.expiration.getTime()<e&&delete this.data[r]}}}},Jr=class{static{n(this,"S3ExpressIdentityCacheEntry")}_identity;isRefreshing;accessed;constructor(t,e=!1,r=Date.now()){this._identity=t,this.isRefreshing=e,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}},gh=class ro{static{n(this,"S3ExpressIdentityProviderImpl")}createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new fh){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let s=r.Bucket,{cache:a}=this,i=a.get(s);return i?i.identity.then(o=>(o.expiration?.getTime()??0)<Date.now()?a.set(s,new Jr(this.getIdentity(s))).identity:((o.expiration?.getTime()??0)<Date.now()+ro.REFRESH_WINDOW_MS&&!i.isRefreshing&&(i.isRefreshing=!0,this.getIdentity(s).then(c=>{a.set(s,new Jr(Promise.resolve(c)))})),o)):a.set(s,new Jr(this.getIdentity(s))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(s=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
21
|
+
`),Ia=!0)),new Ze("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Sa(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:s,ssoRegion:a,ssoRoleName:i,ssoSession:o}=t;if(!r&&!s&&!a&&!i&&!o)throw new Ze("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=await import("./dist-es6-GJBWAT3F.js");return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await import("./dist-es3-DHVCSDXO.js");return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await import("./dist-es5-KVZQJJU3.js");return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await import("./dist-es7-V42RESE5.js");return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await f0(t))()),async()=>{throw new Ze("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],E0),"defaultProvider"),E0=n(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired"),S0=class extends oa{static{n(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e}),this.serviceTarget=r,this.codec=a??new ya({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new zr(this.awsQueryCompatible)}async serializeRequest(t,e,r){let s=await super.serializeRequest(t,e,r);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(ta(t.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(t,e,r,s,a){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(s,r);let o=ga(r,s,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,r,s,a,i?this.mixin.findQueryCompatibleError:void 0),p=Te.of(c),d=s.message??s.Message??"UnknownError",l=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),m={},v=this.codec.createDeserializer();for(let[g,_]of p.structIterator())s[g]!=null&&(m[g]=v.readObject(_,s[g]));throw i&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(l,u,{$fault:p.getMergedTraits().error,message:d},m),s)}},x0=class extends S0{static{n(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:r,awsQueryCompatible:s,jsonCodec:a})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}},b0=/[&<>"]/g,w0={"&":"&","<":"<",">":">",'"':"""};function I0(t){return t.replace(b0,e=>w0[e])}n(I0,"escapeAttribute");var C0=/[&"'<>\r\n\u0085\u2028]/g,A0={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function R0(t){return t.replace(C0,e=>A0[e])}n(R0,"escapeElement");var ms=class{static{n(this,"XmlText")}value;constructor(t){this.value=t}toString(){return R0(""+this.value)}},ge=class Cr{static{n(this,"XmlNode")}name;children;attributes={};static of(e,r,s){let a=new Cr(e);return r!==void 0&&a.addChildNode(new ms(r)),s!==void 0&&a.withName(s),a}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,s=r){if(e[r]!=null){let a=Cr.of(r,e[r]).withName(s);this.c(a)}}l(e,r,s,a){e[r]!=null&&a().map(i=>{i.withName(s),this.c(i)})}lc(e,r,s,a){if(e[r]!=null){let i=a(),o=new Cr(s);i.map(c=>{o.c(c)}),this.c(o)}}toString(){let e=!!this.children.length,r=`<${this.name}`,s=this.attributes;for(let a of Object.keys(s)){let i=s[a];i!=null&&(r+=` ${a}="${I0(""+i)}"`)}return r+=e?`>${this.children.map(a=>a.toString()).join("")}</${this.name}>`:"/>"}},_0=n((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode"),P0=class extends Hr{static{n(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,e){let r=Te.of(t);if(r.isStringSchema()&&typeof e=="string")this.stringBuffer=e;else if(r.isBlobSchema())this.byteBuffer="byteLength"in e?e:(this.serdeContext?.base64Decoder??rt)(e);else{this.buffer=this.writeStruct(r,e,void 0);let s=r.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,e,r){let s=t.getMergedTraits(),a=t.isMemberSchema()&&!s.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():s.xmlName??t.getName();if(!a||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);let i=ge.of(a),[o,c]=this.getXmlnsAttribute(t,r);for(let[p,d]of t.structIterator()){let l=e[p];if(l!=null||d.isIdempotencyToken()){if(d.getMergedTraits().xmlAttribute){i.addAttribute(d.getMergedTraits().xmlName??p,this.writeSimple(d,l));continue}if(d.isListSchema())this.writeList(d,l,i,c);else if(d.isMapSchema())this.writeMap(d,l,i,c);else if(d.isStructSchema())i.addChildNode(this.writeStruct(d,l,c));else{let m=ge.of(d.getMergedTraits().xmlName??d.getMemberName());this.writeSimpleInto(d,l,m,c),i.addChildNode(m)}}}let{$unknown:u}=e;if(u&&t.isUnionSchema()&&Array.isArray(u)&&Object.keys(e).length===1){let[p,d]=u,l=ge.of(p);if(typeof d!="string")if(e instanceof ge||e instanceof ms)i.addChildNode(e);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,d,l,c),i.addChildNode(l)}return c&&i.addAttribute(o,c),i}writeList(t,e,r,s){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);let a=t.getMergedTraits(),i=t.getValueSchema(),o=i.getMergedTraits(),c=!!o.sparse,u=!!a.xmlFlattened,[p,d]=this.getXmlnsAttribute(t,s),l=n((m,v)=>{if(i.isListSchema())this.writeList(i,Array.isArray(v)?v:[v],m,d);else if(i.isMapSchema())this.writeMap(i,v,m,d);else if(i.isStructSchema()){let g=this.writeStruct(i,v,d);m.addChildNode(g.withName(u?a.xmlName??t.getMemberName():o.xmlName??"member"))}else{let g=ge.of(u?a.xmlName??t.getMemberName():o.xmlName??"member");this.writeSimpleInto(i,v,g,d),m.addChildNode(g)}},"writeItem");if(u)for(let m of e)(c||m!=null)&&l(r,m);else{let m=ge.of(a.xmlName??t.getMemberName());d&&m.addAttribute(p,d);for(let v of e)(c||v!=null)&&l(m,v);r.addChildNode(m)}}writeMap(t,e,r,s,a=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);let i=t.getMergedTraits(),o=t.getKeySchema(),c=o.getMergedTraits().xmlName??"key",u=t.getValueSchema(),p=u.getMergedTraits(),d=p.xmlName??"value",l=!!p.sparse,m=!!i.xmlFlattened,[v,g]=this.getXmlnsAttribute(t,s),_=n((I,N,H)=>{let X=ge.of(c,N),[Re,ce]=this.getXmlnsAttribute(o,g);ce&&X.addAttribute(Re,ce),I.addChildNode(X);let $e=ge.of(d);u.isListSchema()?this.writeList(u,H,$e,g):u.isMapSchema()?this.writeMap(u,H,$e,g,!0):u.isStructSchema()?$e=this.writeStruct(u,H,g):this.writeSimpleInto(u,H,$e,g),I.addChildNode($e)},"addKeyValue");if(m)for(let I in e){let N=e[I];if(l||N!=null){let H=ge.of(i.xmlName??t.getMemberName());_(H,I,N),r.addChildNode(H)}}else{let I;a||(I=ge.of(i.xmlName??t.getMemberName()),g&&I.addAttribute(v,g),r.addChildNode(I));for(let N in e){let H=e[N];if(l||H!=null){let X=ge.of("entry");_(X,N,H),(a?r:I).addChildNode(X)}}}}writeSimple(t,e){if(e===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let r=Te.of(t),s=null;if(e&&typeof e=="object")if(r.isBlobSchema())s=(this.serdeContext?.base64Encoder??je)(e);else if(r.isTimestampSchema()&&e instanceof Date)switch(na(r,this.settings)){case 5:s=e.toISOString().replace(".000Z","Z");break;case 6:s=Br(e);break;case 7:s=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",e),s=Br(e)}else{if(r.isBigDecimalSchema()&&e)return e instanceof ra?e.string:String(e);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(s=String(e)),r.isStringSchema()&&(e===void 0&&r.isIdempotencyToken()?s=aa():s=String(e)),s===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${e}`);return s}writeSimpleInto(t,e,r,s){let a=this.writeSimple(t,e),i=Te.of(t),o=new ms(a),[c,u]=this.getXmlnsAttribute(i,s);u&&r.addAttribute(c,u),r.addChildNode(o)}getXmlnsAttribute(t,e){let[r,s]=t.getMergedTraits().xmlNamespace??[];return s&&s!==e?[r?`xmlns:${r}`:"xmlns",s]:[void 0,void 0]}},T0=class extends Hr{static{n(this,"XmlCodec")}settings;constructor(t){super(),this.settings=t}createSerializer(){let t=new P0(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new la(this.settings);return t.setSerdeContext(this.serdeContext),t}},N0=class extends ha{static{n(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new zr;constructor(t){super(t);let e={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new T0(e),this.serializer=new fa(this.codec.createSerializer(),e),this.deserializer=new va(this.codec.createDeserializer(),e)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,e,r){let s=await super.serializeRequest(t,e,r),a=Te.of(t.input);if(!s.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);i&&(s.headers["content-type"]=i)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(a)&&(s.body='<?xml version="1.0" encoding="UTF-8"?>'+s.body),s}async deserializeResponse(t,e,r){return super.deserializeResponse(t,e,r)}async handleError(t,e,r,s,a){let i=_0(r,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let v of Object.keys(s.Error))s[v]=s.Error[v],v.toLowerCase()==="message"&&(s.message=s.Error[v]);s.RequestId&&!a.requestId&&(a.requestId=s.RequestId);let{errorSchema:o,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,r,s,a),u=Te.of(o),p=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",d=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,r,s);let l={},m=this.codec.createDeserializer();for(let[v,g]of u.structIterator()){let _=g.getMergedTraits().xmlName??v,I=s.Error?.[_]??s[_];l[v]=m.readSchema(g,I)}throw this.mixin.decorateServiceException(Object.assign(d,c,{$fault:u.getMergedTraits().error,message:p},l),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(let[,e]of t.structIterator())if(e.getMergedTraits().httpPayload)return!(e.isStructSchema()||e.isMapSchema()||e.isListSchema());return!1}},M0=class extends t0{static{n(this,"HashCalculator")}hash;constructor(t,e){super(e),this.hash=t}_write(t,e,r){try{this.hash.update(Le(t))}catch(s){return r(s)}r()}},k0=n((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,s=new M0(r);return e.pipe(s),new Promise((a,i)=>{e.on("error",o=>{s.end(),i(o)}),s.on("error",i),s.on("finish",()=>{r.digest().then(a).catch(i)})})},"readableStreamHasher"),$0=class{static{n(this,"Md5Js")}digestLength=16;state=Uint32Array.from(Ca);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){let e=Le(t),r=0,s=e.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,e[r++]),--s,this.bufferLength===64&&(Kr(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let t=Uint32Array.from(this.state),e=new DataView(this.writeBuffer.buffer.slice(0)),r=this.bufferLength,s=this.bytesHashed*8;if(e.setUint8(r++,128),this.bufferLength%64>=56){for(let o=r;o<64;++o)e.setUint8(o,0);Kr(t,e),r=0}for(let o=r;o<56;++o)e.setUint8(o,0);e.setUint32(56,s>>>0,!0),e.setUint32(60,Math.floor(s/2**32),!0),Kr(t,e);let a=new Uint8Array(16),i=new DataView(a.buffer);for(let o=0;o<4;++o)i.setUint32(o*4,t[o],!0);return a}reset(){this.state.set(Ca),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},Ca=[1732584193,4023233417,2562383102,271733878],Ne=4294967295,O0=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),D0=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);function Kr(t,e){let r=t[0],s=t[1],a=t[2],i=t[3];for(let o=0;o<64;++o){let c,u;o<16?(c=s&a|~s&i,u=o):o<32?(c=i&s|a&~i,u=(5*o+1)%16):o<48?(c=s^a^i,u=(3*o+5)%16):(c=a^(s|~i),u=7*o%16);let p=e.getUint32(u*4,!0),d=i;i=a,a=s;let l=O0[(o>>4)*4+(o&3)],m=(r+c&Ne)+(p+D0[o]&Ne)&Ne;s=s+((m<<l|m>>>32-l)>>>0)&Ne,r=d}t[0]=t[0]+r&Ne,t[1]=t[1]+s&Ne,t[2]=t[2]+a&Ne,t[3]=t[3]+i&Ne}n(Kr,"compress");var kn=(()=>{try{return lt("md5"),!0}catch{return!1}})()?L0():$0;function L0(){return class{static{n(this,"Md5Node")}digestLength=16;hash=lt("md5");update(e){this.hash.update(Le(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=lt("md5")}}}n(L0,"buildNativeClass$2");var $n=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;$n[t]=e>>>0}var Vr=4294967295,U0=class{static{n(this,"Crc32Js")}digestLength=4;checksum=Vr;update(t){for(let e=0;e<t.length;++e)this.checksum=this.checksum>>>8^$n[(this.checksum^t[e])&255]}digestSync(){return(this.checksum^Vr)>>>0}async digest(){let t=this.digestSync(),e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,t,!1),e}reset(){this.checksum=Vr}},Aa=typeof ds.crc32=="function"?ds.crc32:void 0,Is=Aa?F0(Aa):U0;function F0(t){return class{static{n(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}n(F0,"buildNativeClass$1");var _r=Be.ANALYTICS_TABLE_NAME,On=Be.ANALYTICS_REVERSE_INDEX,Dn=Be.ANALYTICS_USERS_TABLE,B0=Be.ANALYTICS_USERS_REVERSE_INDEX;Be.IPINFO_API_KEY;var Qr=class Ln{static{n(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let s=7,a=Math.abs(Math.round(e));s>-1&&a>0;s--,a/=256)r[s]=a;return e<0&&Ra(r),new Ln(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&Ra(e),parseInt(_e(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function Ra(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}n(Ra,"negate");var z0=class{static{n(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(t,e){this.toUtf8=t,this.fromUtf8=e}format(t){let e=[];for(let a in t){if(!Je(t,a))continue;let i=this.fromUtf8(a);e.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[a]))}let r=new Uint8Array(e.reduce((a,i)=>a+i.byteLength,0)),s=0;for(let a of e)r.set(a,s),s+=a.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let e=new DataView(new ArrayBuffer(3));return e.setUint8(0,3),e.setInt16(1,t.value,!1),new Uint8Array(e.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(t.value.bytes,1),s;case"binary":let a=new DataView(new ArrayBuffer(3+t.value.byteLength));a.setUint8(0,6),a.setUint16(1,t.value.byteLength,!1);let i=new Uint8Array(a.buffer);return i.set(t.value,3),i;case"string":let o=this.fromUtf8(t.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(o,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(Qr.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!X0.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(Ys(t.value.replace(/-/g,"")),1),d}}parse(t){let e={},r=0;for(;r<t.byteLength;){let s=t.getUint8(r++),a=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,s));switch(r+=s,t.getUint8(r++)){case 0:e[a]={type:Pa,value:!0};break;case 1:e[a]={type:Pa,value:!1};break;case 2:e[a]={type:H0,value:t.getInt8(r++)};break;case 3:e[a]={type:j0,value:t.getInt16(r,!1)},r+=2;break;case 4:e[a]={type:q0,value:t.getInt32(r,!1)},r+=4;break;case 5:e[a]={type:K0,value:new Qr(new Uint8Array(t.buffer,t.byteOffset+r,8))},r+=8;break;case 6:let i=t.getUint16(r,!1);r+=2,e[a]={type:V0,value:new Uint8Array(t.buffer,t.byteOffset+r,i)},r+=i;break;case 7:let o=t.getUint16(r,!1);r+=2,e[a]={type:Q0,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,o))},r+=o;break;case 8:e[a]={type:W0,value:new Date(new Qr(new Uint8Array(t.buffer,t.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let c=new Uint8Array(t.buffer,t.byteOffset+r,16);r+=16,e[a]={type:G0,value:`${_e(c.subarray(0,4))}-${_e(c.subarray(4,6))}-${_e(c.subarray(6,8))}-${_e(c.subarray(8,10))}-${_e(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return e}},_a;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(_a||(_a={}));var Pa="boolean",H0="byte",j0="short",q0="integer",K0="long",V0="binary",Q0="string",W0="timestamp",G0="uuid",X0=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,J0=4,nt=8,Wr=4,Y0=16;function Z0({byteLength:t,byteOffset:e,buffer:r}){if(t<Y0)throw new Error("Provided message too short to accommodate event stream message overhead");let s=new DataView(r,e,t),a=s.getUint32(0,!1);if(t!==a)throw new Error("Reported message length does not match received message length");let i=s.getUint32(J0,!1),o=s.getUint32(nt,!1),c=s.getUint32(t-Wr,!1),u=new Is;if(u.update(new Uint8Array(r,e,nt)),o!==u.digestSync())throw new Error(`The prelude checksum specified in the message (${o}) does not match the calculated CRC32 checksum (${u.digestSync()})`);if(u.update(new Uint8Array(r,e+nt,t-12)),c!==u.digestSync())throw new Error(`The message checksum (${u.digestSync()}) did not match the expected value of ${c}`);return{headers:new DataView(r,e+nt+Wr,i),body:new Uint8Array(r,e+nt+Wr+i,a-i-16)}}n(Z0,"splitMessage");var eu=class{static{n(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(t,e){this.headerMarshaller=new z0(t,e),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){let t=this.messageBuffer.pop(),e=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return e}}}getAvailableMessages(){let t=this.messageBuffer;this.messageBuffer=[];let e=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return e}}}encode({headers:t,body:e}){let r=this.headerMarshaller.format(t),s=r.byteLength+e.byteLength+16,a=new Uint8Array(s),i=new DataView(a.buffer,a.byteOffset,a.byteLength),o=new Is;return i.setUint32(0,s,!1),i.setUint32(4,r.byteLength,!1),o.update(a.subarray(0,8)),i.setUint32(8,o.digestSync(),!1),a.set(r,12),a.set(e,r.byteLength+12),o.update(a.subarray(8,s-4)),i.setUint32(s-4,o.digestSync(),!1),a}decode(t){let{headers:e,body:r}=Z0(t);return{headers:this.headerMarshaller.parse(e),body:r}}formatHeaders(t){return this.headerMarshaller.format(t)}},tu=class{static{n(this,"MessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.decoder.decode(t)}},ru=class{static{n(this,"MessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}},su=class{static{n(this,"SmithyMessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream){let e=await this.options.deserializer(t);e!==void 0&&(yield e)}}},au=class{static{n(this,"SmithyMessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.serializer(t)}};function nu(t){let e=0,r=0,s=null,a=null,i=n(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,s=new Uint8Array(c),new DataView(s.buffer).setUint32(0,c,!1)},"allocateMessage"),o=n(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:u,done:p}=await c.next();if(p){if(e)if(e===r)yield s;else throw new Error("Truncated event message received.");else return;return}let d=u.length,l=0;for(;l<d;){if(!s){let v=d-l;a||(a=new Uint8Array(4));let g=Math.min(4-r,v);if(a.set(u.slice(l,l+g),r),r+=g,l+=g,r<4)break;i(new DataView(a.buffer).getUint32(0,!1)),a=null}let m=Math.min(e-r,d-l);s.set(u.slice(l,l+m),r),r+=m,l+=m,e&&e===r&&(yield s,s=null,e=0,r=0)}}},"iterator");return{[Symbol.asyncIterator]:o}}n(nu,"getChunkedStream");function iu(t,e){return async function(r){let{value:s}=r.headers[":message-type"];if(s==="error"){let a=new Error(r.headers[":error-message"].value||"UnknownError");throw a.name=r.headers[":error-code"].value,a}else if(s==="exception"){let a=r.headers[":exception-type"].value,i=await t({[a]:r});if(i.$unknown){let o=new Error(e(r.body));throw o.name=a,o}throw i[a]}else if(s==="event"){let a=await t({[r.headers[":event-type"].value]:r});return a.$unknown?void 0:a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}n(iu,"getMessageUnmarshaller");var ou=class{static{n(this,"EventStreamMarshaller$1")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:e}){this.eventStreamCodec=new eu(t,e),this.utfEncoder=t}deserialize(t,e){return new su({messageStream:new tu({inputStream:nu(t),decoder:this.eventStreamCodec}),deserializer:iu(e,this.utfEncoder)})}serialize(t,e){return new ru({messageStream:new au({inputStream:t,serializer:e}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},cu=class{static{n(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:e}){this.universalMarshaller=new ou({utf8Decoder:e,utf8Encoder:t})}deserialize(t,e){let r=typeof t[Symbol.asyncIterator]=="function"?t:uu(t);return this.universalMarshaller.deserialize(r,e)}serialize(t,e){return ft.from(this.universalMarshaller.serialize(t,e))}},Un=n(t=>new cu(t),"eventStreamSerdeProvider");async function*uu(t){let e=!1,r=!1,s=new Array;for(t.on("error",a=>{if(e||(e=!0),a)throw a}),t.on("data",a=>{s.push(a)}),t.on("end",()=>{e=!0});!r;){let a=await new Promise(i=>setTimeout(()=>i(s.shift()),0));a&&(yield a),r=e&&s.length===0}}n(uu,"readableToIterable");var Fn=n(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig"),nx=class{static{n(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:e,deserializer:r,serdeContext:s,defaultContentType:a,compositeErrorRegistry:i}){this.marshaller=t,this.serializer=e,this.deserializer=r,this.serdeContext=s,this.defaultContentType=a,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r,initialMessageType:s}){let a=this.marshaller,i=e.getEventStreamMember(),o=e.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,p=Symbol("initialRequestMarker"),d={async*[Symbol.asyncIterator](){if(r){let l={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(e,r);let m=c.flush();yield{[p]:!0,headers:l,body:m}}for await(let l of t)yield l}};return a.serialize(d,l=>{if(l[p])return{headers:l.headers,body:l.body};let m="";for(let N in l)if(Je(l,N)&&N!=="__type"){m=N;break}let{additionalHeaders:v,body:g,eventType:_,explicitPayloadContentType:I}=this.writeEventBody(m,o,l);return{headers:{":event-type":{type:"string",value:_},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:I??u},...v},body:g}})}async deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r,initialMessageType:s}){let a=this.marshaller,i=e.getEventStreamMember(),o=e.getMemberSchema(i).getMemberSchemas(),c=Symbol("initialResponseMarker"),u=a.deserialize(t.body,async l=>{let m="";for(let g in l)if(Je(l,g)&&g!=="__type"){m=g;break}let v=l[m].body;if(m===(s??"initial-response")){let g=await this.deserializer.read(e,v);return delete g[i],{[c]:!0,...g}}else if(m in o){let g=o[m];if(g.isStructSchema()){let _={},I=!1;for(let[N,H]of g.structIterator()){let{eventHeader:X,eventPayload:Re}=H.getMergedTraits();if(I=I||!!(X||Re),Re)H.isBlobSchema()?_[N]=v:H.isStringSchema()?_[N]=(this.serdeContext?.utf8Encoder??tt)(v):H.isStructSchema()&&(_[N]=await this.deserializer.read(H,v));else if(X){let ce=l[m].headers[N]?.value;ce!=null&&(H.isNumericSchema()?ce&&typeof ce=="object"&&"bytes"in ce?_[N]=BigInt(ce.toString()):_[N]=Number(ce):_[N]=ce)}}return{[m]:await this.readEventMember(g,v,I,_)}}return{[m]:await this.deserializer.read(g,v)}}else return{$unknown:l}}),p=u[Symbol.asyncIterator](),d=await p.next();if(d.done)return u;if(d.value?.[c]){if(!e)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let l in d.value)Je(d.value,l)&&(r[l]=d.value[l])}return{async*[Symbol.asyncIterator](){for(d?.value?.[c]||(yield d.value);;){let{done:l,value:m}=await p.next();if(l)break;yield m}}}}async readEventMember(t,e,r,s){let a,i=t.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Pe.for(c);this.compositeErrorRegistry?.copyFrom(u),a=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let o=r?s:e.byteLength===0?{}:await this.deserializer.read(t,e);if(a){let c=o.message??o.Message??"Unknown",u={},p=t.getMergedTraits().error;return p&&(u.$fault=p),Object.assign(new a({}),u,{message:c},o)}return o}writeEventBody(t,e,r){let s=this.serializer,a=t,i=null,o,c=e.getSchema()[4].includes(t),u={};if(c){let d=e.getMemberSchema(t);if(d.isStructSchema()){for(let[l,m]of d.structIterator()){let{eventHeader:v,eventPayload:g}=m.getMergedTraits();if(g)i=l;else if(v){let _=r[t][l],I="binary";m.isNumericSchema()?(-2)**31<=_&&_<=2**31-1?I="integer":I="long":m.isTimestampSchema()?I="timestamp":m.isStringSchema()?I="string":m.isBooleanSchema()&&(I="boolean"),_!=null&&(u[l]={type:I,value:_},delete r[t][l])}}if(i!==null){let l=d.getMemberSchema(i);l.isBlobSchema()?o="application/octet-stream":l.isStringSchema()&&(o="text/plain"),s.write(l,r[t][i])}else s.write(d,r[t])}else if(d.isUnitSchema())s.write(d,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[d,l]=r[t];a=d,s.write(15,l)}let p=s.flush()??new Uint8Array;return{body:typeof p=="string"?(this.serdeContext?.utf8Decoder??et)(p):p,eventType:a,explicitPayloadContentType:o,additionalHeaders:u}}},du=n(async(t,e,r)=>({operation:ze(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultLambdaHttpAuthSchemeParametersProvider");function lu(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:n((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}n(lu,"createAwsAuthSigv4HttpAuthOption$2");var pu=n(t=>{let e=[];switch(t.operation){default:e.push(lu(t))}return e},"defaultLambdaHttpAuthSchemeProvider"),mu=n(t=>{let e=hr(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig$2"),hu=n(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),"resolveClientEndpointParameters$2"),vu={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fu={name:"@aws-sdk/client-lambda",version:"3.1150.0",description:"AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-lambda"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}},pt="ref",Ue=-1,fr=!0,Ta="isSet",Bn="PartitionResult",gr="booleanEquals",Na="getAttr",Ma={[pt]:"Endpoint"},ka={[pt]:Bn},it={},$a=[{[pt]:"Region"}],Oa={conditions:[[Ta,[Ma]],[Ta,$a],["aws.partition",$a,Bn],[gr,[{[pt]:"UseFIPS"},fr]],[gr,[{[pt]:"UseDualStack"},fr]],[gr,[{fn:Na,argv:[ka,"supportsDualStack"]},fr]],[gr,[{fn:Na,argv:[ka,"supportsFIPS"]},fr]]],results:[[Ue],[Ue,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ue,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ma,it],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",it],[Ue,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",it],[Ue,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",it],[Ue,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",it],[Ue,"Invalid Configuration: Missing Region"]]},gu=2,yu=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),Eu=Ft.from(yu,gu,Oa.conditions,Oa.results),Su=new Bt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),xu=n((t,e={})=>Su.get(t,()=>Ht(Eu,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver$2");zt.aws=ur;var y=class zn extends At{static{n(this,"LambdaServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambda#LambdaServiceException";constructor(e){super(e),Object.setPrototypeOf(this,zn.prototype)}},bu=class Hn extends y{static{n(this,"InvalidParameterValueException")}static shapeId="com.amazonaws.lambda#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";Type;constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,Hn.prototype),this.Type=e.Type}},wu=class jn extends y{static{n(this,"PolicyLengthExceededException")}static shapeId="com.amazonaws.lambda#PolicyLengthExceededException";name="PolicyLengthExceededException";$fault="client";Type;constructor(e){super({name:"PolicyLengthExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,jn.prototype),this.Type=e.Type}},Iu=class qn extends y{static{n(this,"PreconditionFailedException")}static shapeId="com.amazonaws.lambda#PreconditionFailedException";name="PreconditionFailedException";$fault="client";Type;constructor(e){super({name:"PreconditionFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,qn.prototype),this.Type=e.Type}},Cu=class Kn extends y{static{n(this,"ResourceConflictException")}static shapeId="com.amazonaws.lambda#ResourceConflictException";name="ResourceConflictException";$fault="client";Type;constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,Kn.prototype),this.Type=e.Type}},Au=class Vn extends y{static{n(this,"ResourceNotFoundException$1")}static shapeId="com.amazonaws.lambda#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";Type;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Vn.prototype),this.Type=e.Type,this.Message=e.Message}},Ru=class Qn extends y{static{n(this,"ServiceException")}static shapeId="com.amazonaws.lambda#ServiceException";name="ServiceException";$fault="server";Type;Message;constructor(e){super({name:"ServiceException",$fault:"server",...e}),Object.setPrototypeOf(this,Qn.prototype),this.Type=e.Type,this.Message=e.Message}},_u=class Wn extends y{static{n(this,"TooManyRequestsException")}static shapeId="com.amazonaws.lambda#TooManyRequestsException";name="TooManyRequestsException";$fault="client";retryAfterSeconds;Type;Reason;constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Wn.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.Type=e.Type,this.Reason=e.Reason}},Pu=class Gn extends y{static{n(this,"PublicPolicyException")}static shapeId="com.amazonaws.lambda#PublicPolicyException";name="PublicPolicyException";$fault="client";Type;Message;constructor(e){super({name:"PublicPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,Gn.prototype),this.Type=e.Type,this.Message=e.Message}},Tu=class Xn extends y{static{n(this,"AliasLimitExceededException")}static shapeId="com.amazonaws.lambda#AliasLimitExceededException";name="AliasLimitExceededException";$fault="client";Type;constructor(e){super({name:"AliasLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Xn.prototype),this.Type=e.Type}},Nu=class Jn extends y{static{n(this,"CapacityProviderLimitExceededException")}static shapeId="com.amazonaws.lambda#CapacityProviderLimitExceededException";name="CapacityProviderLimitExceededException";$fault="client";Type;constructor(e){super({name:"CapacityProviderLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Jn.prototype),this.Type=e.Type}},Mu=class Yn extends y{static{n(this,"KMSAccessDeniedException")}static shapeId="com.amazonaws.lambda#KMSAccessDeniedException";name="KMSAccessDeniedException";$fault="server";Type;Message;constructor(e){super({name:"KMSAccessDeniedException",$fault:"server",...e}),Object.setPrototypeOf(this,Yn.prototype),this.Type=e.Type,this.Message=e.Message}},ku=class Zn extends y{static{n(this,"KMSDisabledException")}static shapeId="com.amazonaws.lambda#KMSDisabledException";name="KMSDisabledException";$fault="server";Type;Message;constructor(e){super({name:"KMSDisabledException",$fault:"server",...e}),Object.setPrototypeOf(this,Zn.prototype),this.Type=e.Type,this.Message=e.Message}},$u=class ei extends y{static{n(this,"KMSInvalidStateException")}static shapeId="com.amazonaws.lambda#KMSInvalidStateException";name="KMSInvalidStateException";$fault="server";Type;Message;constructor(e){super({name:"KMSInvalidStateException",$fault:"server",...e}),Object.setPrototypeOf(this,ei.prototype),this.Type=e.Type,this.Message=e.Message}},Ou=class ti extends y{static{n(this,"KMSNotFoundException")}static shapeId="com.amazonaws.lambda#KMSNotFoundException";name="KMSNotFoundException";$fault="server";Type;Message;constructor(e){super({name:"KMSNotFoundException",$fault:"server",...e}),Object.setPrototypeOf(this,ti.prototype),this.Type=e.Type,this.Message=e.Message}},Du=class ri extends y{static{n(this,"ResourceInUseException")}static shapeId="com.amazonaws.lambda#ResourceInUseException";name="ResourceInUseException";$fault="client";Type;Message;constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,ri.prototype),this.Type=e.Type,this.Message=e.Message}},Lu=class si extends y{static{n(this,"CodeSigningConfigNotFoundException")}static shapeId="com.amazonaws.lambda#CodeSigningConfigNotFoundException";name="CodeSigningConfigNotFoundException";$fault="client";Type;Message;constructor(e){super({name:"CodeSigningConfigNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,si.prototype),this.Type=e.Type,this.Message=e.Message}},Uu=class ai extends y{static{n(this,"CodeStorageExceededException")}static shapeId="com.amazonaws.lambda#CodeStorageExceededException";name="CodeStorageExceededException";$fault="client";Type;constructor(e){super({name:"CodeStorageExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,ai.prototype),this.Type=e.Type}},Fu=class ni extends y{static{n(this,"CodeVerificationFailedException")}static shapeId="com.amazonaws.lambda#CodeVerificationFailedException";name="CodeVerificationFailedException";$fault="client";Type;Message;constructor(e){super({name:"CodeVerificationFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,ni.prototype),this.Type=e.Type,this.Message=e.Message}},Bu=class ii extends y{static{n(this,"FunctionVersionsPerCapacityProviderLimitExceededException")}static shapeId="com.amazonaws.lambda#FunctionVersionsPerCapacityProviderLimitExceededException";name="FunctionVersionsPerCapacityProviderLimitExceededException";$fault="client";Type;constructor(e){super({name:"FunctionVersionsPerCapacityProviderLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,ii.prototype),this.Type=e.Type}},zu=class oi extends y{static{n(this,"InvalidCodeSignatureException")}static shapeId="com.amazonaws.lambda#InvalidCodeSignatureException";name="InvalidCodeSignatureException";$fault="client";Type;Message;constructor(e){super({name:"InvalidCodeSignatureException",$fault:"client",...e}),Object.setPrototypeOf(this,oi.prototype),this.Type=e.Type,this.Message=e.Message}},Hu=class ci extends y{static{n(this,"CodeArtifactUserDeletedException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserDeletedException";name="CodeArtifactUserDeletedException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserDeletedException",$fault:"client",...e}),Object.setPrototypeOf(this,ci.prototype),this.Type=e.Type}},ju=class ui extends y{static{n(this,"CodeArtifactUserFailedException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserFailedException";name="CodeArtifactUserFailedException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,ui.prototype),this.Type=e.Type}},qu=class di extends y{static{n(this,"CodeArtifactUserPendingException")}static shapeId="com.amazonaws.lambda#CodeArtifactUserPendingException";name="CodeArtifactUserPendingException";$fault="client";Type;constructor(e){super({name:"CodeArtifactUserPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,di.prototype),this.Type=e.Type}},Ku=class li extends y{static{n(this,"DurableExecutionAlreadyStartedException")}static shapeId="com.amazonaws.lambda#DurableExecutionAlreadyStartedException";name="DurableExecutionAlreadyStartedException";$fault="client";Type;Message;constructor(e){super({name:"DurableExecutionAlreadyStartedException",$fault:"client",...e}),Object.setPrototypeOf(this,li.prototype),this.Type=e.Type,this.Message=e.Message}},Vu=class pi extends y{static{n(this,"EC2AccessDeniedException")}static shapeId="com.amazonaws.lambda#EC2AccessDeniedException";name="EC2AccessDeniedException";$fault="server";Type;Message;constructor(e){super({name:"EC2AccessDeniedException",$fault:"server",...e}),Object.setPrototypeOf(this,pi.prototype),this.Type=e.Type,this.Message=e.Message}},Qu=class mi extends y{static{n(this,"EC2ThrottledException")}static shapeId="com.amazonaws.lambda#EC2ThrottledException";name="EC2ThrottledException";$fault="server";Type;Message;constructor(e){super({name:"EC2ThrottledException",$fault:"server",...e}),Object.setPrototypeOf(this,mi.prototype),this.Type=e.Type,this.Message=e.Message}},Wu=class hi extends y{static{n(this,"EC2UnexpectedException")}static shapeId="com.amazonaws.lambda#EC2UnexpectedException";name="EC2UnexpectedException";$fault="server";Type;Message;EC2ErrorCode;constructor(e){super({name:"EC2UnexpectedException",$fault:"server",...e}),Object.setPrototypeOf(this,hi.prototype),this.Type=e.Type,this.Message=e.Message,this.EC2ErrorCode=e.EC2ErrorCode}},Gu=class vi extends y{static{n(this,"EFSIOException")}static shapeId="com.amazonaws.lambda#EFSIOException";name="EFSIOException";$fault="client";Type;Message;constructor(e){super({name:"EFSIOException",$fault:"client",...e}),Object.setPrototypeOf(this,vi.prototype),this.Type=e.Type,this.Message=e.Message}},Xu=class fi extends y{static{n(this,"EFSMountConnectivityException")}static shapeId="com.amazonaws.lambda#EFSMountConnectivityException";name="EFSMountConnectivityException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountConnectivityException",$fault:"client",...e}),Object.setPrototypeOf(this,fi.prototype),this.Type=e.Type,this.Message=e.Message}},Ju=class gi extends y{static{n(this,"EFSMountFailureException")}static shapeId="com.amazonaws.lambda#EFSMountFailureException";name="EFSMountFailureException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,gi.prototype),this.Type=e.Type,this.Message=e.Message}},Yu=class yi extends y{static{n(this,"EFSMountTimeoutException")}static shapeId="com.amazonaws.lambda#EFSMountTimeoutException";name="EFSMountTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"EFSMountTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,yi.prototype),this.Type=e.Type,this.Message=e.Message}},Zu=class Ei extends y{static{n(this,"ENILimitReachedException")}static shapeId="com.amazonaws.lambda#ENILimitReachedException";name="ENILimitReachedException";$fault="server";Type;Message;constructor(e){super({name:"ENILimitReachedException",$fault:"server",...e}),Object.setPrototypeOf(this,Ei.prototype),this.Type=e.Type,this.Message=e.Message}},ed=class Si extends y{static{n(this,"ENINotReadyException")}static shapeId="com.amazonaws.lambda#ENINotReadyException";name="ENINotReadyException";$fault="server";Type;Message;constructor(e){super({name:"ENINotReadyException",$fault:"server",...e}),Object.setPrototypeOf(this,Si.prototype),this.Type=e.Type,this.Message=e.Message}},td=class xi extends y{static{n(this,"InvalidRequestContentException")}static shapeId="com.amazonaws.lambda#InvalidRequestContentException";name="InvalidRequestContentException";$fault="client";Type;constructor(e){super({name:"InvalidRequestContentException",$fault:"client",...e}),Object.setPrototypeOf(this,xi.prototype),this.Type=e.Type}},rd=class bi extends y{static{n(this,"InvalidRuntimeException")}static shapeId="com.amazonaws.lambda#InvalidRuntimeException";name="InvalidRuntimeException";$fault="server";Type;Message;constructor(e){super({name:"InvalidRuntimeException",$fault:"server",...e}),Object.setPrototypeOf(this,bi.prototype),this.Type=e.Type,this.Message=e.Message}},sd=class wi extends y{static{n(this,"InvalidSecurityGroupIDException")}static shapeId="com.amazonaws.lambda#InvalidSecurityGroupIDException";name="InvalidSecurityGroupIDException";$fault="server";Type;Message;constructor(e){super({name:"InvalidSecurityGroupIDException",$fault:"server",...e}),Object.setPrototypeOf(this,wi.prototype),this.Type=e.Type,this.Message=e.Message}},ad=class Ii extends y{static{n(this,"InvalidSubnetIDException")}static shapeId="com.amazonaws.lambda#InvalidSubnetIDException";name="InvalidSubnetIDException";$fault="server";Type;Message;constructor(e){super({name:"InvalidSubnetIDException",$fault:"server",...e}),Object.setPrototypeOf(this,Ii.prototype),this.Type=e.Type,this.Message=e.Message}},nd=class Ci extends y{static{n(this,"InvalidZipFileException")}static shapeId="com.amazonaws.lambda#InvalidZipFileException";name="InvalidZipFileException";$fault="server";Type;Message;constructor(e){super({name:"InvalidZipFileException",$fault:"server",...e}),Object.setPrototypeOf(this,Ci.prototype),this.Type=e.Type,this.Message=e.Message}},id=class Ai extends y{static{n(this,"ModeNotSupportedException")}static shapeId="com.amazonaws.lambda#ModeNotSupportedException";name="ModeNotSupportedException";$fault="client";Type;constructor(e){super({name:"ModeNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,Ai.prototype),this.Type=e.Type}},od=class Ri extends y{static{n(this,"NoPublishedVersionException")}static shapeId="com.amazonaws.lambda#NoPublishedVersionException";name="NoPublishedVersionException";$fault="client";Type;Message;constructor(e){super({name:"NoPublishedVersionException",$fault:"client",...e}),Object.setPrototypeOf(this,Ri.prototype),this.Type=e.Type,this.Message=e.Message}},cd=class _i extends y{static{n(this,"RecursiveInvocationException")}static shapeId="com.amazonaws.lambda#RecursiveInvocationException";name="RecursiveInvocationException";$fault="client";Type;Message;constructor(e){super({name:"RecursiveInvocationException",$fault:"client",...e}),Object.setPrototypeOf(this,_i.prototype),this.Type=e.Type,this.Message=e.Message}},ud=class Pi extends y{static{n(this,"RequestTooLargeException")}static shapeId="com.amazonaws.lambda#RequestTooLargeException";name="RequestTooLargeException";$fault="client";Type;constructor(e){super({name:"RequestTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,Pi.prototype),this.Type=e.Type}},dd=class Ti extends y{static{n(this,"ResourceNotReadyException")}static shapeId="com.amazonaws.lambda#ResourceNotReadyException";name="ResourceNotReadyException";$fault="server";Type;constructor(e){super({name:"ResourceNotReadyException",$fault:"server",...e}),Object.setPrototypeOf(this,Ti.prototype),this.Type=e.Type}},ld=class Ni extends y{static{n(this,"S3FilesMountConnectivityException")}static shapeId="com.amazonaws.lambda#S3FilesMountConnectivityException";name="S3FilesMountConnectivityException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountConnectivityException",$fault:"client",...e}),Object.setPrototypeOf(this,Ni.prototype),this.Type=e.Type,this.Message=e.Message}},pd=class Mi extends y{static{n(this,"S3FilesMountFailureException")}static shapeId="com.amazonaws.lambda#S3FilesMountFailureException";name="S3FilesMountFailureException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,Mi.prototype),this.Type=e.Type,this.Message=e.Message}},md=class ki extends y{static{n(this,"S3FilesMountTimeoutException")}static shapeId="com.amazonaws.lambda#S3FilesMountTimeoutException";name="S3FilesMountTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"S3FilesMountTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,ki.prototype),this.Type=e.Type,this.Message=e.Message}},hd=class $i extends y{static{n(this,"SerializedRequestEntityTooLargeException")}static shapeId="com.amazonaws.lambda#SerializedRequestEntityTooLargeException";name="SerializedRequestEntityTooLargeException";$fault="client";Type;constructor(e){super({name:"SerializedRequestEntityTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,$i.prototype),this.Type=e.Type}},vd=class Oi extends y{static{n(this,"ServiceQuotaExceededException")}static shapeId="com.amazonaws.lambda#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";Type;Message;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,Oi.prototype),this.Type=e.Type,this.Message=e.Message}},fd=class Di extends y{static{n(this,"SnapStartException")}static shapeId="com.amazonaws.lambda#SnapStartException";name="SnapStartException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartException",$fault:"client",...e}),Object.setPrototypeOf(this,Di.prototype),this.Type=e.Type,this.Message=e.Message}},gd=class Li extends y{static{n(this,"SnapStartNotReadyException")}static shapeId="com.amazonaws.lambda#SnapStartNotReadyException";name="SnapStartNotReadyException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartNotReadyException",$fault:"client",...e}),Object.setPrototypeOf(this,Li.prototype),this.Type=e.Type,this.Message=e.Message}},yd=class Ui extends y{static{n(this,"SnapStartRegenerationFailureException")}static shapeId="com.amazonaws.lambda#SnapStartRegenerationFailureException";name="SnapStartRegenerationFailureException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartRegenerationFailureException",$fault:"client",...e}),Object.setPrototypeOf(this,Ui.prototype),this.Type=e.Type,this.Message=e.Message}},Ed=class Fi extends y{static{n(this,"SnapStartTimeoutException")}static shapeId="com.amazonaws.lambda#SnapStartTimeoutException";name="SnapStartTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"SnapStartTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,Fi.prototype),this.Type=e.Type,this.Message=e.Message}},Sd=class Bi extends y{static{n(this,"SubnetIPAddressLimitReachedException")}static shapeId="com.amazonaws.lambda#SubnetIPAddressLimitReachedException";name="SubnetIPAddressLimitReachedException";$fault="server";Type;Message;constructor(e){super({name:"SubnetIPAddressLimitReachedException",$fault:"server",...e}),Object.setPrototypeOf(this,Bi.prototype),this.Type=e.Type,this.Message=e.Message}},xd=class zi extends y{static{n(this,"UnsupportedMediaTypeException")}static shapeId="com.amazonaws.lambda#UnsupportedMediaTypeException";name="UnsupportedMediaTypeException";$fault="client";Type;constructor(e){super({name:"UnsupportedMediaTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,zi.prototype),this.Type=e.Type}},bd=class Hi extends y{static{n(this,"ProvisionedConcurrencyConfigNotFoundException")}static shapeId="com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException";name="ProvisionedConcurrencyConfigNotFoundException";$fault="client";Type;constructor(e){super({name:"ProvisionedConcurrencyConfigNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Hi.prototype),this.Type=e.Type}},wd=class ji extends y{static{n(this,"CallbackTimeoutException")}static shapeId="com.amazonaws.lambda#CallbackTimeoutException";name="CallbackTimeoutException";$fault="client";Type;Message;constructor(e){super({name:"CallbackTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,ji.prototype),this.Type=e.Type,this.Message=e.Message}},Id="AliasLimitExceededException",Cd="Blob",Ad="CodeArtifactUserDeletedException",Rd="CodeArtifactUserFailedException",_d="CodeArtifactUserPendingException",Pd="ClientContext",Td="CapacityProviderLimitExceededException",Nd="CodeSigningConfigNotFoundException",Md="CodeStorageExceededException",kd="CallbackTimeoutException",$d="CodeVerificationFailedException",Od="DurableExecutionArn",Dd="DurableExecutionAlreadyStartedException",Ld="DurableExecutionName",Ud="EC2AccessDeniedException",Fd="EC2ErrorCode",Bd="EC2ThrottledException",zd="EC2UnexpectedException",Hd="EFSIOException",jd="EFSMountConnectivityException",qd="EFSMountFailureException",Kd="EFSMountTimeoutException",Vd="ENILimitReachedException",Qd="ENINotReadyException",Wd="ExecutedVersion",Gd="FunctionError",Xd="FunctionName",Jd="FunctionVersionsPerCapacityProviderLimitExceededException",Yd="InvalidCodeSignatureException",Zd="InvalidParameterValueException",el="InvalidRequestContentException",tl="InvalidRuntimeException",rl="InvocationRequest",sl="InvocationResponse",al="InvalidSecurityGroupIDException",nl="InvalidSubnetIDException",il="InvocationType",ol="InvalidZipFileException",cl="Invoke",ul="KMSAccessDeniedException",dl="KMSDisabledException",ll="KMSInvalidStateException",pl="KMSNotFoundException",ml="LogResult",hl="LogType",R="Message",vl="ModeNotSupportedException",fl="NoPublishedVersionException",gl="ProvisionedConcurrencyConfigNotFoundException",yl="PreconditionFailedException",El="PolicyLengthExceededException",Sl="PublicPolicyException",qi="Payload",Da="Qualifier",xl="Reason",bl="Retry-After",wl="ResourceConflictException",Il="RecursiveInvocationException",Cl="ResourceInUseException",Al="ResourceNotFoundException",Rl="ResourceNotReadyException",_l="RequestTooLargeException",Pl="StatusCode",Tl="ServiceException",Nl="S3FilesMountConnectivityException",Ml="S3FilesMountFailureException",kl="S3FilesMountTimeoutException",$l="SubnetIPAddressLimitReachedException",Ol="ServiceQuotaExceededException",Dl="SerializedRequestEntityTooLargeException",Ll="SnapStartException",Ul="SnapStartNotReadyException",Fl="SnapStartRegenerationFailureException",Bl="SnapStartTimeoutException",S="Type",zl="TenantId",Hl="TooManyRequestsException",jl="UnsupportedMediaTypeException",ql="X-Amz-Client-Context",Kl="X-Amz-Durable-Execution-Arn",Vl="X-Amz-Durable-Execution-Name",Ql="X-Amz-Executed-Version",Wl="X-Amz-Function-Error",Gl="X-Amz-Invocation-Type",Xl="X-Amz-Log-Result",Jl="X-Amz-Log-Type",Yl="X-Amz-Tenant-Id",C="client",x="error",Zl="http",b="httpError",Ee="httpHeader",ep="httpQuery",Z="message",tp="retryAfterSeconds",Ki="smithy.ts.sdk.synthetic.com.amazonaws.lambda",ne="server",f="com.amazonaws.lambda",Vi=new Pe(Ki),rp=[-3,Ki,"LambdaServiceException",0,[],[]];Vi.registerError(rp,y);var E=new Pe(f),sp=[-3,f,Id,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(sp,Tu);var ap=[-3,f,kd,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(ap,wd);var np=[-3,f,Td,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(np,Nu);var ip=[-3,f,Ad,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(ip,Hu);var op=[-3,f,Rd,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(op,ju);var cp=[-3,f,_d,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(cp,qu);var up=[-3,f,Nd,{[x]:C,[b]:404},[S,R],[0,0]];E.registerError(up,Lu);var dp=[-3,f,Md,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(dp,Uu);var lp=[-3,f,$d,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(lp,Fu);var pp=[-3,f,Dd,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(pp,Ku);var mp=[-3,f,Ud,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(mp,Vu);var hp=[-3,f,Bd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(hp,Qu);var vp=[-3,f,zd,{[x]:ne,[b]:502},[S,R,Fd],[0,0,0]];E.registerError(vp,Wu);var fp=[-3,f,Hd,{[x]:C,[b]:410},[S,R],[0,0]];E.registerError(fp,Gu);var gp=[-3,f,jd,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(gp,Xu);var yp=[-3,f,qd,{[x]:C,[b]:403},[S,R],[0,0]];E.registerError(yp,Ju);var Ep=[-3,f,Kd,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Ep,Yu);var Sp=[-3,f,Vd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Sp,Zu);var xp=[-3,f,Qd,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(xp,ed);var bp=[-3,f,Jd,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(bp,Bu);var wp=[-3,f,Yd,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(wp,zu);var Ip=[-3,f,Zd,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Ip,bu);var Cp=[-3,f,el,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Cp,td);var Ap=[-3,f,tl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Ap,rd);var Rp=[-3,f,al,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Rp,sd);var _p=[-3,f,nl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(_p,ad);var Pp=[-3,f,ol,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Pp,nd);var Tp=[-3,f,ul,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Tp,Mu);var Np=[-3,f,dl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Np,ku);var Mp=[-3,f,ll,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(Mp,$u);var kp=[-3,f,pl,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(kp,Ou);var $p=[-3,f,vl,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError($p,id);var Op=[-3,f,fl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Op,od);var Dp=[-3,f,El,{[x]:C,[b]:400},[S,Z],[0,0]];E.registerError(Dp,wu);var Lp=[-3,f,yl,{[x]:C,[b]:412},[S,Z],[0,0]];E.registerError(Lp,Iu);var Up=[-3,f,gl,{[x]:C,[b]:404},[S,Z],[0,0]];E.registerError(Up,bd);var Fp=[-3,f,Sl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Fp,Pu);var Bp=[-3,f,Il,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Bp,cd);var zp=[-3,f,_l,{[x]:C,[b]:413},[S,Z],[0,0]];E.registerError(zp,ud);var Hp=[-3,f,wl,{[x]:C,[b]:409},[S,Z],[0,0]];E.registerError(Hp,Cu);var jp=[-3,f,Cl,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(jp,Du);var qp=[-3,f,Al,{[x]:C,[b]:404},[S,R],[0,0]];E.registerError(qp,Au);var Kp=[-3,f,Rl,{[x]:ne,[b]:502},[S,Z],[0,0]];E.registerError(Kp,dd);var Vp=[-3,f,Nl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Vp,ld);var Qp=[-3,f,Ml,{[x]:C,[b]:403},[S,R],[0,0]];E.registerError(Qp,pd);var Wp=[-3,f,kl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(Wp,md);var Gp=[-3,f,Dl,{[x]:C,[b]:413},[S,Z],[0,0]];E.registerError(Gp,hd);var Xp=[-3,f,Tl,{[x]:ne,[b]:500},[S,R],[0,0]];E.registerError(Xp,Ru);var Jp=[-3,f,Ol,{[x]:C,[b]:402},[S,R],[0,0]];E.registerError(Jp,vd);var Yp=[-3,f,Ll,{[x]:C,[b]:400},[S,R],[0,0]];E.registerError(Yp,fd);var Zp=[-3,f,Ul,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(Zp,gd);var em=[-3,f,Fl,{[x]:C,[b]:409},[S,R],[0,0]];E.registerError(em,yd);var tm=[-3,f,Bl,{[x]:C,[b]:408},[S,R],[0,0]];E.registerError(tm,Ed);var rm=[-3,f,$l,{[x]:ne,[b]:502},[S,R],[0,0]];E.registerError(rm,Sd);var sm=[-3,f,Hl,{[x]:C,[b]:429},[tp,S,Z,xl],[[0,{[Ee]:bl}],0,0,0]];E.registerError(sm,_u);var am=[-3,f,jl,{[x]:C,[b]:415},[S,Z],[0,0]];E.registerError(am,xd);var nm=[Vi,E],Qi=[0,f,Cd,8,21],im=[3,f,rl,0,[Xd,il,hl,Pd,Ld,qi,Da,zl],[[0,1],[0,{[Ee]:Gl}],[0,{[Ee]:Jl}],[0,{[Ee]:ql}],[0,{[Ee]:Vl}],[()=>Qi,16],[0,{[ep]:Da}],[0,{[Ee]:Yl}]],1],om=[3,f,sl,0,[Pl,Gd,ml,qi,Wd,Od],[[1,32],[0,{[Ee]:Wl}],[0,{[Ee]:Xl}],[()=>Qi,16],[0,{[Ee]:Ql}],[0,{[Ee]:Kl}]]],cm=[9,f,cl,{[Zl]:["POST","/2015-03-31/functions/{FunctionName}/invocations",200]},()=>im,()=>om],um=n(t=>({apiVersion:"2015-03-31",base64Decoder:t?.base64Decoder??rt,base64Encoder:t?.base64Encoder??je,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??xu,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pu,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pr}],logger:t?.logger??new He,protocol:t?.protocol??Ea,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambda",errorTypeRegistries:nm,version:"2015-03-31",serviceTarget:"AWSGirApiService"},serviceId:t?.serviceId??"Lambda",sha256:t?.sha256??vr,urlParser:t?.urlParser??bt,utf8Decoder:t?.utf8Decoder??et,utf8Encoder:t?.utf8Encoder??tt}),"getRuntimeConfig$5"),dm=n(t=>{_t(process.version);let e=Ut(t),r=n(()=>e().then(Rt),"defaultConfigProvider"),s=um(t);wt(process.version);let a={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??U(mr,a),bodyLengthChecker:t?.bodyLengthChecker??Mt,credentialDefaultProvider:t?.credentialDefaultProvider??ws,defaultUserAgentProvider:t?.defaultUserAgentProvider??or({serviceId:s.serviceId,clientVersion:fu.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??Un,maxAttempts:t?.maxAttempts??U(Gt,t),region:t?.region??U(Ot,{...Dt,...a}),requestHandler:xt.create(t?.requestHandler??r),retryMode:t?.retryMode??U({...Jt,default:n(async()=>(await r()).retryMode||Wt,"default")},t),streamCollector:t?.streamCollector??St,useDualstackEndpoint:t?.useDualstackEndpoint??U(kt,a),useFipsEndpoint:t?.useFipsEndpoint??U($t,a),userAgentAppId:t?.userAgentAppId??U(cr,a)}},"getRuntimeConfig$4"),lm=n(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(a){let i=e.findIndex(o=>o.schemeId===a.schemeId);i===-1?e.push(a):e.splice(i,1,a)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(a){r=a},httpAuthSchemeProvider(){return r},setCredentials(a){s=a},credentials(){return s}}},"getHttpAuthExtensionConfiguration$2"),pm=n(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig$2"),mm=n((t,e)=>{let r=Object.assign(dr(t),Pt(t),Kt(t),lm(t));return e.forEach(s=>s.configure(r)),Object.assign(t,lr(r),Tt(r),Vt(r),pm(r))},"resolveRuntimeExtensions$2"),hm=class extends It{static{n(this,"LambdaClient")}config;constructor(...[t]){let e=dm(t||{});super(e),this.initConfig=e;let r=hu(e),s=nr(r),a=Xt(s),i=Lt(a),o=i,c=mm(mu(Fn(jt(o))),t?.extensions||[]);this.config=c,this.middlewareStack.use(Ct(this.config)),this.middlewareStack.use(ir(this.config)),this.middlewareStack.use(Yt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Zt(this.config)),this.middlewareStack.use(er(this.config)),this.middlewareStack.use(tr(this.config)),this.middlewareStack.use(rr(this.config,{httpAuthSchemeParametersProvider:du,identityProviderConfigProvider:n(async u=>new ar({"aws.auth#sigv4":u.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(sr(this.config))}destroy(){super.destroy()}},vm=Nt(vu,"AWSGirApiService","LambdaClient",qt),fm={},gm=n((t,e,r,s)=>[],"_mw0$1"),ym=class extends vm(fm,gm,"Invoke",cm){static{n(this,"InvokeCommand")}},Em={DryRun:"DryRun",Event:"Event",RequestResponse:"RequestResponse"},Sm=de({BEESOLVE_AUTH_SDK_HANDLER_ARN:re()}),xm=Fr(Sm,process.env),bm=class{static{n(this,"AuthClient")}props;lambdaArn;lambdaClient;constructor(t={}){this.props=t,this.lambdaArn=t.lambdaArn??xm.BEESOLVE_AUTH_SDK_HANDLER_ARN,this.lambdaClient=t.lambdaClient??new hm}invoke=n(async t=>this.invokeLambda(t),"invoke");invokeLambda=n(async t=>{let{Payload:e,StatusCode:r,FunctionError:s}=await this.lambdaClient.send(new ym({FunctionName:this.lambdaArn,InvocationType:Em.RequestResponse,Payload:JSON.stringify(s0(t))}));if(r!==200)throw new Error(`Cannot invoke synchronous action: ${s}`);let a=JSON.parse(e?.transformToString()??"null");if(a!=null&&typeof a=="object"&&"errorMessage"in a)throw new Error(`SDK handler error: ${a.errorMessage}`);return a},"invokeLambda")},wm=Ur("impersonating",[de({userId:re(),sessionId:re(),expiresAt:re(),impersonating:Oe(!1)}),de({userId:re(),sessionId:re(),expiresAt:re(),impersonating:Oe(!0),impersonatedBy:re()})]),Gr=de({sid:re(),maxAge:zs()}),Im=Ur("type",[de({type:Oe("none")}),de({type:Oe("invalid"),error:re(),setCookiesParams:Et(Gr)}),de({type:Oe("expired"),expiredSession:de({userId:re(),sessionId:re(),expiredAt:re()}),setCookiesParams:Et(Gr)}),de({type:Oe("valid"),validSession:wm,setCookiesParams:Et(Gr)})]),Cm=Hs(re(),Bs(t=>JSON.parse(t)),Im),La=de({session:Cm});async function Am(){if(!Ms())return{type:"none"};let t=Ns();return Ts(t)?(await ks(La)).session:(await $s(La)).session}n(Am,"getSessionContext2");function Rm(t){for(let{sid:e,maxAge:r}of t.cookies)[`__Host-SID=${e}; HttpOnly; Max-Age=${r}; SameSite=Strict; Secure; Path=/`,`aSID=${r>0?1:0}; Max-Age=${r}; SameSite=Strict; Secure; Path=/`].forEach(s=>t.headers.append("Set-Cookie",s));return t.headers}n(Rm,"addSetCookies2");var _m={type:"valid",validSession:{userId:"dev-user",sessionId:"dev-session",expiresAt:new Date(Date.now()+2592e6).toISOString(),impersonating:!1},setCookiesParams:[]};new Date(Date.now()-36e5).toISOString();var Pm=process.env.LAMBDA_TASK_ROOT!=null;function Tm(t){return Pm?async({event:e,resolve:r})=>{let s=await Am();e.locals.session=s;let a=await r(e);return s.type!=="none"&&s.setCookiesParams.length>0&&Rm({headers:a.headers,cookies:s.setCookiesParams}),a}:Nm(t?.fallbackSession??_m)}n(Tm,"createSessionHandle");function Nm(t){return async({event:e,resolve:r})=>(e.locals.session=t,r(e))}n(Nm,"createFallbackHandle");var ke={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Wi=ke.WHEN_SUPPORTED,dt={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Gi=ke.WHEN_SUPPORTED,B;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(B||(B={}));var Ua;(function(t){t.HEADER="header",t.TRAILER="trailer"})(Ua||(Ua={}));var hs=B.CRC32,We;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(We||(We={}));var Ar=n((t,e,r,s)=>{if(!(e in t))return;let a=t[e].toUpperCase();if(!Object.values(r).includes(a))throw new TypeError(`Cannot load ${s} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return a},"stringUnionSelector"),Mm="AWS_REQUEST_CHECKSUM_CALCULATION",km="request_checksum_calculation",$m={environmentVariableSelector:n(t=>Ar(t,Mm,ke,We.ENV),"environmentVariableSelector"),configFileSelector:n(t=>Ar(t,km,ke,We.CONFIG),"configFileSelector"),default:Wi},Om="AWS_RESPONSE_CHECKSUM_VALIDATION",Dm="response_checksum_validation",Lm={environmentVariableSelector:n(t=>Ar(t,Om,dt,We.ENV),"environmentVariableSelector"),configFileSelector:n(t=>Ar(t,Dm,dt,We.CONFIG),"configFileSelector"),default:Gi},Um=n((t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:s})=>{if(!r)return s===ke.WHEN_SUPPORTED||e?hs:void 0;if(t[r])return t[r]},"getChecksumAlgorithmForRequest"),Rr=n(t=>t===B.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`,"getChecksumLocationName"),Fm=n((t,e)=>{let r=t.toLowerCase();for(let s of Object.keys(e))if(r===s.toLowerCase())return!0;return!1},"hasHeader"),Bm=n((t,e)=>{let r=t.toLowerCase();for(let s of Object.keys(e))if(s.toLowerCase().startsWith(r))return!0;return!1},"hasHeaderWithPrefix"),Xi=n(t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Js(t),"isStreaming"),Ji=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;Ji[t]=e>>>0}var zm=class{static{n(this,"Crc32cJs")}digestLength=4;crc=4294967295;update(t){let e=this.crc;for(let r=0;r<t.length;++r)e=e>>>8^Ji[(e^t[r])&255];this.crc=e}async digest(){let t=(this.crc^4294967295)>>>0,e=new Uint8Array(4);return e[0]=t>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e}reset(){this.crc=4294967295}},Hm=zm,jm={CrtCrc64Nvme:null},qm=n(()=>{let e=new Array(8);for(let r=0;r<8;r++){let s=new Array(512);for(let a=0;a<256;a++){let i=BigInt(a);for(let o=0;o<8*(r+1);o++)i&1n?i=i>>1n^11127430586519243189n:i=i>>1n;s[a*2]=Number(i>>32n&4294967295n),s[a*2+1]=Number(i&4294967295n)}e[r]=new Uint32Array(s)}return e},"generateCRC64NVMETable"),Xr,ct,vs,fs,gs,ys,Es,Ss,xs,Km=n(()=>{Xr||(Xr=qm(),[ct,vs,fs,gs,ys,Es,Ss,xs]=Xr)},"ensureTablesInitialized"),Vm=class{static{n(this,"Crc64NvmeJs")}c1=0;c2=0;constructor(){Km(),this.reset()}update(t){let e=t.length,r=0,s=this.c1,a=this.c2;for(;r+8<=e;){let i=((a^t[r++])&255)<<1,o=((a>>>8^t[r++])&255)<<1,c=((a>>>16^t[r++])&255)<<1,u=((a>>>24^t[r++])&255)<<1,p=((s^t[r++])&255)<<1,d=((s>>>8^t[r++])&255)<<1,l=((s>>>16^t[r++])&255)<<1,m=((s>>>24^t[r++])&255)<<1;s=xs[i]^Ss[o]^Es[c]^ys[u]^gs[p]^fs[d]^vs[l]^ct[m],a=xs[i+1]^Ss[o+1]^Es[c+1]^ys[u+1]^gs[p+1]^fs[d+1]^vs[l+1]^ct[m+1]}for(;r<e;){let i=((a^t[r])&255)<<1;a=(a>>>8|(s&255)<<24)>>>0,s=s>>>8^ct[i],a^=ct[i+1],++r}this.c1=s,this.c2=a}async digest(){let t=this.c1^4294967295,e=this.c2^4294967295;return new Uint8Array([t>>>24,t>>>16&255,t>>>8&255,t&255,e>>>24,e>>>16&255,e>>>8&255,e&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Qm=class{static{n(this,"Crc64Nvme")}impl;constructor(){let t=jm.CrtCrc64Nvme;this.impl=t?new t:new Vm}update(t){this.impl.update(t)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}},Wm=[B.CRC32,B.CRC32C,B.CRC64NVME,B.SHA1,B.SHA256],Fa=[B.SHA256,B.SHA1,B.CRC32,B.CRC32C,B.CRC64NVME],Yi=n((t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case B.MD5:return r?.MD5??e.md5;case B.CRC32:return r?.CRC32??Is;case B.CRC32C:return r?.CRC32C??Hm;case B.CRC64NVME:return r?.CRC64NVME??Qm;case B.SHA1:return r?.SHA1??e.sha1;case B.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${Wm}, or provide an implementation to the client constructor checksums field.`)}},"selectChecksumAlgorithmFunction"),Zi=n((t,e)=>{let r=new t;return r.update(Le(e||"")),r.digest()},"stringHasher"),Gm={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},Xm=n((t,e)=>(r,s)=>async a=>{if(!De.isInstance(a.request)||Bm("x-amz-checksum-",a.request.headers))return r(a);let{request:i,input:o}=a,{body:c,headers:u}=i,{base64Encoder:p,streamHasher:d}=t,{requestChecksumRequired:l,requestAlgorithmMember:m}=e,v=await t.requestChecksumCalculation(),g=m?.name,_=m?.httpHeader;g&&!o[g]&&(v===ke.WHEN_SUPPORTED||l)&&(o[g]=hs,_&&(u[_]=hs));let I=Um(o,{requestChecksumRequired:l,requestAlgorithmMember:m?.name,requestChecksumCalculation:v}),N=c,H=u;if(I){switch(I){case B.CRC32:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case B.CRC32C:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case B.CRC64NVME:le(s,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case B.SHA1:le(s,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case B.SHA256:le(s,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}let X=Rr(I),Re=Yi(I,t);if(Xi(c)){let{getAwsChunkedEncodingStream:ce,bodyLengthChecker:$e}=t;N=ce(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8192?m0(c,t.requestStreamBufferSize,s.logger):c,{base64Encoder:p,bodyLengthChecker:$e,checksumLocationName:X,checksumAlgorithmFn:Re,streamHasher:d}),H={...u,"content-encoding":u["content-encoding"]?`${u["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":u["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":X},delete H["content-length"]}else if(!Fm(X,u)){let ce=await Zi(Re,c);H={...u,[X]:p(ce)}}}try{return await r({...a,request:{...i,headers:H,body:N}})}catch(X){if(X instanceof Error&&X.name==="InvalidChunkSizeError")try{X.message.endsWith(".")||(X.message+="."),X.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw X}},"flexibleChecksumsMiddleware"),Jm={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},Ym=n((t,e)=>(r,s)=>async a=>{let i=a.input,{requestValidationModeMember:o}=e,c=await t.requestChecksumCalculation(),u=await t.responseChecksumValidation();switch(c){case ke.WHEN_REQUIRED:le(s,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case ke.WHEN_SUPPORTED:le(s,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(u){case dt.WHEN_REQUIRED:le(s,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case dt.WHEN_SUPPORTED:le(s,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return o&&!i[o]&&u===dt.WHEN_SUPPORTED&&(i[o]="ENABLED"),r(a)},"flexibleChecksumsInputMiddleware"),eo=n((t=[])=>{let e=[],r=Fa.length;for(let s of t){let a=Fa.indexOf(s);a!==-1?e[a]=s:e[r++]=s}return e.filter(Boolean)},"getChecksumAlgorithmListForResponse"),Zm=n(t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let s=parseInt(r,10);if(!isNaN(s)&&s>=1&&s<=1e4)return!0}}return!1},"isChecksumWithPartNumber"),eh=n(async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await Zi(e,t)),"getChecksum"),th=n(async(t,{config:e,responseAlgorithms:r,logger:s})=>{let a=eo(r),{body:i,headers:o}=t;for(let c of a){let u=Rr(c),p=o[u];if(p){let d;try{d=Yi(c,e)}catch(v){if(c===B.CRC64NVME){s?.warn(`Skipping ${B.CRC64NVME} checksum validation: ${v.message}`);continue}throw v}let{base64Encoder:l}=e;if(Xi(i)){t.body=l0({expectedChecksum:p,checksumSourceLocation:u,checksum:new d,source:i,base64Encoder:l});return}let m=await eh(i,{checksumAlgorithmFn:d,base64Encoder:l});if(m===p)break;throw new Error(`Checksum mismatch: expected "${m}" but received "${p}" in response header "${u}".`)}}},"validateChecksumFromResponse"),rh={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},sh=n((t,e)=>(r,s)=>async a=>{if(!De.isInstance(a.request))return r(a);let i=a.input,o=await r(a),c=o.response,{requestValidationModeMember:u,responseAlgorithms:p}=e;if(u&&i[u]==="ENABLED"){let{clientName:d,commandName:l}=s,m=Object.keys(t.checksumAlgorithms??{}).filter(g=>{let _=Rr(g);return c.headers[_]!==void 0}),v=eo([...p??[],...m]);if(d==="S3Client"&&l==="GetObjectCommand"&&v.every(g=>{let _=Rr(g),I=c.headers[_];return!I||Zm(I)}))return o;await th(c,{config:t,responseAlgorithms:v,logger:s.logger})}return o},"flexibleChecksumsResponseMiddleware"),ah=n((t,e)=>({applyToStack:n(r=>{r.add(Xm(t,e),Gm),r.addRelativeTo(Ym(t,e),Jm),r.addRelativeTo(sh(t,e),rh)},"applyToStack")}),"getFlexibleChecksumsPlugin"),nh=n(t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:s}=t;return Object.assign(t,{requestChecksumCalculation:xe(e??Wi),responseChecksumValidation:xe(r??Gi),requestStreamBufferSize:Number(s??0),checksumAlgorithms:t.checksumAlgorithms??{}})},"resolveFlexibleChecksumsConfig"),ih="content-length",oh="x-amz-decoded-content-length";function ch(){return(t,e)=>async r=>{let{request:s}=r;if(De.isInstance(s)&&!(ih in s.headers)&&!(oh in s.headers)){let a="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof He)?e.logger.warn(a):console.warn(a)}return t({...r})}}n(ch,"checkContentLengthHeader");var uh={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},dh=n(t=>({applyToStack:n(e=>{e.add(ch(),uh)},"applyToStack")}),"getCheckContentLengthHeaderPlugin"),lh=n(t=>(e,r)=>async s=>{let a=await t.region(),i=t.region,o=n(()=>{},"unlock");r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:n(async()=>r.__s3RegionRedirect,"value")}),o=n(()=>Object.defineProperty(t,"region",{writable:!0,value:i}),"unlock"));try{let c=await e(s);if(r.__s3RegionRedirect&&(o(),a!==await t.region()))throw new Error("Region was not restored following S3 region redirect.");return c}catch(c){throw o(),c}},"regionRedirectEndpointMiddleware"),ph={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function mh(t){return(e,r)=>async s=>{try{return await e(s)}catch(a){if(t.followRegionRedirects){let i=a?.$metadata?.httpStatusCode,o=r.commandName==="HeadBucketCommand",c=a?.$response?.headers?.["x-amz-bucket-region"];if(c&&(i===301||i===400&&(a?.name==="IllegalLocationConstraintException"||o))){try{let u=c;r.logger?.debug(`Redirecting from ${await t.region()} to ${u}`),r.__s3RegionRedirect=u,le(r,"S3_REGION_REDIRECT","Ah")}catch(u){throw new Error("Region redirect failed: "+u)}return e(s)}}throw a}}}n(mh,"regionRedirectMiddleware");var hh={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},vh=n(t=>({applyToStack:n(e=>{e.add(mh(t),hh),e.addRelativeTo(lh(t),ph)},"applyToStack")}),"getRegionRedirectMiddlewarePlugin"),fh=class to{static{n(this,"S3ExpressIdentityCache")}data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+to.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let s=this.data[r];if(!s.isRefreshing){let a=await s.identity;a.expiration&&a.expiration.getTime()<e&&delete this.data[r]}}}},Jr=class{static{n(this,"S3ExpressIdentityCacheEntry")}_identity;isRefreshing;accessed;constructor(t,e=!1,r=Date.now()){this._identity=t,this.isRefreshing=e,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}},gh=class ro{static{n(this,"S3ExpressIdentityProviderImpl")}createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new fh){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let s=r.Bucket,{cache:a}=this,i=a.get(s);return i?i.identity.then(o=>(o.expiration?.getTime()??0)<Date.now()?a.set(s,new Jr(this.getIdentity(s))).identity:((o.expiration?.getTime()??0)<Date.now()+ro.REFRESH_WINDOW_MS&&!i.isRefreshing&&(i.isRefreshing=!0,this.getIdentity(s).then(c=>{a.set(s,new Jr(Promise.resolve(c)))})),o)):a.set(s,new Jr(this.getIdentity(s))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(s=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
22
22
|
`+s)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}},yh=n((t,{session:e})=>{let[r,s]=e,{forcePathStyle:a,useAccelerateEndpoint:i,disableMultiregionAccessPoints:o,followRegionRedirects:c,s3ExpressIdentityProvider:u,bucketEndpoint:p,expectContinueHeader:d}=t;return Object.assign(t,{forcePathStyle:a??!1,useAccelerateEndpoint:i??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:c??!1,s3ExpressIdentityProvider:u??new gh(async l=>r().send(new s({Bucket:l}))),bucketEndpoint:p??!1,expectContinueHeader:d??2097152})},"resolveS3Config"),Eh="sigv4-s3express",Sh="X-Amz-S3session-Token".toLowerCase(),xh="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",bh="s3_disable_express_session_auth",wh={environmentVariableSelector:n(t=>st(t,xh,at.ENV),"environmentVariableSelector"),configFileSelector:n(t=>st(t,bh,at.CONFIG),"configFileSelector"),default:!1},Ih=n(t=>(e,r)=>async s=>{if(r.endpointV2){let a=r.endpointV2,i=a.properties?.authSchemes?.[0]?.name===Eh;if((a.properties?.backend==="S3Express"||a.properties?.bucketType==="Directory")&&(le(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),i){let o=s.input.Bucket;if(o){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:o});r.s3ExpressIdentity=c,De.isInstance(s.request)&&c.sessionToken&&(s.request.headers[Sh]=c.sessionToken)}}}return e(s)},"s3ExpressMiddleware"),Ch={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ah=n(t=>({applyToStack:n(e=>{e.add(Ih(t),Ch)},"applyToStack")}),"getS3ExpressPlugin"),Rh=n(async(t,e,r,s)=>{let a=await s.signWithCredentials(r,t,{});if(a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return a},"signS3Express"),_h=n(t=>e=>{throw e},"defaultErrorHandler"),Ph=n((t,e)=>{},"defaultSuccessHandler"),Th=n(t=>(e,r)=>async s=>{if(!De.isInstance(s.request))return e(s);let a=ze(r).selectedHttpAuthScheme;if(!a)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:o,signer:c}=a,u;r.s3ExpressIdentity?u=await Rh(r.s3ExpressIdentity,i,s.request,await t.signer()):u=await c.sign(s.request,o,i);let p=await e({...s,request:u}).catch((c.errorHandler||_h)(i));return(c.successHandler||Ph)(p.response,i),p},"s3ExpressHttpSigningMiddleware"),Nh=n(t=>({applyToStack:n(e=>{e.addRelativeTo(Th(t),ia)},"applyToStack")}),"getS3ExpressHttpSigningPlugin");function Mh(t){return ft.from(Buffer.from(t))}n(Mh,"toStream");var kh={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},$h=n(t=>(e,r)=>async s=>{let a=await e(s),{response:i}=a;if(!Zs.isInstance(i))return a;let{statusCode:o,body:c}=i;if(o<200||o>=300)return a;let u=await Oh(c,t);if(i.body=Mh(u),u.length===0&&kh[r.commandName]){let d=new Error("S3 aborted request");throw d.$metadata={httpStatusCode:503},d.name="InternalError",d}let p=t.utf8Encoder(u.subarray(u.length-16));return p&&p.endsWith("</Error>")&&(i.statusCode=503),a},"throw200ExceptionsMiddleware"),Oh=n((t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),"collectBody"),Dh={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},so=n(t=>({applyToStack:n(e=>{e.addRelativeTo($h(t),Dh)},"applyToStack")}),"getThrow200ExceptionsPlugin"),Lh=n(t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,"validate");function Uh(t){return(e,r)=>async s=>{if(t.bucketEndpoint){let a=r.endpointV2;if(a){let i=s.input.Bucket;if(typeof i=="string")try{let o=new URL(i);r.endpointV2={...a,url:o}}catch(o){let c=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${i} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(c):r.logger?.warn?.(c),o}}}return e(s)}}n(Uh,"bucketEndpointMiddleware");var Fh={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Bh({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:s}}=r;if(!t&&typeof s=="string"&&!Lh(s)&&s.indexOf("/")>=0){let a=new Error(`Bucket name shouldn't contain '/', received '${s}'`);throw a.name="InvalidBucketName",a}return e({...r})}}n(Bh,"validateBucketNameMiddleware");var zh={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Hh=n(t=>({applyToStack:n(e=>{e.add(Bh(t),zh),e.addRelativeTo(Uh(t),Fh)},"applyToStack")}),"getValidateBucketNamePlugin"),jh=class extends N0{static{n(this,"S3RestXmlProtocol")}async serializeRequest(t,e,r){let s=await super.serializeRequest(t,e,r),a=Te.of(t.input),i=a.getSchema(),o=0,c=i[6]??0;if(e&&typeof e=="object")for(let[u,p]of a.structIterator()){if(++o>c)break;if(u==="Bucket"){if(!e.Bucket&&p.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return s}},qh="AWS_S3_USE_ARN_REGION",Kh="s3_use_arn_region",Vh={environmentVariableSelector:n(t=>st(t,qh,at.ENV),"environmentVariableSelector"),configFileSelector:n(t=>st(t,Kh,at.CONFIG),"configFileSelector"),default:void 0};function Qh(t){return e=>async r=>{let{request:s}=r;if(t.expectContinueHeader!==!1&&De.isInstance(s)&&s.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let a=!0;if(typeof t.expectContinueHeader=="number")try{a=(Number(s.headers?.["content-length"])??t.bodyLengthChecker?.(s.body)??1/0)>=t.expectContinueHeader}catch{}else a=!!t.expectContinueHeader;a&&(s.headers.Expect="100-continue")}return e({...r,request:s})}}n(Qh,"addExpectContinueMiddleware");var Wh={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Gh=n(t=>({applyToStack:n(e=>{e.add(Qh(t),Wh)},"applyToStack")}),"getAddExpectContinuePlugin");function Xh(t){return e=>async r=>{let s={...r.input};for(let a of[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}]){let i=s[a.target];if(i){let o;typeof i=="string"?Zh(i,t)?o=t.base64Decoder(i):(o=t.utf8Decoder(i),s[a.target]=t.base64Encoder(o)):(o=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),s[a.target]=t.base64Encoder(o));let c=new t.md5;c.update(o),s[a.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:s})}}n(Xh,"ssecMiddleware");var Jh={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Yh=n(t=>({applyToStack:n(e=>{e.add(Xh(t),Jh)},"applyToStack")}),"getSsecPlugin");function Zh(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}n(Zh,"isValidBase64EncodedSSECustomerKey");var F="ref",P="argv",ao="backend",Se="authSchemes",he="disableDoubleEncoding",ve="signingName",Ce="signingRegion",Cs="signingRegionSet",w=-1,k=!0,me=!1,Yr="isSet",ye="booleanEquals",M="stringEquals",se="coalesce",ie="substring",Y="",Ba="aws.partition",no="partitionResult",za="accessPointSuffix",Ha="regionPrefix",yr=n(t=>"outpostId_ssa_"+t+Y,"n"),io="hardwareType",Zr="ite",be="isValidHostLabel",Ae="sigv4",ja="aws.isVirtualHostableS3Bucket",oo="url",oe="getAttr",co="bucketArn",we="--",uo="arnType",qa="accesspoint",es=n(t=>"accessPointName_ssa_"+t+Y,"A"),As="s3-object-lambda",mt="s3-outposts",Ka="bucketPartition",lo="us-east-1",Va="outpostType",ue="name",ht="s3",ts="{url#scheme}://{Bucket}.{url#authority}{url#path}",Er="{url#scheme}://{url#authority}{url#path}",Qa="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",Wa="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",Ga="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Xa=n(t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}","N"),Ja=n(t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`","O"),Rs="sigv4a",Ya="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",Za="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",en="https://s3.{partitionResult#dnsSuffix}",tn={[F]:"UseFIPS"},rn={[F]:"UseDualStack"},te={[F]:"Bucket"},rs={fn:oe,[P]:[{[F]:no},ue]},sn={[F]:oo},Ke={[F]:"Region"},Ie={[F]:co},an={[F]:uo},ss={[F]:"accessPointName_ssa_1"},Sr={fn:oe,[P]:[Ie,"region"]},nn={[F]:io},as={fn:oe,[P]:[Ie,"service"]},on={fn:oe,[P]:[Ie,"accountId"]},xr={[ao]:"S3Express",[Se]:[{[he]:!0,[ue]:"{_s3e_auth}",[ve]:"s3express",[Ce]:"{Region}"}]},cn={[ao]:"S3Express",[Se]:[{[he]:!0,[ue]:Ae,[ve]:"s3express",[Ce]:"{Region}"}]},br={[Se]:[{[he]:!0,[ue]:Rs,[ve]:mt,[Cs]:["*"]},{[he]:!0,[ue]:Ae,[ve]:mt,[Ce]:"{Region}"}]},ee={[Se]:[{[he]:!0,[ue]:Ae,[ve]:ht,[Ce]:lo}]},Q={[Se]:[{[he]:!0,[ue]:Ae,[ve]:ht,[Ce]:"{Region}"}]},ns={[Se]:[{[he]:!0,[ue]:Ae,[ve]:As,[Ce]:"{bucketArn#region}"}]},ot={[Se]:[{[he]:!0,[ue]:Ae,[ve]:ht,[Ce]:"{bucketArn#region}"}]},un={[Se]:[{[he]:!0,[ue]:Rs,[ve]:mt,[Cs]:["*"]},{[he]:!0,[ue]:Ae,[ve]:mt,[Ce]:"{bucketArn#region}"}]},is={[Se]:[{[he]:!0,[ue]:Ae,[ve]:As,[Ce]:"{Region}"}]},dn=[Ke],ln=[{[F]:"Endpoint"}],os=[te],pn=[te,0,7,!0],mn=[Ie,"resourceId[1]"],ev=["*"],hn={conditions:[[Yr,dn],[ye,[{[F]:"Accelerate"},k]],[ye,[tn,k]],[ye,[rn,k]],[Yr,ln],[Yr,os],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,0,6,k]},Y]},"--x-s3"]],[M,[{fn:se,[P]:[{fn:ie,[P]:pn},Y]},"--xa-s3"]],[Ba,dn,no],[ie,pn,za],[M,[{[F]:za},"--op-s3"]],[ie,[te,8,12,k],Ha],[ie,[te,32,49,k],yr(2)],[ie,[te,49,50,k],io],[ye,[{[F]:"ForcePathStyle"},k]],[M,[rs,"aws-cn"]],[Zr,[rn,".dualstack",Y],"_s3e_ds"],[be,[{[F]:yr(2)},me]],[Zr,[tn,"-fips",Y],"_s3e_fips"],[Zr,[{fn:se,[P]:[{[F]:"DisableS3ExpressSessionAuth"},me]},Ae,"sigv4-s3express"],"_s3e_auth"],[ja,[te,me]],["parseURL",ln,oo],[ye,[{fn:se,[P]:[{[F]:"UseS3ExpressControlEndpoint"},me]},k]],[ja,[te,k]],[M,[{fn:oe,[P]:[sn,"scheme"]},"http"]],[be,[Ke,me]],["aws.parseArn",os,co],[oe,[{fn:"split",[P]:[te,we,0]},"[-2]"],"s3expressAvailabilityZoneId"],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,0,4,me]},Y]},"arn:"]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,16,18,k]},Y]},we]],[ye,[{fn:oe,[P]:[sn,"isIp"]},k]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,21,23,k]},Y]},we]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,27,29,k]},Y]},we]],[M,[{[F]:Ha},"beta"]],["uriEncode",os,"uri_encoded_bucket"],[be,[Ke,k]],[ye,[{fn:se,[P]:[{[F]:"UseObjectLambdaEndpoint"},me]},k]],[oe,[Ie,"resourceId[0]"],uo],[M,[an,Y]],[M,[an,qa]],[oe,mn,es(1)],[M,[ss,Y]],[M,[Sr,Y]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,14,16,k]},Y]},we]],[M,[nn,"e"]],[M,[nn,"o"]],[M,[Ke,"aws-global"]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,19,21,k]},Y]},we]],[M,[as,As]],[ye,[{fn:se,[P]:[{[F]:"DisableAccessPoints"},me]},k]],[M,[as,mt]],[Ba,[Sr],Ka],[be,[ss,k]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,26,28,k]},Y]},we]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,15,17,k]},Y]},we]],[oe,[Ie,"resourceId[4]"]],[M,[{fn:se,[P]:[{fn:ie,[P]:[te,20,22,k]},Y]},we]],[ye,[{[F]:"UseGlobalEndpoint"},k]],[M,[Ke,lo]],[oe,mn,yr(1)],[ye,[{fn:se,[P]:[{[F]:"UseArnRegion"},k]},k]],[be,[{[F]:yr(1)},me]],[oe,[Ie,"resourceId[2]"],Va],[M,[Ke,Sr]],[M,[{fn:oe,[P]:[{[F]:Ka},ue]},rs]],[ye,[{[F]:"DisableMultiRegionAccessPoints"},k]],[be,[Sr,k]],[M,[{fn:oe,[P]:[Ie,"partition"]},rs]],[M,[on,Y]],[M,[as,ht]],[be,[on,me]],[oe,[Ie,"resourceId[3]"],es(2)],[be,[ss,me]],[M,[{[F]:Va},qa]],[be,[{[F]:es(2)},me]]],results:[[w],[w,"Accelerate cannot be used with FIPS"],[w,"Cannot set dual-stack in combination with a custom endpoint."],[w,"A custom endpoint cannot be combined with FIPS"],[w,"A custom endpoint cannot be combined with S3 Accelerate"],[w,"Partition does not support FIPS"],[w,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",xr],[ts,xr],[w,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",cn],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",xr],[w,"Unrecognized S3Express bucket name format."],[Er,xr],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",cn],[w,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",br],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",br],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",br],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",br],[w,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[w,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[w,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[w,"Custom endpoint `{Endpoint}` was not a valid URI"],[w,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ee],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Q],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ee],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",Q],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ee],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",Q],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ee],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Q],[Qa,ee],[ts,ee],[Qa,Q],[ts,Q],[Wa,ee],[Wa,Q],[Ga,ee],[Ga,Q],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",Q],[w,"Invalid region: region was not a valid DNS name."],[w,"S3 Object Lambda does not support Dual-stack"],[w,"S3 Object Lambda does not support S3 Accelerate"],[w,"Access points are not supported for this operation"],[w,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[w,"Invalid ARN: Missing account id"],[Xa(1),ns],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",ns],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",ns],[w,Ja(1)],[w,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[w,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[w,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[w,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[w,"Invalid ARN: bucket ARN is missing a region"],[w,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[w,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[w,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",ot],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",ot],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",ot],[Xa(1),ot],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",ot],[w,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[w,"S3 MRAP does not support dual-stack"],[w,"S3 MRAP does not support FIPS"],[w,"S3 MRAP does not support S3 Accelerate"],[w,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[Se]:[{[he]:k,name:Rs,[ve]:ht,[Cs]:ev}]}],[w,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[w,"Invalid Access Point Name"],[w,"S3 Outposts does not support Dual-stack"],[w,"S3 Outposts does not support FIPS"],[w,"S3 Outposts does not support S3 Accelerate"],[w,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",un],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",un],[w,Ja(2)],[w,"Expected an outpost type `accesspoint`, found {outpostType}"],[w,"Invalid ARN: expected an access point name"],[w,"Invalid ARN: Expected a 4-component resource"],[w,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[w,"Invalid ARN: The Outpost Id was not set"],[w,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[w,"Invalid ARN: No ARN type specified"],[w,"Invalid ARN: `{Bucket}` was not a valid ARN"],[w,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ee],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Q],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ee],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Q],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ee],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Q],[Ya,ee],[Ya,Q],[Za,ee],[Za,Q],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Q],[w,"Path-style addressing cannot be used with S3 Accelerate"],[Er,is],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",is],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",is],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ee],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Q],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ee],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",Q],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ee],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Q],[Er,ee],[Er,Q],[en,ee],[en,Q],["https://s3.{Region}.{partitionResult#dnsSuffix}",Q],[w,"A region must be set when sending requests to S3."]]},tv=2,rv=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),sv=Ft.from(rv,tv,hn.conditions,hn.results),av=new Bt({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),po=n((t,e={})=>av.get(t,()=>Ht(sv,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver$1");zt.aws=ur;var nv=n(t=>async(e,r,s)=>{if(!s)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let a=await t(e,r,s),i=ze(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!i)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let o=await sa(s,{getEndpointParameterInstructions:i},e);return Object.assign(a,o)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),iv=n(async(t,e,r)=>({operation:ze(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultS3HttpAuthSchemeParametersProvider"),ov=nv(iv);function mo(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:n((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}n(mo,"createAwsAuthSigv4HttpAuthOption$1");function ho(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:n((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}n(ho,"createAwsAuthSigv4aHttpAuthOption");var cv=n((t,e,r)=>n(a=>{let i=t(a).properties?.authSchemes;if(!i)return e(a);let o=[];for(let c of i){let{name:u,properties:p={},...d}=c,l=u.toLowerCase();u!==l&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${l}'`);let m;if(l==="sigv4a"){m="aws.auth#sigv4a";let _=i.find(I=>{let N=I.name.toLowerCase();return N!=="sigv4a"&&N.startsWith("sigv4")});if(jr.sigv4aDependency()==="none"&&_)continue}else if(l.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${l}'`);let v=r[m];if(!v)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let g=v(a);g.schemeId=m,g.signingProperties={...g.signingProperties||{},...d,...p},o.push(g)}return o},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),uv=n(t=>{let e=[];switch(t.operation){default:e.push(mo(t)),e.push(ho(t))}return e},"_defaultS3HttpAuthSchemeProvider"),dv=cv(po,uv,{"aws.auth#sigv4":mo,"aws.auth#sigv4a":ho}),lv=n(t=>{let e=hr(t),r=ua(e);return Object.assign(r,{authSchemePreference:xe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig$1"),pv=n(t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),"resolveClientEndpointParameters$1"),vo=Nt({ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},"AmazonS3","S3Client",qt),mv={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},hv={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},vv=n((t,e,r,s)=>[so(r)],"_mw0"),fv=n((t,e,r,s)=>[ah(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),dh(r),so(r),Yh(r)],"_mw11"),K=class fo extends At{static{n(this,"S3ServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,fo.prototype)}},gv=class go extends K{static{n(this,"NoSuchUpload")}static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,go.prototype)}},yv=class yo extends K{static{n(this,"AccessDenied")}static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,yo.prototype)}},Ev=class Eo extends K{static{n(this,"ObjectNotInActiveTierError")}static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Eo.prototype)}},Sv=class So extends K{static{n(this,"BucketAlreadyExists")}static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,So.prototype)}},xv=class xo extends K{static{n(this,"BucketAlreadyOwnedByYou")}static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,xo.prototype)}},bv=class bo extends K{static{n(this,"NoSuchBucket")}static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,bo.prototype)}},wv=class wo extends K{static{n(this,"NoSuchKey")}static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,wo.prototype)}},Iv=class Io extends K{static{n(this,"InvalidObjectState")}static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,Io.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},Cv=class Co extends K{static{n(this,"NoSuchAnnotation")}static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,Co.prototype)}},Av=class Ao extends K{static{n(this,"NotFound")}static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,Ao.prototype)}},Rv=class Ro extends K{static{n(this,"InvalidPrefix")}static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,Ro.prototype)}},_v=class _o extends K{static{n(this,"EncryptionTypeMismatch")}static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,_o.prototype)}},Pv=class Po extends K{static{n(this,"InvalidRequest")}static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,Po.prototype)}},Tv=class To extends K{static{n(this,"InvalidWriteOffset")}static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,To.prototype)}},Nv=class No extends K{static{n(this,"TooManyParts")}static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,No.prototype)}},Mv=class Mo extends K{static{n(this,"AnnotationLimitExceeded")}static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,Mo.prototype)}},kv=class ko extends K{static{n(this,"AnnotationNameTooLong")}static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,ko.prototype)}},$v=class $o extends K{static{n(this,"InvalidAnnotationName")}static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,$o.prototype)}},Ov=class Oo extends K{static{n(this,"UnsupportedMediaType")}static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,Oo.prototype)}},Dv=class Do extends K{static{n(this,"IdempotencyParameterMismatch")}static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,Do.prototype)}},Lv=class Lo extends K{static{n(this,"ObjectAlreadyInActiveTierError")}static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Lo.prototype)}},Uv="ACL",Fv="AccessDenied",vn="AccessKeyId",Bv="AnnotationLimitExceeded",zv="AnnotationNameTooLong",Hv="AccessTier",Uo="Bucket",jv="BucketAlreadyExists",qv="BucketAlreadyOwnedByYou",Pr="BucketKeyEnabled",Kv="Body",Vv="ChecksumAlgorithm",Qv="CacheControl",Fo="ChecksumCRC32",Bo="ChecksumCRC32C",zo="ChecksumCRC64NVME",Wv="Cache-Control",Gv="Content-Disposition",Xv="ContentDisposition",Jv="Content-Encoding",Yv="ContentEncoding",Zv="ContentLanguage",ef="Content-Language",tf="Content-Length",rf="ContentLength",sf="Content-MD5",Ho="ChecksumMD5",af="ContentMD5",jo="ChecksumSHA1",qo="ChecksumSHA256",Ko="ChecksumSHA512",nf="CreateSessionOutput",of="CreateSessionResult",cf="CreateSessionRequest",uf="CreateSession",df="ChecksumType",lf="Content-Type",pf="ContentType",Vo="ChecksumXXHASH64",Qo="ChecksumXXHASH3",Wo="ChecksumXXHASH128",fn="Credentials",mf="ExpectedBucketOwner",gn="ETag",hf="EncryptionTypeMismatch",bs="Expiration",yn="Expires",vf="GrantFullControl",ff="GrantRead",gf="GrantReadACP",yf="GrantWriteACP",Ef="InvalidAnnotationName",Sf="IfMatch",xf="If-Match",bf="IfNoneMatch",wf="If-None-Match",If="InvalidObjectState",Cf="InvalidPrefix",Af="IdempotencyParameterMismatch",Rf="InvalidRequest",_f="InvalidWriteOffset",Pf="Key",Tf="Metadata",Nf="NotFound",Mf="NoSuchAnnotation",kf="NoSuchBucket",$f="NoSuchKey",Of="NoSuchUpload",Df="ObjectAlreadyInActiveTierError",Lf="ObjectLockEventHold",Uf="ObjectLockEventHoldDurationDays",Ff="ObjectLockEventHoldDurationYears",Bf="ObjectLockLegalHoldStatus",zf="ObjectLockMode",Hf="ObjectLockRetainUntilDate",jf="ObjectNotInActiveTierError",qf="PutObject",Kf="PutObjectOutput",Vf="PutObjectRequest",Qf="RequestCharged",Wf="RequestPayer",En="SecretAccessKey",Gf="StreamingBlob",Go="StorageClass",Xf="SessionCredentialValue",Jf="SessionCredentials",Yf="SessionMode",Tr="ServerSideEncryption",Xo="SSECustomerAlgorithm",Jo="SSECustomerKey",Yo="SSECustomerKeyMD5",gt="SSEKMSEncryptionContext",yt="SSEKMSKeyId",Sn="SessionToken",Zf="Size",eg="TooManyParts",tg="Tagging",rg="UnsupportedMediaType",sg="VersionId",ag="WriteOffsetBytes",ng="WebsiteRedirectLocation",W="client",G="error",Zo="http",ig="httpChecksum",J="httpError",h="httpHeader",og="httpPrefixHeaders",ec="smithy.ts.sdk.synthetic.com.amazonaws.s3",cg="streaming",Ve="xmlName",ug="x-amz-acl",tc="x-amz-checksum-crc32",rc="x-amz-checksum-crc32c",sc="x-amz-checksum-crc64nvme",ac="x-amz-checksum-md5",nc="x-amz-checksum-sha1",ic="x-amz-checksum-sha256",oc="x-amz-checksum-sha512",dg="x-amz-create-session-mode",lg="x-amz-checksum-type",cc="x-amz-checksum-xxhash64",uc="x-amz-checksum-xxhash3",dc="x-amz-checksum-xxhash128",pg="x-amz-expiration",mg="x-amz-expected-bucket-owner",hg="x-amz-grant-full-control",vg="x-amz-grant-read",fg="x-amz-grant-read-acp",gg="x-amz-grant-write-acp",yg="x-amz-meta-",Eg="x-amz-object-lock-event-hold",Sg="x-amz-object-lock-event-hold-duration-days",xg="x-amz-object-lock-event-hold-duration-years",bg="x-amz-object-lock-legal-hold",wg="x-amz-object-lock-mode",Ig="x-amz-object-lock-retain-until-date",Cg="x-amz-object-size",Ag="x-amz-request-charged",Rg="x-amz-request-payer",_g="x-amz-storage-class",Pg="x-amz-sdk-checksum-algorithm",Nr="x-amz-server-side-encryption",Mr="x-amz-server-side-encryption-aws-kms-key-id",kr="x-amz-server-side-encryption-bucket-key-enabled",$r="x-amz-server-side-encryption-context",lc="x-amz-server-side-encryption-customer-algorithm",Tg="x-amz-server-side-encryption-customer-key",pc="x-amz-server-side-encryption-customer-key-MD5",Ng="x-amz-tagging",Mg="x-amz-version-id",kg="x-amz-write-offset-bytes",$g="x-amz-website-redirect-location",T="com.amazonaws.s3",mc=new Pe(ec),Og=[-3,ec,"S3ServiceException",0,[],[]];mc.registerError(Og,K);var V=new Pe(T),Dg=[-3,T,Fv,{[G]:W,[J]:403},[],[]];V.registerError(Dg,yv);var Lg=[-3,T,Bv,{[G]:W,[J]:400},[],[]];V.registerError(Lg,Mv);var Ug=[-3,T,zv,{[G]:W,[J]:400},[],[]];V.registerError(Ug,kv);var Fg=[-3,T,jv,{[G]:W,[J]:409},[],[]];V.registerError(Fg,Sv);var Bg=[-3,T,qv,{[G]:W,[J]:409},[],[]];V.registerError(Bg,xv);var zg=[-3,T,hf,{[G]:W,[J]:400},[],[]];V.registerError(zg,_v);var Hg=[-3,T,Af,{[G]:W,[J]:400},[],[]];V.registerError(Hg,Dv);var jg=[-3,T,Ef,{[G]:W,[J]:400},[],[]];V.registerError(jg,$v);var qg=[-3,T,If,{[G]:W,[J]:403},[Go,Hv],[0,0]];V.registerError(qg,Iv);var Kg=[-3,T,Cf,{[G]:W,[J]:400},[],[]];V.registerError(Kg,Rv);var Vg=[-3,T,Rf,{[G]:W,[J]:400},[],[]];V.registerError(Vg,Pv);var Qg=[-3,T,_f,{[G]:W,[J]:400},[],[]];V.registerError(Qg,Tv);var Wg=[-3,T,Mf,{[G]:W,[J]:404},[],[]];V.registerError(Wg,Cv);var Gg=[-3,T,kf,{[G]:W,[J]:404},[],[]];V.registerError(Gg,bv);var Xg=[-3,T,$f,{[G]:W,[J]:404},[],[]];V.registerError(Xg,wv);var Jg=[-3,T,Of,{[G]:W,[J]:404},[],[]];V.registerError(Jg,gv);var Yg=[-3,T,Nf,{[G]:W},[],[]];V.registerError(Yg,Av);var Zg=[-3,T,Df,{[G]:W,[J]:403},[],[]];V.registerError(Zg,Lv);var ey=[-3,T,jf,{[G]:W,[J]:403},[],[]];V.registerError(ey,Ev);var ty=[-3,T,eg,{[G]:W,[J]:400},[],[]];V.registerError(ty,Nv);var ry=[-3,T,rg,{[G]:W,[J]:415},[],[]];V.registerError(ry,Ov);var sy=[mc,V],xn=[0,T,Xf,8,0],ay=[0,T,Jo,8,0],Or=[0,T,gt,8,0],Dr=[0,T,yt,8,0],ny=[0,T,Gf,{[cg]:1},42],iy=[3,T,nf,{[Ve]:of},[fn,Tr,yt,gt,Pr],[[()=>dy,{[Ve]:fn}],[0,{[h]:Nr}],[()=>Dr,{[h]:Mr}],[()=>Or,{[h]:$r}],[2,{[h]:kr}]],1],oy=[3,T,cf,0,[Uo,Yf,Tr,yt,gt,Pr],[[0,1],[0,{[h]:dg}],[0,{[h]:Nr}],[()=>Dr,{[h]:Mr}],[()=>Or,{[h]:$r}],[2,{[h]:kr}]],1],cy=[3,T,Kf,0,[bs,gn,Fo,Bo,zo,jo,qo,Ko,Ho,Vo,Qo,Wo,df,Tr,sg,Xo,Yo,yt,gt,Pr,Zf,Qf],[[0,{[h]:pg}],[0,{[h]:gn}],[0,{[h]:tc}],[0,{[h]:rc}],[0,{[h]:sc}],[0,{[h]:nc}],[0,{[h]:ic}],[0,{[h]:oc}],[0,{[h]:ac}],[0,{[h]:cc}],[0,{[h]:uc}],[0,{[h]:dc}],[0,{[h]:lg}],[0,{[h]:Nr}],[0,{[h]:Mg}],[0,{[h]:lc}],[0,{[h]:pc}],[()=>Dr,{[h]:Mr}],[()=>Or,{[h]:$r}],[2,{[h]:kr}],[1,{[h]:Cg}],[0,{[h]:Ag}]]],uy=[3,T,Vf,0,[Uo,Pf,Uv,Kv,Qv,Xv,Yv,Zv,rf,af,pf,Vv,Fo,Bo,zo,jo,qo,Ko,Ho,Vo,Qo,Wo,yn,Sf,bf,vf,ff,gf,yf,ag,Tf,Tr,Go,ng,Xo,Jo,Yo,yt,gt,Pr,Wf,tg,zf,Hf,Bf,Lf,Uf,Ff,mf],[[0,1],[0,1],[0,{[h]:ug}],[()=>ny,16],[0,{[h]:Wv}],[0,{[h]:Gv}],[0,{[h]:Jv}],[0,{[h]:ef}],[1,{[h]:tf}],[0,{[h]:sf}],[0,{[h]:lf}],[0,{[h]:Pg}],[0,{[h]:tc}],[0,{[h]:rc}],[0,{[h]:sc}],[0,{[h]:nc}],[0,{[h]:ic}],[0,{[h]:oc}],[0,{[h]:ac}],[0,{[h]:cc}],[0,{[h]:uc}],[0,{[h]:dc}],[4,{[h]:yn}],[0,{[h]:xf}],[0,{[h]:wf}],[0,{[h]:hg}],[0,{[h]:vg}],[0,{[h]:fg}],[0,{[h]:gg}],[1,{[h]:kg}],[128,{[og]:yg}],[0,{[h]:Nr}],[0,{[h]:_g}],[0,{[h]:$g}],[0,{[h]:lc}],[()=>ay,{[h]:Tg}],[0,{[h]:pc}],[()=>Dr,{[h]:Mr}],[()=>Or,{[h]:$r}],[2,{[h]:kr}],[0,{[h]:Rg}],[0,{[h]:Ng}],[0,{[h]:wg}],[5,{[h]:Ig}],[0,{[h]:bg}],[0,{[h]:Eg}],[1,{[h]:Sg}],[1,{[h]:xg}],[0,{[h]:mg}]],2],dy=[3,T,Jf,0,[vn,En,Sn,bs],[[0,{[Ve]:vn}],[()=>xn,{[Ve]:En}],[()=>xn,{[Ve]:Sn}],[4,{[Ve]:bs}]],4],ly=[9,T,uf,{[Zo]:["GET","/?session",200]},()=>oy,()=>iy],py=[9,T,qf,{[ig]:"-",[Zo]:["PUT","/{Key+}?x-id=PutObject",200]},()=>uy,()=>cy],my=class extends vo(hv,vv,"CreateSession",ly){static{n(this,"CreateSessionCommand")}},hy={name:"@aws-sdk/client-s3",version:"3.1150.0",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:browser":"yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"yarn g:vitest watch -c vitest.config.browser.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/checksums":"^3.1001.3","@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/middleware-sdk-s3":"^3.972.79","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.1150.0","@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}},ae=64,bn=20,wn=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),vy=new Int32Array([1518500249,1859775393,2400959708,3395469782]),fy=class ut{static{n(this,"Sha1Js")}digestLength=bn;state=Int32Array.from(wn);w;buffer=new Uint8Array(ae);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=ut.normalizeKey(e);this.inner=new ut,this.outer=new ut;let s=new Uint8Array(128);for(let a=0;a<ae;++a)s[a]=54^r[a],s[a+ae]=92^r[a];this.inner.update(s.subarray(0,ae)),this.outer.update(s.subarray(ae))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:s}=e;if(this.bytesHashed+=s,this.bufferLength>0){for(;s>0&&this.bufferLength<ae;)this.buffer[this.bufferLength++]=e[r++],--s;this.bufferLength===ae&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;s>=ae;)this.hashBuffer(e,r),r+=ae,s-=ae;for(;s>0;)this.buffer[this.bufferLength++]=e[r++],--s}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(wn),this.buffer=new Uint8Array(ae),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),s=this.bufferLength,a=this.bytesHashed/536870912|0,i=this.bytesHashed<<3;if(r[s++]=128,s>56){for(let u=s;u<ae;++u)r[u]=0;this.hashBufferWith(e,r,0),s=0}for(let u=s;u<56;++u)r[u]=0;let o=new DataView(r.buffer,r.byteOffset,ae);o.setUint32(56,a,!1),o.setUint32(60,i,!1),this.hashBufferWith(e,r,0);let c=new Uint8Array(bn);return c[0]=e[0]>>>24&255,c[1]=e[0]>>>16&255,c[2]=e[0]>>>8&255,c[3]=e[0]&255,c[4]=e[1]>>>24&255,c[5]=e[1]>>>16&255,c[6]=e[1]>>>8&255,c[7]=e[1]&255,c[8]=e[2]>>>24&255,c[9]=e[2]>>>16&255,c[10]=e[2]>>>8&255,c[11]=e[2]&255,c[12]=e[3]>>>24&255,c[13]=e[3]>>>16&255,c[14]=e[3]>>>8&255,c[15]=e[3]&255,c[16]=e[4]>>>24&255,c[17]=e[4]>>>16&255,c[18]=e[4]>>>8&255,c[19]=e[4]&255,c}static normalizeKey(e){let r=Le(e);if(r.byteLength>ae){let a=new ut;a.update(r);let i=a.digestSync(),o=new Uint8Array(ae);return o.set(i),o}let s=new Uint8Array(ae);return s.set(r),s}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,s){let a=this.w??=new Int32Array(80),i=e[0],o=e[1],c=e[2],u=e[3],p=e[4];for(let d=0;d<16;++d)a[d]=(r[s+d*4]&255)<<24|(r[s+d*4+1]&255)<<16|(r[s+d*4+2]&255)<<8|r[s+d*4+3]&255;for(let d=16;d<80;++d){let l=a[d-3]^a[d-8]^a[d-14]^a[d-16];a[d]=l<<1|l>>>31}for(let d=0;d<80;++d){let l=d<20?0:d<40?1:d<60?2:3,m=((i<<5|i>>>27)+(l===0?o&c^~o&u:l===2?o&c^o&u^c&u:o^c^u)|0)+(p+(vy[l]+a[d]|0)|0)|0;p=u,u=c,c=o<<30|o>>>2,o=i,i=m}e[0]=e[0]+i|0,e[1]=e[1]+o|0,e[2]=e[2]+c|0,e[3]=e[3]+u|0,e[4]=e[4]+p|0}},gy=(()=>{try{return lt("sha1"),!0}catch{return!1}})()?yy():fy;function yy(){return class{static{n(this,"Sha1Node")}digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?r0("sha1",Ey(this.secret)):lt("sha1")}}}n(yy,"buildNativeClass");function Ey(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}n(Ey,"toBuffer");var Sy=n(t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??rt,base64Encoder:t?.base64Encoder??je,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??po,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??v0,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dv,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pr},{schemeId:"aws.auth#sigv4a",identityProvider:n(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new ca}],logger:t?.logger??new He,md5:t?.md5??kn,protocol:t?.protocol??jh,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:sy,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??ma,serviceId:t?.serviceId??"S3",sha1:t?.sha1??gy,sha256:t?.sha256??vr,signerConstructor:t?.signerConstructor??jr,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??bt,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??et,utf8Encoder:t?.utf8Encoder??tt}),"getRuntimeConfig$3"),xy=n(t=>{_t(process.version);let e=Ut(t),r=n(()=>e().then(Rt),"defaultConfigProvider"),s=Sy(t);wt(process.version);let a={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??U(mr,a),bodyLengthChecker:t?.bodyLengthChecker??Mt,credentialDefaultProvider:t?.credentialDefaultProvider??ws,defaultUserAgentProvider:t?.defaultUserAgentProvider??or({serviceId:s.serviceId,clientVersion:hy.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??U(wh,a),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??Un,maxAttempts:t?.maxAttempts??U(Gt,t),region:t?.region??U(Ot,{...Dt,...a}),requestChecksumCalculation:t?.requestChecksumCalculation??U($m,a),requestHandler:xt.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??U(Lm,a),retryMode:t?.retryMode??U({...Jt,default:n(async()=>(await r()).retryMode||Wt,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??U(da,a),streamCollector:t?.streamCollector??St,streamHasher:t?.streamHasher??k0,useArnRegion:t?.useArnRegion??U(Vh,a),useDualstackEndpoint:t?.useDualstackEndpoint??U(kt,a),useFipsEndpoint:t?.useFipsEndpoint??U($t,a),userAgentAppId:t?.userAgentAppId??U(cr,a)}},"getRuntimeConfig$2"),by=n(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(a){let i=e.findIndex(o=>o.schemeId===a.schemeId);i===-1?e.push(a):e.splice(i,1,a)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(a){r=a},httpAuthSchemeProvider(){return r},setCredentials(a){s=a},credentials(){return s}}},"getHttpAuthExtensionConfiguration$1"),wy=n(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig$1"),Iy=n((t,e)=>{let r=Object.assign(dr(t),Pt(t),Kt(t),by(t));return e.forEach(s=>s.configure(r)),Object.assign(t,lr(r),Tt(r),Vt(r),wy(r))},"resolveRuntimeExtensions$1"),Cy=class extends It{static{n(this,"S3Client")}config;constructor(...[t]){let e=xy(t||{});super(e),this.initConfig=e;let r=pv(e),s=nh(nr(r)),a=Xt(s),i=Lt(a),o=i,c=Iy(yh(lv(Fn(jt(o))),{session:[()=>this,my]}),t?.extensions||[]);this.config=c,this.middlewareStack.use(Ct(this.config)),this.middlewareStack.use(ir(this.config)),this.middlewareStack.use(Yt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Zt(this.config)),this.middlewareStack.use(er(this.config)),this.middlewareStack.use(tr(this.config)),this.middlewareStack.use(rr(this.config,{httpAuthSchemeParametersProvider:ov,identityProviderConfigProvider:n(async u=>new ar({"aws.auth#sigv4":u.credentials,"aws.auth#sigv4a":u.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(sr(this.config)),this.middlewareStack.use(Hh(this.config)),this.middlewareStack.use(Gh(this.config)),this.middlewareStack.use(vh(this.config)),this.middlewareStack.use(Ah(this.config)),this.middlewareStack.use(Nh(this.config))}destroy(){super.destroy()}},Ay=class extends vo(mv,fv,"PutObject",py){static{n(this,"PutObjectCommand")}},Ry=n(t=>Object.assign(t,{useQueueUrlAsEndpoint:t.useQueueUrlAsEndpoint??!0}),"resolveQueueUrlConfig");function _y({useQueueUrlAsEndpoint:t,endpoint:e}){return(r,s)=>async a=>{let{input:i}=a,o=s.endpointV2;if(!e&&i.QueueUrl&&o&&t){let c=s.logger instanceof He||!s.logger?.warn?console:s.logger;try{let u=new URL(i.QueueUrl),p=new URL(u.origin);o.url.origin!==p.origin&&(c.warn(`QueueUrl=${i.QueueUrl} differs from SQSClient resolved endpoint=${o.url.toString()}, using QueueUrl host as endpoint.
|
|
23
23
|
Set [endpoint=string] or [useQueueUrlAsEndpoint=false] on the SQSClient.`),s.endpointV2={...o,url:p})}catch(u){c.warn(u)}}return r(a)}}n(_y,"queueUrlMiddleware");var Py={name:"queueUrlMiddleware",relation:"after",toMiddleware:"endpointV2Middleware",override:!0},Ty=n(t=>({applyToStack:n(e=>{e.addRelativeTo(_y(t),Py)},"applyToStack")}),"getQueueUrlPlugin"),Ny=n(t=>e=>async r=>{let s=await e({...r});if(t.md5===!1)return s;let a=s.output,i=new t.md5;if(i.update(Le(r.input.MessageBody||"")),a.MD5OfMessageBody!==_e(await i.digest()))throw new Error("InvalidChecksumError");return s},"sendMessageMiddleware"),My={step:"initialize",tags:["VALIDATE_BODY_MD5"],name:"sendMessageMiddleware",override:!0},ky=n(t=>({applyToStack:n(e=>{e.add(Ny(t),My)},"applyToStack")}),"getSendMessagePlugin"),$y=n(async(t,e,r)=>({operation:ze(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSQSHttpAuthSchemeParametersProvider");function Oy(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sqs",region:t.region},propertiesExtractor:n((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}n(Oy,"createAwsAuthSigv4HttpAuthOption");var Dy=n(t=>{let e=[];switch(t.operation){default:e.push(Oy(t))}return e},"defaultSQSHttpAuthSchemeProvider"),Ly=n(t=>{let e=hr(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),Uy=n(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sqs"}),"resolveClientEndpointParameters"),Fy={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},By={name:"@aws-sdk/client-sqs",version:"3.1150.0",description:"AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sqs",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sqs"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:browser":"yarn g:vitest run -c vitest.config.browser.e2e.mts","test:browser:watch":"yarn g:vitest watch -c vitest.config.browser.e2e.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/middleware-sdk-sqs":"^3.972.44","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}},vt="ref",Fe=-1,wr=!0,In="isSet",hc="PartitionResult",Ir="booleanEquals",cs="getAttr",Cn={[vt]:"Endpoint"},us={[vt]:hc},qe={},An=[{[vt]:"Region"}],Rn={conditions:[[In,[Cn]],[In,An],["aws.partition",An,hc],[Ir,[{[vt]:"UseFIPS"},wr]],[Ir,[{[vt]:"UseDualStack"},wr]],[Ir,[{fn:cs,argv:[us,"supportsDualStack"]},wr]],[Ir,[{fn:cs,argv:[us,"supportsFIPS"]},wr]],["stringEquals",[{fn:cs,argv:[us,"name"]},"aws-us-gov"]]],results:[[Fe],[Fe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Fe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Cn,qe],["https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",qe],[Fe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sqs.{Region}.amazonaws.com",qe],["https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}",qe],[Fe,"FIPS is enabled but this partition does not support FIPS"],["https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}",qe],[Fe,"DualStack is enabled but this partition does not support DualStack"],["https://sqs.{Region}.{PartitionResult#dnsSuffix}",qe],[Fe,"Invalid Configuration: Missing Region"]]},zy=2,Hy=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),jy=Ft.from(Hy,zy,Rn.conditions,Rn.results),qy=new Bt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ky=n((t,e={})=>qy.get(t,()=>Ht(jy,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");zt.aws=ur;var $=class vc extends At{static{n(this,"SQSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sqs#SQSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,vc.prototype)}},Vy=class fc extends ${static{n(this,"InvalidAddress")}static shapeId="com.amazonaws.sqs#InvalidAddress";name="InvalidAddress";$fault="client";constructor(e){super({name:"InvalidAddress",$fault:"client",...e}),Object.setPrototypeOf(this,fc.prototype)}},Qy=class gc extends ${static{n(this,"InvalidSecurity")}static shapeId="com.amazonaws.sqs#InvalidSecurity";name="InvalidSecurity";$fault="client";constructor(e){super({name:"InvalidSecurity",$fault:"client",...e}),Object.setPrototypeOf(this,gc.prototype)}},Wy=class yc extends ${static{n(this,"OverLimit")}static shapeId="com.amazonaws.sqs#OverLimit";name="OverLimit";$fault="client";constructor(e){super({name:"OverLimit",$fault:"client",...e}),Object.setPrototypeOf(this,yc.prototype)}},Gy=class Ec extends ${static{n(this,"QueueDoesNotExist")}static shapeId="com.amazonaws.sqs#QueueDoesNotExist";name="QueueDoesNotExist";$fault="client";constructor(e){super({name:"QueueDoesNotExist",$fault:"client",...e}),Object.setPrototypeOf(this,Ec.prototype)}},Xy=class Sc extends ${static{n(this,"RequestThrottled")}static shapeId="com.amazonaws.sqs#RequestThrottled";name="RequestThrottled";$fault="client";constructor(e){super({name:"RequestThrottled",$fault:"client",...e}),Object.setPrototypeOf(this,Sc.prototype)}},Jy=class xc extends ${static{n(this,"UnsupportedOperation")}static shapeId="com.amazonaws.sqs#UnsupportedOperation";name="UnsupportedOperation";$fault="client";constructor(e){super({name:"UnsupportedOperation",$fault:"client",...e}),Object.setPrototypeOf(this,xc.prototype)}},Yy=class bc extends ${static{n(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.sqs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,bc.prototype)}},Zy=class wc extends ${static{n(this,"MessageNotInflight")}static shapeId="com.amazonaws.sqs#MessageNotInflight";name="MessageNotInflight";$fault="client";constructor(e){super({name:"MessageNotInflight",$fault:"client",...e}),Object.setPrototypeOf(this,wc.prototype)}},eE=class Ic extends ${static{n(this,"ReceiptHandleIsInvalid")}static shapeId="com.amazonaws.sqs#ReceiptHandleIsInvalid";name="ReceiptHandleIsInvalid";$fault="client";constructor(e){super({name:"ReceiptHandleIsInvalid",$fault:"client",...e}),Object.setPrototypeOf(this,Ic.prototype)}},tE=class Cc extends ${static{n(this,"BatchEntryIdsNotDistinct")}static shapeId="com.amazonaws.sqs#BatchEntryIdsNotDistinct";name="BatchEntryIdsNotDistinct";$fault="client";constructor(e){super({name:"BatchEntryIdsNotDistinct",$fault:"client",...e}),Object.setPrototypeOf(this,Cc.prototype)}},rE=class Ac extends ${static{n(this,"EmptyBatchRequest")}static shapeId="com.amazonaws.sqs#EmptyBatchRequest";name="EmptyBatchRequest";$fault="client";constructor(e){super({name:"EmptyBatchRequest",$fault:"client",...e}),Object.setPrototypeOf(this,Ac.prototype)}},sE=class Rc extends ${static{n(this,"InvalidBatchEntryId")}static shapeId="com.amazonaws.sqs#InvalidBatchEntryId";name="InvalidBatchEntryId";$fault="client";constructor(e){super({name:"InvalidBatchEntryId",$fault:"client",...e}),Object.setPrototypeOf(this,Rc.prototype)}},aE=class _c extends ${static{n(this,"TooManyEntriesInBatchRequest")}static shapeId="com.amazonaws.sqs#TooManyEntriesInBatchRequest";name="TooManyEntriesInBatchRequest";$fault="client";constructor(e){super({name:"TooManyEntriesInBatchRequest",$fault:"client",...e}),Object.setPrototypeOf(this,_c.prototype)}},nE=class Pc extends ${static{n(this,"InvalidAttributeName")}static shapeId="com.amazonaws.sqs#InvalidAttributeName";name="InvalidAttributeName";$fault="client";constructor(e){super({name:"InvalidAttributeName",$fault:"client",...e}),Object.setPrototypeOf(this,Pc.prototype)}},iE=class Tc extends ${static{n(this,"InvalidAttributeValue")}static shapeId="com.amazonaws.sqs#InvalidAttributeValue";name="InvalidAttributeValue";$fault="client";constructor(e){super({name:"InvalidAttributeValue",$fault:"client",...e}),Object.setPrototypeOf(this,Tc.prototype)}},oE=class Nc extends ${static{n(this,"QueueDeletedRecently")}static shapeId="com.amazonaws.sqs#QueueDeletedRecently";name="QueueDeletedRecently";$fault="client";constructor(e){super({name:"QueueDeletedRecently",$fault:"client",...e}),Object.setPrototypeOf(this,Nc.prototype)}},cE=class Mc extends ${static{n(this,"QueueNameExists")}static shapeId="com.amazonaws.sqs#QueueNameExists";name="QueueNameExists";$fault="client";constructor(e){super({name:"QueueNameExists",$fault:"client",...e}),Object.setPrototypeOf(this,Mc.prototype)}},uE=class kc extends ${static{n(this,"InvalidIdFormat")}static shapeId="com.amazonaws.sqs#InvalidIdFormat";name="InvalidIdFormat";$fault="client";constructor(e){super({name:"InvalidIdFormat",$fault:"client",...e}),Object.setPrototypeOf(this,kc.prototype)}},dE=class $c extends ${static{n(this,"PurgeQueueInProgress")}static shapeId="com.amazonaws.sqs#PurgeQueueInProgress";name="PurgeQueueInProgress";$fault="client";constructor(e){super({name:"PurgeQueueInProgress",$fault:"client",...e}),Object.setPrototypeOf(this,$c.prototype)}},lE=class Oc extends ${static{n(this,"KmsAccessDenied")}static shapeId="com.amazonaws.sqs#KmsAccessDenied";name="KmsAccessDenied";$fault="client";constructor(e){super({name:"KmsAccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,Oc.prototype)}},pE=class Dc extends ${static{n(this,"KmsDisabled")}static shapeId="com.amazonaws.sqs#KmsDisabled";name="KmsDisabled";$fault="client";constructor(e){super({name:"KmsDisabled",$fault:"client",...e}),Object.setPrototypeOf(this,Dc.prototype)}},mE=class Lc extends ${static{n(this,"KmsInvalidKeyUsage")}static shapeId="com.amazonaws.sqs#KmsInvalidKeyUsage";name="KmsInvalidKeyUsage";$fault="client";constructor(e){super({name:"KmsInvalidKeyUsage",$fault:"client",...e}),Object.setPrototypeOf(this,Lc.prototype)}},hE=class Uc extends ${static{n(this,"KmsInvalidState")}static shapeId="com.amazonaws.sqs#KmsInvalidState";name="KmsInvalidState";$fault="client";constructor(e){super({name:"KmsInvalidState",$fault:"client",...e}),Object.setPrototypeOf(this,Uc.prototype)}},vE=class Fc extends ${static{n(this,"KmsNotFound")}static shapeId="com.amazonaws.sqs#KmsNotFound";name="KmsNotFound";$fault="client";constructor(e){super({name:"KmsNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,Fc.prototype)}},fE=class Bc extends ${static{n(this,"KmsOptInRequired")}static shapeId="com.amazonaws.sqs#KmsOptInRequired";name="KmsOptInRequired";$fault="client";constructor(e){super({name:"KmsOptInRequired",$fault:"client",...e}),Object.setPrototypeOf(this,Bc.prototype)}},gE=class zc extends ${static{n(this,"KmsThrottled")}static shapeId="com.amazonaws.sqs#KmsThrottled";name="KmsThrottled";$fault="client";constructor(e){super({name:"KmsThrottled",$fault:"client",...e}),Object.setPrototypeOf(this,zc.prototype)}},yE=class Hc extends ${static{n(this,"InvalidMessageContents")}static shapeId="com.amazonaws.sqs#InvalidMessageContents";name="InvalidMessageContents";$fault="client";constructor(e){super({name:"InvalidMessageContents",$fault:"client",...e}),Object.setPrototypeOf(this,Hc.prototype)}},EE=class jc extends ${static{n(this,"BatchRequestTooLong")}static shapeId="com.amazonaws.sqs#BatchRequestTooLong";name="BatchRequestTooLong";$fault="client";constructor(e){super({name:"BatchRequestTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,jc.prototype)}},SE="BatchEntryIdsNotDistinct",xE="BinaryList",qc="BinaryListValues",_s="BinaryListValue",bE="BatchRequestTooLong",Kc="BinaryValue",wE="DelaySeconds",Vc="DataType",IE="EmptyBatchRequest",CE="InvalidAddress",AE="InvalidAttributeName",RE="InvalidAttributeValue",_E="InvalidBatchEntryId",PE="InvalidIdFormat",TE="InvalidMessageContents",NE="InvalidSecurity",ME="KmsAccessDenied",kE="KmsDisabled",$E="KmsInvalidKeyUsage",OE="KmsInvalidState",DE="KmsNotFound",LE="KmsOptInRequired",UE="KmsThrottled",FE="MessageAttributes",BE="MessageAttributeValue",zE="MessageAttribute",HE="MessageBody",jE="MessageBodyAttributeMap",qE="MessageBodySystemAttributeMap",KE="MessageDeduplicationId",VE="MD5OfMessageAttributes",QE="MD5OfMessageBody",WE="MD5OfMessageSystemAttributes",GE="MessageGroupId",XE="MessageId",JE="MessageNotInflight",YE="MessageSystemAttributes",ZE="MessageSystemAttributeValue",eS="MessageSystemAttribute",Qc="Name",tS="OverLimit",rS="PurgeQueueInProgress",sS="QueueDoesNotExist",aS="QueueDeletedRecently",nS="QueueNameExists",iS="QueueUrl",oS="ReceiptHandleIsInvalid",cS="ResourceNotFoundException",uS="RequestThrottled",dS="StringList",Wc="StringListValues",Ps="StringListValue",lS="SendMessage",pS="SendMessageRequest",mS="SendMessageResult",hS="SequenceNumber",Gc="StringValue",vS="TooManyEntriesInBatchRequest",fS="UnsupportedOperation",Xc="Value",j="awsQueryError",D="client",L="error",q="httpError",z="message",Jc="smithy.ts.sdk.synthetic.com.amazonaws.sqs",Ge="xmlFlattened",fe="xmlName",A="com.amazonaws.sqs",Yc=new Pe(Jc),gS=[-3,Jc,"SQSServiceException",0,[],[]];Yc.registerError(gS,$);var O=new Pe(A),yS=[-3,A,SE,{[j]:["AWS.SimpleQueueService.BatchEntryIdsNotDistinct",400],[L]:D,[q]:400},[z],[0]];O.registerError(yS,tE);var ES=[-3,A,bE,{[j]:["AWS.SimpleQueueService.BatchRequestTooLong",400],[L]:D,[q]:400},[z],[0]];O.registerError(ES,EE);var SS=[-3,A,IE,{[j]:["AWS.SimpleQueueService.EmptyBatchRequest",400],[L]:D,[q]:400},[z],[0]];O.registerError(SS,rE);var xS=[-3,A,CE,{[j]:["InvalidAddress",404],[L]:D,[q]:404},[z],[0]];O.registerError(xS,Vy);var bS=[-3,A,AE,{[L]:D},[z],[0]];O.registerError(bS,nE);var wS=[-3,A,RE,{[L]:D},[z],[0]];O.registerError(wS,iE);var IS=[-3,A,_E,{[j]:["AWS.SimpleQueueService.InvalidBatchEntryId",400],[L]:D,[q]:400},[z],[0]];O.registerError(IS,sE);var CS=[-3,A,PE,{[L]:D},[],[]];O.registerError(CS,uE);var AS=[-3,A,TE,{[L]:D},[z],[0]];O.registerError(AS,yE);var RS=[-3,A,NE,{[j]:["InvalidSecurity",403],[L]:D,[q]:403},[z],[0]];O.registerError(RS,Qy);var _S=[-3,A,ME,{[j]:["KMS.AccessDeniedException",400],[L]:D,[q]:400},[z],[0]];O.registerError(_S,lE);var PS=[-3,A,kE,{[j]:["KMS.DisabledException",400],[L]:D,[q]:400},[z],[0]];O.registerError(PS,pE);var TS=[-3,A,$E,{[j]:["KMS.InvalidKeyUsageException",400],[L]:D,[q]:400},[z],[0]];O.registerError(TS,mE);var NS=[-3,A,OE,{[j]:["KMS.InvalidStateException",400],[L]:D,[q]:400},[z],[0]];O.registerError(NS,hE);var MS=[-3,A,DE,{[j]:["KMS.NotFoundException",400],[L]:D,[q]:400},[z],[0]];O.registerError(MS,vE);var kS=[-3,A,LE,{[j]:["KMS.OptInRequired",403],[L]:D,[q]:403},[z],[0]];O.registerError(kS,fE);var $S=[-3,A,UE,{[j]:["KMS.ThrottlingException",400],[L]:D,[q]:400},[z],[0]];O.registerError($S,gE);var OS=[-3,A,JE,{[j]:["AWS.SimpleQueueService.MessageNotInflight",400],[L]:D,[q]:400},[],[]];O.registerError(OS,Zy);var DS=[-3,A,tS,{[j]:["OverLimit",403],[L]:D,[q]:403},[z],[0]];O.registerError(DS,Wy);var LS=[-3,A,rS,{[j]:["AWS.SimpleQueueService.PurgeQueueInProgress",403],[L]:D,[q]:403},[z],[0]];O.registerError(LS,dE);var US=[-3,A,aS,{[j]:["AWS.SimpleQueueService.QueueDeletedRecently",400],[L]:D,[q]:400},[z],[0]];O.registerError(US,oE);var FS=[-3,A,sS,{[j]:["AWS.SimpleQueueService.NonExistentQueue",400],[L]:D,[q]:400},[z],[0]];O.registerError(FS,Gy);var BS=[-3,A,nS,{[j]:["QueueAlreadyExists",400],[L]:D,[q]:400},[z],[0]];O.registerError(BS,cE);var zS=[-3,A,oS,{[j]:["ReceiptHandleIsInvalid",404],[L]:D,[q]:404},[z],[0]];O.registerError(zS,eE);var HS=[-3,A,uS,{[j]:["RequestThrottled",403],[L]:D,[q]:403},[z],[0]];O.registerError(HS,Xy);var jS=[-3,A,cS,{[j]:["ResourceNotFoundException",404],[L]:D,[q]:404},[z],[0]];O.registerError(jS,Yy);var qS=[-3,A,vS,{[j]:["AWS.SimpleQueueService.TooManyEntriesInBatchRequest",400],[L]:D,[q]:400},[z],[0]];O.registerError(qS,aE);var KS=[-3,A,fS,{[j]:["AWS.SimpleQueueService.UnsupportedOperation",400],[L]:D,[q]:400},[z],[0]];O.registerError(KS,Jy);var VS=[Yc,O],QS=[3,A,BE,0,[Vc,Gc,Kc,Wc,qc],[0,0,21,[()=>e0,{[Ge]:1,[fe]:Ps}],[()=>Zc,{[Ge]:1,[fe]:_s}]],1],WS=[3,A,ZE,0,[Vc,Gc,Kc,Wc,qc],[0,0,21,[()=>e0,{[Ge]:1,[fe]:Ps}],[()=>Zc,{[Ge]:1,[fe]:_s}]],1],GS=[3,A,pS,0,[iS,HE,wE,FE,YE,KE,GE],[0,0,1,[()=>JS,{[Ge]:1,[fe]:zE}],[()=>YS,{[Ge]:1,[fe]:eS}],0,0],2],XS=[3,A,mS,0,[QE,VE,WE,XE,hS],[0,0,0,0,0]],Zc=[1,A,xE,0,[21,{[fe]:_s}]],e0=[1,A,dS,0,[0,{[fe]:Ps}]],JS=[2,A,jE,0,[0,{[fe]:Qc}],[()=>QS,{[fe]:Xc}]],YS=[2,A,qE,0,[0,{[fe]:Qc}],[()=>WS,{[fe]:Xc}]],ZS=[9,A,lS,0,()=>GS,()=>XS],e1=n(t=>({apiVersion:"2012-11-05",base64Decoder:t?.base64Decoder??rt,base64Encoder:t?.base64Encoder??je,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ky,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Dy,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pr}],logger:t?.logger??new He,md5:t?.md5??kn,protocol:t?.protocol??x0,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sqs",errorTypeRegistries:VS,version:"2012-11-05",serviceTarget:"AmazonSQS",awsQueryCompatible:!0},serviceId:t?.serviceId??"SQS",sha256:t?.sha256??vr,urlParser:t?.urlParser??bt,utf8Decoder:t?.utf8Decoder??et,utf8Encoder:t?.utf8Encoder??tt}),"getRuntimeConfig$1"),t1=n(t=>{_t(process.version);let e=Ut(t),r=n(()=>e().then(Rt),"defaultConfigProvider"),s=e1(t);wt(process.version);let a={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??U(mr,a),bodyLengthChecker:t?.bodyLengthChecker??Mt,credentialDefaultProvider:t?.credentialDefaultProvider??ws,defaultUserAgentProvider:t?.defaultUserAgentProvider??or({serviceId:s.serviceId,clientVersion:By.version}),maxAttempts:t?.maxAttempts??U(Gt,t),region:t?.region??U(Ot,{...Dt,...a}),requestHandler:xt.create(t?.requestHandler??r),retryMode:t?.retryMode??U({...Jt,default:n(async()=>(await r()).retryMode||Wt,"default")},t),streamCollector:t?.streamCollector??St,useDualstackEndpoint:t?.useDualstackEndpoint??U(kt,a),useFipsEndpoint:t?.useFipsEndpoint??U($t,a),userAgentAppId:t?.userAgentAppId??U(cr,a)}},"getRuntimeConfig"),r1=n(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(a){let i=e.findIndex(o=>o.schemeId===a.schemeId);i===-1?e.push(a):e.splice(i,1,a)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(a){r=a},httpAuthSchemeProvider(){return r},setCredentials(a){s=a},credentials(){return s}}},"getHttpAuthExtensionConfiguration"),s1=n(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),a1=n((t,e)=>{let r=Object.assign(dr(t),Pt(t),Kt(t),r1(t));return e.forEach(s=>s.configure(r)),Object.assign(t,lr(r),Tt(r),Vt(r),s1(r))},"resolveRuntimeExtensions"),n1=class extends It{static{n(this,"SQSClient")}config;constructor(...[t]){let e=t1(t||{});super(e),this.initConfig=e;let r=Uy(e),s=nr(r),a=Xt(s),i=Lt(a),o=i,c=a1(Ly(Ry(jt(o))),t?.extensions||[]);this.config=c,this.middlewareStack.use(Ct(this.config)),this.middlewareStack.use(ir(this.config)),this.middlewareStack.use(Yt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Zt(this.config)),this.middlewareStack.use(er(this.config)),this.middlewareStack.use(tr(this.config)),this.middlewareStack.use(Ty(this.config)),this.middlewareStack.use(rr(this.config,{httpAuthSchemeParametersProvider:$y,identityProviderConfigProvider:n(async u=>new ar({"aws.auth#sigv4":u.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(sr(this.config))}destroy(){super.destroy()}},i1=Nt(Fy,"AmazonSQS","SQSClient",qt),o1={},c1=n((t,e,r,s)=>[ky(r)],"_mw3"),u1=class extends i1(o1,c1,"SendMessage",ZS){static{n(this,"SendMessageCommand")}},_n="It seems that Emails service has not been set up correctly. Please make sure you've used official CDK construct and that you've granted access to your labmda function.",d1=de({BEESOLVE_EMAILS_QUEUE_URL:Lr(re(),{message:_n}),BEESOLVE_EMAILS_ATTACHMENTS_BUCKET:Lr(re(),{message:_n})}),Pn=Fr(d1,process.env),l1=new Cy,p1=new n1({}),m1=class{static{n(this,"Email")}props;s3Client;sqsClient;constructor(t={}){this.props=t,this.s3Client=t.s3Client??l1,this.sqsClient=t.sqsClient??p1}sendEmail=n(async t=>{let e=ba(32).toString("base64url"),{attachments:r,...s}=t,a=r?await i0(async()=>Promise.all(r.map(async i=>{if(i.type==="public")return i;if(i.type==="s3"){let o=ba(32).toString("base64url"),{body:c,...u}=i;return await this.s3Client.send(new Ay({Bucket:Pn.BEESOLVE_EMAILS_ATTACHMENTS_BUCKET,Key:o,Body:c})),{...u,fileId:o}}n0(i)}))):void 0;return await this.sqsClient.send(new u1({QueueUrl:Pn.BEESOLVE_EMAILS_QUEUE_URL,MessageBody:JSON.stringify({id:e,...s,attachments:a})})),{requestId:e}},"sendEmail")},h1=class{static{n(this,"Setup")}props;constructor(t){this.props=t}isComplete=n(async()=>{let{Item:t}=await this.props.dynamo.send(new qs({TableName:this.props.tableName,Key:{pk:"system#config",sk:"setup"}}));return t!=null},"isComplete");markComplete=n(async({adminEmail:t})=>{await this.props.dynamo.send(new Ks({TableName:this.props.tableName,Item:{pk:"system#config",sk:"setup",completedAt:new Date().toISOString(),adminEmail:t},ConditionExpression:"attribute_not_exists(pk) AND attribute_not_exists(sk)"}))},"markComplete")},Xe=Vs.from(new js,{marshallOptions:{removeUndefinedValues:!0,convertEmptyValues:!1}}),v1=new Xs({dynamo:Xe,tableName:_r,reverseIndexName:On}),f1=new Ws({dynamo:Xe,tableName:_r,reverseIndexName:On}),g1=new Gs({dynamo:Xe,tableName:_r}),y1=new Qs({dynamo:Xe,tableName:_r}),Tn=new xa({dynamo:Xe,tableName:Dn,reverseIndexName:B0}),E1=new h1({dynamo:Xe,tableName:Dn}),S1=new bm,x1=new m1,b1=new Set(["/sign-in","/sign-in/verify","/setup"]),w1=n(async({event:t,resolve:e})=>{t.locals.services={totals:v1,breakdowns:f1,config:g1,markers:y1,users:Tn,setup:E1,authClient:S1,email:x1};let r=b1.has(t.url.pathname);if(t.locals.session.type!=="valid"&&!r&&Fs(303,"/sign-in"),t.locals.session.type==="valid"&&!r)try{let s=await Tn.getByEmail({email:t.locals.session.validSession.userId});t.locals.user={email:s.email,type:s.type,domains:s.domains}}catch{t.locals.user=null}else t.locals.user=null;return e(t)},"authGuard");process.env.DEV_USER_EMAIL;var ox=qr(Tm({fallbackSession:void 0}),w1);export{Qr as a,z0 as b,eu as c,tu as d,ru as e,su as f,au as g,nu as h,iu as i,ou as j,cu as k,Un as l,Fn as m,nx as n,ox as o};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-EDVCNAY4.js.map
|