@stacksjs/buddy 0.70.2 → 0.70.3

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.
Files changed (45) hide show
  1. package/dist/chunk-03ymr2cw.js +3 -0
  2. package/dist/{chunk-5eh2tfep.js → chunk-0fgzbrz9.js} +2 -2
  3. package/dist/chunk-0khc6tza.js +2 -0
  4. package/dist/{chunk-5x7y4ng3.js → chunk-2q3mcqfe.js} +1 -1
  5. package/dist/chunk-301er4b5.js +6 -0
  6. package/dist/{chunk-7mjm5rg8.js → chunk-345bdf4a.js} +2 -2
  7. package/dist/chunk-3f7fcm7g.js +3 -0
  8. package/dist/{chunk-bgqy98qw.js → chunk-71cavm44.js} +2 -2
  9. package/dist/{chunk-8acb2bq0.js → chunk-7t0ysgm2.js} +1 -1
  10. package/dist/chunk-8aafqzex.js +2 -0
  11. package/dist/{chunk-0wbbhj1f.js → chunk-966n174t.js} +381 -381
  12. package/dist/chunk-bjcpc2fx.js +2 -0
  13. package/dist/{chunk-tx5yb9wb.js → chunk-fbrv75rg.js} +1 -1
  14. package/dist/chunk-fqsv3t0n.js +2 -0
  15. package/dist/chunk-jfawek76.js +2 -0
  16. package/dist/chunk-kvbqhdsx.js +2 -0
  17. package/dist/chunk-nxggmsrw.js +3 -0
  18. package/dist/chunk-pq7ppnwe.js +5 -0
  19. package/dist/{chunk-pnr51281.js → chunk-pz29bmgq.js} +1 -1
  20. package/dist/{chunk-ks9kq37e.js → chunk-rhdqf1fg.js} +1 -1
  21. package/dist/chunk-tanrsj9k.js +2 -0
  22. package/dist/{chunk-2pj0cr49.js → chunk-tkegy5p0.js} +1 -1
  23. package/dist/{chunk-ww48v0ap.js → chunk-twkarr5s.js} +2 -2
  24. package/dist/chunk-w7sdm1re.js +2 -0
  25. package/dist/chunk-wemxm45h.js +2 -0
  26. package/dist/chunk-xf02hg29.js +25 -0
  27. package/dist/{chunk-yv49ttdw.js → chunk-ztm93vkv.js} +1 -1
  28. package/dist/cli.js +1 -1
  29. package/dist/index.js +1 -1
  30. package/package.json +45 -45
  31. package/dist/chunk-1vaz8fbz.js +0 -6
  32. package/dist/chunk-1zz448cs.js +0 -2
  33. package/dist/chunk-2xrqj8ap.js +0 -2
  34. package/dist/chunk-5vhayxpk.js +0 -25
  35. package/dist/chunk-5yawz4bx.js +0 -2
  36. package/dist/chunk-9gzvq5jq.js +0 -2
  37. package/dist/chunk-afqas5yf.js +0 -5
  38. package/dist/chunk-e1kefb68.js +0 -2
  39. package/dist/chunk-j3bhtk0d.js +0 -3
  40. package/dist/chunk-mzgfvbmm.js +0 -2
  41. package/dist/chunk-r0recaya.js +0 -1
  42. package/dist/chunk-v3a5yzn6.js +0 -3
  43. package/dist/chunk-vrd8j1ky.js +0 -3
  44. package/dist/chunk-yatzvt36.js +0 -2
  45. package/dist/chunk-z80nypa9.js +0 -1
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{Fb as z,Gb as P}from"./chunk-kvbqhdsx.js";import"./chunk-7t0ysgm2.js";import"./chunk-0fgzbrz9.js";import{Mc as D}from"./chunk-wemxm45h.js";import{Nc as _}from"./chunk-tkegy5p0.js";var m=_(D(),1);import{parse as o}from"url";var K=_(D(),1);import{Buffer as a}from"buffer";import{request as n}from"http";function u(c){return new Promise((I,x)=>{let T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new K.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new K.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{let{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new K.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();let E=[];N.on("data",(y)=>{E.push(y)}),N.on("end",()=>{I(a.concat(E)),T.destroy()})}),T.end()})}var G=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",Q=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var uc=1000,Ec=0,X=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var f=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var v="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",Kc=(c={})=>{let{timeout:I,maxRetries:x}=X(c);return()=>f(async()=>{let T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!G(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return Q(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await u({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[v]){let I=o(process.env[v]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${L} or ${v} environment variable is set`,{tryNextLink:!1,logger:c})};var q=_(D(),1);var U=_(D(),1);class Z extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,Z.prototype)}}var A;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(A||(A={}));var t={environmentVariableSelector:(c)=>c.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(c)=>c.ec2_metadata_service_endpoint,default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>z(t)(),Ic=async()=>{let c=await z(F)();switch(c){case S.IPv4:return A.IPv4;case S.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}. Select from ${Object.values(S)}`)}};var b=(c,I)=>{let x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(T)}.
3
+ For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var V=(c,I={})=>{let x=I?.logger||console,T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=b(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=b(T,x);else throw O}return T=N,N}};var k="/latest/meta-data/iam/security-credentials/",Tc="/latest/api/token",H="AWS_EC2_METADATA_V1_DISABLED",R="ec2_metadata_v1_disabled",M="x-aws-ec2-metadata-token",oc=(c={})=>V(Nc(c),{logger:c.logger}),Nc=(c={})=>{let I=!1,{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=X(c),E=async(y,$)=>{if(I||$.headers?.[M]==null){let w=!1,h=!1,C=await z({environmentVariableSelector:(Y)=>{let j=Y[H];if(h=!!j&&j!=="false",j===void 0)throw new q.CredentialsProviderError(`${H} not set in env, checking config file next.`,{logger:c.logger});return h},configFileSelector:(Y)=>{let j=Y[R];return w=!!j&&j!=="false",w},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||C){let Y=[];if(c.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(w)Y.push(`config file profile (${R})`);if(h)Y.push(`process environment variable (${H})`);throw new Z(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let p=(await f(async()=>{let w;try{w=await Oc($)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)).trim();return f(async()=>{let w;try{w=await yc(p,$,c)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)};return async()=>{let y=await W();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(O,{...y,timeout:N});else{let $;try{$=(await xc({...y,timeout:N})).toString()}catch(J){if(J?.statusCode===400)throw Object.assign(J,{message:"EC2 Metadata token request returned error"});else if(J.message==="TimeoutError"||[403,404,405].includes(J.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(O,{...y,timeout:N})}return E(O,{...y,headers:{[M]:$},timeout:N})}}},xc=async(c)=>u({...c,path:Tc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Oc=async(c)=>(await u({...c,path:k})).toString(),yc=async(c,I,x)=>{let T=JSON.parse((await u({...I,path:k+c})).toString());if(!G(T))throw new q.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:x.logger});return Q(T)};export{X as providerConfigFromInit,u as httpRequest,W as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,Kc as fromContainerMetadata,A as Endpoint,L as ENV_CMDS_RELATIVE_URI,v as ENV_CMDS_FULL_URI,B as ENV_CMDS_AUTH_TOKEN,uc as DEFAULT_TIMEOUT,Ec as DEFAULT_MAX_RETRIES};
@@ -1,2 +1,2 @@
1
- import{Tc as D}from"./chunk-2pj0cr49.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{let j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{let j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
- export{S as Gc};
1
+ import{Pc as D}from"./chunk-tkegy5p0.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{let j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{let j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
+ export{S as Hc};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ac as E,Gc as v}from"./chunk-7t0ysgm2.js";import"./chunk-0fgzbrz9.js";import{Lc as O}from"./chunk-71cavm44.js";import{Mc as $}from"./chunk-wemxm45h.js";import{Nc as k,Sc as C}from"./chunk-tkegy5p0.js";var u=k($(),1);var q=k(O(),1),z=k($(),1);var U=k(O(),1),j=k($(),1),V=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-301er4b5.js"),{fromContainerMetadata:A}=await import("./chunk-03ymr2cw.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>j.chain(x(b??{}),A(b))().then(R)},Ec2InstanceMetadata:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:x}=await import("./chunk-03ymr2cw.js");return async()=>x(b)().then(R)},Environment:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:x}=await import("./chunk-fqsv3t0n.js");return async()=>x(b)().then(R)}};if(y in I)return I[y];else throw new j.CredentialsProviderError(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},R=(y)=>U.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var X=(y,{profile:w="default",logger:_}={})=>{return Boolean(y)&&typeof y==="object"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1&&["undefined","string"].indexOf(typeof y.external_id)>-1&&["undefined","string"].indexOf(typeof y.mfa_serial)>-1&&(d(y,{profile:w,logger:_})||n(y,{profile:w,logger:_}))},d=(y,{profile:w,logger:_})=>{let I=typeof y.source_profile==="string"&&typeof y.credential_source==="undefined";if(I)_?.debug?.(` ${w} isAssumeRoleWithSourceProfile source_profile=${y.source_profile}`);return I},n=(y,{profile:w,logger:_})=>{let I=typeof y.credential_source==="string"&&typeof y.source_profile==="undefined";if(I)_?.debug?.(` ${w} isCredentialSourceProfile credential_source=${y.credential_source}`);return I},Y=async(y,w,_,I={})=>{_.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let b=w[y],{source_profile:x,region:A}=b;if(!_.roleAssumer){let{getDefaultRoleAssumer:K}=await import("./chunk-8aafqzex.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:{..._?.parentClientConfig,region:A??_?.parentClientConfig?.region}},_.clientPlugins)}if(x&&x in I)throw new z.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${E(_)}. Profiles visited: `+Object.keys(I).join(", "),{logger:_.logger});_.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${x?`source_profile=[${x}]`:`profile=[${y}]`}`);let T=x?L(x,w,_,{...I,[x]:!0},W(w[x]??{})):(await V(b.credential_source,y,_.logger)(_))();if(W(b))return T.then((K)=>q.setCredentialFeature(K,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let K={RoleArn:b.role_arn,RoleSessionName:b.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:b.external_id,DurationSeconds:parseInt(b.duration_seconds||"3600",10)},{mfa_serial:B}=b;if(B){if(!_.mfaCodeProvider)throw new z.CredentialsProviderError(`Profile ${y} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:_.logger,tryNextLink:!1});K.SerialNumber=B,K.TokenCode=await _.mfaCodeProvider(B)}let P=await T;return _.roleAssumer(P,K).then((N)=>q.setCredentialFeature(N,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},W=(y)=>{return!y.role_arn&&!!y.credential_source};var Z=k(O(),1),H=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",c=async(y,w)=>import("./chunk-w7sdm1re.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>Z.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var G=k(O(),1),S=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-nxggmsrw.js");return I({profile:y,logger:_.logger,parentClientConfig:_.parentClientConfig,clientConfig:_.clientConfig})().then((b)=>{if(w.sso_session)return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},F=(y)=>y&&(typeof y.sso_start_url==="string"||typeof y.sso_account_id==="string"||typeof y.sso_session==="string"||typeof y.sso_region==="string"||typeof y.sso_role_name==="string");var M=k(O(),1),J=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.aws_access_key_id==="string"&&typeof y.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof y.aws_session_token)>-1&&["undefined","string"].indexOf(typeof y.aws_account_id)>-1,Q=async(y,w)=>{w?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let _={accessKeyId:y.aws_access_key_id,secretAccessKey:y.aws_secret_access_key,sessionToken:y.aws_session_token,...y.aws_credential_scope&&{credentialScope:y.aws_credential_scope},...y.aws_account_id&&{accountId:y.aws_account_id}};return M.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var h=k(O(),1),D=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.web_identity_token_file==="string"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1,m=async(y,w)=>import("./chunk-jfawek76.js").then(({fromTokenFile:_})=>_({webIdentityTokenFile:y.web_identity_token_file,roleArn:y.role_arn,roleSessionName:y.role_session_name,roleAssumerWithWebIdentity:w.roleAssumerWithWebIdentity,logger:w.logger,parentClientConfig:w.parentClientConfig})().then((I)=>h.setCredentialFeature(I,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var L=async(y,w,_,I={},b=!1)=>{let x=w[y];if(Object.keys(I).length>0&&J(x))return Q(x,_);if(b||X(x,{profile:y,logger:_.logger}))return Y(y,w,_,I);if(J(x))return Q(x,_);if(D(x))return m(x,_);if(H(x))return c(_,y);if(F(x))return await S(y,x,_);throw new u.CredentialsProviderError(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var ky=(y={})=>async({callerClientConfig:w}={})=>{let _={...y,parentClientConfig:{...w,...y.parentClientConfig}};_.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let I=await v(_);return L(E({profile:y.profile??w?.profile}),I,_)};export{ky as fromIni};
@@ -1,4 +1,4 @@
1
- import{Rc as QZ,Tc as ZZ}from"./chunk-2pj0cr49.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
1
+ import{Nc as QZ,Pc as ZZ}from"./chunk-tkegy5p0.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
2
2
  `),Z=z.filter((j)=>/^\t+/.test(j)),O=z.filter((j)=>/^ {2,}/.test(j));if(Z.length===0&&O.length===0)return null;if(Z.length>=O.length)return"\t";let Q=O.reduce((j,H)=>{let $=/^ +/.exec(H)[0].length;return Math.min($,j)},1/0);return new Array(Q+1).join(" ")}function o_(_,z){let Z=_.split(/[/\\]/),O=z.split(/[/\\]/);Z.pop();while(Z[0]===O[0])Z.shift(),O.shift();if(Z.length){let Q=Z.length;while(Q--)Z[Q]=".."}return Z.concat(O).join("/")}var n_=Object.prototype.toString;function r_(_){return n_.call(_)==="[object Object]"}function O2(_){let z=_.split(`
3
3
  `),Z=[];for(let O=0,Q=0;O<z.length;O++)Z.push(Q),Q+=z[O].length+1;return function O(Q){let j=0,H=Z.length;while(j<H){let W=j+H>>1;if(Q<Z[W])H=W;else j=W+1}let $=j-1,K=Q-Z[$];return{line:$,column:K}}}var s_=/\w/;class j2{constructor(_){this.hires=_,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(_,z,Z,O){if(z.length){let Q=z.length-1,j=z.indexOf(`
4
4
  `,0),H=-1;while(j>=0&&Q>j){let K=[this.generatedCodeColumn,_,Z.line,Z.column];if(O>=0)K.push(O);this.rawSegments.push(K),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=j,j=z.indexOf(`
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ import{Jb as g,Sb as w,fc as x}from"./chunk-pq7ppnwe.js";import{xc as b}from"./chunk-twkarr5s.js";import"./chunk-0fgzbrz9.js";import{Lc as v}from"./chunk-71cavm44.js";import{Mc as i}from"./chunk-wemxm45h.js";import{Nc as n}from"./chunk-tkegy5p0.js";var E=n(v(),1);var d=n(i(),1);import _ from"fs/promises";var C=n(i(),1);var u="169.254.170.2",A="169.254.170.23",O="[fd00:ec2::23]",S=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===u||e.hostname===A||e.hostname===O)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
4
+ - ECS container host 169.254.170.2
5
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:a})};var o=n(i(),1);var I=n(b(),1);function P(e){return new g({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((a,[c,r])=>{return a[c]=r,a},{}),fragment:e.hash})}async function K(e,a){let r=await I.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new o.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:a});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:w(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a}),{Code:t.Code,Message:t.Message})}throw new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a})}var T=(e,a,c)=>{return async()=>{for(let r=0;r<a;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,c))}return await e()}};var B="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",D="http://169.254.170.2",M="AWS_CONTAINER_CREDENTIALS_FULL_URI",N="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",j="AWS_CONTAINER_AUTHORIZATION_TOKEN",H=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let a,c=e.awsContainerCredentialsRelativeUri??process.env[B],r=e.awsContainerCredentialsFullUri??process.env[M],t=e.awsContainerAuthorizationToken??process.env[j],s=e.awsContainerAuthorizationTokenFile??process.env[N],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(c&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)a=r;else if(c)a=`${D}${c}`;else throw new d.CredentialsProviderError(`No HTTP credential provider host provided.
6
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let y=new URL(a);S(y,e.logger);let R=new x({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return T(async()=>{let f=P(y);if(t)f.headers.Authorization=t;else if(s)f.headers.Authorization=(await _.readFile(s)).toString();try{let h=await R.handle(f);return K(h.response).then((p)=>E.setCredentialFeature(p,"CREDENTIALS_HTTP","z"))}catch(h){throw new d.CredentialsProviderError(String(h),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{H as fromHttp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-5x7y4ng3.js";import{Ca as l8}from"./chunk-ks9kq37e.js";import{Rc as _1,Tc as E,Wc as R}from"./chunk-2pj0cr49.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("os"),Ay=R("path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
2
+ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-2q3mcqfe.js";import{Ca as l8}from"./chunk-rhdqf1fg.js";import{Nc as _1,Pc as E,Sc as R}from"./chunk-tkegy5p0.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("os"),Ay=R("path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
3
3
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
4
4
  *
5
5
  * Copyright (c) 2014-2016, Jon Schlinkert.
@@ -31,5 +31,5 @@ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J
31
31
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
32
32
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`
33
33
  `+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
34
- `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"module";import J9,{dirname as E9,win32 as H8,join as z9}from"path";import _0 from"process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-tx5yb9wb.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
34
+ `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"module";import J9,{dirname as E9,win32 as H8,join as z9}from"path";import _0 from"process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-fbrv75rg.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
35
35
  ${L0(B,$)}`;for(let W of _.addons)V=await W.declaration?.call(_,V,$)??V;return V}async function h(q,$=!0){let C=await h1(q,$);return await _.modifyDynamicImports((j)=>j.filter((V)=>V.from!==q).concat(C)),C}async function S(q=_.options.dirs||[],$=_.options.dirsScanOptions){let C=await Ey(q,$),j=new Set(C.map((V)=>V.from));return await _.modifyDynamicImports((V)=>V.filter((B)=>!j.has(B.from)).concat(C)),C}async function y(q,$,C){let j=await H6(q,$,_,{...f,...C}),V=_.getMetadata();if(V)j.imports.forEach((B)=>{if(V.injectionUsage[B.name]=V.injectionUsage[B.name]||{import:B,count:0,moduleIds:[]},V.injectionUsage[B.name].count++,$&&!V.injectionUsage[B.name].moduleIds.includes($))V.injectionUsage[B.name].moduleIds.push($)});return j}async function F(){if(_.options.dirs?.length)await S()}return{version:E0,init:F,clearDynamicImports:()=>_.clearDynamicImports(),modifyDynamicImports:(q)=>_.modifyDynamicImports(q),scanImportsFromDir:S,scanImportsFromFile:h,getImports:()=>_.getImports(),getImportMap:()=>_.getImportMap(),detectImports:(q)=>Qy(q,_),injectImports:y,generateTypeDeclarations:(q)=>w(q),getMetadata:()=>_.getMetadata(),getInternalContext:()=>_,toExports:async(q,$=!1)=>Y0(await _.getImports(),q,$)}}function A6(f){let _,w=new Map,h=v8(f);f.addons=h,f.commentsDisable=f.commentsDisable??["@unimport-disable","@imports-disable"],f.commentsDebug=f.commentsDebug??["@unimport-debug","@imports-debug"];let S;if(f.collectMeta)S={injectionUsage:{}};let y,F={version:E0,options:f,addons:h,staticImports:[...f.imports||[]].filter(Boolean),dynamicImports:[],modifyDynamicImports:$,clearDynamicImports:C,async getImports(){return await y,q()},async replaceImports(j){return F.staticImports=[...j||[]].filter(Boolean),F.invalidate(),await y,q()},async getImportMap(){return await F.getImports(),w},getMetadata(){return S},invalidate(){_=void 0},resolveId:(j,V)=>f.resolveId?.(j,V)};y=gy(f.presets||[]).then((j)=>{F.staticImports.unshift(...j),_=void 0,q()});function q(){if(!_){let j=Q0(B0([...F.staticImports,...F.dynamicImports],f.warn||console.warn));for(let V of F.addons)if(V.extendImports)j=V.extendImports.call(F,j)??j;j=j.filter((V)=>!V.disabled),w.clear();for(let V of j)if(!V.type)w.set(V.as??V.name,V);_=j}return _}async function $(j){let V=await j(F.dynamicImports);if(Array.isArray(V))F.dynamicImports=V;F.invalidate()}function C(){F.dynamicImports.length=0,F.invalidate()}return F}async function H6(f,_,w,h){let S=w1(f);if(w.options.commentsDisable?.some((C)=>S.original.includes(C)))return{s:S,get code(){return S.toString()},imports:[]};for(let C of w.addons)await C.transform?.call(w,S,_);let{isCJSContext:y,matchedImports:F,firstOccurrence:q}=await Qy(S,w,h),$=await k6(w,F,_);if(w.options.commentsDebug?.some((C)=>S.original.includes(C)))(w.options.debugLog||console.log)(`[unimport] ${$.length} imports detected in "${_}"${$.length?`: ${$.map((j)=>j.name).join(", ")}`:""}`);return{...W0(S,$,y,h?.mergeExisting,h?.injectAtEnd,q,(C)=>{for(let j of w.addons)C=j.injectImportsResolved?.call(w,C,S,_)??C;return C},(C,j)=>{for(let V of w.addons)C=V.injectImportsStringified?.call(w,C,j,S,_)??C;return C}),imports:$}}async function k6(f,_,w){let h=new Map;return(await Promise.all(_.map(async(y)=>{if(!h.has(y.from))h.set(y.from,await f.resolveId(y.from,w)||y.from);let F=h.get(y.from);if(y.from===w||!F||F==="."||F===w)return;return{...y,from:F}}))).filter(Boolean)}var P9=_1(a1(),1);async function R9(f,_={}){let{globalObject:w=globalThis,overrides:h=!1}=_;return f=Array.isArray(f)?f:await f.getImports(),await Promise.all(f.map(async(S)=>{if(S.disabled||S.type)return;let y=S.as||S.name;if(h||!(y in w)){let F=await import(S.from);w[y]=F[S.name]}})),w}export{M0 as vueTemplateAddon,E0 as version,L0 as toTypeReExports,P6 as toTypeDeclarationItems,u0 as toTypeDeclarationFile,x6 as toImports,Y0 as toExports,Z0 as stripFileExtension,V0 as stripCommentsAndStrings,l6 as stringifyImports,f1 as separatorRE,Jy as scanFilesFromDir,h1 as scanExports,Ey as scanDirExports,O0 as resolvePreset,d6 as resolveIdAbsolute,gy as resolveBuiltinPresets,Xy as normalizeScanDirs,Q0 as normalizeImports,C0 as matchRE,R9 as installGlobalAutoImports,j0 as importAsRE,R6 as getString,w1 as getMagicString,$0 as excludeRE,I as defineUnimportPreset,B0 as dedupeImports,zy as dedupeDtsExports,G6 as createUnimport,Ky as builtinPresets,W0 as addImportToCode};
@@ -0,0 +1,3 @@
1
+ import{hc as y0,ic as X$,jc as j4,lc as Qz,mc as rj,nc as Wz}from"./chunk-xf02hg29.js";import{oc as l,qc as oz,rc as tz}from"./chunk-twkarr5s.js";import{Hc as R1}from"./chunk-0fgzbrz9.js";import{Mc as p0}from"./chunk-wemxm45h.js";import{Pc as q,Sc as F}from"./chunk-tkegy5p0.js";var a5=q((FQ,b1)=>{var{defineProperty:n,getOwnPropertyDescriptor:c5,getOwnPropertyNames:d5}=Object,l5=Object.prototype.hasOwnProperty,I0=(j,$)=>n(j,"name",{value:$,configurable:!0}),_5=(j,$)=>{for(var z in $)n(j,z,{get:$[z],enumerable:!0})},s5=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of d5($))if(!l5.call(j,W)&&W!==z)n(j,W,{get:()=>$[W],enumerable:!(Q=c5($,W))||Q.enumerable})}return j},m5=(j)=>s5(n({},"__esModule",{value:!0}),j),w1={};_5(w1,{getHostHeaderPlugin:()=>i5,hostHeaderMiddleware:()=>L1,hostHeaderMiddlewareOptions:()=>M1,resolveHostHeaderConfig:()=>U1});b1.exports=m5(w1);var p5=l();function U1(j){return j}I0(U1,"resolveHostHeaderConfig");var L1=I0((j)=>($)=>async(z)=>{if(!p5.HttpRequest.isInstance(z.request))return $(z);let{request:Q}=z,{handlerProtocol:W=""}=j.requestHandler.metadata||{};if(W.indexOf("h2")>=0&&!Q.headers[":authority"])delete Q.headers.host,Q.headers[":authority"]=Q.hostname+(Q.port?":"+Q.port:"");else if(!Q.headers.host){let Z=Q.hostname;if(Q.port!=null)Z+=`:${Q.port}`;Q.headers.host=Z}return $(z)},"hostHeaderMiddleware"),M1={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},i5=I0((j)=>({applyToStack:($)=>{$.add(L1(j),M1)}}),"getHostHeaderPlugin")});var zj=q((DQ,O1)=>{var{defineProperty:r,getOwnPropertyDescriptor:n5,getOwnPropertyNames:r5}=Object,o5=Object.prototype.hasOwnProperty,F1=(j,$)=>r(j,"name",{value:$,configurable:!0}),t5=(j,$)=>{for(var z in $)r(j,z,{get:$[z],enumerable:!0})},e5=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of r5($))if(!o5.call(j,W)&&W!==z)r(j,W,{get:()=>$[W],enumerable:!(Q=n5($,W))||Q.enumerable})}return j},jj=(j)=>e5(r({},"__esModule",{value:!0}),j),D1={};t5(D1,{getLoggerPlugin:()=>$j,loggerMiddleware:()=>h1,loggerMiddlewareOptions:()=>N1});O1.exports=jj(D1);var h1=F1(()=>(j,$)=>async(z)=>{try{let Q=await j(z),{clientName:W,commandName:Z,logger:X,dynamoDbDocumentClientOptions:J={}}=$,{overrideInputFilterSensitiveLog:K,overrideOutputFilterSensitiveLog:G}=J,V=K??$.inputFilterSensitiveLog,Y=G??$.outputFilterSensitiveLog,{$metadata:B,...b}=Q.output;return X?.info?.({clientName:W,commandName:Z,input:V(z.input),output:Y(b),metadata:B}),Q}catch(Q){let{clientName:W,commandName:Z,logger:X,dynamoDbDocumentClientOptions:J={}}=$,{overrideInputFilterSensitiveLog:K}=J,G=K??$.inputFilterSensitiveLog;throw X?.error?.({clientName:W,commandName:Z,input:G(z.input),error:Q,metadata:Q.$metadata}),Q}},"loggerMiddleware"),N1={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},$j=F1((j)=>({applyToStack:($)=>{$.add(h1(),N1)}}),"getLoggerPlugin")});var Vj=q((hQ,v1)=>{var{defineProperty:t,getOwnPropertyDescriptor:Qj,getOwnPropertyNames:Wj}=Object,Zj=Object.prototype.hasOwnProperty,o=(j,$)=>t(j,"name",{value:$,configurable:!0}),Xj=(j,$)=>{for(var z in $)t(j,z,{get:$[z],enumerable:!0})},Jj=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of Wj($))if(!Zj.call(j,W)&&W!==z)t(j,W,{get:()=>$[W],enumerable:!(Q=Qj($,W))||Q.enumerable})}return j},Kj=(j)=>Jj(t({},"__esModule",{value:!0}),j),C1={};Xj(C1,{addRecursionDetectionMiddlewareOptions:()=>I1,getRecursionDetectionPlugin:()=>qj,recursionDetectionMiddleware:()=>T1});v1.exports=Kj(C1);var Gj=l(),v0="X-Amzn-Trace-Id",Yj="AWS_LAMBDA_FUNCTION_NAME",Bj="_X_AMZN_TRACE_ID",T1=o((j)=>($)=>async(z)=>{let{request:Q}=z;if(!Gj.HttpRequest.isInstance(Q)||j.runtime!=="node")return $(z);let W=Object.keys(Q.headers??{}).find((K)=>K.toLowerCase()===v0.toLowerCase())??v0;if(Q.headers.hasOwnProperty(W))return $(z);let Z=process.env[Yj],X=process.env[Bj],J=o((K)=>typeof K==="string"&&K.length>0,"nonEmptyString");if(J(Z)&&J(X))Q.headers[v0]=X;return $({...z,request:Q})},"recursionDetectionMiddleware"),I1={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},qj=o((j)=>({applyToStack:o(($)=>{$.add(T1(j),I1)},"applyToStack")}),"getRecursionDetectionPlugin")});var u1=q((NQ,g1)=>{var{defineProperty:e,getOwnPropertyDescriptor:Hj,getOwnPropertyNames:wj}=Object,Uj=Object.prototype.hasOwnProperty,H=(j,$)=>e(j,"name",{value:$,configurable:!0}),Lj=(j,$)=>{for(var z in $)e(j,z,{get:$[z],enumerable:!0})},Mj=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of wj($))if(!Uj.call(j,W)&&W!==z)e(j,W,{get:()=>$[W],enumerable:!(Q=Hj($,W))||Q.enumerable})}return j},bj=(j)=>Mj(e({},"__esModule",{value:!0}),j),S1={};Lj(S1,{EndpointCache:()=>Fj,EndpointError:()=>h,customEndpointFunctions:()=>S0,isIpAddress:()=>k1,isValidHostLabel:()=>P0,resolveEndpoint:()=>uj});g1.exports=bj(S1);var Fj=class{constructor({size:j,params:$}){if(this.data=new Map,this.parameters=[],this.capacity=j??50,$)this.parameters=$}static{H(this,"EndpointCache")}get(j,$){let z=this.hash(j);if(z===!1)return $();if(!this.data.has(z)){if(this.data.size>this.capacity+10){let Q=this.data.keys(),W=0;while(!0){let{value:Z,done:X}=Q.next();if(this.data.delete(Z),X||++W>10)break}}this.data.set(z,$())}return this.data.get(z)}size(){return this.data.size}hash(j){let $="",{parameters:z}=this;if(z.length===0)return!1;for(let Q of z){let W=String(j[Q]??"");if(W.includes("|;"))return!1;$+=W+"|;"}return $}},Dj=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),k1=H((j)=>Dj.test(j)||j.startsWith("[")&&j.endsWith("]"),"isIpAddress"),hj=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),P0=H((j,$=!1)=>{if(!$)return hj.test(j);let z=j.split(".");for(let Q of z)if(!P0(Q))return!1;return!0},"isValidHostLabel"),S0={},_="endpoints";function S(j){if(typeof j!=="object"||j==null)return j;if("ref"in j)return`$${S(j.ref)}`;if("fn"in j)return`${j.fn}(${(j.argv||[]).map(S).join(", ")})`;return JSON.stringify(j,null,2)}H(S,"toDebugString");var h=class extends Error{static{H(this,"EndpointError")}constructor(j){super(j);this.name="EndpointError"}},Nj=H((j,$)=>j===$,"booleanEquals"),Oj=H((j)=>{let $=j.split("."),z=[];for(let Q of $){let W=Q.indexOf("[");if(W!==-1){if(Q.indexOf("]")!==Q.length-1)throw new h(`Path: '${j}' does not end with ']'`);let Z=Q.slice(W+1,-1);if(Number.isNaN(parseInt(Z)))throw new h(`Invalid array index: '${Z}' in path: '${j}'`);if(W!==0)z.push(Q.slice(0,W));z.push(Z)}else z.push(Q)}return z},"getAttrPathList"),P1=H((j,$)=>Oj($).reduce((z,Q)=>{if(typeof z!=="object")throw new h(`Index '${Q}' in '${$}' not found in '${JSON.stringify(j)}'`);else if(Array.isArray(z))return z[parseInt(Q)];return z[Q]},j),"getAttr"),Cj=H((j)=>j!=null,"isSet"),Tj=H((j)=>!j,"not"),k0=R1(),R0={[k0.EndpointURLScheme.HTTP]:80,[k0.EndpointURLScheme.HTTPS]:443},Ij=H((j)=>{let $=(()=>{try{if(j instanceof URL)return j;if(typeof j==="object"&&"hostname"in j){let{hostname:B,port:b,protocol:D="",path:O="",query:f5={}}=j,H1=new URL(`${D}//${B}${b?`:${b}`:""}${O}`);return H1.search=Object.entries(f5).map(([g5,u5])=>`${g5}=${u5}`).join("&"),H1}return new URL(j)}catch(B){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(j)} as a whatwg URL.`),null;let z=$.href,{host:Q,hostname:W,pathname:Z,protocol:X,search:J}=$;if(J)return null;let K=X.slice(0,-1);if(!Object.values(k0.EndpointURLScheme).includes(K))return null;let G=k1(W),V=z.includes(`${Q}:${R0[K]}`)||typeof j==="string"&&j.includes(`${Q}:${R0[K]}`),Y=`${Q}${V?`:${R0[K]}`:""}`;return{scheme:K,authority:Y,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:G}},"parseURL"),vj=H((j,$)=>j===$,"stringEquals"),Rj=H((j,$,z,Q)=>{if($>=z||j.length<z)return null;if(!Q)return j.substring($,z);return j.substring(j.length-z,j.length-$)},"substring"),Sj=H((j)=>encodeURIComponent(j).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),kj={booleanEquals:Nj,getAttr:P1,isSet:Cj,isValidHostLabel:P0,not:Tj,parseURL:Ij,stringEquals:vj,substring:Rj,uriEncode:Sj},x1=H((j,$)=>{let z=[],Q={...$.endpointParams,...$.referenceRecord},W=0;while(W<j.length){let Z=j.indexOf("{",W);if(Z===-1){z.push(j.slice(W));break}z.push(j.slice(W,Z));let X=j.indexOf("}",Z);if(X===-1){z.push(j.slice(Z));break}if(j[Z+1]==="{"&&j[X+1]==="}")z.push(j.slice(Z+1,X)),W=X+2;let J=j.substring(Z+1,X);if(J.includes("#")){let[K,G]=J.split("#");z.push(P1(Q[K],G))}else z.push(Q[J]);W=X+1}return z.join("")},"evaluateTemplate"),Pj=H(({ref:j},$)=>{return{...$.endpointParams,...$.referenceRecord}[j]},"getReferenceValue"),j0=H((j,$,z)=>{if(typeof j==="string")return x1(j,z);else if(j.fn)return A1(j,z);else if(j.ref)return Pj(j,z);throw new h(`'${$}': ${String(j)} is not a string, function or reference.`)},"evaluateExpression"),A1=H(({fn:j,argv:$},z)=>{let Q=$.map((Z)=>["boolean","number"].includes(typeof Z)?Z:j0(Z,"arg",z)),W=j.split(".");if(W[0]in S0&&W[1]!=null)return S0[W[0]][W[1]](...Q);return kj[j](...Q)},"callFunction"),xj=H(({assign:j,...$},z)=>{if(j&&j in z.referenceRecord)throw new h(`'${j}' is already defined in Reference Record.`);let Q=A1($,z);return z.logger?.debug?.(`${_} evaluateCondition: ${S($)} = ${S(Q)}`),{result:Q===""?!0:!!Q,...j!=null&&{toAssign:{name:j,value:Q}}}},"evaluateCondition"),x0=H((j=[],$)=>{let z={};for(let Q of j){let{result:W,toAssign:Z}=xj(Q,{...$,referenceRecord:{...$.referenceRecord,...z}});if(!W)return{result:W};if(Z)z[Z.name]=Z.value,$.logger?.debug?.(`${_} assign: ${Z.name} := ${S(Z.value)}`)}return{result:!0,referenceRecord:z}},"evaluateConditions"),Aj=H((j,$)=>Object.entries(j).reduce((z,[Q,W])=>({...z,[Q]:W.map((Z)=>{let X=j0(Z,"Header value entry",$);if(typeof X!=="string")throw new h(`Header '${Q}' value '${X}' is not a string`);return X})}),{}),"getEndpointHeaders"),E1=H((j,$)=>{if(Array.isArray(j))return j.map((z)=>E1(z,$));switch(typeof j){case"string":return x1(j,$);case"object":if(j===null)throw new h(`Unexpected endpoint property: ${j}`);return y1(j,$);case"boolean":return j;default:throw new h(`Unexpected endpoint property type: ${typeof j}`)}},"getEndpointProperty"),y1=H((j,$)=>Object.entries(j).reduce((z,[Q,W])=>({...z,[Q]:E1(W,$)}),{}),"getEndpointProperties"),Ej=H((j,$)=>{let z=j0(j,"Endpoint URL",$);if(typeof z==="string")try{return new URL(z)}catch(Q){throw console.error(`Failed to construct URL with ${z}`,Q),Q}throw new h(`Endpoint URL must be a string, got ${typeof z}`)},"getEndpointUrl"),yj=H((j,$)=>{let{conditions:z,endpoint:Q}=j,{result:W,referenceRecord:Z}=x0(z,$);if(!W)return;let X={...$,referenceRecord:{...$.referenceRecord,...Z}},{url:J,properties:K,headers:G}=Q;return $.logger?.debug?.(`${_} Resolving endpoint from template: ${S(Q)}`),{...G!=null&&{headers:Aj(G,X)},...K!=null&&{properties:y1(K,X)},url:Ej(J,X)}},"evaluateEndpointRule"),fj=H((j,$)=>{let{conditions:z,error:Q}=j,{result:W,referenceRecord:Z}=x0(z,$);if(!W)return;throw new h(j0(Q,"Error",{...$,referenceRecord:{...$.referenceRecord,...Z}}))},"evaluateErrorRule"),gj=H((j,$)=>{let{conditions:z,rules:Q}=j,{result:W,referenceRecord:Z}=x0(z,$);if(!W)return;return f1(Q,{...$,referenceRecord:{...$.referenceRecord,...Z}})},"evaluateTreeRule"),f1=H((j,$)=>{for(let z of j)if(z.type==="endpoint"){let Q=yj(z,$);if(Q)return Q}else if(z.type==="error")fj(z,$);else if(z.type==="tree"){let Q=gj(z,$);if(Q)return Q}else throw new h(`Unknown endpoint rule: ${z}`);throw new h("Rules evaluation failed")},"evaluateRules"),uj=H((j,$)=>{let{endpointParams:z,logger:Q}=$,{parameters:W,rules:Z}=j;$.logger?.debug?.(`${_} Initial EndpointParams: ${S(z)}`);let X=Object.entries(W).filter(([,G])=>G.default!=null).map(([G,V])=>[G,V.default]);if(X.length>0)for(let[G,V]of X)z[G]=z[G]??V;let J=Object.entries(W).filter(([,G])=>G.required).map(([G])=>G);for(let G of J)if(z[G]==null)throw new h(`Missing required parameter: '${G}'`);let K=f1(Z,{endpointParams:z,logger:Q,referenceRecord:{}});return $.logger?.debug?.(`${_} Resolved endpoint: ${S(K)}`),K},"resolveEndpoint")});var r1=q((TQ,n1)=>{var{defineProperty:$0,getOwnPropertyDescriptor:cj,getOwnPropertyNames:dj}=Object,lj=Object.prototype.hasOwnProperty,E=(j,$)=>$0(j,"name",{value:$,configurable:!0}),_j=(j,$)=>{for(var z in $)$0(j,z,{get:$[z],enumerable:!0})},sj=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of dj($))if(!lj.call(j,W)&&W!==z)$0(j,W,{get:()=>$[W],enumerable:!(Q=cj($,W))||Q.enumerable})}return j},mj=(j)=>sj($0({},"__esModule",{value:!0}),j),d1={};_j(d1,{ConditionObject:()=>w.ConditionObject,DeprecatedObject:()=>w.DeprecatedObject,EndpointError:()=>w.EndpointError,EndpointObject:()=>w.EndpointObject,EndpointObjectHeaders:()=>w.EndpointObjectHeaders,EndpointObjectProperties:()=>w.EndpointObjectProperties,EndpointParams:()=>w.EndpointParams,EndpointResolverOptions:()=>w.EndpointResolverOptions,EndpointRuleObject:()=>w.EndpointRuleObject,ErrorRuleObject:()=>w.ErrorRuleObject,EvaluateOptions:()=>w.EvaluateOptions,Expression:()=>w.Expression,FunctionArgv:()=>w.FunctionArgv,FunctionObject:()=>w.FunctionObject,FunctionReturn:()=>w.FunctionReturn,ParameterObject:()=>w.ParameterObject,ReferenceObject:()=>w.ReferenceObject,ReferenceRecord:()=>w.ReferenceRecord,RuleSetObject:()=>w.RuleSetObject,RuleSetRules:()=>w.RuleSetRules,TreeRuleObject:()=>w.TreeRuleObject,awsEndpointFunctions:()=>a1,getUserAgentPrefix:()=>nj,isIpAddress:()=>w.isIpAddress,partition:()=>p1,resolveEndpoint:()=>w.resolveEndpoint,setPartitionInfo:()=>i1,useDefaultPartitionInfo:()=>aj});n1.exports=mj(d1);var w=u1(),l1=E((j,$=!1)=>{if($){for(let z of j.split("."))if(!l1(z))return!1;return!0}if(!w.isValidHostLabel(j))return!1;if(j.length<3||j.length>63)return!1;if(j!==j.toLowerCase())return!1;if(w.isIpAddress(j))return!1;return!0},"isVirtualHostableS3Bucket"),c1=":",pj="/",ij=E((j)=>{let $=j.split(c1);if($.length<6)return null;let[z,Q,W,Z,X,...J]=$;if(z!=="arn"||Q===""||W===""||J.join(c1)==="")return null;let K=J.map((G)=>G.split(pj)).flat();return{partition:Q,service:W,region:Z,accountId:X,resourceId:K}},"parseArn"),_1={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},s1=_1,m1="",p1=E((j)=>{let{partitions:$}=s1;for(let Q of $){let{regions:W,outputs:Z}=Q;for(let[X,J]of Object.entries(W))if(X===j)return{...Z,...J}}for(let Q of $){let{regionRegex:W,outputs:Z}=Q;if(new RegExp(W).test(j))return{...Z}}let z=$.find((Q)=>Q.id==="aws");if(!z)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...z.outputs}},"partition"),i1=E((j,$="")=>{s1=j,m1=$},"setPartitionInfo"),aj=E(()=>{i1(_1,"")},"useDefaultPartitionInfo"),nj=E(()=>m1,"getUserAgentPrefix"),a1={isVirtualHostableS3Bucket:l1,parseArn:ij,partition:p1};w.customEndpointFunctions.aws=a1});var Y4=q((IQ,G4)=>{var{defineProperty:Q0,getOwnPropertyDescriptor:oj,getOwnPropertyNames:tj}=Object,ej=Object.prototype.hasOwnProperty,x=(j,$)=>Q0(j,"name",{value:$,configurable:!0}),j8=(j,$)=>{for(var z in $)Q0(j,z,{get:$[z],enumerable:!0})},$8=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of tj($))if(!ej.call(j,W)&&W!==z)Q0(j,W,{get:()=>$[W],enumerable:!(Q=oj($,W))||Q.enumerable})}return j},z8=(j)=>$8(Q0({},"__esModule",{value:!0}),j),$4={};j8($4,{DEFAULT_UA_APP_ID:()=>z4,getUserAgentMiddlewareOptions:()=>K4,getUserAgentPlugin:()=>Y8,resolveUserAgentConfig:()=>W4,userAgentMiddleware:()=>J4});G4.exports=z8($4);var Q8=j4(),z4=void 0;function Q4(j){if(j===void 0)return!0;return typeof j==="string"&&j.length<=50}x(Q4,"isValidUserAgentAppId");function W4(j){let $=Q8.normalizeProvider(j.userAgentAppId??z4);return{...j,customUserAgent:typeof j.customUserAgent==="string"?[[j.customUserAgent]]:j.customUserAgent,userAgentAppId:async()=>{let z=await $();if(!Q4(z)){let Q=j.logger?.constructor?.name==="NoOpLogger"||!j.logger?console:j.logger;if(typeof z!=="string")Q?.warn("userAgentAppId must be a string or undefined.");else if(z.length>50)Q?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return z}}}x(W4,"resolveUserAgentConfig");var W8=r1(),Z8=l(),v=rj(),X8=/\d{12}\.ddb/;async function Z4(j,$,z){if(z.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")v.setFeature(j,"PROTOCOL_RPC_V2_CBOR","M");if(typeof $.retryStrategy==="function"){let Z=await $.retryStrategy();if(typeof Z.acquireInitialRetryToken==="function")if(Z.constructor?.name?.includes("Adaptive"))v.setFeature(j,"RETRY_MODE_ADAPTIVE","F");else v.setFeature(j,"RETRY_MODE_STANDARD","E");else v.setFeature(j,"RETRY_MODE_LEGACY","D")}if(typeof $.accountIdEndpointMode==="function"){let Z=j.endpointV2;if(String(Z?.url?.hostname).match(X8))v.setFeature(j,"ACCOUNT_ID_ENDPOINT","O");switch(await $.accountIdEndpointMode?.()){case"disabled":v.setFeature(j,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":v.setFeature(j,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":v.setFeature(j,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let W=j.__smithy_context?.selectedHttpAuthScheme?.identity;if(W?.$source){let Z=W;if(Z.accountId)v.setFeature(j,"RESOLVED_ACCOUNT_ID","T");for(let[X,J]of Object.entries(Z.$source??{}))v.setFeature(j,X,J)}}x(Z4,"checkFeatures");var o1="user-agent",A0="x-amz-user-agent",t1=" ",E0="/",J8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,K8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,e1="-",G8=1024;function X4(j){let $="";for(let z in j){let Q=j[z];if($.length+Q.length+1<=G8){if($.length)$+=","+Q;else $+=Q;continue}break}return $}x(X4,"encodeFeatures");var J4=x((j)=>($,z)=>async(Q)=>{let{request:W}=Q;if(!Z8.HttpRequest.isInstance(W))return $(Q);let{headers:Z}=W,X=z?.userAgent?.map(z0)||[],J=(await j.defaultUserAgentProvider()).map(z0);await Z4(z,j,Q);let K=z;J.push(`m/${X4(Object.assign({},z.__smithy_context?.features,K.__aws_sdk_context?.features))}`);let G=j?.customUserAgent?.map(z0)||[],V=await j.userAgentAppId();if(V)J.push(z0([`app/${V}`]));let Y=W8.getUserAgentPrefix(),B=(Y?[Y]:[]).concat([...J,...X,...G]).join(t1),b=[...J.filter((D)=>D.startsWith("aws-sdk-")),...G].join(t1);if(j.runtime!=="browser"){if(b)Z[A0]=Z[A0]?`${Z[o1]} ${b}`:b;Z[o1]=B}else Z[A0]=B;return $({...Q,request:W})},"userAgentMiddleware"),z0=x((j)=>{let $=j[0].split(E0).map((X)=>X.replace(J8,e1)).join(E0),z=j[1]?.replace(K8,e1),Q=$.indexOf(E0),W=$.substring(0,Q),Z=$.substring(Q+1);if(W==="api")Z=Z.toLowerCase();return[W,Z,z].filter((X)=>X&&X.length>0).reduce((X,J,K)=>{switch(K){case 0:return J;case 1:return`${X}/${J}`;default:return`${X}#${J}`}},"")},"escapeUserAgent"),K4={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Y8=x((j)=>({applyToStack:($)=>{$.add(J4(j),K4)}}),"getUserAgentPlugin")});var w4=q((vQ,H4)=>{var{defineProperty:W0,getOwnPropertyDescriptor:B8,getOwnPropertyNames:q8}=Object,V8=Object.prototype.hasOwnProperty,B4=(j,$)=>W0(j,"name",{value:$,configurable:!0}),H8=(j,$)=>{for(var z in $)W0(j,z,{get:$[z],enumerable:!0})},w8=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of q8($))if(!V8.call(j,W)&&W!==z)W0(j,W,{get:()=>$[W],enumerable:!(Q=B8($,W))||Q.enumerable})}return j},U8=(j)=>w8(W0({},"__esModule",{value:!0}),j),q4={};H8(q4,{SelectorType:()=>V4,booleanSelector:()=>L8,numberSelector:()=>M8});H4.exports=U8(q4);var L8=B4((j,$,z)=>{if(!($ in j))return;if(j[$]==="true")return!0;if(j[$]==="false")return!1;throw new Error(`Cannot load ${z} "${$}". Expected "true" or "false", got ${j[$]}.`)},"booleanSelector"),M8=B4((j,$,z)=>{if(!($ in j))return;let Q=parseInt(j[$],10);if(Number.isNaN(Q))throw new TypeError(`Cannot load ${z} '${$}'. Expected number, got '${j[$]}'.`);return Q},"numberSelector"),V4=((j)=>{return j.ENV="env",j.CONFIG="shared config entry",j})(V4||{})});var I4=q((RQ,T4)=>{var{defineProperty:X0,getOwnPropertyDescriptor:b8,getOwnPropertyNames:F8}=Object,D8=Object.prototype.hasOwnProperty,C=(j,$)=>X0(j,"name",{value:$,configurable:!0}),h8=(j,$)=>{for(var z in $)X0(j,z,{get:$[z],enumerable:!0})},N8=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of F8($))if(!D8.call(j,W)&&W!==z)X0(j,W,{get:()=>$[W],enumerable:!(Q=b8($,W))||Q.enumerable})}return j},O8=(j)=>N8(X0({},"__esModule",{value:!0}),j),M4={};h8(M4,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>F4,CONFIG_USE_FIPS_ENDPOINT:()=>h4,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>C8,DEFAULT_USE_FIPS_ENDPOINT:()=>I8,ENV_USE_DUALSTACK_ENDPOINT:()=>b4,ENV_USE_FIPS_ENDPOINT:()=>D4,NODE_REGION_CONFIG_FILE_OPTIONS:()=>x8,NODE_REGION_CONFIG_OPTIONS:()=>P8,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>T8,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>v8,REGION_ENV_NAME:()=>N4,REGION_INI_NAME:()=>O4,getRegionInfo:()=>g8,resolveCustomEndpointsConfig:()=>R8,resolveEndpointsConfig:()=>k8,resolveRegionConfig:()=>A8});T4.exports=O8(M4);var k=w4(),b4="AWS_USE_DUALSTACK_ENDPOINT",F4="use_dualstack_endpoint",C8=!1,T8={environmentVariableSelector:(j)=>k.booleanSelector(j,b4,k.SelectorType.ENV),configFileSelector:(j)=>k.booleanSelector(j,F4,k.SelectorType.CONFIG),default:!1},D4="AWS_USE_FIPS_ENDPOINT",h4="use_fips_endpoint",I8=!1,v8={environmentVariableSelector:(j)=>k.booleanSelector(j,D4,k.SelectorType.ENV),configFileSelector:(j)=>k.booleanSelector(j,h4,k.SelectorType.CONFIG),default:!1},Z0=y0(),R8=C((j)=>{let{endpoint:$,urlParser:z}=j;return{...j,tls:j.tls??!0,endpoint:Z0.normalizeProvider(typeof $==="string"?z($):$),isCustomEndpoint:!0,useDualstackEndpoint:Z0.normalizeProvider(j.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),S8=C(async(j)=>{let{tls:$=!0}=j,z=await j.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(z))throw new Error("Invalid region in client config");let W=await j.useDualstackEndpoint(),Z=await j.useFipsEndpoint(),{hostname:X}=await j.regionInfoProvider(z,{useDualstackEndpoint:W,useFipsEndpoint:Z})??{};if(!X)throw new Error("Cannot resolve hostname from client config");return j.urlParser(`${$?"https:":"http:"}//${X}`)},"getEndpointFromRegion"),k8=C((j)=>{let $=Z0.normalizeProvider(j.useDualstackEndpoint??!1),{endpoint:z,useFipsEndpoint:Q,urlParser:W}=j;return{...j,tls:j.tls??!0,endpoint:z?Z0.normalizeProvider(typeof z==="string"?W(z):z):()=>S8({...j,useDualstackEndpoint:$,useFipsEndpoint:Q}),isCustomEndpoint:!!z,useDualstackEndpoint:$}},"resolveEndpointsConfig"),N4="AWS_REGION",O4="region",P8={environmentVariableSelector:(j)=>j[N4],configFileSelector:(j)=>j[O4],default:()=>{throw new Error("Region is missing")}},x8={preferredFile:"credentials"},C4=C((j)=>typeof j==="string"&&(j.startsWith("fips-")||j.endsWith("-fips")),"isFipsRegion"),U4=C((j)=>C4(j)?["fips-aws-global","aws-fips"].includes(j)?"us-east-1":j.replace(/fips-(dkr-|prod-)?|-fips/,""):j,"getRealRegion"),A8=C((j)=>{let{region:$,useFipsEndpoint:z}=j;if(!$)throw new Error("Region is missing");return{...j,region:async()=>{if(typeof $==="string")return U4($);let Q=await $();return U4(Q)},useFipsEndpoint:async()=>{let Q=typeof $==="string"?$:await $();if(C4(Q))return!0;return typeof z!=="function"?Promise.resolve(!!z):z()}}},"resolveRegionConfig"),L4=C((j=[],{useFipsEndpoint:$,useDualstackEndpoint:z})=>j.find(({tags:Q})=>$===Q.includes("fips")&&z===Q.includes("dualstack"))?.hostname,"getHostnameFromVariants"),E8=C((j,{regionHostname:$,partitionHostname:z})=>$?$:z?z.replace("{region}",j):void 0,"getResolvedHostname"),y8=C((j,{partitionHash:$})=>Object.keys($||{}).find((z)=>$[z].regions.includes(j))??"aws","getResolvedPartition"),f8=C((j,{signingRegion:$,regionRegex:z,useFipsEndpoint:Q})=>{if($)return $;else if(Q){let W=z.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),Z=j.match(W);if(Z)return Z[0].slice(1,-1)}},"getResolvedSigningRegion"),g8=C((j,{useFipsEndpoint:$=!1,useDualstackEndpoint:z=!1,signingService:Q,regionHash:W,partitionHash:Z})=>{let X=y8(j,{partitionHash:Z}),J=j in W?j:Z[X]?.endpoint??j,K={useFipsEndpoint:$,useDualstackEndpoint:z},G=L4(W[J]?.variants,K),V=L4(Z[X]?.variants,K),Y=E8(J,{regionHostname:G,partitionHostname:V});if(Y===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:J,useFipsEndpoint:$,useDualstackEndpoint:z}}`);let B=f8(Y,{signingRegion:W[J]?.signingRegion,regionRegex:Z[X].regionRegex,useFipsEndpoint:$});return{partition:X,signingService:Q,hostname:Y,...B&&{signingRegion:B},...W[J]?.signingService&&{signingService:W[J].signingService}}},"getRegionInfo")});var i8=q((SQ,P4)=>{var{defineProperty:J0,getOwnPropertyDescriptor:u8,getOwnPropertyNames:c8}=Object,d8=Object.prototype.hasOwnProperty,R4=(j,$)=>J0(j,"name",{value:$,configurable:!0}),l8=(j,$)=>{for(var z in $)J0(j,z,{get:$[z],enumerable:!0})},_8=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of c8($))if(!d8.call(j,W)&&W!==z)J0(j,W,{get:()=>$[W],enumerable:!(Q=u8($,W))||Q.enumerable})}return j},s8=(j)=>_8(J0({},"__esModule",{value:!0}),j),S4={};l8(S4,{contentLengthMiddleware:()=>f0,contentLengthMiddlewareOptions:()=>k4,getContentLengthPlugin:()=>p8});P4.exports=s8(S4);var m8=l(),v4="content-length";function f0(j){return($)=>async(z)=>{let Q=z.request;if(m8.HttpRequest.isInstance(Q)){let{body:W,headers:Z}=Q;if(W&&Object.keys(Z).map((X)=>X.toLowerCase()).indexOf(v4)===-1)try{let X=j(W);Q.headers={...Q.headers,[v4]:String(X)}}catch(X){}}return $({...z,request:Q})}}R4(f0,"contentLengthMiddleware");var k4={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},p8=R4((j)=>({applyToStack:($)=>{$.add(f0(j.bodyLengthChecker),k4)}}),"getContentLengthPlugin")});var y=q((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.getHomeDir=void 0;var a8=F("os"),n8=F("path"),g0={},r8=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},o8=()=>{let{HOME:j,USERPROFILE:$,HOMEPATH:z,HOMEDRIVE:Q=`C:${n8.sep}`}=process.env;if(j)return j;if($)return $;if(z)return`${Q}${z}`;let W=r8();if(!g0[W])g0[W]=a8.homedir();return g0[W]};x4.getHomeDir=o8});var u0=q((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.getSSOTokenFilepath=void 0;var t8=F("crypto"),e8=F("path"),j6=y(),$6=(j)=>{let z=t8.createHash("sha1").update(j).digest("hex");return e8.join(j6.getHomeDir(),".aws","sso","cache",`${z}.json`)};E4.getSSOTokenFilepath=$6});var u4=q((f4)=>{Object.defineProperty(f4,"__esModule",{value:!0});f4.getSSOTokenFromFile=void 0;var z6=F("fs"),Q6=u0(),{readFile:W6}=z6.promises,Z6=async(j)=>{let $=Q6.getSSOTokenFilepath(j),z=await W6($,"utf8");return JSON.parse(z)};f4.getSSOTokenFromFile=Z6});var d0=q((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.slurpFile=void 0;var X6=F("fs"),{readFile:J6}=X6.promises,c0={},K6=(j,$)=>{if(!c0[j]||($===null||$===void 0?void 0:$.ignoreCache))c0[j]=J6(j,"utf8");return c0[j]};c4.slurpFile=K6});var m0=q((EQ,m)=>{var{defineProperty:Y0,getOwnPropertyDescriptor:G6,getOwnPropertyNames:Y6}=Object,B6=Object.prototype.hasOwnProperty,N=(j,$)=>Y0(j,"name",{value:$,configurable:!0}),q6=(j,$)=>{for(var z in $)Y0(j,z,{get:$[z],enumerable:!0})},l0=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of Y6($))if(!B6.call(j,W)&&W!==z)Y0(j,W,{get:()=>$[W],enumerable:!(Q=G6($,W))||Q.enumerable})}return j},s0=(j,$,z)=>(l0(j,$,"default"),z&&l0(z,$,"default")),V6=(j)=>l0(Y0({},"__esModule",{value:!0}),j),s={};q6(s,{CONFIG_PREFIX_SEPARATOR:()=>A,DEFAULT_PROFILE:()=>m4,ENV_PROFILE:()=>s4,getProfileName:()=>H6,loadSharedConfigFiles:()=>i4,loadSsoSessionData:()=>I6,parseKnownFiles:()=>R6});m.exports=V6(s);s0(s,y(),m.exports);var s4="AWS_PROFILE",m4="default",H6=N((j)=>j.profile||process.env[s4]||m4,"getProfileName");s0(s,u0(),m.exports);s0(s,u4(),m.exports);var K0=R1(),w6=N((j)=>Object.entries(j).filter(([$])=>{let z=$.indexOf(A);if(z===-1)return!1;return Object.values(K0.IniSectionType).includes($.substring(0,z))}).reduce(($,[z,Q])=>{let W=z.indexOf(A),Z=z.substring(0,W)===K0.IniSectionType.PROFILE?z.substring(W+1):z;return $[Z]=Q,$},{...j.default&&{default:j.default}}),"getConfigData"),G0=F("path"),U6=y(),L6="AWS_CONFIG_FILE",p4=N(()=>process.env[L6]||G0.join(U6.getHomeDir(),".aws","config"),"getConfigFilepath"),M6=y(),b6="AWS_SHARED_CREDENTIALS_FILE",F6=N(()=>process.env[b6]||G0.join(M6.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),D6=y(),h6=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,N6=["__proto__","profile __proto__"],_0=N((j)=>{let $={},z,Q;for(let W of j.split(/\r?\n/)){let Z=W.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){z=void 0,Q=void 0;let J=Z.substring(1,Z.length-1),K=h6.exec(J);if(K){let[,G,,V]=K;if(Object.values(K0.IniSectionType).includes(G))z=[G,V].join(A)}else z=J;if(N6.includes(J))throw new Error(`Found invalid profile name "${J}"`)}else if(z){let J=Z.indexOf("=");if(![0,-1].includes(J)){let[K,G]=[Z.substring(0,J).trim(),Z.substring(J+1).trim()];if(G==="")Q=K;else{if(Q&&W.trimStart()===W)Q=void 0;$[z]=$[z]||{};let V=Q?[Q,K].join(A):K;$[z][V]=G}}}}return $},"parseIni"),l4=d0(),_4=N(()=>({}),"swallowError"),A=".",i4=N(async(j={})=>{let{filepath:$=F6(),configFilepath:z=p4()}=j,Q=D6.getHomeDir(),W="~/",Z=$;if($.startsWith("~/"))Z=G0.join(Q,$.slice(2));let X=z;if(z.startsWith("~/"))X=G0.join(Q,z.slice(2));let J=await Promise.all([l4.slurpFile(X,{ignoreCache:j.ignoreCache}).then(_0).then(w6).catch(_4),l4.slurpFile(Z,{ignoreCache:j.ignoreCache}).then(_0).catch(_4)]);return{configFile:J[0],credentialsFile:J[1]}},"loadSharedConfigFiles"),O6=N((j)=>Object.entries(j).filter(([$])=>$.startsWith(K0.IniSectionType.SSO_SESSION+A)).reduce(($,[z,Q])=>({...$,[z.substring(z.indexOf(A)+1)]:Q}),{}),"getSsoSessionData"),C6=d0(),T6=N(()=>({}),"swallowError"),I6=N(async(j={})=>C6.slurpFile(j.configFilepath??p4()).then(_0).then(O6).catch(T6),"loadSsoSessionData"),v6=N((...j)=>{let $={};for(let z of j)for(let[Q,W]of Object.entries(z))if($[Q]!==void 0)Object.assign($[Q],W);else $[Q]=W;return $},"mergeConfigFiles"),R6=N(async(j)=>{let $=await i4(j);return v6($.configFile,$.credentialsFile)},"parseKnownFiles")});var q0=q((yQ,r4)=>{var{defineProperty:B0,getOwnPropertyDescriptor:S6,getOwnPropertyNames:k6}=Object,P6=Object.prototype.hasOwnProperty,f=(j,$)=>B0(j,"name",{value:$,configurable:!0}),x6=(j,$)=>{for(var z in $)B0(j,z,{get:$[z],enumerable:!0})},A6=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of k6($))if(!P6.call(j,W)&&W!==z)B0(j,W,{get:()=>$[W],enumerable:!(Q=S6($,W))||Q.enumerable})}return j},E6=(j)=>A6(B0({},"__esModule",{value:!0}),j),n4={};x6(n4,{loadConfig:()=>c6});r4.exports=E6(n4);var p=p0();function i0(j){try{let $=new Set(Array.from(j.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return j}}f(i0,"getSelectorName");var y6=f((j,$)=>async()=>{try{let z=j(process.env);if(z===void 0)throw new Error;return z}catch(z){throw new p.CredentialsProviderError(z.message||`Not found in ENV: ${i0(j.toString())}`,{logger:$})}},"fromEnv"),a4=m0(),f6=f((j,{preferredFile:$="config",...z}={})=>async()=>{let Q=a4.getProfileName(z),{configFile:W,credentialsFile:Z}=await a4.loadSharedConfigFiles(z),X=Z[Q]||{},J=W[Q]||{},K=$==="config"?{...X,...J}:{...J,...X};try{let V=j(K,$==="config"?W:Z);if(V===void 0)throw new Error;return V}catch(G){throw new p.CredentialsProviderError(G.message||`Not found in config files w/ profile [${Q}]: ${i0(j.toString())}`,{logger:z.logger})}},"fromSharedConfigFiles"),g6=f((j)=>typeof j==="function","isFunction"),u6=f((j)=>g6(j)?async()=>await j():p.fromStatic(j),"fromStatic"),c6=f(({environmentVariableSelector:j,configFileSelector:$,default:z},Q={})=>p.memoize(p.chain(y6(j),f6($,Q),u6(z))),"loadConfig")});var z7=q((j7)=>{Object.defineProperty(j7,"__esModule",{value:!0});j7.getEndpointUrlConfig=void 0;var o4=m0(),t4="AWS_ENDPOINT_URL",e4="endpoint_url",d6=(j)=>({environmentVariableSelector:($)=>{let z=j.split(" ").map((Z)=>Z.toUpperCase()),Q=$[[t4,...z].join("_")];if(Q)return Q;let W=$[t4];if(W)return W;return},configFileSelector:($,z)=>{if(z&&$.services){let W=z[["services",$.services].join(o4.CONFIG_PREFIX_SEPARATOR)];if(W){let Z=j.split(" ").map((J)=>J.toLowerCase()),X=W[[Z.join("_"),e4].join(o4.CONFIG_PREFIX_SEPARATOR)];if(X)return X}}let Q=$[e4];if(Q)return Q;return},default:void 0});j7.getEndpointUrlConfig=d6});var a0=q((Q7)=>{Object.defineProperty(Q7,"__esModule",{value:!0});Q7.getEndpointFromConfig=void 0;var l6=q0(),_6=z7(),s6=async(j)=>l6.loadConfig(_6.getEndpointUrlConfig(j!==null&&j!==void 0?j:""))();Q7.getEndpointFromConfig=s6});var K7=q((uQ,J7)=>{var{defineProperty:V0,getOwnPropertyDescriptor:m6,getOwnPropertyNames:p6}=Object,i6=Object.prototype.hasOwnProperty,a6=(j,$)=>V0(j,"name",{value:$,configurable:!0}),n6=(j,$)=>{for(var z in $)V0(j,z,{get:$[z],enumerable:!0})},r6=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of p6($))if(!i6.call(j,W)&&W!==z)V0(j,W,{get:()=>$[W],enumerable:!(Q=m6($,W))||Q.enumerable})}return j},o6=(j)=>r6(V0({},"__esModule",{value:!0}),j),Z7={};n6(Z7,{parseQueryString:()=>X7});J7.exports=o6(Z7);function X7(j){let $={};if(j=j.replace(/^\?/,""),j)for(let z of j.split("&")){let[Q,W=null]=z.split("=");if(Q=decodeURIComponent(Q),W)W=decodeURIComponent(W);if(!(Q in $))$[Q]=W;else if(Array.isArray($[Q]))$[Q].push(W);else $[Q]=[$[Q],W]}return $}a6(X7,"parseQueryString")});var n0=q((cQ,B7)=>{var{defineProperty:H0,getOwnPropertyDescriptor:t6,getOwnPropertyNames:e6}=Object,j$=Object.prototype.hasOwnProperty,$$=(j,$)=>H0(j,"name",{value:$,configurable:!0}),z$=(j,$)=>{for(var z in $)H0(j,z,{get:$[z],enumerable:!0})},Q$=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of e6($))if(!j$.call(j,W)&&W!==z)H0(j,W,{get:()=>$[W],enumerable:!(Q=t6($,W))||Q.enumerable})}return j},W$=(j)=>Q$(H0({},"__esModule",{value:!0}),j),G7={};z$(G7,{parseUrl:()=>Y7});B7.exports=W$(G7);var Z$=K7(),Y7=$$((j)=>{if(typeof j==="string")return Y7(new URL(j));let{hostname:$,pathname:z,port:Q,protocol:W,search:Z}=j,X;if(Z)X=Z$.parseQueryString(Z);return{hostname:$,port:Q?parseInt(Q):void 0,protocol:W,path:z,query:X}},"parseUrl")});var T$=q((dQ,M7)=>{var{defineProperty:U0,getOwnPropertyDescriptor:J$,getOwnPropertyNames:K$}=Object,G$=Object.prototype.hasOwnProperty,T=(j,$)=>U0(j,"name",{value:$,configurable:!0}),Y$=(j,$)=>{for(var z in $)U0(j,z,{get:$[z],enumerable:!0})},B$=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of K$($))if(!G$.call(j,W)&&W!==z)U0(j,W,{get:()=>$[W],enumerable:!(Q=J$($,W))||Q.enumerable})}return j},q$=(j)=>B$(U0({},"__esModule",{value:!0}),j),V7={};Y$(V7,{endpointMiddleware:()=>U7,endpointMiddlewareOptions:()=>L7,getEndpointFromInstructions:()=>H7,getEndpointPlugin:()=>N$,resolveEndpointConfig:()=>C$,resolveParams:()=>w7,toEndpointV1:()=>r0});M7.exports=q$(V7);var V$=T(async(j)=>{let $=j?.Bucket||"";if(typeof j.Bucket==="string")j.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(M$($)){if(j.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!L$($)||$.indexOf(".")!==-1&&!String(j.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)j.ForcePathStyle=!0;if(j.DisableMultiRegionAccessPoints)j.disableMultiRegionAccessPoints=!0,j.DisableMRAP=!0;return j},"resolveParamsForS3"),H$=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,w$=/(\d+\.){3}\d+/,U$=/\.\./,L$=T((j)=>H$.test(j)&&!w$.test(j)&&!U$.test(j),"isDnsCompatibleBucketName"),M$=T((j)=>{let[$,z,Q,,,W]=j.split(":"),Z=$==="arn"&&j.split(":").length>=6,X=Boolean(Z&&z&&Q&&W);if(Z&&!X)throw new Error(`Invalid ARN: ${j} was an invalid ARN.`);return X},"isArnBucketName"),b$=T((j,$,z)=>{let Q=T(async()=>{let W=z[j]??z[$];if(typeof W==="function")return W();return W},"configProvider");if(j==="credentialScope"||$==="CredentialScope")return async()=>{let W=typeof z.credentials==="function"?await z.credentials():z.credentials;return W?.credentialScope??W?.CredentialScope};if(j==="accountId"||$==="AccountId")return async()=>{let W=typeof z.credentials==="function"?await z.credentials():z.credentials;return W?.accountId??W?.AccountId};if(j==="endpoint"||$==="endpoint")return async()=>{let W=await Q();if(W&&typeof W==="object"){if("url"in W)return W.url.href;if("hostname"in W){let{protocol:Z,hostname:X,port:J,path:K}=W;return`${Z}//${X}${J?":"+J:""}${K}`}}return W};return Q},"createConfigValueProvider"),F$=a0(),q7=n0(),r0=T((j)=>{if(typeof j==="object"){if("url"in j)return q7.parseUrl(j.url);return j}return q7.parseUrl(j)},"toEndpointV1"),H7=T(async(j,$,z,Q)=>{if(!z.endpoint){let X;if(z.serviceConfiguredEndpoint)X=await z.serviceConfiguredEndpoint();else X=await F$.getEndpointFromConfig(z.serviceId);if(X)z.endpoint=()=>Promise.resolve(r0(X))}let W=await w7(j,$,z);if(typeof z.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return z.endpointProvider(W,Q)},"getEndpointFromInstructions"),w7=T(async(j,$,z)=>{let Q={},W=$?.getEndpointParameterInstructions?.()||{};for(let[Z,X]of Object.entries(W))switch(X.type){case"staticContextParams":Q[Z]=X.value;break;case"contextParams":Q[Z]=j[X.name];break;case"clientContextParams":case"builtInParams":Q[Z]=await b$(X.name,Z,z)();break;case"operationContextParams":Q[Z]=X.get(j);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(X))}if(Object.keys(W).length===0)Object.assign(Q,z);if(String(z.serviceId).toLowerCase()==="s3")await V$(Q);return Q},"resolveParams"),D$=j4(),w0=y0(),U7=T(({config:j,instructions:$})=>{return(z,Q)=>async(W)=>{if(j.endpoint)D$.setFeature(Q,"ENDPOINT_OVERRIDE","N");let Z=await H7(W.input,{getEndpointParameterInstructions(){return $}},{...j},Q);Q.endpointV2=Z,Q.authSchemes=Z.properties?.authSchemes;let X=Q.authSchemes?.[0];if(X){Q.signing_region=X.signingRegion,Q.signing_service=X.signingName;let K=w0.getSmithyContext(Q)?.selectedHttpAuthScheme?.httpAuthOption;if(K)K.signingProperties=Object.assign(K.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return z({...W})}},"endpointMiddleware"),h$=X$(),L7={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:h$.serializerMiddlewareOption.name},N$=T((j,$)=>({applyToStack:(z)=>{z.addRelativeTo(U7({config:j,instructions:$}),L7)}}),"getEndpointPlugin"),O$=a0(),C$=T((j)=>{let $=j.tls??!0,{endpoint:z}=j,Q=z!=null?async()=>r0(await w0.normalizeProvider(z)()):void 0,Z={...j,endpoint:Q,tls:$,isCustomEndpoint:!!z,useDualstackEndpoint:w0.normalizeProvider(j.useDualstackEndpoint??!1),useFipsEndpoint:w0.normalizeProvider(j.useFipsEndpoint??!1)},X=void 0;return Z.serviceConfiguredEndpoint=async()=>{if(j.serviceId&&!X)X=O$.getEndpointFromConfig(j.serviceId);return X},Z},"resolveEndpointConfig")});var t0=q((lQ,D7)=>{var{defineProperty:L0,getOwnPropertyDescriptor:I$,getOwnPropertyNames:v$}=Object,R$=Object.prototype.hasOwnProperty,g=(j,$)=>L0(j,"name",{value:$,configurable:!0}),S$=(j,$)=>{for(var z in $)L0(j,z,{get:$[z],enumerable:!0})},k$=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of v$($))if(!R$.call(j,W)&&W!==z)L0(j,W,{get:()=>$[W],enumerable:!(Q=I$($,W))||Q.enumerable})}return j},P$=(j)=>k$(L0({},"__esModule",{value:!0}),j),b7={};S$(b7,{isClockSkewCorrectedError:()=>F7,isClockSkewError:()=>u$,isRetryableByTrait:()=>g$,isServerError:()=>d$,isThrottlingError:()=>c$,isTransientError:()=>o0});D7.exports=P$(b7);var x$=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],A$=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],E$=["TimeoutError","RequestTimeout","RequestTimeoutException"],y$=[500,502,503,504],f$=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],g$=g((j)=>j.$retryable!==void 0,"isRetryableByTrait"),u$=g((j)=>x$.includes(j.name),"isClockSkewError"),F7=g((j)=>j.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),c$=g((j)=>j.$metadata?.httpStatusCode===429||A$.includes(j.name)||j.$retryable?.throttling==!0,"isThrottlingError"),o0=g((j,$=0)=>F7(j)||E$.includes(j.name)||f$.includes(j?.code||"")||y$.includes(j.$metadata?.httpStatusCode||0)||j.cause!==void 0&&$<=10&&o0(j.cause,$+1),"isTransientError"),d$=g((j)=>{if(j.$metadata?.httpStatusCode!==void 0){let $=j.$metadata.httpStatusCode;if(500<=$&&$<=599&&!o0(j))return!0;return!1}return!1},"isServerError")});var k7=q((_Q,S7)=>{var{defineProperty:M0,getOwnPropertyDescriptor:l$,getOwnPropertyNames:_$}=Object,s$=Object.prototype.hasOwnProperty,I=(j,$)=>M0(j,"name",{value:$,configurable:!0}),m$=(j,$)=>{for(var z in $)M0(j,z,{get:$[z],enumerable:!0})},p$=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of _$($))if(!s$.call(j,W)&&W!==z)M0(j,W,{get:()=>$[W],enumerable:!(Q=l$($,W))||Q.enumerable})}return j},i$=(j)=>p$(M0({},"__esModule",{value:!0}),j),N7={};m$(N7,{AdaptiveRetryStrategy:()=>e$,ConfiguredRetryStrategy:()=>jz,DEFAULT_MAX_ATTEMPTS:()=>e0,DEFAULT_RETRY_DELAY_BASE:()=>i,DEFAULT_RETRY_MODE:()=>a$,DefaultRateLimiter:()=>C7,INITIAL_RETRY_TOKENS:()=>j1,INVOCATION_ID_HEADER:()=>r$,MAXIMUM_RETRY_DELAY:()=>$1,NO_RETRY_INCREMENT:()=>R7,REQUEST_HEADER:()=>o$,RETRY_COST:()=>I7,RETRY_MODES:()=>O7,StandardRetryStrategy:()=>z1,THROTTLING_RETRY_DELAY_BASE:()=>T7,TIMEOUT_RETRY_COST:()=>v7});S7.exports=i$(N7);var O7=((j)=>{return j.STANDARD="standard",j.ADAPTIVE="adaptive",j})(O7||{}),e0=3,a$="standard",n$=t0(),C7=class j{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;let z=this.getCurrentTimeInSeconds();this.lastThrottleTime=z,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{I(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){let z=($-this.currentCapacity)/this.fillRate*1000;await new Promise((Q)=>j.setTimeoutFn(Q,z))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){let $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}let z=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+z),this.lastTimestamp=$}updateClientSendingRate($){let z;if(this.updateMeasuredRate(),n$.isThrottlingError($)){let W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),z=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),z=this.cubicSuccess(this.getCurrentTimeInSeconds());let Q=Math.min(z,2*this.measuredTxRate);this.updateTokenBucketRate(Q)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let $=this.getCurrentTimeInSeconds(),z=Math.floor($*2)/2;if(this.requestCount++,z>this.lastTxRateBucket){let Q=this.requestCount/(z-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(Q*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=z}}getPrecise($){return parseFloat($.toFixed(8))}},i=100,$1=20000,T7=500,j1=500,I7=5,v7=10,R7=1,r$="amz-sdk-invocation-id",o$="amz-sdk-request",t$=I(()=>{let j=i;return{computeNextBackoffDelay:I((Q)=>{return Math.floor(Math.min($1,Math.random()*2**Q*j))},"computeNextBackoffDelay"),setDelayBase:I((Q)=>{j=Q},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),h7=I(({retryDelay:j,retryCount:$,retryCost:z})=>{return{getRetryCount:I(()=>$,"getRetryCount"),getRetryDelay:I(()=>Math.min($1,j),"getRetryDelay"),getRetryCost:I(()=>z,"getRetryCost")}},"createDefaultRetryToken"),z1=class{constructor(j){this.maxAttempts=j,this.mode="standard",this.capacity=j1,this.retryBackoffStrategy=t$(),this.maxAttemptsProvider=typeof j==="function"?j:async()=>j}static{I(this,"StandardRetryStrategy")}async acquireInitialRetryToken(j){return h7({retryDelay:i,retryCount:0})}async refreshRetryTokenForRetry(j,$){let z=await this.getMaxAttempts();if(this.shouldRetry(j,$,z)){let Q=$.errorType;this.retryBackoffStrategy.setDelayBase(Q==="THROTTLING"?T7:i);let W=this.retryBackoffStrategy.computeNextBackoffDelay(j.getRetryCount()),Z=$.retryAfterHint?Math.max($.retryAfterHint.getTime()-Date.now()||0,W):W,X=this.getCapacityCost(Q);return this.capacity-=X,h7({retryDelay:Z,retryCount:j.getRetryCount()+1,retryCost:X})}throw new Error("No retry token available")}recordSuccess(j){this.capacity=Math.max(j1,this.capacity+(j.getRetryCost()??R7))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(j){return console.warn(`Max attempts provider could not resolve. Using default of ${e0}`),e0}}shouldRetry(j,$,z){return j.getRetryCount()+1<z&&this.capacity>=this.getCapacityCost($.errorType)&&this.isRetryableError($.errorType)}getCapacityCost(j){return j==="TRANSIENT"?v7:I7}isRetryableError(j){return j==="THROTTLING"||j==="TRANSIENT"}},e$=class{constructor(j,$){this.maxAttemptsProvider=j,this.mode="adaptive";let{rateLimiter:z}=$??{};this.rateLimiter=z??new C7,this.standardRetryStrategy=new z1(j)}static{I(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(j){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(j)}async refreshRetryTokenForRetry(j,$){return this.rateLimiter.updateClientSendingRate($),this.standardRetryStrategy.refreshRetryTokenForRetry(j,$)}recordSuccess(j){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(j)}},jz=class extends z1{static{I(this,"ConfiguredRetryStrategy")}constructor(j,$=i){super(typeof j==="function"?j:async()=>j);if(typeof $==="number")this.computeNextBackoffDelay=()=>$;else this.computeNextBackoffDelay=$}async refreshRetryTokenForRetry(j,$){let z=await super.refreshRetryTokenForRetry(j,$);return z.getRetryDelay=()=>this.computeNextBackoffDelay(z.getRetryCount()),z}}});var A7=q((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});P7.isStreamingPayload=void 0;var $z=F("stream"),zz=(j)=>(j===null||j===void 0?void 0:j.body)instanceof $z.Readable||typeof ReadableStream!=="undefined"&&(j===null||j===void 0?void 0:j.body)instanceof ReadableStream;P7.isStreamingPayload=zz});var Oz=q((aQ,n7)=>{var{defineProperty:b0,getOwnPropertyDescriptor:Zz,getOwnPropertyNames:Xz}=Object,Jz=Object.prototype.hasOwnProperty,L=(j,$)=>b0(j,"name",{value:$,configurable:!0}),Kz=(j,$)=>{for(var z in $)b0(j,z,{get:$[z],enumerable:!0})},Gz=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of Xz($))if(!Jz.call(j,W)&&W!==z)b0(j,W,{get:()=>$[W],enumerable:!(Q=Zz($,W))||Q.enumerable})}return j},Yz=(j)=>Gz(b0({},"__esModule",{value:!0}),j),y7={};Kz(y7,{AdaptiveRetryStrategy:()=>Vz,CONFIG_MAX_ATTEMPTS:()=>W1,CONFIG_RETRY_MODE:()=>_7,ENV_MAX_ATTEMPTS:()=>Q1,ENV_RETRY_MODE:()=>l7,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Hz,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Uz,StandardRetryStrategy:()=>d7,defaultDelayDecider:()=>g7,defaultRetryDecider:()=>u7,getOmitRetryHeadersPlugin:()=>Lz,getRetryAfterHint:()=>a7,getRetryPlugin:()=>Nz,omitRetryHeadersMiddleware:()=>s7,omitRetryHeadersMiddlewareOptions:()=>m7,resolveRetryConfig:()=>wz,retryMiddleware:()=>p7,retryMiddlewareOptions:()=>i7});n7.exports=Yz(y7);var u=l(),f7=Wz(),U=k7(),Bz=L((j,$)=>{let z=j,Q=$?.noRetryIncrement??U.NO_RETRY_INCREMENT,W=$?.retryCost??U.RETRY_COST,Z=$?.timeoutRetryCost??U.TIMEOUT_RETRY_COST,X=j,J=L((Y)=>Y.name==="TimeoutError"?Z:W,"getCapacityAmount"),K=L((Y)=>J(Y)<=X,"hasRetryTokens");return Object.freeze({hasRetryTokens:K,retrieveRetryTokens:L((Y)=>{if(!K(Y))throw new Error("No retry token available");let B=J(Y);return X-=B,B},"retrieveRetryTokens"),releaseRetryTokens:L((Y)=>{X+=Y??Q,X=Math.min(X,z)},"releaseRetryTokens")})},"getDefaultRetryQuota"),g7=L((j,$)=>Math.floor(Math.min(U.MAXIMUM_RETRY_DELAY,Math.random()*2**$*j)),"defaultDelayDecider"),P=t0(),u7=L((j)=>{if(!j)return!1;return P.isRetryableByTrait(j)||P.isClockSkewError(j)||P.isThrottlingError(j)||P.isTransientError(j)},"defaultRetryDecider"),c7=L((j)=>{if(j instanceof Error)return j;if(j instanceof Object)return Object.assign(new Error,j);if(typeof j==="string")return new Error(j);return new Error(`AWS SDK error wrapper for ${j}`)},"asSdkError"),d7=class{constructor(j,$){this.maxAttemptsProvider=j,this.mode=U.RETRY_MODES.STANDARD,this.retryDecider=$?.retryDecider??u7,this.delayDecider=$?.delayDecider??g7,this.retryQuota=$?.retryQuota??Bz(U.INITIAL_RETRY_TOKENS)}static{L(this,"StandardRetryStrategy")}shouldRetry(j,$,z){return $<z&&this.retryDecider(j)&&this.retryQuota.hasRetryTokens(j)}async getMaxAttempts(){let j;try{j=await this.maxAttemptsProvider()}catch($){j=U.DEFAULT_MAX_ATTEMPTS}return j}async retry(j,$,z){let Q,W=0,Z=0,X=await this.getMaxAttempts(),{request:J}=$;if(u.HttpRequest.isInstance(J))J.headers[U.INVOCATION_ID_HEADER]=f7.v4();while(!0)try{if(u.HttpRequest.isInstance(J))J.headers[U.REQUEST_HEADER]=`attempt=${W+1}; max=${X}`;if(z?.beforeRequest)await z.beforeRequest();let{response:K,output:G}=await j($);if(z?.afterRequest)z.afterRequest(K);return this.retryQuota.releaseRetryTokens(Q),G.$metadata.attempts=W+1,G.$metadata.totalRetryDelay=Z,{response:K,output:G}}catch(K){let G=c7(K);if(W++,this.shouldRetry(G,W,X)){Q=this.retryQuota.retrieveRetryTokens(G);let V=this.delayDecider(P.isThrottlingError(G)?U.THROTTLING_RETRY_DELAY_BASE:U.DEFAULT_RETRY_DELAY_BASE,W),Y=qz(G.$response),B=Math.max(Y||0,V);Z+=B,await new Promise((b)=>setTimeout(b,B));continue}if(!G.$metadata)G.$metadata={};throw G.$metadata.attempts=W,G.$metadata.totalRetryDelay=Z,G}}},qz=L((j)=>{if(!u.HttpResponse.isInstance(j))return;let $=Object.keys(j.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!$)return;let z=j.headers[$],Q=Number(z);if(!Number.isNaN(Q))return Q*1000;return new Date(z).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Vz=class extends d7{static{L(this,"AdaptiveRetryStrategy")}constructor(j,$){let{rateLimiter:z,...Q}=$??{};super(j,Q);this.rateLimiter=z??new U.DefaultRateLimiter,this.mode=U.RETRY_MODES.ADAPTIVE}async retry(j,$){return super.retry(j,$,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(z)=>{this.rateLimiter.updateClientSendingRate(z)}})}},E7=y0(),Q1="AWS_MAX_ATTEMPTS",W1="max_attempts",Hz={environmentVariableSelector:(j)=>{let $=j[Q1];if(!$)return;let z=parseInt($);if(Number.isNaN(z))throw new Error(`Environment variable ${Q1} mast be a number, got "${$}"`);return z},configFileSelector:(j)=>{let $=j[W1];if(!$)return;let z=parseInt($);if(Number.isNaN(z))throw new Error(`Shared config file entry ${W1} mast be a number, got "${$}"`);return z},default:U.DEFAULT_MAX_ATTEMPTS},wz=L((j)=>{let{retryStrategy:$}=j,z=E7.normalizeProvider(j.maxAttempts??U.DEFAULT_MAX_ATTEMPTS);return{...j,maxAttempts:z,retryStrategy:async()=>{if($)return $;if(await E7.normalizeProvider(j.retryMode)()===U.RETRY_MODES.ADAPTIVE)return new U.AdaptiveRetryStrategy(z);return new U.StandardRetryStrategy(z)}}},"resolveRetryConfig"),l7="AWS_RETRY_MODE",_7="retry_mode",Uz={environmentVariableSelector:(j)=>j[l7],configFileSelector:(j)=>j[_7],default:U.DEFAULT_RETRY_MODE},s7=L(()=>(j)=>async($)=>{let{request:z}=$;if(u.HttpRequest.isInstance(z))delete z.headers[U.INVOCATION_ID_HEADER],delete z.headers[U.REQUEST_HEADER];return j($)},"omitRetryHeadersMiddleware"),m7={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Lz=L((j)=>({applyToStack:($)=>{$.addRelativeTo(s7(),m7)}}),"getOmitRetryHeadersPlugin"),Mz=Qz(),bz=A7(),p7=L((j)=>($,z)=>async(Q)=>{let W=await j.retryStrategy(),Z=await j.maxAttempts();if(Fz(W)){W=W;let X=await W.acquireInitialRetryToken(z.partition_id),J=new Error,K=0,G=0,{request:V}=Q,Y=u.HttpRequest.isInstance(V);if(Y)V.headers[U.INVOCATION_ID_HEADER]=f7.v4();while(!0)try{if(Y)V.headers[U.REQUEST_HEADER]=`attempt=${K+1}; max=${Z}`;let{response:B,output:b}=await $(Q);return W.recordSuccess(X),b.$metadata.attempts=K+1,b.$metadata.totalRetryDelay=G,{response:B,output:b}}catch(B){let b=Dz(B);if(J=c7(B),Y&&bz.isStreamingPayload(V))throw(z.logger instanceof Mz.NoOpLogger?console:z.logger)?.warn("An error was encountered in a non-retryable streaming request."),J;try{X=await W.refreshRetryTokenForRetry(X,b)}catch(O){if(!J.$metadata)J.$metadata={};throw J.$metadata.attempts=K+1,J.$metadata.totalRetryDelay=G,J}K=X.getRetryCount();let D=X.getRetryDelay();G+=D,await new Promise((O)=>setTimeout(O,D))}}else{if(W=W,W?.mode)z.userAgent=[...z.userAgent||[],["cfg/retry-mode",W.mode]];return W.retry($,Q)}},"retryMiddleware"),Fz=L((j)=>typeof j.acquireInitialRetryToken!=="undefined"&&typeof j.refreshRetryTokenForRetry!=="undefined"&&typeof j.recordSuccess!=="undefined","isRetryStrategyV2"),Dz=L((j)=>{let $={error:j,errorType:hz(j)},z=a7(j.$response);if(z)$.retryAfterHint=z;return $},"getRetryErrorInfo"),hz=L((j)=>{if(P.isThrottlingError(j))return"THROTTLING";if(P.isTransientError(j))return"TRANSIENT";if(P.isServerError(j))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),i7={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Nz=L((j)=>({applyToStack:($)=>{$.add(p7(j),i7)}}),"getRetryPlugin"),a7=L((j)=>{if(!u.HttpResponse.isInstance(j))return;let $=Object.keys(j.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!$)return;let z=j.headers[$],Q=Number(z);if(!Number.isNaN(Q))return new Date(Q*1000);return new Date(z)},"getRetryAfterHint")});var yz=q((oQ,$5)=>{var{defineProperty:F0,getOwnPropertyDescriptor:Cz,getOwnPropertyNames:Tz}=Object,Iz=Object.prototype.hasOwnProperty,c=(j,$)=>F0(j,"name",{value:$,configurable:!0}),vz=(j,$)=>{for(var z in $)F0(j,z,{get:$[z],enumerable:!0})},Rz=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of Tz($))if(!Iz.call(j,W)&&W!==z)F0(j,W,{get:()=>$[W],enumerable:!(Q=Cz($,W))||Q.enumerable})}return j},Sz=(j)=>Rz(F0({},"__esModule",{value:!0}),j),o7={};vz(o7,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>Az,NODE_REGION_CONFIG_OPTIONS:()=>xz,REGION_ENV_NAME:()=>t7,REGION_INI_NAME:()=>e7,getAwsRegionExtensionConfiguration:()=>kz,resolveAwsRegionExtensionConfiguration:()=>Pz,resolveRegionConfig:()=>Ez});$5.exports=Sz(o7);var kz=c((j)=>{let $=c(async()=>{if(j.region===void 0)throw new Error("Region is missing from runtimeConfig");let z=j.region;if(typeof z==="string")return z;return z()},"runtimeConfigRegion");return{setRegion(z){$=z},region(){return $}}},"getAwsRegionExtensionConfiguration"),Pz=c((j)=>{return{region:j.region()}},"resolveAwsRegionExtensionConfiguration"),t7="AWS_REGION",e7="region",xz={environmentVariableSelector:(j)=>j[t7],configFileSelector:(j)=>j[e7],default:()=>{throw new Error("Region is missing")}},Az={preferredFile:"credentials"},j5=c((j)=>typeof j==="string"&&(j.startsWith("fips-")||j.endsWith("-fips")),"isFipsRegion"),r7=c((j)=>j5(j)?["fips-aws-global","aws-fips"].includes(j)?"us-east-1":j.replace(/fips-(dkr-|prod-)?|-fips/,""):j,"getRealRegion"),Ez=c((j)=>{let{region:$,useFipsEndpoint:z}=j;if(!$)throw new Error("Region is missing");return{...j,region:async()=>{if(typeof $==="string")return r7($);let Q=await $();return r7(Q)},useFipsEndpoint:async()=>{let Q=typeof $==="string"?$:await $();if(j5(Q))return!0;return typeof z!=="function"?Promise.resolve(!!z):z()}}},"resolveRegionConfig")});var gz=q((tQ,fz)=>{fz.exports={name:"@aws-sdk/nested-clients",version:"3.772.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.758.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.772.0","@aws-sdk/middleware-user-agent":"3.758.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.758.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.5","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.6","@smithy/middleware-retry":"^4.0.7","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.3","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.6","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.7","@smithy/util-defaults-mode-node":"^4.0.7","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js",types:"./dist-types/submodules/sso-oidc/index.d.ts"},"./sts":{module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js",types:"./dist-types/submodules/sts/index.d.ts"}}}});var rz=q((eQ,G5)=>{var{defineProperty:D0,getOwnPropertyDescriptor:uz,getOwnPropertyNames:cz}=Object,dz=Object.prototype.hasOwnProperty,Q5=(j,$)=>D0(j,"name",{value:$,configurable:!0}),lz=(j,$)=>{for(var z in $)D0(j,z,{get:$[z],enumerable:!0})},_z=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of cz($))if(!dz.call(j,W)&&W!==z)D0(j,W,{get:()=>$[W],enumerable:!(Q=uz($,W))||Q.enumerable})}return j},sz=(j)=>_z(D0({},"__esModule",{value:!0}),j),W5={};lz(W5,{NODE_APP_ID_CONFIG_OPTIONS:()=>nz,UA_APP_ID_ENV_NAME:()=>J5,UA_APP_ID_INI_NAME:()=>K5,createDefaultUserAgentProvider:()=>X5,crtAvailability:()=>Z5,defaultUserAgent:()=>pz});G5.exports=sz(W5);var z5=F("os"),Z1=F("process"),Z5={isCrtAvailable:!1},mz=Q5(()=>{if(Z5.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),X5=Q5(({serviceId:j,clientVersion:$})=>{return async(z)=>{let Q=[["aws-sdk-js",$],["ua","2.1"],[`os/${z5.platform()}`,z5.release()],["lang/js"],["md/nodejs",`${Z1.versions.node}`]],W=mz();if(W)Q.push(W);if(j)Q.push([`api/${j}`,$]);if(Z1.env.AWS_EXECUTION_ENV)Q.push([`exec-env/${Z1.env.AWS_EXECUTION_ENV}`]);let Z=await z?.userAgentAppId?.();return Z?[...Q,[`app/${Z}`]]:[...Q]}},"createDefaultUserAgentProvider"),pz=X5,iz=Y4(),J5="AWS_SDK_UA_APP_ID",K5="sdk_ua_app_id",az="sdk-ua-app-id",nz={environmentVariableSelector:(j)=>j[J5],configFileSelector:(j)=>j[K5]??j[az],default:iz.DEFAULT_UA_APP_ID}});var K9=q((jW,V5)=>{var{defineProperty:h0,getOwnPropertyDescriptor:ez,getOwnPropertyNames:j9}=Object,$9=Object.prototype.hasOwnProperty,B5=(j,$)=>h0(j,"name",{value:$,configurable:!0}),z9=(j,$)=>{for(var z in $)h0(j,z,{get:$[z],enumerable:!0})},Q9=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of j9($))if(!$9.call(j,W)&&W!==z)h0(j,W,{get:()=>$[W],enumerable:!(Q=ez($,W))||Q.enumerable})}return j},W9=(j)=>Q9(h0({},"__esModule",{value:!0}),j),q5={};z9(q5,{Hash:()=>J9});V5.exports=W9(q5);var X1=oz(),Z9=tz(),X9=F("buffer"),Y5=F("crypto"),J9=class{static{B5(this,"Hash")}constructor(j,$){this.algorithmIdentifier=j,this.secret=$,this.reset()}update(j,$){this.hash.update(Z9.toUint8Array(J1(j,$)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Y5.createHmac(this.algorithmIdentifier,J1(this.secret)):Y5.createHash(this.algorithmIdentifier)}};function J1(j,$){if(X9.Buffer.isBuffer(j))return j;if(typeof j==="string")return X1.fromString(j,$);if(ArrayBuffer.isView(j))return X1.fromArrayBuffer(j.buffer,j.byteOffset,j.byteLength);return X1.fromArrayBuffer(j)}B5(J1,"castSourceData")});var L9=q((zW,U5)=>{var{defineProperty:N0,getOwnPropertyDescriptor:G9,getOwnPropertyNames:Y9}=Object,B9=Object.prototype.hasOwnProperty,q9=(j,$)=>N0(j,"name",{value:$,configurable:!0}),V9=(j,$)=>{for(var z in $)N0(j,z,{get:$[z],enumerable:!0})},H9=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of Y9($))if(!B9.call(j,W)&&W!==z)N0(j,W,{get:()=>$[W],enumerable:!(Q=G9($,W))||Q.enumerable})}return j},w9=(j)=>H9(N0({},"__esModule",{value:!0}),j),w5={};V9(w5,{calculateBodyLength:()=>U9});U5.exports=w9(w5);var H5=F("fs"),U9=q9((j)=>{if(!j)return 0;if(typeof j==="string")return Buffer.byteLength(j);else if(typeof j.byteLength==="number")return j.byteLength;else if(typeof j.size==="number")return j.size;else if(typeof j.start==="number"&&typeof j.end==="number")return j.end+1-j.start;else if(typeof j.path==="string"||Buffer.isBuffer(j.path))return H5.lstatSync(j.path).size;else if(typeof j.fd==="number")return H5.fstatSync(j.fd).size;throw new Error(`Body Length computation failed for ${j}`)},"calculateBodyLength")});var S5=q((QW,R5)=>{var{defineProperty:T0,getOwnPropertyDescriptor:M9,getOwnPropertyNames:b9}=Object,F9=Object.prototype.hasOwnProperty,M=(j,$)=>T0(j,"name",{value:$,configurable:!0}),D9=(j,$)=>{for(var z in $)T0(j,z,{get:$[z],enumerable:!0})},h9=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of b9($))if(!F9.call(j,W)&&W!==z)T0(j,W,{get:()=>$[W],enumerable:!(Q=M9($,W))||Q.enumerable})}return j},N9=(j)=>h9(T0({},"__esModule",{value:!0}),j),F5={};D9(F5,{DEFAULT_MAX_RETRIES:()=>O5,DEFAULT_TIMEOUT:()=>N5,ENV_CMDS_AUTH_TOKEN:()=>Y1,ENV_CMDS_FULL_URI:()=>O0,ENV_CMDS_RELATIVE_URI:()=>C0,Endpoint:()=>C5,fromContainerMetadata:()=>I9,fromInstanceMetadata:()=>a9,getInstanceMetadataEndpoint:()=>I5,httpRequest:()=>d,providerConfigFromInit:()=>B1});R5.exports=N9(F5);var O9=F("url"),R=p0(),C9=F("buffer"),T9=F("http");function d(j){return new Promise(($,z)=>{let Q=T9.request({method:"GET",...j,hostname:j.hostname?.replace(/^\[(.+)\]$/,"$1")});Q.on("error",(W)=>{z(Object.assign(new R.ProviderError("Unable to connect to instance metadata service"),W)),Q.destroy()}),Q.on("timeout",()=>{z(new R.ProviderError("TimeoutError from instance metadata service")),Q.destroy()}),Q.on("response",(W)=>{let{statusCode:Z=400}=W;if(Z<200||300<=Z)z(Object.assign(new R.ProviderError("Error response received from instance metadata service"),{statusCode:Z})),Q.destroy();let X=[];W.on("data",(J)=>{X.push(J)}),W.on("end",()=>{$(C9.Buffer.concat(X)),Q.destroy()})}),Q.end()})}M(d,"httpRequest");var D5=M((j)=>Boolean(j)&&typeof j==="object"&&typeof j.AccessKeyId==="string"&&typeof j.SecretAccessKey==="string"&&typeof j.Token==="string"&&typeof j.Expiration==="string","isImdsCredentials"),h5=M((j)=>({accessKeyId:j.AccessKeyId,secretAccessKey:j.SecretAccessKey,sessionToken:j.Token,expiration:new Date(j.Expiration),...j.AccountId&&{accountId:j.AccountId}}),"fromImdsCredentials"),N5=1000,O5=0,B1=M(({maxRetries:j=O5,timeout:$=N5})=>({maxRetries:j,timeout:$}),"providerConfigFromInit"),G1=M((j,$)=>{let z=j();for(let Q=0;Q<$;Q++)z=z.catch(j);return z},"retry"),O0="AWS_CONTAINER_CREDENTIALS_FULL_URI",C0="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Y1="AWS_CONTAINER_AUTHORIZATION_TOKEN",I9=M((j={})=>{let{timeout:$,maxRetries:z}=B1(j);return()=>G1(async()=>{let Q=await P9({logger:j.logger}),W=JSON.parse(await v9($,Q));if(!D5(W))throw new R.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:j.logger});return h5(W)},z)},"fromContainerMetadata"),v9=M(async(j,$)=>{if(process.env[Y1])$.headers={...$.headers,Authorization:process.env[Y1]};return(await d({...$,timeout:j})).toString()},"requestFromEcsImds"),R9="169.254.170.2",S9={localhost:!0,"127.0.0.1":!0},k9={"http:":!0,"https:":!0},P9=M(async({logger:j})=>{if(process.env[C0])return{hostname:R9,path:process.env[C0]};if(process.env[O0]){let $=O9.parse(process.env[O0]);if(!$.hostname||!($.hostname in S9))throw new R.CredentialsProviderError(`${$.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:j});if(!$.protocol||!($.protocol in k9))throw new R.CredentialsProviderError(`${$.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:j});return{...$,port:$.port?parseInt($.port,10):void 0}}throw new R.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${C0} or ${O0} environment variable is set`,{tryNextLink:!1,logger:j})},"getCmdsUri"),x9=class j extends R.CredentialsProviderError{constructor($,z=!0){super($,z);this.tryNextLink=z,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,j.prototype)}static{M(this,"InstanceMetadataV1FallbackError")}},q1=q0(),A9=n0(),C5=((j)=>{return j.IPv4="http://169.254.169.254",j.IPv6="http://[fd00:ec2::254]",j})(C5||{}),E9="AWS_EC2_METADATA_SERVICE_ENDPOINT",y9="ec2_metadata_service_endpoint",f9={environmentVariableSelector:(j)=>j[E9],configFileSelector:(j)=>j[y9],default:void 0},T5=((j)=>{return j.IPv4="IPv4",j.IPv6="IPv6",j})(T5||{}),g9="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",u9="ec2_metadata_service_endpoint_mode",c9={environmentVariableSelector:(j)=>j[g9],configFileSelector:(j)=>j[u9],default:"IPv4"},I5=M(async()=>A9.parseUrl(await d9()||await l9()),"getInstanceMetadataEndpoint"),d9=M(async()=>q1.loadConfig(f9)(),"getFromEndpointConfig"),l9=M(async()=>{let j=await q1.loadConfig(c9)();switch(j){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${j}. Select from ${Object.values(T5)}`)}},"getFromEndpointModeConfig"),_9=300,s9=300,m9="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",L5=M((j,$)=>{let z=_9+Math.floor(Math.random()*s9),Q=new Date(Date.now()+z*1000);$.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(Q)}.
2
+ For more information, please visit: `+m9);let W=j.originalExpiration??j.expiration;return{...j,...W?{originalExpiration:W}:{},expiration:Q}},"getExtendedInstanceMetadataCredentials"),p9=M((j,$={})=>{let z=$?.logger||console,Q;return async()=>{let W;try{if(W=await j(),W.expiration&&W.expiration.getTime()<Date.now())W=L5(W,z)}catch(Z){if(Q)z.warn("Credential renew failed: ",Z),W=L5(Q,z);else throw Z}return Q=W,W}},"staticStabilityProvider"),v5="/latest/meta-data/iam/security-credentials/",i9="/latest/api/token",K1="AWS_EC2_METADATA_V1_DISABLED",M5="ec2_metadata_v1_disabled",b5="x-aws-ec2-metadata-token",a9=M((j={})=>p9(n9(j),{logger:j.logger}),"fromInstanceMetadata"),n9=M((j={})=>{let $=!1,{logger:z,profile:Q}=j,{timeout:W,maxRetries:Z}=B1(j),X=M(async(J,K)=>{if($||K.headers?.[b5]==null){let Y=!1,B=!1,b=await q1.loadConfig({environmentVariableSelector:(D)=>{let O=D[K1];if(B=!!O&&O!=="false",O===void 0)throw new R.CredentialsProviderError(`${K1} not set in env, checking config file next.`,{logger:j.logger});return B},configFileSelector:(D)=>{let O=D[M5];return Y=!!O&&O!=="false",Y},default:!1},{profile:Q})();if(j.ec2MetadataV1Disabled||b){let D=[];if(j.ec2MetadataV1Disabled)D.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(Y)D.push(`config file profile (${M5})`);if(B)D.push(`process environment variable (${K1})`);throw new x9(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${D.join(", ")}].`)}}let V=(await G1(async()=>{let Y;try{Y=await o9(K)}catch(B){if(B.statusCode===401)$=!1;throw B}return Y},J)).trim();return G1(async()=>{let Y;try{Y=await t9(V,K,j)}catch(B){if(B.statusCode===401)$=!1;throw B}return Y},J)},"getCredentials");return async()=>{let J=await I5();if($)return z?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),X(Z,{...J,timeout:W});else{let K;try{K=(await r9({...J,timeout:W})).toString()}catch(G){if(G?.statusCode===400)throw Object.assign(G,{message:"EC2 Metadata token request returned error"});else if(G.message==="TimeoutError"||[403,404,405].includes(G.statusCode))$=!0;return z?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),X(Z,{...J,timeout:W})}return X(Z,{...J,headers:{[b5]:K},timeout:W})}}},"getInstanceMetadataProvider"),r9=M(async(j)=>d({...j,path:i9,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),o9=M(async(j)=>(await d({...j,path:v5})).toString(),"getProfile"),t9=M(async(j,$,z)=>{let Q=JSON.parse((await d({...$,path:v5+j})).toString());if(!D5(Q))throw new R.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return h5(Q)},"getCredentialsFromProfile")});var bQ=q((WW,y5)=>{var{create:e9,defineProperty:a,getOwnPropertyDescriptor:jQ,getOwnPropertyNames:$Q,getPrototypeOf:zQ}=Object,QQ=Object.prototype.hasOwnProperty,V1=(j,$)=>a(j,"name",{value:$,configurable:!0}),WQ=(j,$)=>{for(var z in $)a(j,z,{get:$[z],enumerable:!0})},A5=(j,$,z,Q)=>{if($&&typeof $==="object"||typeof $==="function"){for(let W of $Q($))if(!QQ.call(j,W)&&W!==z)a(j,W,{get:()=>$[W],enumerable:!(Q=jQ($,W))||Q.enumerable})}return j},ZQ=(j,$,z)=>(z=j!=null?e9(zQ(j)):{},A5($||!j||!j.__esModule?a(z,"default",{value:j,enumerable:!0}):z,j)),XQ=(j)=>A5(a({},"__esModule",{value:!0}),j),E5={};WQ(E5,{resolveDefaultsModeConfig:()=>UQ});y5.exports=XQ(E5);var JQ=I4(),k5=q0(),KQ=p0(),GQ="AWS_EXECUTION_ENV",P5="AWS_REGION",x5="AWS_DEFAULT_REGION",YQ="AWS_EC2_METADATA_DISABLED",BQ=["in-region","cross-region","mobile","standard","legacy"],qQ="/latest/meta-data/placement/region",VQ="AWS_DEFAULTS_MODE",HQ="defaults_mode",wQ={environmentVariableSelector:(j)=>{return j[VQ]},configFileSelector:(j)=>{return j[HQ]},default:"legacy"},UQ=V1(({region:j=k5.loadConfig(JQ.NODE_REGION_CONFIG_OPTIONS),defaultsMode:$=k5.loadConfig(wQ)}={})=>KQ.memoize(async()=>{let z=typeof $==="function"?await $():$;switch(z?.toLowerCase()){case"auto":return LQ(j);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(z?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${BQ.join(", ")}, got ${z}`)}}),"resolveDefaultsModeConfig"),LQ=V1(async(j)=>{if(j){let $=typeof j==="function"?await j():j,z=await MQ();if(!z)return"standard";if($===z)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),MQ=V1(async()=>{if(process.env[GQ]&&(process.env[P5]||process.env[x5]))return process.env[P5]??process.env[x5];if(!process.env[YQ])try{let{getInstanceMetadataEndpoint:j,httpRequest:$}=await Promise.resolve().then(()=>ZQ(S5())),z=await j();return(await $({...z,path:qQ})).toString()}catch(j){}},"inferPhysicalRegion")});
3
+ export{a5 as Da,zj as Ea,Vj as Fa,u1 as Ga,r1 as Ha,Y4 as Ia,I4 as Ja,i8 as Ka,q0 as La,n0 as Ma,T$ as Na,k7 as Oa,Oz as Pa,gz as Qa,rz as Ra,K9 as Sa,L9 as Ta,bQ as Ua,yz as Va};
@@ -1,8 +1,8 @@
1
- import{Tc as X}from"./chunk-2pj0cr49.js";var M=X((N,T)=>{var{defineProperty:B,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z}=Object,$=Object.prototype.hasOwnProperty,H=(b,j)=>B(b,"name",{value:j,configurable:!0}),A=(b,j)=>{for(var q in j)B(b,q,{get:j[q],enumerable:!0})},D=(b,j,q,K)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let z of Z(j))if(!$.call(b,z)&&z!==q)B(b,z,{get:()=>j[z],enumerable:!(K=Y(j,z))||K.enumerable})}return b},E=(b)=>D(B({},"__esModule",{value:!0}),b),L={};A(L,{emitWarningIfUnsupportedVersion:()=>I,setCredentialFeature:()=>Q,setFeature:()=>R,state:()=>G});T.exports=E(L);var G={warningEmitted:!1},I=H((b)=>{if(b&&!G.warningEmitted&&parseInt(b.substring(1,b.indexOf(".")))<18)G.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
1
+ import{Pc as X}from"./chunk-tkegy5p0.js";var M=X((N,T)=>{var{defineProperty:B,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z}=Object,$=Object.prototype.hasOwnProperty,H=(b,j)=>B(b,"name",{value:j,configurable:!0}),A=(b,j)=>{for(var q in j)B(b,q,{get:j[q],enumerable:!0})},D=(b,j,q,K)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let z of Z(j))if(!$.call(b,z)&&z!==q)B(b,z,{get:()=>j[z],enumerable:!(K=Y(j,z))||K.enumerable})}return b},E=(b)=>D(B({},"__esModule",{value:!0}),b),L={};A(L,{emitWarningIfUnsupportedVersion:()=>I,setCredentialFeature:()=>Q,setFeature:()=>R,state:()=>G});T.exports=E(L);var G={warningEmitted:!1},I=H((b)=>{if(b&&!G.warningEmitted&&parseInt(b.substring(1,b.indexOf(".")))<18)G.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
2
2
  no longer support Node.js 16.x on January 6, 2025.
3
3
 
4
4
  To continue receiving updates to AWS services, bug fixes, and security
5
5
  updates please upgrade to a supported Node.js LTS version.
6
6
 
7
7
  More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function Q(b,j,q){if(!b.$source)b.$source={};return b.$source[j]=q,b}H(Q,"setCredentialFeature");function R(b,j,q){if(!b.__aws_sdk_context)b.__aws_sdk_context={features:{}};else if(!b.__aws_sdk_context.features)b.__aws_sdk_context.features={};b.__aws_sdk_context.features[j]=q}H(R,"setFeature")});
8
- export{M as Qc};
8
+ export{M as Lc};
@@ -1 +1 @@
1
- import{Gc as S}from"./chunk-5eh2tfep.js";import{Rc as x}from"./chunk-2pj0cr49.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"path";import{homedir as N}from"os";import{sep as L}from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"crypto";import{join as X}from"path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as yc,B as zc,H as Ac,$e as Bc,c as Cc,R as Dc,Pe as Ec,He as Fc};
1
+ import{Hc as S}from"./chunk-0fgzbrz9.js";import{Nc as x}from"./chunk-tkegy5p0.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"path";import{homedir as N}from"os";import{sep as L}from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"crypto";import{join as X}from"path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as zc,B as Ac,H as Bc,$e as Cc,c as Dc,R as Ec,Pe as Fc,He as Gc};