mirror of
https://github.com/redhat-actions/podman-login.git
synced 2026-11-16 21:08:08 +00:00
* Bump @aws-sdk/client-ecr from 3.1142.0 to 3.1161.0 Bumps [@aws-sdk/client-ecr](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ecr) from 3.1142.0 to 3.1161.0. - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ecr/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1161.0/clients/client-ecr) --- updated-dependencies: - dependency-name: "@aws-sdk/client-ecr" dependency-version: 3.1159.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Rebuild bundle after dependency update --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
18 lines
No EOL
1 MiB
18 lines
No EOL
1 MiB
require('./sourcemap-register.js');(()=>{var t={8249:(t,n,s)=>{var o;const{awsEndpointFunctions:i,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:c,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:u,resolveAwsRegionExtensionConfiguration:d,resolveUserAgentConfig:g,resolveHostHeaderConfig:h,getUserAgentPlugin:f,getHostHeaderPlugin:E,getLoggerPlugin:p,getRecursionDetectionPlugin:C}=s(5152);const{getHttpAuthSchemeEndpointRuleSetPlugin:I,DefaultIdentityProviderConfig:m,getHttpSigningPlugin:B,createPaginator:Q}=s(402);const{normalizeProvider:y,getSmithyContext:w,ServiceException:S,NoOpLogger:R,emitWarningIfUnsupportedVersion:D,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:v,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:F,createWaiter:x,checkExceptions:M,WaiterState:U,createAggregatedClient:L}=s(2658);const{Command:P}=s(2658);o=P;o=N;const{resolveDefaultsModeConfig:O,loadConfig:H,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:_,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:G,NODE_REGION_CONFIG_OPTIONS:V,NODE_REGION_CONFIG_FILE_OPTIONS:Y,resolveRegionConfig:J}=s(7291);const{BinaryDecisionDiagram:q,EndpointCache:W,decideEndpoint:z,customEndpointFunctions:$,resolveEndpointConfig:j,getEndpointPlugin:K}=s(2085);const{parseUrl:Z,getHttpHandlerExtensionConfiguration:X,resolveHttpHandlerRuntimeConfig:ee,getContentLengthPlugin:te}=s(3422);const{DEFAULT_RETRY_MODE:ne,NODE_RETRY_MODE_CONFIG_OPTIONS:re,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:se,resolveRetryConfig:oe,getRetryPlugin:ie}=s(3609);const{TypeRegistry:ae,getSchemaSerdePlugin:Ae}=s(6890);const{resolveAwsSdkSigV4Config:ce,AwsSdkSigV4Signer:le,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ue}=s(7523);const{defaultProvider:de}=s(5861);const{toUtf8:ge,fromUtf8:he,toBase64:fe,fromBase64:Ee,calculateBodyLength:pe}=s(2430);const{streamCollector:Ce,NodeHttpHandler:Ie}=s(1279);const{AwsJson1_1Protocol:me}=s(7288);const{Sha256:Be}=s(9542);const defaultECRHttpAuthSchemeParametersProvider=async(t,n,s)=>({operation:w(n).operation,region:await y(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const defaultECRHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ce(t);return Object.assign(n,{authSchemePreference:y(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"ecr"});const Qe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ye="3.1160.0";var we={version:ye};const Se="ref";const be=-1,Re=true,De="isSet",ke="PartitionResult",ve="stringEquals",Te="booleanEquals",Ne="getAttr",Fe={[Se]:"Endpoint"},xe={fn:Ne,argv:[{[Se]:ke},"name"]},Me={[Se]:ke},Ue={},Le=[{[Se]:"Region"}];const Pe={conditions:[[De,[Fe]],[De,Le],["aws.partition",Le,ke],[ve,[xe,"aws-eusc"]],[ve,[xe,"aws-iso-f"]],[ve,[xe,"aws-iso-e"]],[ve,[xe,"aws-iso-b"]],[ve,[xe,"aws-iso"]],[ve,[xe,"aws-cn"]],[ve,[xe,"aws-us-gov"]],[ve,[xe,"aws"]],[Te,[{[Se]:"UseFIPS"},Re]],[Te,[{fn:Ne,argv:[Me,"supportsFIPS"]},Re]],[Te,[{[Se]:"UseDualStack"},Re]],[Te,[{fn:Ne,argv:[Me,"supportsDualStack"]},Re]]],results:[[be],[be,"Invalid Configuration: FIPS and custom endpoint are not supported"],[be,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Fe,Ue],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Ue],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Ue],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Ue],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ue],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ue],[be,"FIPS and DualStack are enabled, but this partition does not support one or both"],[be,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Ue],[be,"DualStack is enabled but this partition does not support DualStack"],[be,"Invalid Configuration: Missing Region"]]};const Oe=2;const He=1e8;const _e=new Int32Array([-1,1,-1,0,23,3,1,4,He+13,2,5,He+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,He+4,14,He+11,He+12,12,18,17,13,He+9,He+10,13,19,He+6,14,He+8,He+9,11,22,21,13,He+5,He+4,13,He+7,He+6,11,He+1,24,13,He+2,He+3]);const Ge=q.from(_e,Oe,Pe.conditions,Pe.results);const Ve=new W({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ve.get(t,()=>z(Ge,{endpointParams:t,logger:n.logger}));$.aws=i;class ECRServiceException extends S{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(t){super(t);Object.setPrototypeOf(this,ECRServiceException.prototype)}}class InvalidParameterException extends ECRServiceException{static shapeId="com.amazonaws.ecr#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}class RepositoryNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(t){super({name:"RepositoryNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}class ServerException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ServerException";name="ServerException";$fault="server";constructor(t){super({name:"ServerException",$fault:"server",...t});Object.setPrototypeOf(this,ServerException.prototype)}}class LimitExceededException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LimitExceededException";name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t});Object.setPrototypeOf(this,LimitExceededException.prototype)}}class UnableToGetUpstreamImageException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnableToGetUpstreamImageException";name="UnableToGetUpstreamImageException";$fault="client";constructor(t){super({name:"UnableToGetUpstreamImageException",$fault:"client",...t});Object.setPrototypeOf(this,UnableToGetUpstreamImageException.prototype)}}class ValidationException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ValidationException";name="ValidationException";$fault="client";constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype)}}class EmptyUploadException extends ECRServiceException{static shapeId="com.amazonaws.ecr#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(t){super({name:"EmptyUploadException",$fault:"client",...t});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}class InvalidLayerException extends ECRServiceException{static shapeId="com.amazonaws.ecr#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(t){super({name:"InvalidLayerException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}class KmsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#KmsException";name="KmsException";$fault="client";kmsError;constructor(t){super({name:"KmsException",$fault:"client",...t});Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=t.kmsError}}class LayerAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(t){super({name:"LayerAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}class LayerPartTooSmallException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(t){super({name:"LayerPartTooSmallException",$fault:"client",...t});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}class UploadNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(t){super({name:"UploadNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}class PullThroughCacheRuleAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException";name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(t){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}class SecretNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#SecretNotFoundException";name="SecretNotFoundException";$fault="client";constructor(t){super({name:"SecretNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,SecretNotFoundException.prototype)}}class UnableToAccessSecretException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnableToAccessSecretException";name="UnableToAccessSecretException";$fault="client";constructor(t){super({name:"UnableToAccessSecretException",$fault:"client",...t});Object.setPrototypeOf(this,UnableToAccessSecretException.prototype)}}class UnableToDecryptSecretValueException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnableToDecryptSecretValueException";name="UnableToDecryptSecretValueException";$fault="client";constructor(t){super({name:"UnableToDecryptSecretValueException",$fault:"client",...t});Object.setPrototypeOf(this,UnableToDecryptSecretValueException.prototype)}}class UnsupportedUpstreamRegistryException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnsupportedUpstreamRegistryException";name="UnsupportedUpstreamRegistryException";$fault="client";constructor(t){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...t});Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}class InvalidTagParameterException extends ECRServiceException{static shapeId="com.amazonaws.ecr#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(t){super({name:"InvalidTagParameterException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}class RepositoryAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(t){super({name:"RepositoryAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}class TooManyTagsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(t){super({name:"TooManyTagsException",$fault:"client",...t});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}class TemplateAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#TemplateAlreadyExistsException";name="TemplateAlreadyExistsException";$fault="client";constructor(t){super({name:"TemplateAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,TemplateAlreadyExistsException.prototype)}}class LifecyclePolicyNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LifecyclePolicyNotFoundException";name="LifecyclePolicyNotFoundException";$fault="client";constructor(t){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}class PullThroughCacheRuleNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#PullThroughCacheRuleNotFoundException";name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(t){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}class RegistryPolicyNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#RegistryPolicyNotFoundException";name="RegistryPolicyNotFoundException";$fault="client";constructor(t){super({name:"RegistryPolicyNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}class RepositoryNotEmptyException extends ECRServiceException{static shapeId="com.amazonaws.ecr#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(t){super({name:"RepositoryNotEmptyException",$fault:"client",...t});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}class TemplateNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#TemplateNotFoundException";name="TemplateNotFoundException";$fault="client";constructor(t){super({name:"TemplateNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,TemplateNotFoundException.prototype)}}class RepositoryPolicyNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(t){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}class SigningConfigurationNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#SigningConfigurationNotFoundException";name="SigningConfigurationNotFoundException";$fault="client";constructor(t){super({name:"SigningConfigurationNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,SigningConfigurationNotFoundException.prototype)}}class ExclusionNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ExclusionNotFoundException";name="ExclusionNotFoundException";$fault="client";constructor(t){super({name:"ExclusionNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ExclusionNotFoundException.prototype)}}class ImageNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(t){super({name:"ImageNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}class ScanNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ScanNotFoundException";name="ScanNotFoundException";$fault="client";constructor(t){super({name:"ScanNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}class ReplicationBackfillNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ReplicationBackfillNotFoundException";name="ReplicationBackfillNotFoundException";$fault="client";constructor(t){super({name:"ReplicationBackfillNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ReplicationBackfillNotFoundException.prototype)}}class LayerInaccessibleException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LayerInaccessibleException";name="LayerInaccessibleException";$fault="client";constructor(t){super({name:"LayerInaccessibleException",$fault:"client",...t});Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}class LayersNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(t){super({name:"LayersNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}class UnableToGetUpstreamLayerException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnableToGetUpstreamLayerException";name="UnableToGetUpstreamLayerException";$fault="client";constructor(t){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...t});Object.setPrototypeOf(this,UnableToGetUpstreamLayerException.prototype)}}class LifecyclePolicyPreviewNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException";name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(t){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}class UnableToListUpstreamImageReferrersException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnableToListUpstreamImageReferrersException";name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(t){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...t});Object.setPrototypeOf(this,UnableToListUpstreamImageReferrersException.prototype)}}class ImageAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(t){super({name:"ImageAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}class ImageDigestDoesNotMatchException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(t){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...t});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}class ImageTagAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(t){super({name:"ImageTagAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}class ReferencedImagesNotFoundException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(t){super({name:"ReferencedImagesNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}class BlockedByOrganizationPolicyException extends ECRServiceException{static shapeId="com.amazonaws.ecr#BlockedByOrganizationPolicyException";name="BlockedByOrganizationPolicyException";$fault="client";constructor(t){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...t});Object.setPrototypeOf(this,BlockedByOrganizationPolicyException.prototype)}}class ExclusionAlreadyExistsException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ExclusionAlreadyExistsException";name="ExclusionAlreadyExistsException";$fault="client";constructor(t){super({name:"ExclusionAlreadyExistsException",$fault:"client",...t});Object.setPrototypeOf(this,ExclusionAlreadyExistsException.prototype)}}class ImageArchivedException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageArchivedException";name="ImageArchivedException";$fault="client";constructor(t){super({name:"ImageArchivedException",$fault:"client",...t});Object.setPrototypeOf(this,ImageArchivedException.prototype)}}class UnsupportedImageTypeException extends ECRServiceException{static shapeId="com.amazonaws.ecr#UnsupportedImageTypeException";name="UnsupportedImageTypeException";$fault="client";constructor(t){super({name:"UnsupportedImageTypeException",$fault:"client",...t});Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}class LifecyclePolicyPreviewInProgressException extends ECRServiceException{static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException";name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(t){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...t});Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}class ReplicationBackfillInProgressException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ReplicationBackfillInProgressException";name="ReplicationBackfillInProgressException";$fault="client";constructor(t){super({name:"ReplicationBackfillInProgressException",$fault:"client",...t});Object.setPrototypeOf(this,ReplicationBackfillInProgressException.prototype)}}class ReplicationBackfillInvalidStatusException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ReplicationBackfillInvalidStatusException";name="ReplicationBackfillInvalidStatusException";$fault="client";constructor(t){super({name:"ReplicationBackfillInvalidStatusException",$fault:"client",...t});Object.setPrototypeOf(this,ReplicationBackfillInvalidStatusException.prototype)}}class ImageStorageClassUpdateNotSupportedException extends ECRServiceException{static shapeId="com.amazonaws.ecr#ImageStorageClassUpdateNotSupportedException";name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(t){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...t});Object.setPrototypeOf(this,ImageStorageClassUpdateNotSupportedException.prototype)}}class InvalidLayerPartException extends ECRServiceException{static shapeId="com.amazonaws.ecr#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:"InvalidLayerPartException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=t.registryId;this.repositoryName=t.repositoryName;this.uploadId=t.uploadId;this.lastValidByteReceived=t.lastValidByteReceived}}const Ye="Attribute";const Je="AuthorizationData";const qe="AuthorizationDataList";const We="AwsEcrContainerImageDetails";const ze="AttributeList";const $e="BlockedByOrganizationPolicyException";const je="BatchCheckLayerAvailability";const Ke="BatchCheckLayerAvailabilityRequest";const Ze="BatchCheckLayerAvailabilityResponse";const Xe="BatchDeleteImage";const et="BatchDeleteImageRequest";const tt="BatchDeleteImageResponse";const nt="BatchGetImage";const rt="BatchGetImageRequest";const st="BatchGetImageResponse";const ot="BatchGetRepositoryScanningConfiguration";const it="BatchGetRepositoryScanningConfigurationRequest";const at="BatchGetRepositoryScanningConfigurationResponse";const At="CompleteLayerUpload";const ct="CompleteLayerUploadRequest";const lt="CompleteLayerUploadResponse";const ut="CreatePullThroughCacheRule";const dt="CreatePullThroughCacheRuleRequest";const gt="CreatePullThroughCacheRuleResponse";const ht="CreateRepository";const ft="CreateRepositoryCreationTemplate";const Et="CreateRepositoryCreationTemplateRequest";const pt="CreateRepositoryCreationTemplateResponse";const Ct="CreateRepositoryRequest";const It="CreateRepositoryResponse";const mt="CvssScore";const Bt="CvssScoreAdjustment";const Qt="CvssScoreAdjustmentList";const yt="CvssScoreDetails";const wt="CvssScoreList";const St="DescribeImages";const bt="DescribeImagesFilter";const Rt="DescribeImagesRequest";const Dt="DescribeImageReplicationStatus";const kt="DescribeImageReplicationStatusRequest";const vt="DescribeImageReplicationStatusResponse";const Tt="DescribeImagesResponse";const Nt="DescribeImageScanFindings";const Ft="DescribeImageScanFindingsRequest";const xt="DescribeImageScanFindingsResponse";const Mt="DescribeImageSigningStatus";const Ut="DescribeImageSigningStatusRequest";const Lt="DescribeImageSigningStatusResponse";const Pt="DeleteLifecyclePolicy";const Ot="DeleteLifecyclePolicyRequest";const Ht="DeleteLifecyclePolicyResponse";const _t="DeletePullThroughCacheRule";const Gt="DeletePullThroughCacheRuleRequest";const Vt="DeletePullThroughCacheRuleResponse";const Yt="DescribePullThroughCacheRulesRequest";const Jt="DescribePullThroughCacheRulesResponse";const qt="DescribePullThroughCacheRules";const Wt="DeregisterPullTimeUpdateExclusion";const zt="DeregisterPullTimeUpdateExclusionRequest";const $t="DeregisterPullTimeUpdateExclusionResponse";const jt="DeleteRepository";const Kt="DescribeReplicationBackfillResults";const Zt="DescribeReplicationBackfillResultsRequest";const Xt="DescribeReplicationBackfillResultsResponse";const en="DeleteRepositoryCreationTemplate";const tn="DeleteRepositoryCreationTemplateRequest";const nn="DeleteRepositoryCreationTemplateResponse";const rn="DescribeRepositoryCreationTemplatesRequest";const sn="DescribeRepositoryCreationTemplatesResponse";const on="DescribeRepositoryCreationTemplates";const an="DeleteRegistryPolicy";const An="DeleteRegistryPolicyRequest";const cn="DeleteRegistryPolicyResponse";const ln="DeleteRepositoryPolicyRequest";const un="DeleteRepositoryPolicyResponse";const dn="DeleteRepositoryPolicy";const gn="DeleteRepositoryRequest";const hn="DeleteRepositoryResponse";const En="DescribeRegistryRequest";const pn="DescribeRegistryResponse";const Cn="DescribeRepositoriesRequest";const In="DescribeRepositoriesResponse";const mn="DescribeRegistry";const Bn="DescribeRepositories";const Qn="DeleteSigningConfiguration";const yn="DeleteSigningConfigurationRequest";const wn="DeleteSigningConfigurationResponse";const Sn="ExclusionAlreadyExistsException";const bn="EncryptionConfiguration";const Rn="EncryptionConfigurationForRepositoryCreationTemplate";const Dn="EnhancedImageScanFinding";const kn="EnhancedImageScanFindingList";const vn="ExclusionNotFoundException";const Tn="EmptyUploadException";const Nn="GetAccountSetting";const Fn="GetAccountSettingRequest";const xn="GetAccountSettingResponse";const Mn="GetAuthorizationToken";const Un="GetAuthorizationTokenRequest";const Ln="GetAuthorizationTokenResponse";const Pn="GetDownloadUrlForLayer";const On="GetDownloadUrlForLayerRequest";const Hn="GetDownloadUrlForLayerResponse";const _n="GetLifecyclePolicy";const Gn="GetLifecyclePolicyPreview";const Vn="GetLifecyclePolicyPreviewRequest";const Yn="GetLifecyclePolicyPreviewResponse";const Jn="GetLifecyclePolicyRequest";const qn="GetLifecyclePolicyResponse";const Wn="GetRegistryPolicy";const zn="GetRegistryPolicyRequest";const $n="GetRegistryPolicyResponse";const jn="GetRepositoryPolicyRequest";const Kn="GetRepositoryPolicyResponse";const Zn="GetRepositoryPolicy";const Xn="GetRegistryScanningConfiguration";const er="GetRegistryScanningConfigurationRequest";const tr="GetRegistryScanningConfigurationResponse";const nr="GetSigningConfiguration";const rr="GetSigningConfigurationRequest";const sr="GetSigningConfigurationResponse";const or="Image";const ir="ImageArchivedException";const ar="ImageAlreadyExistsException";const Ar="ImageDetail";const cr="ImageDigestDoesNotMatchException";const lr="ImageDetailList";const ur="ImageFailure";const dr="ImageFailureList";const gr="ImageIdentifier";const hr="ImageIdentifierList";const fr="ImageList";const Er="InvalidLayerException";const pr="InvalidLayerPartException";const Cr="InitiateLayerUpload";const Ir="InitiateLayerUploadRequest";const mr="InitiateLayerUploadResponse";const Br="ImageNotFoundException";const Qr="InvalidParameterException";const yr="ImageReferrer";const wr="ImageReferrerList";const Sr="ImageReplicationStatus";const br="ImageReplicationStatusList";const Rr="ImageScanningConfiguration";const Dr="ImageStorageClassUpdateNotSupportedException";const kr="ImageScanFinding";const vr="ImageScanFindingList";const Tr="ImageScanFindingsSummary";const Nr="ImageScanFindings";const Fr="ImageScanStatus";const xr="ImageSigningStatusList";const Mr="ImageSigningStatus";const Ur="ImageTagAlreadyExistsException";const Lr="ImageTagMutabilityExclusionFilter";const Pr="ImageTagMutabilityExclusionFilters";const Or="InvalidTagParameterException";const Hr="Key";const _r="KmsException";const Gr="Layer";const Vr="LayerAlreadyExistsException";const Yr="LimitExceededException";const Jr="LayerFailure";const qr="LayerFailureList";const Wr="ListImages";const zr="LayerInaccessibleException";const $r="ListImagesFilter";const jr="ListImagesRequest";const Kr="ListImageReferrersFilter";const Zr="ListImageReferrersRequest";const Xr="ListImageReferrersResponse";const es="ListImagesResponse";const ts="ListImageReferrers";const ns="LayerList";const rs="LayersNotFoundException";const ss="LifecyclePolicyNotFoundException";const os="LifecyclePolicyPreviewFilter";const is="LifecyclePolicyPreviewInProgressException";const as="LifecyclePolicyPreviewNotFoundException";const As="LifecyclePolicyPreviewResult";const cs="LifecyclePolicyPreviewResultList";const ls="LifecyclePolicyPreviewSummary";const us="LifecyclePolicyRuleAction";const ds="LayerPartTooSmallException";const gs="ListPullTimeUpdateExclusions";const hs="ListPullTimeUpdateExclusionsRequest";const fs="ListPullTimeUpdateExclusionsResponse";const Es="ListReplicationBackfills";const ps="ListReplicationBackfillsRequest";const Cs="ListReplicationBackfillsResponse";const Is="ListTagsForResource";const ms="ListTagsForResourceRequest";const Bs="ListTagsForResourceResponse";const Qs="PutAccountSetting";const ys="PutAccountSettingRequest";const ws="PutAccountSettingResponse";const Ss="PutImage";const bs="PutImageRequest";const Rs="PutImageResponse";const Ds="PutImageScanningConfiguration";const ks="PutImageScanningConfigurationRequest";const vs="PutImageScanningConfigurationResponse";const Ts="PutImageTagMutability";const Ns="PutImageTagMutabilityRequest";const Fs="PutImageTagMutabilityResponse";const xs="PutLifecyclePolicy";const Ms="PutLifecyclePolicyRequest";const Us="PutLifecyclePolicyResponse";const Ls="PutReplicationConfiguration";const Ps="PutReplicationConfigurationRequest";const Os="PutReplicationConfigurationResponse";const Hs="PutRegistryPolicy";const _s="PutRegistryPolicyRequest";const Gs="PutRegistryPolicyResponse";const Vs="PutRegistryScanningConfiguration";const Ys="PutRegistryScanningConfigurationRequest";const Js="PutRegistryScanningConfigurationResponse";const qs="PutSigningConfiguration";const Ws="PutSigningConfigurationRequest";const zs="PutSigningConfigurationResponse";const $s="PullThroughCacheRule";const js="PullThroughCacheRuleAlreadyExistsException";const Ks="PullThroughCacheRuleList";const Zs="PullThroughCacheRuleNotFoundException";const Xs="PackageVulnerabilityDetails";const eo="Recommendation";const to="RepositoryAlreadyExistsException";const no="ReplicationBackfillInProgressException";const ro="ReplicationBackfillInvalidStatusException";const so="ReplicationBackfillNotFoundException";const oo="ReplicationBackfillProgress";const io="ReplicationBackfillResult";const ao="ReplicationBackfillResultList";const Ao="ReplicationBackfillSummary";const co="ReplicationBackfillSummaryList";const lo="ReplicationConfiguration";const uo="RepositoryCreationTemplate";const go="RepositoryCreationTemplateList";const ho="ReplicationDestination";const fo="ReplicationDestinationList";const Eo="ResourceDetails";const po="RepositoryFilter";const Co="RepositoryFilterList";const Io="ReferencedImagesNotFoundException";const mo="RepositoryList";const Bo="ResourceList";const Qo="RepositoryNotEmptyException";const yo="RepositoryNotFoundException";const wo="RegistryPolicyNotFoundException";const So="RepositoryPolicyNotFoundException";const bo="RegisterPullTimeUpdateExclusion";const Ro="RegisterPullTimeUpdateExclusionRequest";const Do="RegisterPullTimeUpdateExclusionResponse";const ko="ReplicationRule";const vo="ReplicationRuleList";const To="RegistryScanningConfiguration";const No="RepositoryScanningConfigurationFailure";const Fo="RepositoryScanningConfigurationFailureList";const xo="RepositoryScanningConfigurationList";const Mo="RepositoryScanningConfiguration";const Uo="RegistryScanningRule";const Lo="RegistryScanningRuleList";const Po="Remediation";const Oo="Repository";const Ho="Resource";const _o="SigningConfiguration";const Go="SigningConfigurationNotFoundException";const Vo="ScoreDetails";const Yo="ServerException";const Jo="SubjectIdentifier";const qo="StartImageScan";const Wo="StartImageScanRequest";const zo="StartImageScanResponse";const $o="StartLifecyclePolicyPreview";const jo="StartLifecyclePolicyPreviewRequest";const Ko="StartLifecyclePolicyPreviewResponse";const Zo="ScanNotFoundException";const Xo="SecretNotFoundException";const ei="SigningRule";const ti="StartReplicationBackfill";const ni="StartReplicationBackfillRequest";const ri="StartReplicationBackfillResponse";const si="StopReplicationBackfillRequest";const oi="StopReplicationBackfillResponse";const ii="StopReplicationBackfill";const ai="ScanningRepositoryFilter";const Ai="ScanningRepositoryFilterList";const ci="SigningRepositoryFilterList";const li="SigningRepositoryFilter";const ui="SigningRuleList";const di="SetRepositoryPolicy";const gi="SetRepositoryPolicyRequest";const hi="SetRepositoryPolicyResponse";const fi="Tag";const Ei="TemplateAlreadyExistsException";const pi="TransitioningImageTotalCount";const Ci="TransitioningImageTotalCounts";const Ii="TagList";const mi="TooManyTagsException";const Bi="TemplateNotFoundException";const Qi="TagResource";const yi="TagResourceRequest";const wi="TagResourceResponse";const Si="UpdateImageStorageClass";const bi="UpdateImageStorageClassRequest";const Ri="UpdateImageStorageClassResponse";const Di="UnsupportedImageTypeException";const ki="UploadLayerPart";const vi="UploadLayerPartRequest";const Ti="UploadLayerPartResponse";const Ni="UploadNotFoundException";const Fi="UpdatePullThroughCacheRule";const xi="UpdatePullThroughCacheRuleRequest";const Mi="UpdatePullThroughCacheRuleResponse";const Ui="UntagResource";const Li="UpdateRepositoryCreationTemplate";const Pi="UpdateRepositoryCreationTemplateRequest";const Oi="UpdateRepositoryCreationTemplateResponse";const Hi="UntagResourceRequest";const _i="UntagResourceResponse";const Gi="UnableToAccessSecretException";const Vi="UnableToDecryptSecretValueException";const Yi="UnableToGetUpstreamImageException";const Ji="UnableToGetUpstreamLayerException";const qi="UnableToListUpstreamImageReferrersException";const Wi="UnsupportedUpstreamRegistryException";const zi="Value";const $i="ValidationException";const ji="VulnerablePackage";const Ki="VulnerablePackagesList";const Zi="ValidatePullThroughCacheRule";const Xi="ValidatePullThroughCacheRuleRequest";const ea="ValidatePullThroughCacheRuleResponse";const ta="architecture";const na="awsAccountId";const ra="authorizationData";const sa="awsEcrContainerImage";const oa="appliedFor";const ia="acceptedMediaTypes";const aa="artifactMediaType";const Aa="appliedRulePriority";const ca="artifactStatus";const la="appliedScanFilters";const ua="authorizationToken";const da="artifactType";const ga="artifactTypes";const ha="action";const fa="adjustments";const Ea="annotations";const pa="arch";const Ca="attributes";const Ia="author";const ma="backfills";const Ba="baseScore";const Qa="client";const ya="credentialArn";const wa="createdAt";const Sa="customRoleArn";const ba="completedReplicationCount";const Ra="cvss";const Da="description";const ka="downloadUrl";const va="destination";const Ta="destinations";const Na="details";const Fa="digest";const xa="error";const Ma="expiresAt";const Ua="endedAt";const La="exploitAvailable";const Pa="encryptionConfiguration";const Oa="enhancedFindings";const Ha="expiringImageTotalCount";const _a="ecrRepositoryPrefix";const Ga="ecrRepositoryPrefixes";const Va="encryptionType";const Ya="epoch";const Ja="failures";const qa="findingArn";const Wa="fixAvailable";const za="failureCode";const $a="failureCodes";const ja="fixedInVersion";const Ka="firstObservedAt";const Za="filePath";const Xa="failureReason";const eA="failedReplicationCount";const tA="findingSeverityCounts";const nA="filterType";const rA="failure";const sA="filter";const oA="findings";const iA="force";const aA="httpError";const AA="images";const cA="imageDetails";const lA="imageDigest";const uA="imageHash";const dA="imageIds";const gA="imageId";const hA="imageManifest";const fA="imageManifestMediaType";const EA="imagePushedAt";const pA="imageStatus";const CA="imageScanningConfiguration";const IA="imageScanCompletedAt";const mA="imageScanFindings";const BA="imageScanFindingsSummary";const QA="imageSizeInBytes";const yA="imageScanStatus";const wA="imageTags";const SA="imageTotalCount";const bA="imageTagMutability";const RA="imageTagMutabilityExclusionFilters";const DA="imageTag";const kA="inUseCount";const vA="isValid";const TA="id";const NA="image";const FA="key";const xA="kmsError";const MA="kmsKey";const UA="layers";const LA="layerAvailability";const PA="lastArchivedAt";const OA="lastActivatedAt";const HA="lastByteReceived";const _A="layerDigests";const GA="layerDigest";const VA="lastEvaluatedAt";const YA="lastInUseAt";const JA="lastObservedAt";const qA="lifecyclePolicy";const WA="layerPartBlob";const zA="lifecyclePolicyText";const $A="lastRecordedPullTime";const jA="layerSize";const KA="lastValidByteReceived";const ZA="message";const XA="maxResults";const ec="mediaType";const tc="metric";const nc="name";const rc="nextToken";const sc="platform";const oc="pushedAt";const ic="principalArn";const ac="proxyEndpoint";const Ac="partFirstByte";const cc="partLastByte";const lc="packageManager";const uc="previewResults";const dc="partSize";const gc="policyText";const hc="pullThroughCacheRules";const fc="pullTimeUpdateExclusions";const Ec="packageVulnerabilityDetails";const pc="prefix";const Cc="prefixes";const Ic="progress";const mc="registry";const Bc="resourceArn";const Qc="repositoryArn";const yc="replicationBackfillId";const wc="replicationConfiguration";const Sc="repositoryCreationTemplate";const bc="repositoryCreationTemplates";const Rc="repositoryFilters";const Dc="registryId";const kc="registryIds";const vc="repositoryName";const Tc="repositoryNames";const Nc="repositoryPolicy";const Fc="replicationStatuses";const xc="registryScanningConfiguration";const Mc="resultStatusFilter";const Uc="resourceTags";const Lc="referenceUrls";const Pc="repositoryUri";const Oc="relatedVulnerabilities";const Hc="repository";const _c="reason";const Gc="recommendation";const Vc="referrers";const Yc="region";const Jc="release";const qc="remediation";const Wc="repositories";const zc="results";const $c="resources";const jc="rules";const Kc="smithy.ts.sdk.synthetic.com.amazonaws.ecr";const Zc="startedAt";const Xc="scanningConfigurations";const el="scanningConfiguration";const tl="signingConfiguration";const nl="storageClass";const rl="scoreDetails";const sl="scanFrequency";const ol="subjectId";const il="subImageFailureCodes";const al="sourceLayerHash";const Al="subjectManifestDigest";const cl="scanOnPush";const ll="signingProfileArn";const ul="scoreSource";const dl="signingStatuses";const gl="scanType";const hl="sourceUrl";const fl="scoringVector";const El="score";const pl="server";const Cl="severity";const Il="size";const ml="source";const Bl="status";const Ql="summary";const yl="tags";const wl="transitioningImageTotalCounts";const Sl="tagKeys";const bl="totalReplicationCount";const Rl="tagStatus";const Dl="targetStorageClass";const kl="text";const vl="title";const Tl="type";const Nl="uri";const Fl="updatedAt";const xl="uploadId";const Ml="upstreamRegistry";const Ul="upstreamRepositoryPrefix";const Ll="upstreamRegistryUrl";const Pl="url";const Ol="value";const Hl="vendorCreatedAt";const _l="vulnerabilityId";const Gl="vulnerablePackages";const Vl="vendorSeverity";const Yl="vulnerabilitySourceUpdatedAt";const Jl="vendorUpdatedAt";const ql="version";const Wl="com.amazonaws.ecr";const zl=new ae(Kc);var $l=[-3,Kc,"ECRServiceException",0,[],[]];zl.registerError($l,ECRServiceException);const jl=new ae(Wl);var Kl=[-3,Wl,$e,{[xa]:Qa},[ZA],[0]];jl.registerError(Kl,BlockedByOrganizationPolicyException);var Zl=[-3,Wl,Tn,{[xa]:Qa},[ZA],[0]];jl.registerError(Zl,EmptyUploadException);var Xl=[-3,Wl,Sn,{[xa]:Qa},[ZA],[0]];jl.registerError(Xl,ExclusionAlreadyExistsException);var eu=[-3,Wl,vn,{[xa]:Qa},[ZA],[0]];jl.registerError(eu,ExclusionNotFoundException);var tu=[-3,Wl,ar,{[xa]:Qa},[ZA],[0]];jl.registerError(tu,ImageAlreadyExistsException);var nu=[-3,Wl,ir,{[xa]:Qa},[ZA],[0]];jl.registerError(nu,ImageArchivedException);var ru=[-3,Wl,cr,{[xa]:Qa},[ZA],[0]];jl.registerError(ru,ImageDigestDoesNotMatchException);var su=[-3,Wl,Br,{[xa]:Qa},[ZA],[0]];jl.registerError(su,ImageNotFoundException);var ou=[-3,Wl,Dr,{[xa]:Qa},[ZA],[0]];jl.registerError(ou,ImageStorageClassUpdateNotSupportedException);var iu=[-3,Wl,Ur,{[xa]:Qa},[ZA],[0]];jl.registerError(iu,ImageTagAlreadyExistsException);var au=[-3,Wl,Er,{[xa]:Qa},[ZA],[0]];jl.registerError(au,InvalidLayerException);var Au=[-3,Wl,pr,{[xa]:Qa},[Dc,vc,xl,KA,ZA],[0,0,0,1,0]];jl.registerError(Au,InvalidLayerPartException);var cu=[-3,Wl,Qr,{[xa]:Qa},[ZA],[0]];jl.registerError(cu,InvalidParameterException);var lu=[-3,Wl,Or,{[xa]:Qa},[ZA],[0]];jl.registerError(lu,InvalidTagParameterException);var uu=[-3,Wl,_r,{[xa]:Qa},[ZA,xA],[0,0]];jl.registerError(uu,KmsException);var du=[-3,Wl,Vr,{[xa]:Qa},[ZA],[0]];jl.registerError(du,LayerAlreadyExistsException);var gu=[-3,Wl,zr,{[xa]:Qa},[ZA],[0]];jl.registerError(gu,LayerInaccessibleException);var hu=[-3,Wl,ds,{[xa]:Qa},[ZA],[0]];jl.registerError(hu,LayerPartTooSmallException);var fu=[-3,Wl,rs,{[xa]:Qa},[ZA],[0]];jl.registerError(fu,LayersNotFoundException);var Eu=[-3,Wl,ss,{[xa]:Qa},[ZA],[0]];jl.registerError(Eu,LifecyclePolicyNotFoundException);var pu=[-3,Wl,is,{[xa]:Qa},[ZA],[0]];jl.registerError(pu,LifecyclePolicyPreviewInProgressException);var Cu=[-3,Wl,as,{[xa]:Qa},[ZA],[0]];jl.registerError(Cu,LifecyclePolicyPreviewNotFoundException);var Iu=[-3,Wl,Yr,{[xa]:Qa},[ZA],[0]];jl.registerError(Iu,LimitExceededException);var mu=[-3,Wl,js,{[xa]:Qa},[ZA],[0]];jl.registerError(mu,PullThroughCacheRuleAlreadyExistsException);var Bu=[-3,Wl,Zs,{[xa]:Qa},[ZA],[0]];jl.registerError(Bu,PullThroughCacheRuleNotFoundException);var Qu=[-3,Wl,Io,{[xa]:Qa},[ZA],[0]];jl.registerError(Qu,ReferencedImagesNotFoundException);var yu=[-3,Wl,wo,{[xa]:Qa},[ZA],[0]];jl.registerError(yu,RegistryPolicyNotFoundException);var wu=[-3,Wl,no,{[xa]:Qa},[ZA],[0]];jl.registerError(wu,ReplicationBackfillInProgressException);var Su=[-3,Wl,ro,{[xa]:Qa},[ZA],[0]];jl.registerError(Su,ReplicationBackfillInvalidStatusException);var bu=[-3,Wl,so,{[xa]:Qa},[ZA],[0]];jl.registerError(bu,ReplicationBackfillNotFoundException);var Ru=[-3,Wl,to,{[xa]:Qa},[ZA],[0]];jl.registerError(Ru,RepositoryAlreadyExistsException);var Du=[-3,Wl,Qo,{[xa]:Qa},[ZA],[0]];jl.registerError(Du,RepositoryNotEmptyException);var ku=[-3,Wl,yo,{[xa]:Qa},[ZA],[0]];jl.registerError(ku,RepositoryNotFoundException);var vu=[-3,Wl,So,{[xa]:Qa},[ZA],[0]];jl.registerError(vu,RepositoryPolicyNotFoundException);var Tu=[-3,Wl,Zo,{[xa]:Qa},[ZA],[0]];jl.registerError(Tu,ScanNotFoundException);var Nu=[-3,Wl,Xo,{[xa]:Qa},[ZA],[0]];jl.registerError(Nu,SecretNotFoundException);var Fu=[-3,Wl,Yo,{[xa]:pl},[ZA],[0]];jl.registerError(Fu,ServerException);var xu=[-3,Wl,Go,{[xa]:Qa},[ZA],[0]];jl.registerError(xu,SigningConfigurationNotFoundException);var Mu=[-3,Wl,Ei,{[xa]:Qa},[ZA],[0]];jl.registerError(Mu,TemplateAlreadyExistsException);var Uu=[-3,Wl,Bi,{[xa]:Qa},[ZA],[0]];jl.registerError(Uu,TemplateNotFoundException);var Lu=[-3,Wl,mi,{[xa]:Qa},[ZA],[0]];jl.registerError(Lu,TooManyTagsException);var Pu=[-3,Wl,Gi,{[xa]:Qa},[ZA],[0]];jl.registerError(Pu,UnableToAccessSecretException);var Ou=[-3,Wl,Vi,{[xa]:Qa},[ZA],[0]];jl.registerError(Ou,UnableToDecryptSecretValueException);var Hu=[-3,Wl,Yi,{[xa]:Qa},[ZA],[0]];jl.registerError(Hu,UnableToGetUpstreamImageException);var _u=[-3,Wl,Ji,{[xa]:Qa},[ZA],[0]];jl.registerError(_u,UnableToGetUpstreamLayerException);var Gu=[-3,Wl,qi,{[xa]:Qa},[ZA],[0]];jl.registerError(Gu,UnableToListUpstreamImageReferrersException);var Vu=[-3,Wl,Di,{[xa]:Qa},[ZA],[0]];jl.registerError(Vu,UnsupportedImageTypeException);var Yu=[-3,Wl,Wi,{[xa]:Qa},[ZA],[0]];jl.registerError(Yu,UnsupportedUpstreamRegistryException);var Ju=[-3,Wl,Ni,{[xa]:Qa},[ZA],[0]];jl.registerError(Ju,UploadNotFoundException);var qu=[-3,Wl,$i,{[xa]:Qa,[aA]:400},[ZA],[0]];jl.registerError(qu,ValidationException);const Wu=[zl,jl];var zu=[3,Wl,Ye,0,[FA,Ol],[0,0],1];var $u=[3,Wl,Je,0,[ua,Ma,ac],[0,4,0]];var ju=[3,Wl,We,0,[ta,Ia,uA,wA,sc,oc,YA,kA,mc,vc],[0,0,0,64|0,0,4,4,1,0,0]];var Ku=[3,Wl,Ke,0,[vc,_A,Dc],[0,64|0,0],2];var Zu=[3,Wl,Ze,0,[UA,Ja],[()=>Tf,()=>vf]];var Xu=[3,Wl,et,0,[vc,dA,Dc],[0,()=>yf,0],2];var ed=[3,Wl,tt,0,[dA,Ja],[()=>yf,()=>Qf]];var td=[3,Wl,rt,0,[vc,dA,Dc,ia],[0,()=>yf,0,64|0],2];var nd=[3,Wl,st,0,[AA,Ja],[()=>wf,()=>Qf]];var rd=[3,Wl,it,0,[Tc],[64|0],1];var sd=[3,Wl,at,0,[Xc,Ja],[()=>Vf,()=>Gf]];var od=[3,Wl,ct,0,[vc,xl,_A,Dc],[0,0,64|0,0],3];var id=[3,Wl,lt,0,[Dc,vc,xl,GA],[0,0,0,0]];var ad=[3,Wl,dt,0,[_a,Ll,Dc,Ml,ya,Sa,Ul],[0,0,0,0,0,0,0],2];var Ad=[3,Wl,gt,0,[_a,Ll,wa,Dc,Ml,ya,Sa,Ul],[0,0,4,0,0,0,0,0]];var cd=[3,Wl,Et,0,[pc,oa,Da,Pa,Uc,bA,RA,Nc,qA,Sa],[0,64|0,0,()=>Zd,()=>zf,0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l,ao,0,()=>wh];var Uf=[1,Wl,co,0,()=>Sh];var Lf=[1,Wl,fo,0,()=>Rh];var Pf=[1,Wl,vo,0,()=>Dh];var Of=[1,Wl,go,0,()=>vh];var Hf=[1,Wl,Co,0,()=>Th];var _f=[1,Wl,mo,0,()=>kh];var Gf=[1,Wl,Fo,0,()=>Fh];var Vf=[1,Wl,xo,0,()=>Nh];var Yf=[1,Wl,Bo,0,()=>xh];var Jf=[1,Wl,Ai,0,()=>Uh];var qf=[1,Wl,ci,0,()=>_h];var Wf=[1,Wl,ui,0,()=>Gh];var zf=[1,Wl,Ii,0,()=>Zh];var $f=[1,Wl,Ci,0,()=>tf];var jf=[1,Wl,Ki,0,()=>ff];var Kf=[9,Wl,je,0,()=>Ku,()=>Zu];var Zf=[9,Wl,Xe,0,()=>Xu,()=>ed];var Xf=[9,Wl,nt,0,()=>td,()=>nd];var eE=[9,Wl,ot,0,()=>rd,()=>sd];var tE=[9,Wl,At,0,()=>od,()=>id];var nE=[9,Wl,ut,0,()=>ad,()=>Ad];var rE=[9,Wl,ht,0,()=>ud,()=>dd];var sE=[9,Wl,ft,0,()=>cd,()=>ld];var oE=[9,Wl,Pt,0,()=>Ed,()=>pd];var iE=[9,Wl,_t,0,()=>Cd,()=>Id];var aE=[9,Wl,an,0,()=>md,()=>Bd];var AE=[9,Wl,jt,0,()=>bd,()=>Rd];var cE=[9,Wl,en,0,()=>Qd,()=>yd];var lE=[9,Wl,dn,0,()=>wd,()=>Sd];var uE=[9,Wl,Qn,0,()=>Dd,()=>kd];var dE=[9,Wl,Wt,0,()=>vd,()=>Td];var gE=[9,Wl,Dt,0,()=>Nd,()=>Fd];var hE=[9,Wl,St,0,()=>Od,()=>Hd];var fE=[9,Wl,Nt,0,()=>xd,()=>Md];var EE=[9,Wl,Mt,0,()=>Ld,()=>Pd];var pE=[9,Wl,qt,0,()=>_d,()=>Gd];var CE=[9,Wl,mn,0,()=>Vd,()=>Yd];var IE=[9,Wl,Kt,0,()=>Jd,()=>qd];var mE=[9,Wl,Bn,0,()=>Wd,()=>zd];var BE=[9,Wl,on,0,()=>$d,()=>jd];var QE=[9,Wl,Nn,0,()=>eg,()=>tg];var yE=[9,Wl,Mn,0,()=>ng,()=>rg];var wE=[9,Wl,Pn,0,()=>sg,()=>og];var SE=[9,Wl,_n,0,()=>Ag,()=>cg];var bE=[9,Wl,Gn,0,()=>ig,()=>ag];var RE=[9,Wl,Wn,0,()=>lg,()=>ug];var DE=[9,Wl,Xn,0,()=>dg,()=>gg];var kE=[9,Wl,Zn,0,()=>hg,()=>fg];var vE=[9,Wl,nr,0,()=>Eg,()=>pg];var TE=[9,Wl,Cr,0,()=>Tg,()=>Ng];var NE=[9,Wl,ts,0,()=>Hg,()=>_g];var FE=[9,Wl,Wr,0,()=>Vg,()=>Yg];var xE=[9,Wl,gs,0,()=>Jg,()=>qg];var ME=[9,Wl,Es,0,()=>Wg,()=>zg];var UE=[9,Wl,Is,0,()=>$g,()=>jg];var LE=[9,Wl,Qs,0,()=>Xg,()=>eh];var PE=[9,Wl,Ss,0,()=>th,()=>nh];var OE=[9,Wl,Ds,0,()=>rh,()=>sh];var HE=[9,Wl,Ts,0,()=>oh,()=>ih];var _E=[9,Wl,xs,0,()=>ah,()=>Ah];var GE=[9,Wl,Hs,0,()=>ch,()=>lh];var VE=[9,Wl,Vs,0,()=>uh,()=>dh];var YE=[9,Wl,Ls,0,()=>gh,()=>hh];var JE=[9,Wl,qs,0,()=>fh,()=>Eh];var qE=[9,Wl,bo,0,()=>Ch,()=>Ih];var WE=[9,Wl,di,0,()=>Ph,()=>Oh];var zE=[9,Wl,qo,0,()=>Vh,()=>Yh];var $E=[9,Wl,$o,0,()=>Jh,()=>qh];var jE=[9,Wl,ti,0,()=>Wh,()=>zh];var KE=[9,Wl,ii,0,()=>$h,()=>jh];var ZE=[9,Wl,Qi,0,()=>Xh,()=>ef];var XE=[9,Wl,Ui,0,()=>nf,()=>rf];var ep=[9,Wl,Si,0,()=>sf,()=>of];var tp=[9,Wl,Fi,0,()=>af,()=>Af];var np=[9,Wl,Li,0,()=>cf,()=>lf];var rp=[9,Wl,ki,0,()=>uf,()=>df];var sp=[9,Wl,Zi,0,()=>gf,()=>hf];const getRuntimeConfig$1=t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??Ee,base64Encoder:t?.base64Encoder??fe,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultECRHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new le}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:Wu,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??Be,urlParser:t?.urlParser??Z,utf8Decoder:t?.utf8Decoder??he,utf8Encoder:t?.utf8Encoder??ge});const getRuntimeConfig=t=>{D(process.version);const n=O(t);const defaultConfigProvider=()=>n().then(k);const s=getRuntimeConfig$1(t);A(process.version);const o={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??H(ue,o),bodyLengthChecker:t?.bodyLengthChecker??pe,credentialDefaultProvider:t?.credentialDefaultProvider??de,defaultUserAgentProvider:t?.defaultUserAgentProvider??c({serviceId:s.serviceId,clientVersion:we.version}),maxAttempts:t?.maxAttempts??H(se,t),region:t?.region??H(V,{...Y,...o}),requestHandler:Ie.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??H({...re,default:async()=>(await defaultConfigProvider()).retryMode||ne},t),streamCollector:t?.streamCollector??Ce,useDualstackEndpoint:t?.useDualstackEndpoint??H(G,o),useFipsEndpoint:t?.useFipsEndpoint??H(_,o),userAgentAppId:t?.userAgentAppId??H(l,o)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider;let o=t.credentials;return{setHttpAuthScheme(t){const s=n.findIndex(n=>n.schemeId===t.schemeId);if(s===-1){n.push(t)}else{n.splice(s,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){s=t},httpAuthSchemeProvider(){return s},setCredentials(t){o=t},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const s=Object.assign(u(t),v(t),X(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(s));return Object.assign(t,d(s),T(s),ee(s),resolveHttpAuthRuntimeConfig(s))};class ECRClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const s=resolveClientEndpointParameters(n);const o=g(s);const i=oe(o);const A=J(i);const c=h(A);const l=j(c);const u=resolveHttpAuthSchemeConfig(l);const d=resolveRuntimeExtensions(u,t?.extensions||[]);this.config=d;this.middlewareStack.use(Ae(this.config));this.middlewareStack.use(f(this.config));this.middlewareStack.use(ie(this.config));this.middlewareStack.use(te(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(I(this.config,{httpAuthSchemeParametersProvider:defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new m({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(B(this.config))}destroy(){super.destroy()}}const ip=F(Qe,"AmazonEC2ContainerRegistry_V20150921","ECRClient",K);const ap={};const _mw0=(t,n,s,o)=>[];class BatchCheckLayerAvailabilityCommand extends(ip(ap,_mw0,"BatchCheckLayerAvailability",Kf)){}class BatchDeleteImageCommand extends(ip(ap,_mw0,"BatchDeleteImage",Zf)){}class BatchGetImageCommand extends(ip(ap,_mw0,"BatchGetImage",Xf)){}class BatchGetRepositoryScanningConfigurationCommand extends(ip(ap,_mw0,"BatchGetRepositoryScanningConfiguration",eE)){}class CompleteLayerUploadCommand extends(ip(ap,_mw0,"CompleteLayerUpload",tE)){}class CreatePullThroughCacheRuleCommand extends(ip(ap,_mw0,"CreatePullThroughCacheRule",nE)){}class CreateRepositoryCommand extends(ip(ap,_mw0,"CreateRepository",rE)){}class CreateRepositoryCreationTemplateCommand extends(ip(ap,_mw0,"CreateRepositoryCreationTemplate",sE)){}class DeleteLifecyclePolicyCommand extends(ip(ap,_mw0,"DeleteLifecyclePolicy",oE)){}class DeletePullThroughCacheRuleCommand extends(ip(ap,_mw0,"DeletePullThroughCacheRule",iE)){}class DeleteRegistryPolicyCommand extends(ip(ap,_mw0,"DeleteRegistryPolicy",aE)){}class DeleteRepositoryCommand extends(ip(ap,_mw0,"DeleteRepository",AE)){}class DeleteRepositoryCreationTemplateCommand extends(ip(ap,_mw0,"DeleteRepositoryCreationTemplate",cE)){}class DeleteRepositoryPolicyCommand extends(ip(ap,_mw0,"DeleteRepositoryPolicy",lE)){}class DeleteSigningConfigurationCommand extends(ip(ap,_mw0,"DeleteSigningConfiguration",uE)){}class DeregisterPullTimeUpdateExclusionCommand extends(ip(ap,_mw0,"DeregisterPullTimeUpdateExclusion",dE)){}class DescribeImageReplicationStatusCommand extends(ip(ap,_mw0,"DescribeImageReplicationStatus",gE)){}class DescribeImageScanFindingsCommand extends(ip(ap,_mw0,"DescribeImageScanFindings",fE)){}class DescribeImagesCommand extends(ip(ap,_mw0,"DescribeImages",hE)){}class DescribeImageSigningStatusCommand extends(ip(ap,_mw0,"DescribeImageSigningStatus",EE)){}class DescribePullThroughCacheRulesCommand extends(ip(ap,_mw0,"DescribePullThroughCacheRules",pE)){}class DescribeRegistryCommand extends(ip(ap,_mw0,"DescribeRegistry",CE)){}class DescribeReplicationBackfillResultsCommand extends(ip(ap,_mw0,"DescribeReplicationBackfillResults",IE)){}class DescribeRepositoriesCommand extends(ip(ap,_mw0,"DescribeRepositories",mE)){}class DescribeRepositoryCreationTemplatesCommand extends(ip(ap,_mw0,"DescribeRepositoryCreationTemplates",BE)){}class GetAccountSettingCommand extends(ip(ap,_mw0,"GetAccountSetting",QE)){}class GetAuthorizationTokenCommand extends(ip(ap,_mw0,"GetAuthorizationToken",yE)){}class GetDownloadUrlForLayerCommand extends(ip(ap,_mw0,"GetDownloadUrlForLayer",wE)){}class GetLifecyclePolicyCommand extends(ip(ap,_mw0,"GetLifecyclePolicy",SE)){}class GetLifecyclePolicyPreviewCommand extends(ip(ap,_mw0,"GetLifecyclePolicyPreview",bE)){}class GetRegistryPolicyCommand extends(ip(ap,_mw0,"GetRegistryPolicy",RE)){}class GetRegistryScanningConfigurationCommand extends(ip(ap,_mw0,"GetRegistryScanningConfiguration",DE)){}class GetRepositoryPolicyCommand extends(ip(ap,_mw0,"GetRepositoryPolicy",kE)){}class GetSigningConfigurationCommand extends(ip(ap,_mw0,"GetSigningConfiguration",vE)){}class InitiateLayerUploadCommand extends(ip(ap,_mw0,"InitiateLayerUpload",TE)){}class ListImageReferrersCommand extends(ip(ap,_mw0,"ListImageReferrers",NE)){}class ListImagesCommand extends(ip(ap,_mw0,"ListImages",FE)){}class ListPullTimeUpdateExclusionsCommand extends(ip(ap,_mw0,"ListPullTimeUpdateExclusions",xE)){}class ListReplicationBackfillsCommand extends(ip(ap,_mw0,"ListReplicationBackfills",ME)){}class ListTagsForResourceCommand extends(ip(ap,_mw0,"ListTagsForResource",UE)){}class PutAccountSettingCommand extends(ip(ap,_mw0,"PutAccountSetting",LE)){}class PutImageCommand extends(ip(ap,_mw0,"PutImage",PE)){}class PutImageScanningConfigurationCommand extends(ip(ap,_mw0,"PutImageScanningConfiguration",OE)){}class PutImageTagMutabilityCommand extends(ip(ap,_mw0,"PutImageTagMutability",HE)){}class PutLifecyclePolicyCommand extends(ip(ap,_mw0,"PutLifecyclePolicy",_E)){}class PutRegistryPolicyCommand extends(ip(ap,_mw0,"PutRegistryPolicy",GE)){}class PutRegistryScanningConfigurationCommand extends(ip(ap,_mw0,"PutRegistryScanningConfiguration",VE)){}class PutReplicationConfigurationCommand extends(ip(ap,_mw0,"PutReplicationConfiguration",YE)){}class PutSigningConfigurationCommand extends(ip(ap,_mw0,"PutSigningConfiguration",JE)){}class RegisterPullTimeUpdateExclusionCommand extends(ip(ap,_mw0,"RegisterPullTimeUpdateExclusion",qE)){}class SetRepositoryPolicyCommand extends(ip(ap,_mw0,"SetRepositoryPolicy",WE)){}class StartImageScanCommand extends(ip(ap,_mw0,"StartImageScan",zE)){}class StartLifecyclePolicyPreviewCommand extends(ip(ap,_mw0,"StartLifecyclePolicyPreview",$E)){}class StartReplicationBackfillCommand extends(ip(ap,_mw0,"StartReplicationBackfill",jE)){}class StopReplicationBackfillCommand extends(ip(ap,_mw0,"StopReplicationBackfill",KE)){}class TagResourceCommand extends(ip(ap,_mw0,"TagResource",ZE)){}class UntagResourceCommand extends(ip(ap,_mw0,"UntagResource",XE)){}class UpdateImageStorageClassCommand extends(ip(ap,_mw0,"UpdateImageStorageClass",ep)){}class UpdatePullThroughCacheRuleCommand extends(ip(ap,_mw0,"UpdatePullThroughCacheRule",tp)){}class UpdateRepositoryCreationTemplateCommand extends(ip(ap,_mw0,"UpdateRepositoryCreationTemplate",np)){}class UploadLayerPartCommand extends(ip(ap,_mw0,"UploadLayerPart",rp)){}class ValidatePullThroughCacheRuleCommand extends(ip(ap,_mw0,"ValidatePullThroughCacheRule",sp)){}const Ap=Q(ECRClient,DescribeImageScanFindingsCommand,"nextToken","nextToken","maxResults");const lp=Q(ECRClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const up=Q(ECRClient,DescribePullThroughCacheRulesCommand,"nextToken","nextToken","maxResults");const dp=Q(ECRClient,DescribeReplicationBackfillResultsCommand,"nextToken","nextToken","maxResults");const gp=Q(ECRClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const hp=Q(ECRClient,DescribeRepositoryCreationTemplatesCommand,"nextToken","nextToken","maxResults");const fp=Q(ECRClient,GetLifecyclePolicyPreviewCommand,"nextToken","nextToken","maxResults");const Ep=Q(ECRClient,ListImagesCommand,"nextToken","nextToken","maxResults");const pp=Q(ECRClient,ListReplicationBackfillsCommand,"nextToken","nextToken","maxResults");const checkState$1=async(t,n)=>{let s;try{let o=await t.send(new DescribeImageScanFindingsCommand(n));s=o;try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:U.SUCCESS,reason:s}}}catch(t){}try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:U.FAILURE,reason:s}}}catch(t){}}catch(t){s=t}return{state:U.RETRY,reason:s}};const waitForImageScanComplete=async(t,n)=>{const s={minDelay:5,maxDelay:120};return x({...s,...t},n,checkState$1)};const waitUntilImageScanComplete=async(t,n)=>{const s={minDelay:5,maxDelay:120};const o=await x({...s,...t},n,checkState$1);return M(o)};const checkState=async(t,n)=>{let s;try{let o=await t.send(new GetLifecyclePolicyPreviewCommand(n));s=o;try{const returnComparator=()=>o.status;if(returnComparator()==="COMPLETE"){return{state:U.SUCCESS,reason:s}}}catch(t){}try{const returnComparator=()=>o.status;if(returnComparator()==="FAILED"){return{state:U.FAILURE,reason:s}}}catch(t){}}catch(t){s=t}return{state:U.RETRY,reason:s}};const waitForLifecyclePolicyPreviewComplete=async(t,n)=>{const s={minDelay:5,maxDelay:120};return x({...s,...t},n,checkState)};const waitUntilLifecyclePolicyPreviewComplete=async(t,n)=>{const s={minDelay:5,maxDelay:120};const o=await x({...s,...t},n,checkState);return M(o)};const Cp={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,BatchGetImageCommand:BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:CreateRepositoryCommand,CreateRepositoryCreationTemplateCommand:CreateRepositoryCreationTemplateCommand,DeleteLifecyclePolicyCommand:DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:DeleteRegistryPolicyCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryCreationTemplateCommand:DeleteRepositoryCreationTemplateCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DeleteSigningConfigurationCommand:DeleteSigningConfigurationCommand,DeregisterPullTimeUpdateExclusionCommand:DeregisterPullTimeUpdateExclusionCommand,DescribeImageReplicationStatusCommand:DescribeImageReplicationStatusCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageScanFindingsCommand:DescribeImageScanFindingsCommand,DescribeImageSigningStatusCommand:DescribeImageSigningStatusCommand,DescribePullThroughCacheRulesCommand:DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:DescribeRegistryCommand,DescribeReplicationBackfillResultsCommand:DescribeReplicationBackfillResultsCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,DescribeRepositoryCreationTemplatesCommand:DescribeRepositoryCreationTemplatesCommand,GetAccountSettingCommand:GetAccountSettingCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,GetSigningConfigurationCommand:GetSigningConfigurationCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListImageReferrersCommand:ListImageReferrersCommand,ListImagesCommand:ListImagesCommand,ListPullTimeUpdateExclusionsCommand:ListPullTimeUpdateExclusionsCommand,ListReplicationBackfillsCommand:ListReplicationBackfillsCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutAccountSettingCommand:PutAccountSettingCommand,PutImageCommand:PutImageCommand,PutImageScanningConfigurationCommand:PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:PutLifecyclePolicyCommand,PutRegistryPolicyCommand:PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:PutReplicationConfigurationCommand,PutSigningConfigurationCommand:PutSigningConfigurationCommand,RegisterPullTimeUpdateExclusionCommand:RegisterPullTimeUpdateExclusionCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,StartImageScanCommand:StartImageScanCommand,StartLifecyclePolicyPreviewCommand:StartLifecyclePolicyPreviewCommand,StartReplicationBackfillCommand:StartReplicationBackfillCommand,StopReplicationBackfillCommand:StopReplicationBackfillCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateImageStorageClassCommand:UpdateImageStorageClassCommand,UpdatePullThroughCacheRuleCommand:UpdatePullThroughCacheRuleCommand,UpdateRepositoryCreationTemplateCommand:UpdateRepositoryCreationTemplateCommand,UploadLayerPartCommand:UploadLayerPartCommand,ValidatePullThroughCacheRuleCommand:ValidatePullThroughCacheRuleCommand};const Ip={paginateDescribeImages:lp,paginateDescribeImageScanFindings:Ap,paginateDescribePullThroughCacheRules:up,paginateDescribeReplicationBackfillResults:dp,paginateDescribeRepositories:gp,paginateDescribeRepositoryCreationTemplates:hp,paginateGetLifecyclePolicyPreview:fp,paginateListImages:Ep,paginateListReplicationBackfills:pp};const mp={waitUntilImageScanComplete:waitUntilImageScanComplete,waitUntilLifecyclePolicyPreviewComplete:waitUntilLifecyclePolicyPreviewComplete};class ECR extends ECRClient{}L(Cp,ECR,{paginators:Ip,waiters:mp});const Bp={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const Qp={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const yp={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};const wp={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};const Sp={WILDCARD:"WILDCARD"};const bp={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};const Rp={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};const Dp={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};const kp={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"};const vp={WILDCARD:"WILDCARD"};const Tp={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};const Np={WILDCARD_MATCH:"WILDCARD_MATCH"};const Fp={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const xp={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const Mp={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};const Up={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};const Lp={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};const Pp={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const Op={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Hp={PREFIX_MATCH:"PREFIX_MATCH"};const _p={COMPLETE:"COMPLETE",FAILED:"FAILED"};const Gp={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PREPARING:"PREPARING",STOPPED:"STOPPED",STOPPING:"STOPPING"};const Vp={ARCHIVE:"ARCHIVE"};const Yp={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"};const Jp={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};const qp={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Wp={BASIC:"BASIC",ENHANCED:"ENHANCED"};const zp={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const $p={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const jp={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};o=$p;o=zp;o=zu;o=$u;o=ju;o=Kf;o=BatchCheckLayerAvailabilityCommand;o=Ku;o=Zu;o=Zf;o=BatchDeleteImageCommand;o=Xu;o=ed;o=Xf;o=BatchGetImageCommand;o=td;o=nd;o=eE;o=BatchGetRepositoryScanningConfigurationCommand;o=rd;o=sd;o=BlockedByOrganizationPolicyException;o=Kl;o=tE;o=CompleteLayerUploadCommand;o=od;o=id;o=nE;o=CreatePullThroughCacheRuleCommand;o=ad;o=Ad;o=rE;o=CreateRepositoryCommand;o=sE;o=CreateRepositoryCreationTemplateCommand;o=cd;o=ld;o=ud;o=dd;o=gd;o=hd;o=fd;o=oE;o=DeleteLifecyclePolicyCommand;o=Ed;o=pd;o=iE;o=DeletePullThroughCacheRuleCommand;o=Cd;o=Id;o=aE;o=DeleteRegistryPolicyCommand;o=md;o=Bd;o=AE;o=DeleteRepositoryCommand;o=cE;o=DeleteRepositoryCreationTemplateCommand;o=Qd;o=yd;o=lE;o=DeleteRepositoryPolicyCommand;o=wd;o=Sd;o=bd;o=Rd;o=uE;o=DeleteSigningConfigurationCommand;o=Dd;o=kd;o=dE;o=DeregisterPullTimeUpdateExclusionCommand;o=vd;o=Td;o=gE;o=DescribeImageReplicationStatusCommand;o=Nd;o=Fd;o=fE;o=DescribeImageScanFindingsCommand;o=xd;o=Md;o=EE;o=DescribeImageSigningStatusCommand;o=Ld;o=Pd;o=hE;o=DescribeImagesCommand;o=Ud;o=Od;o=Hd;o=pE;o=DescribePullThroughCacheRulesCommand;o=_d;o=Gd;o=CE;o=DescribeRegistryCommand;o=Vd;o=Yd;o=IE;o=DescribeReplicationBackfillResultsCommand;o=Jd;o=qd;o=mE;o=DescribeRepositoriesCommand;o=Wd;o=zd;o=BE;o=DescribeRepositoryCreationTemplatesCommand;o=$d;o=jd;n.Tjd=ECR;o=ECRClient;o=ECRServiceException;o=$l;o=EmptyUploadException;o=Zl;o=Kd;o=Zd;o=Dp;o=Xd;o=ExclusionAlreadyExistsException;o=Xl;o=ExclusionNotFoundException;o=eu;o=Up;o=QE;o=GetAccountSettingCommand;o=eg;o=tg;o=yE;o=GetAuthorizationTokenCommand;o=ng;o=rg;o=wE;o=GetDownloadUrlForLayerCommand;o=sg;o=og;o=SE;o=GetLifecyclePolicyCommand;o=bE;o=GetLifecyclePolicyPreviewCommand;o=ig;o=ag;o=Ag;o=cg;o=RE;o=GetRegistryPolicyCommand;o=lg;o=ug;o=DE;o=GetRegistryScanningConfigurationCommand;o=dg;o=gg;o=kE;o=GetRepositoryPolicyCommand;o=hg;o=fg;o=vE;o=GetSigningConfigurationCommand;o=Eg;o=pg;o=Cg;o=Yp;o=ImageAlreadyExistsException;o=tu;o=ImageArchivedException;o=nu;o=Ig;o=ImageDigestDoesNotMatchException;o=ru;o=mg;o=yp;o=Bg;o=ImageNotFoundException;o=su;o=Qg;o=yg;o=wg;o=Sg;o=bg;o=Dg;o=Rg;o=kg;o=Pp;o=xp;o=ImageStorageClassUpdateNotSupportedException;o=ou;o=ImageTagAlreadyExistsException;o=iu;o=kp;o=vg;o=vp;o=TE;o=InitiateLayerUploadCommand;o=Tg;o=Ng;o=InvalidLayerException;o=au;o=InvalidLayerPartException;o=Au;o=InvalidParameterException;o=cu;o=InvalidTagParameterException;o=lu;o=KmsException;o=uu;o=Fg;o=LayerAlreadyExistsException;o=du;o=Qp;o=xg;o=Bp;o=LayerInaccessibleException;o=gu;o=LayerPartTooSmallException;o=hu;o=LayersNotFoundException;o=fu;o=LifecyclePolicyNotFoundException;o=Eu;o=Mg;o=LifecyclePolicyPreviewInProgressException;o=pu;o=LifecyclePolicyPreviewNotFoundException;o=Cu;o=Ug;o=qp;o=Lg;o=Pg;o=Jp;o=Vp;o=LimitExceededException;o=Iu;o=NE;o=ListImageReferrersCommand;o=Og;o=Hg;o=_g;o=FE;o=ListImagesCommand;o=Gg;o=Vg;o=Yg;o=xE;o=ListPullTimeUpdateExclusionsCommand;o=Jg;o=qg;o=ME;o=ListReplicationBackfillsCommand;o=Wg;o=zg;o=UE;o=ListTagsForResourceCommand;o=$g;o=jg;o=Kg;o=Zg;o=PullThroughCacheRuleAlreadyExistsException;o=mu;o=PullThroughCacheRuleNotFoundException;o=Bu;o=LE;o=PutAccountSettingCommand;o=Xg;o=eh;o=PE;o=PutImageCommand;o=th;o=nh;o=OE;o=PutImageScanningConfigurationCommand;o=rh;o=sh;o=HE;o=PutImageTagMutabilityCommand;o=oh;o=ih;o=_E;o=PutLifecyclePolicyCommand;o=ah;o=Ah;o=GE;o=PutRegistryPolicyCommand;o=ch;o=lh;o=VE;o=PutRegistryScanningConfigurationCommand;o=uh;o=dh;o=YE;o=PutReplicationConfigurationCommand;o=gh;o=hh;o=JE;o=PutSigningConfigurationCommand;o=fh;o=Eh;o=Tp;o=ph;o=ReferencedImagesNotFoundException;o=Qu;o=qE;o=RegisterPullTimeUpdateExclusionCommand;o=Ch;o=Ih;o=RegistryPolicyNotFoundException;o=yu;o=mh;o=Bh;o=Qh;o=ReplicationBackfillInProgressException;o=wu;o=ReplicationBackfillInvalidStatusException;o=Su;o=ReplicationBackfillNotFoundException;o=bu;o=yh;o=wh;o=_p;o=Gp;o=Sh;o=bh;o=Rh;o=Dh;o=Fp;o=kh;o=RepositoryAlreadyExistsException;o=Ru;o=vh;o=Th;o=Hp;o=RepositoryNotEmptyException;o=Du;o=RepositoryNotFoundException;o=ku;o=RepositoryPolicyNotFoundException;o=vu;o=Nh;o=Fh;o=xh;o=Mh;o=bp;o=ScanNotFoundException;o=Tu;o=Lp;o=Wp;o=wp;o=Uh;o=Sp;o=Lh;o=SecretNotFoundException;o=Nu;o=ServerException;o=Fu;o=WE;o=SetRepositoryPolicyCommand;o=Ph;o=Oh;o=Hh;o=SigningConfigurationNotFoundException;o=xu;o=_h;o=Np;o=Gh;o=Op;o=zE;o=StartImageScanCommand;o=Vh;o=Yh;o=$E;o=StartLifecyclePolicyPreviewCommand;o=Jh;o=qh;o=jE;o=StartReplicationBackfillCommand;o=Wh;o=zh;o=KE;o=StopReplicationBackfillCommand;o=$h;o=jh;o=Kh;o=Zh;o=ZE;o=TagResourceCommand;o=Xh;o=ef;o=Mp;o=jp;o=TemplateAlreadyExistsException;o=Mu;o=TemplateNotFoundException;o=Uu;o=TooManyTagsException;o=Lu;o=tf;o=UnableToAccessSecretException;o=Pu;o=UnableToDecryptSecretValueException;o=Ou;o=UnableToGetUpstreamImageException;o=Hu;o=UnableToGetUpstreamLayerException;o=_u;o=UnableToListUpstreamImageReferrersException;o=Gu;o=UnsupportedImageTypeException;o=Vu;o=UnsupportedUpstreamRegistryException;o=Yu;o=XE;o=UntagResourceCommand;o=nf;o=rf;o=ep;o=UpdateImageStorageClassCommand;o=sf;o=of;o=tp;o=UpdatePullThroughCacheRuleCommand;o=af;o=Af;o=np;o=UpdateRepositoryCreationTemplateCommand;o=cf;o=lf;o=rp;o=UploadLayerPartCommand;o=uf;o=df;o=UploadNotFoundException;o=Ju;o=Rp;o=sp;o=ValidatePullThroughCacheRuleCommand;o=gf;o=hf;o=ValidationException;o=qu;o=ff;o=Wu;o=Ap;o=lp;o=up;o=dp;o=gp;o=hp;o=fp;o=Ep;o=pp;o=waitForImageScanComplete;o=waitForLifecyclePolicyPreviewComplete;o=waitUntilImageScanComplete;o=waitUntilLifecyclePolicyPreviewComplete},5152:(t,n,s)=>{const{Retry:o,RETRY_MODES:i}=s(3609);const{HttpRequest:A,parseUrl:c}=s(3422);const{InvokeStore:l}=s(9320);const{normalizeProvider:u}=s(402);const{platform:d,release:g}=s(8161);const{versions:h,env:f}=s(1708);const{isValidHostLabel:E,isIpAddress:p,customEndpointFunctions:C}=s(2085);const{EndpointError:I,resolveEndpoint:m}=s(2085);n.EndpointError=I;n.isIpAddress=p;n.resolveEndpoint=m;const{loadConfig:B,NODE_REGION_CONFIG_OPTIONS:Q,NODE_REGION_CONFIG_FILE_OPTIONS:y}=s(7291);const{REGION_ENV_NAME:w,REGION_INI_NAME:S,resolveRegionConfig:R}=s(7291);n.NODE_REGION_CONFIG_FILE_OPTIONS=y;n.NODE_REGION_CONFIG_OPTIONS=Q;n.REGION_ENV_NAME=w;n.REGION_INI_NAME=S;n.resolveRegionConfig=R;const D={warningEmitted:false};const emitWarningIfUnsupportedVersion=t=>{if(t&&!D.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){D.warningEmitted=true;return}const n=parseInt(t.substring(1,t.indexOf(".")));const s=22;if(n<s){D.warningEmitted=true;process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)\nversions published after the first week of January 2027\nwill require node >=${s}. You are running node ${t}.\n\nTo continue receiving updates to AWS services, bug fixes,\nand security updates please upgrade to node >=${s}.\n\nMore information can be found at: https://a.co/c895JFp`)}}};const longPollMiddleware=()=>(t,n)=>async s=>{n.__retryLongPoll=true;return t(s)};const k={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:true};const getLongPollPlugin=t=>({applyToStack:t=>{t.add(longPollMiddleware(),k)}});function setCredentialFeature(t,n,s){if(!t.$source){t.$source={}}t.$source[n]=s;return t}o.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function setFeature(t,n,s){if(!t.__aws_sdk_context){t.__aws_sdk_context={features:{}}}else if(!t.__aws_sdk_context.features){t.__aws_sdk_context.features={}}t.__aws_sdk_context.features[n]=s}function setTokenFeature(t,n,s){if(!t.$source){t.$source={}}t.$source[n]=s;return t}function resolveHostHeaderConfig(t){return t}const hostHeaderMiddleware=t=>n=>async s=>{if(!A.isInstance(s.request)){return n(s)}const{request:o}=s;const{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!o.headers[":authority"]){delete o.headers["host"];o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"")}else if(!o.headers["host"]){let t=o.hostname;if(o.port!=null){t+=`:${o.port}`}o.headers["host"]=t}return n(s)};const v={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=t=>({applyToStack:n=>{n.add(hostHeaderMiddleware(t),v)}});const loggerMiddleware=()=>(t,n)=>async s=>{try{const o=await t(s);const{clientName:i,commandName:A,logger:c,dynamoDbDocumentClientOptions:l={}}=n;const{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:d}=l;const g=u??n.inputFilterSensitiveLog;const h=d??n.outputFilterSensitiveLog;const{$metadata:f,...E}=o.output;c?.info?.({clientName:i,commandName:A,input:g(s.input),output:h(E),metadata:f});return o}catch(t){const{clientName:o,commandName:i,logger:A,dynamoDbDocumentClientOptions:c={}}=n;const{overrideInputFilterSensitiveLog:l}=c;const u=l??n.inputFilterSensitiveLog;A?.error?.({clientName:o,commandName:i,input:u(s.input),error:t,metadata:t.$metadata});throw t}};const T={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=t=>({applyToStack:t=>{t.add(loggerMiddleware(),T)}});const N={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const F="AWS_LAMBDA_FUNCTION_NAME";const x="_X_AMZN_TRACE_ID";const M="X-Amzn-Trace-Id";const U="traceparent";const L="tracestate";const P="baggage";const recursionDetectionMiddleware=()=>t=>async n=>{const{request:s}=n;if(!A.isInstance(s)){return t(n)}let o;{const t=Object.keys(s.headers??{}).find(t=>t.toLowerCase()===M.toLowerCase())??M;if(!s.headers.hasOwnProperty(t)){const t=process.env[F];const n=process.env[x];o??=await l.getInstanceAsync();const i=o?.getXRayTraceId();const A=i??n;const nonEmptyString=t=>typeof t==="string"&&t.length>0;if(nonEmptyString(t)&&nonEmptyString(A)){s.headers[M]=A}}}{sanitizeTraceHeaders(s.headers);const t=s.headers[U];if(!t){const t=(o??=await l.getInstanceAsync())?.getTraceparent?.();if(t){s.headers[U]=t;const n=o?.getTracestate?.();if(n){s.headers[L]=n}const i=o?.getBaggage?.();if(i){s.headers[P]=i}}}}return t(n)};function sanitizeTraceHeaders(t){for(const n of Object.keys(t)){const s=n.toLowerCase();if(n!==s&&(s===U||s===L||s===P)){t[s]=t[n];delete t[n]}}}const getRecursionDetectionPlugin=t=>({applyToStack:t=>{t.add(recursionDetectionMiddleware(),N)}});const O=undefined;function isValidUserAgentAppId(t){if(t===undefined){return true}return typeof t==="string"&&t.length<=50}function resolveUserAgentConfig(t){const n=u(t.userAgentAppId??O);const{customUserAgent:s}=t;return Object.assign(t,{customUserAgent:typeof s==="string"?[[s]]:s,userAgentAppId:async()=>{const s=await n();if(!isValidUserAgentAppId(s)){const n=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;if(typeof s!=="string"){n?.warn("userAgentAppId must be a string or undefined.")}else if(s.length>50){n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return s}})}const H={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},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-east-2":{description:"Asia Pacific (Taipei)"},"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-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws 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:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso 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:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};let _=H;let G="";const partition=t=>{const{partitions:n}=_;for(const s of n){const{regions:n,outputs:o}=s;for(const[s,i]of Object.entries(n)){if(s===t){return{...o,...i}}}}for(const s of n){const{regionRegex:n,outputs:o}=s;if(new RegExp(n).test(t)){return{...o}}}const s=n.find(t=>t.id==="aws");if(!s){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...s.outputs}};const setPartitionInfo=(t,n="")=>{_=t;G=n};const useDefaultPartitionInfo=()=>{setPartitionInfo(H,"")};const getUserAgentPrefix=()=>G;const V=/\d{12}\.ddb/;async function checkFeatures(t,n,s){const o=s.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){setFeature(t,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof n.retryStrategy==="function"){const s=await n.retryStrategy();if(typeof s.mode==="string"){switch(s.mode){case i.ADAPTIVE:setFeature(t,"RETRY_MODE_ADAPTIVE","F");break;case i.STANDARD:setFeature(t,"RETRY_MODE_STANDARD","E");break}}}if(typeof n.accountIdEndpointMode==="function"){const s=t.endpointV2;if(String(s?.url?.hostname).match(V)){setFeature(t,"ACCOUNT_ID_ENDPOINT","O")}switch(await(n.accountIdEndpointMode?.())){case"disabled":setFeature(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const A=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(A?.$source){const n=A;if(n.accountId){setFeature(t,"RESOLVED_ACCOUNT_ID","T")}for(const[s,o]of Object.entries(n.$source??{})){setFeature(t,s,o)}}}const Y="user-agent";const J="x-amz-user-agent";const q=" ";const W="/";const z=/[^!$%&'*+\-.^_`|~\w]/g;const $=/[^!$%&'*+\-.^_`|~\w#]/g;const j="-";const K=1024;function encodeFeatures(t){let n="";for(const s in t){const o=t[s];if(n.length+o.length+1<=K){if(n.length){n+=","+o}else{n+=o}continue}break}return n}const userAgentMiddleware=t=>(n,s)=>async o=>{const{request:i}=o;if(!A.isInstance(i)){return n(o)}const{headers:c}=i;const l=s?.userAgent?.map(escapeUserAgent)||[];const u=(await t.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(s,t,o);const d=s;u.push(`m/${encodeFeatures(Object.assign({},s.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const g=t?.customUserAgent?.map(escapeUserAgent)||[];const h=await t.userAgentAppId();if(h){u.push(escapeUserAgent([`app`,`${h}`]))}const f=getUserAgentPrefix();const E=(f?[f]:[]).concat([...u,...l,...g]).join(q);const p=[...u.filter(t=>t.startsWith("aws-sdk-")),...g].join(q);if(t.runtime!=="browser"){if(p){c[J]=c[J]?`${c[Y]} ${p}`:p}c[Y]=E}else{c[J]=E}return n({...o,request:i})};const escapeUserAgent=t=>{const n=t[0].split(W).map(t=>t.replace(z,j)).join(W);const s=t[1]?.replace($,j);const o=n.indexOf(W);const i=n.substring(0,o);let A=n.substring(o+1);if(i==="api"){A=A.toLowerCase()}return[i,A,s].filter(t=>t&&t.length>0).reduce((t,n,s)=>{switch(s){case 0:return n;case 1:return`${t}/${n}`;default:return`${t}#${n}`}},"")};const Z={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=t=>({applyToStack:n=>{n.add(userAgentMiddleware(t),Z)}});const getRuntimeUserAgentPair=()=>{const t=["deno","bun","llrt"];for(const n of t){if(h[n]){return[`md/${n}`,h[n]]}}return["md/nodejs",h.node]};const X={isCrtAvailable:false};const isCrtAvailable=()=>{if(X.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:t,clientVersion:n})=>{const s=getRuntimeUserAgentPair();return async o=>{const i=[["aws-sdk-js",n],["ua","2.1"],[`os/${d()}`,g()],["lang/js"],s];const A=isCrtAvailable();if(A){i.push(A)}if(t){i.push([`api/${t}`,n])}if(f.AWS_EXECUTION_ENV){i.push([`exec-env/${f.AWS_EXECUTION_ENV}`])}const c=await(o?.userAgentAppId?.());const l=c?[...i,[`app/${c}`]]:[...i];return l}};const ee=createDefaultUserAgentProvider;const te="AWS_SDK_UA_APP_ID";const ne="sdk_ua_app_id";const re="sdk-ua-app-id";const se={environmentVariableSelector:t=>t[te],configFileSelector:t=>t[ne]??t[re],default:O};const createUserAgentStringParsingProvider=({serviceId:t,clientVersion:n})=>async o=>{const i=s(9449);const A=i.parse??i.default.parse??(()=>"");const c=typeof window!=="undefined"&&window?.navigator?.userAgent?A(window.navigator.userAgent):undefined;const l=[["aws-sdk-js",n],["ua","2.1"],[`os/${c?.os?.name||"other"}`,c?.os?.version],["lang/js"],["md/browser",`${c?.browser?.name??"unknown"}_${c?.browser?.version??"unknown"}`]];if(t){l.push([`api/${t}`,n])}const u=await(o?.userAgentAppId?.());if(u){l.push([`app/${u}`])}return l};const oe={os(t){if(/iPhone|iPad|iPod/.test(t)){return"iOS"}if(/Macintosh|Mac OS X/.test(t)){return"macOS"}if(/Windows NT/.test(t)){return"Windows"}if(/Android/.test(t)){return"Android"}if(/Linux/.test(t)){return"Linux"}return undefined},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t)){return"Microsoft Edge"}if(/Firefox\//.test(t)){return"Firefox"}if(/Chrome\//.test(t)){return"Chrome"}if(/Safari\//.test(t)){return"Safari"}return undefined}};const isVirtualHostableS3Bucket=(t,n=false)=>{if(n){for(const n of t.split(".")){if(!isVirtualHostableS3Bucket(n)){return false}}return true}if(!E(t)){return false}if(t.length<3||t.length>63){return false}if(t!==t.toLowerCase()){return false}if(p(t)){return false}return true};const ie=":";const ae="/";const parseArn=t=>{const n=t.split(ie);if(n.length<6){return null}const[s,o,i,A,c,...l]=n;if(s!=="arn"||o===""||i===""||l.join(ie)===""){return null}const u=l.map(t=>t.split(ae)).flat();return{partition:o,service:i,region:A,accountId:c,resourceId:u}};const Ae={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};C.aws=Ae;const resolveDefaultAwsRegionalEndpointsConfig=t=>{if(typeof t.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>toEndpointV1(t.endpointProvider({Region:typeof t.region==="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint==="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint==="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:undefined},{logger:t.logger}))}return t};const toEndpointV1=t=>c(t.url);function stsRegionDefaultResolver(t={}){return B({...Q,async default(){if(!ce.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...y,...t})}const ce={silence:false};const getAwsRegionExtensionConfiguration=t=>({setRegion(n){t.region=n},region(){return t.region}});const resolveAwsRegionExtensionConfiguration=t=>({region:t.region()});n.DEFAULT_UA_APP_ID=O;n.NODE_APP_ID_CONFIG_OPTIONS=se;n.UA_APP_ID_ENV_NAME=te;n.UA_APP_ID_INI_NAME=ne;n.awsEndpointFunctions=Ae;n.createDefaultUserAgentProvider=createDefaultUserAgentProvider;n.createUserAgentStringParsingProvider=createUserAgentStringParsingProvider;n.crtAvailability=X;n.defaultUserAgent=ee;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.fallback=oe;n.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;n.getHostHeaderPlugin=getHostHeaderPlugin;n.getLoggerPlugin=getLoggerPlugin;n.getLongPollPlugin=getLongPollPlugin;n.getRecursionDetectionPlugin=getRecursionDetectionPlugin;n.getUserAgentMiddlewareOptions=Z;n.getUserAgentPlugin=getUserAgentPlugin;n.getUserAgentPrefix=getUserAgentPrefix;n.hostHeaderMiddleware=hostHeaderMiddleware;n.hostHeaderMiddlewareOptions=v;n.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket;n.loggerMiddleware=loggerMiddleware;n.loggerMiddlewareOptions=T;n.parseArn=parseArn;n.partition=partition;n.recursionDetectionMiddleware=recursionDetectionMiddleware;n.recursionDetectionMiddlewareOptions=N;n.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;n.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;n.resolveHostHeaderConfig=resolveHostHeaderConfig;n.resolveUserAgentConfig=resolveUserAgentConfig;n.setCredentialFeature=setCredentialFeature;n.setFeature=setFeature;n.setPartitionInfo=setPartitionInfo;n.setTokenFeature=setTokenFeature;n.state=D;n.stsRegionDefaultResolver=stsRegionDefaultResolver;n.stsRegionWarning=ce;n.toEndpointV1=toEndpointV1;n.useDefaultPartitionInfo=useDefaultPartitionInfo;n.userAgentMiddleware=userAgentMiddleware},7523:(t,n,s)=>{const{ProviderError:o,booleanSelector:i,SelectorType:A,loadConfig:c}=s(7291);const{setCredentialFeature:l}=s(5152);const{normalizeProvider:u,memoizeIdentityProvider:d,isIdentityExpired:g,doesIdentityRequireRefresh:h}=s(402);const{SignatureV4:f}=s(5118);const{HttpResponse:E,HttpRequest:p}=s(3422);const{SMITHY_CONTEXT_KEY:C}=s(690);const getDateHeader=t=>E.isInstance(t)?t.headers?.date??t.headers?.Date:undefined;const getAgeHeader=t=>E.isInstance(t)?t.headers?.age??t.headers?.Age:undefined;const getSkewCorrectedDate=t=>new Date(Date.now()+t);const getUpdatedSystemClockOffset=(t,n,s,o)=>{if(o!==undefined){return n}const i=Date.parse(t);const A=Date.now();if(s!==undefined&&A-s>9e5){return n}return i-A};const throwSigningPropertyError=(t,n)=>{if(!n){throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`)}return n};const hasEventStreamOutput=t=>{const n=t.context;const s=n?.[C]?.eventStream;return s?.output===true};const validateSigningProperties=async t=>{const n=throwSigningPropertyError("context",t.context);const s=throwSigningPropertyError("config",t.config);const o=n.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",s.signer);const A=await i(o);const c=t?.signingRegion;const l=t?.signingRegionSet;const u=t?.signingName;return{config:s,signer:A,signingRegion:c,signingRegionSet:l,signingName:u}};class AwsSdkSigV4Signer{async sign(t,n,s){if(!p.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const o=await validateSigningProperties(s);const{config:i,signer:A}=o;let{signingRegion:c,signingName:l}=o;const u=s.context;if(u?.authSchemes?.length??0>1){const[t,n]=u.authSchemes;if(t?.name==="sigv4a"&&n?.name==="sigv4"){c=n?.signingRegion??c;l=n?.signingName??l}}const d=await(i.disableClockSkewCorrection?.())===true;s._disableClockSkewCorrection=d;const g=d||hasEventStreamOutput(s);s._skipClockSkewSampling=g;if(!g){s._preRequestSystemClockOffset=i.systemClockOffset;s._requestSentAt=Date.now()}const h=await A.sign(t,{signingDate:d?new Date:getSkewCorrectedDate(i.systemClockOffset),signingRegion:c,signingService:l});return h}errorHandler(t){return n=>{const s=n;if(!t._skipClockSkewSampling&&!t._disableClockSkewCorrection){const n=s.ServerTime??getDateHeader(s.$response);if(n){const o=throwSigningPropertyError("config",t.config);const i=t._preRequestSystemClockOffset;const A=t._requestSentAt;const c=getAgeHeader(s.$response);const l=getUpdatedSystemClockOffset(n,o.systemClockOffset,A,c);o.systemClockOffset=l;const u=Math.abs(l)>=24e4;const d=l!==i;const g=i!==undefined&&i!==l;if(u&&(d||g)&&s.$metadata){s.$metadata.clockSkewCorrected=true}}}throw n}}successHandler(t,n){if(n._skipClockSkewSampling||n._disableClockSkewCorrection){return}const s=getDateHeader(t);if(s){const o=throwSigningPropertyError("config",n.config);const i=n._requestSentAt;const A=getAgeHeader(t);o.systemClockOffset=getUpdatedSystemClockOffset(s,o.systemClockOffset,i,A)}}}const I=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(t,n,s){if(!p.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:o,signer:i,signingRegion:A,signingRegionSet:c,signingName:l}=await validateSigningProperties(s);const u=await(o.sigv4aSigningRegionSet?.());const d=(u??c??[A]).join(",");const g=await(o.disableClockSkewCorrection?.())===true;s._disableClockSkewCorrection=g;if(!g){s._preRequestSystemClockOffset=o.systemClockOffset;s._requestSentAt=Date.now()}const h=await i.sign(t,{signingDate:g?new Date:getSkewCorrectedDate(o.systemClockOffset),signingRegion:d,signingService:l});return h}}const getArrayForCommaSeparatedString=t=>typeof t==="string"&&t.length>0?t.split(",").map(t=>t.trim()):[];const getBearerTokenEnvKey=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`;const m="AWS_AUTH_SCHEME_PREFERENCE";const B="auth_scheme_preference";const Q={environmentVariableSelector:(t,n)=>{if(n?.signingName){const s=getBearerTokenEnvKey(n.signingName);if(s in t){return["httpBearerAuth"]}}if(!(m in t)){return undefined}return getArrayForCommaSeparatedString(t[m])},configFileSelector:t=>{if(!(B in t)){return undefined}return getArrayForCommaSeparatedString(t[B])},default:[]};const resolveAwsSdkSigV4AConfig=t=>{t.sigv4aSigningRegionSet=u(t.sigv4aSigningRegionSet);return t};const y={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET){return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(t=>t.trim())}throw new o("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(t){if(t.sigv4a_signing_region_set){return(t.sigv4a_signing_region_set??"").split(",").map(t=>t.trim())}throw new o("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const bindResolveAwsSdkSigV4Config=t=>n=>{let s=n.credentials;let o=!!n.credentials;let i=undefined;Object.defineProperty(n,"credentials",{set(t){if(t&&t!==s&&t!==i){o=true}s=t;const A=normalizeCredentialProvider(n,{credentials:s,credentialDefaultProvider:n.credentialDefaultProvider});const c=bindCallerConfig(n,A);if(o&&!c.attributed){const t=typeof s==="object"&&s!==null;i=async n=>{const s=await c(n);const o=s;if(t&&(!o.$source||Object.keys(o.$source).length===0)){return l(o,"CREDENTIALS_CODE","e")}return o};i.memoized=c.memoized;i.configBound=c.configBound;i.attributed=true}else{i=c}},get(){return i},enumerable:true,configurable:true});n.credentials=s;const{signingEscapePath:A=true,systemClockOffset:c=n.systemClockOffset||0,sha256:d}=n;let g;if(n.signer){g=u(n.signer)}else if(n.regionInfoProvider){g=()=>u(n.region)().then(async t=>[await n.regionInfoProvider(t,{useFipsEndpoint:await n.useFipsEndpoint(),useDualstackEndpoint:await n.useDualstackEndpoint()})||{},t]).then(([t,s])=>{const{signingRegion:o,signingService:i}=t;n.signingRegion=n.signingRegion||o||s;n.signingName=n.signingName||i||n.serviceId;const c={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:d,uriEscapePath:A};const l=n.signerConstructor||f;return new l(c)})}else{g=async t=>{t=Object.assign({},{name:"sigv4",signingName:n.signingName||n.defaultSigningName,signingRegion:await u(n.region)(),properties:{}},t);const s=t.signingRegion;const o=t.signingName;n.signingRegion=n.signingRegion||s;n.signingName=n.signingName||o||n.serviceId;const i={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:d,uriEscapePath:A};const c=n.signerConstructor||f;return new c(i)}}const h=Object.assign(n,{systemClockOffset:c,signingEscapePath:A,signer:g,disableClockSkewCorrection:u(n.disableClockSkewCorrection??t)});return h};function normalizeCredentialProvider(t,{credentials:n,credentialDefaultProvider:s}){let o;if(n){if(!n?.memoized){o=d(n,g,h)}else{o=n}}else{if(s){o=u(s(Object.assign({},t,{parentClientConfig:t})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(t,n){if(n.configBound){return n}const fn=async s=>n({...s,callerClientConfig:t});fn.memoized=n.memoized;fn.configBound=true;return fn}const w="AWS_DISABLE_CLOCK_SKEW_CORRECTION";const S="disable_clock_skew_correction";const R={environmentVariableSelector:t=>i(t,w,A.ENV),configFileSelector:t=>i(t,S,A.CONFIG),default:false};const D=c(R);const k=bindResolveAwsSdkSigV4Config(D);const v=k;n.AWSSDKSigV4Signer=I;n.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;n.AwsSdkSigV4Signer=AwsSdkSigV4Signer;n.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Q;n.NODE_SIGV4A_CONFIG_OPTIONS=y;n.getBearerTokenEnvKey=getBearerTokenEnvKey;n.resolveAWSSDKSigV4Config=v;n.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;n.resolveAwsSdkSigV4Config=k;n.validateSigningProperties=validateSigningProperties},7288:(t,n,s)=>{const{SmithyRpcV2CborProtocol:o,loadSmithyRpcV2CborErrorCode:i}=s(4645);const{TypeRegistry:A,NormalizedSchema:c,deref:l}=s(6890);const{decorateServiceException:u,getValueFromTextNode:d}=s(2658);const{RpcProtocol:g,JsonCodec2:h,loadJsonRpcErrorCode:f,HttpBindingProtocol:E,HttpInterceptingShapeSerializer:p,HttpInterceptingShapeDeserializer:C,loadRestJsonErrorCode:I,SmithyRpcV2JsonProtocol:m,loadSmithyRpcV2JsonErrorCode:B,FromStringShapeDeserializer:Q,determineTimestampFormat:y,extendedEncodeURIComponent:w,collectBody:S}=s(3422);const{JsonCodec:R,JsonShapeDeserializer:D,JsonShapeDeserializer2:k,JsonShapeSerializer:v,JsonShapeSerializer2:T,parseJsonBody:N,parseJsonErrorBody:F}=s(3422);n.JsonCodec=R;n.JsonCodec2=h;n.JsonShapeDeserializer=D;n.JsonShapeDeserializer2=k;n.JsonShapeSerializer=v;n.JsonShapeSerializer2=T;n.loadJsonRpcErrorCode=f;n.loadRestJsonErrorCode=I;n.parseJsonBody=N;n.parseJsonErrorBody=F;const{parseXML:x,XmlNode:M,XmlText:U}=s(4274);const{toUtf8:L,toBase64:P,generateIdempotencyToken:O,NumericValue:H,dateToUtcString:_,fromBase64:G,expectUnion:V}=s(2430);class ProtocolLib{queryCompat;errorRegistry;constructor(t=false){this.queryCompat=t}resolveRestContentType(t,n){const s=n.getMemberSchemas();const o=Object.values(s).find(t=>!!t.getMergedTraits().httpPayload);if(o){const n=o.getMergedTraits().mediaType;if(n){return n}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return t}}else if(!n.isUnitSchema()){const n=Object.values(s).find(t=>{const{httpQuery:n,httpQueryParams:s,httpHeader:o,httpLabel:i,httpPrefixHeaders:A}=t.getMergedTraits();const c=A===void 0;return!n&&!s&&!o&&!i&&c});if(n){return t}}}async getErrorSchemaOrThrowBaseException(t,n,s,o,i,A){let c=t;if(t.includes("#")){[,c]=t.split("#")}const l={$metadata:i,$fault:s.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const n=A?.(this.errorRegistry,c)??this.errorRegistry.getSchema(t);return{errorSchema:n,errorMetadata:l}}catch(t){o.message=o.message??o.Message??"UnknownError";const n=this.errorRegistry;const s=n.getBaseException();if(s){const t=n.getErrorCtor(s)??Error;throw this.decorateServiceException(Object.assign(new t({name:c}),l),o)}const i=o;const A=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(A),{name:c},l),o)}}compose(t,n,s){let o=s;if(n.includes("#")){[o]=n.split("#")}const i=A.for(o);const c=A.for("smithy.ts.sdk.synthetic."+s);t.copyFrom(i);t.copyFrom(c);this.errorRegistry=t}decorateServiceException(t,n={}){if(this.queryCompat){const s=t.Message??n.Message;const o=u(t,n);if(s){o.message=s}const i=o.Error??{};i.Type=o.Error?.Type;i.Code=o.Error?.Code;i.Message=o.Error?.message??o.Error?.Message??s;o.Error=i;const A=o.$metadata.requestId;if(A){o.RequestId=A}return o}return u(t,n)}setQueryCompatError(t,n){const s=n.headers?.["x-amzn-query-error"];if(t!==undefined&&s!=null){const[n,o]=s.split(";");const i=Object.keys(t);const A={Code:n,Type:o};t.Code=n;t.Type=o;for(let n=0;n<i.length;n++){const s=i[n];A[s==="message"?"Message":s]=t[s]}delete A.__type;t.Error=A}}queryCompatOutput(t,n){if(t.Error){n.Error=t.Error}if(t.Type){n.Type=t.Type}if(t.Code){n.Code=t.Code}}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch(s){return t.find(t=>c.of(t).getMergedTraits().awsQueryError?.[0]===n)}}}class AwsSmithyRpcV2CborProtocol extends o{awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:n,awsQueryCompatible:s}){super({defaultNamespace:t,errorTypeRegistries:n});this.awsQueryCompatible=!!s;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(t,n,s,o,A){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,s)}const l=(()=>{const t=s.headers["x-amzn-query-error"];if(t&&this.awsQueryCompatible){return t.split(";")[0]}return i(s,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,l,this.options.defaultNamespace);const{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,s,o,A,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const g=c.of(u);const h=o.message??o.Message??"UnknownError";const f=this.compositeErrorRegistry.getErrorCtor(u)??Error;const E=new f({});const p={};for(const[t,n]of g.structIterator()){if(o[t]!=null){p[t]=this.deserializer.readValue(n,o[t])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,p)}throw this.mixin.decorateServiceException(Object.assign(E,d,{$fault:g.getMergedTraits().error,message:h},p),o)}}class AwsJsonRpcProtocol extends g{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:s,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:t,errorTypeRegistries:n});this.serviceTarget=s;this.codec=i??new h({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!o;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);if(!o.path.endsWith("/")){o.path+="/"}o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`;o.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`;if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(l(t.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(t,n,s,o,i){const{awsQueryCompatible:A}=this;if(A){this.mixin.setQueryCompatError(o,s)}const l=f(s,o,A)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,l,this.options.defaultNamespace);const{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,s,o,i,A?this.mixin.findQueryCompatibleError:undefined);const g=c.of(u);const h=o.message??o.Message??"UnknownError";const E=this.compositeErrorRegistry.getErrorCtor(u)??Error;const p=new E({});const C={};const I=this.codec.createDeserializer();for(const[t,n]of g.structIterator()){if(o[t]!=null){C[t]=I.readObject(n,o[t])}}if(A){this.mixin.queryCompatOutput(o,C)}throw this.mixin.decorateServiceException(Object.assign(p,d,{$fault:g.getMergedTraits().error,message:h},C),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:s,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:s,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:s,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:s,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends E{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:t,errorTypeRegistries:n,jsonCodec:s}){super({defaultNamespace:t,errorTypeRegistries:n});const o={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=s??new h(o);this.serializer=new p(this.codec.createSerializer(),o);this.deserializer=new C(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(t){this.codec.setSerdeContext(t);super.setSerdeContext(t)}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);const i=c.of(t.input);if(!o.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(t){o.headers["content-type"]=t}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(t,n,s){const o=await super.deserializeResponse(t,n,s);const i=c.of(t.output);for(const[t,n]of i.structIterator()){if(n.getMemberTraits().httpPayload&&!(t in o)){o[t]=null}}return o}async handleError(t,n,s,o,i){const A=I(s,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,s,o,i);const d=c.of(l);const g=o.message??o.Message??"UnknownError";const h=this.compositeErrorRegistry.getErrorCtor(l)??Error;const f=new h({});await this.deserializeHttpMessage(l,n,s,o);const E={};const p=this.codec.createDeserializer();for(const[t,n]of d.structIterator()){const s=n.getMergedTraits().jsonName??t;E[t]=p.readObject(n,o[s])}throw this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:g},E),o)}getDefaultContentType(){return"application/json"}}class AwsSmithyRpcV2JsonProtocol extends m{awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:n,awsQueryCompatible:s}){super({defaultNamespace:t,errorTypeRegistries:n});this.awsQueryCompatible=!!s;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(t,n,s,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,s)}const A=(()=>{const t=s.headers["x-amzn-query-error"];if(t&&this.awsQueryCompatible){return t.split(";")[0]}return B(s,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,s,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const d=c.of(l);const g=o.message??o.Message??"UnknownError";const h=this.compositeErrorRegistry.getErrorCtor(l)??Error;const f=new h({});const E={};const p=this.getPayloadCodec().createDeserializer();for(const[t,n]of d.structIterator()){if(o[t]!=null){E[t]=p.readObject(n,o[t])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,E)}throw this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:g},E),o)}}class SerdeContextConfig{serdeContext;setSerdeContext(t){this.serdeContext=t}}class UnionSerde{from;to;keys;constructor(t,n){this.from=t;this.to=n;const s=Object.keys(this.from);const o=new Set(s);o.delete("__type");this.keys=o}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value;const n=this.from[t];this.to.$unknown=[t,n]}}}function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(t){super();this.settings=t;this.stringDeserializer=new Q(t)}setSerdeContext(t){this.serdeContext=t;this.stringDeserializer.setSerdeContext(t)}read(t,n,s){const o=c.of(t);const i=o.getMemberSchemas();const A=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(i).find(t=>!!t.getMemberTraits().eventPayload);if(A){const t={};const s=Object.keys(i)[0];const o=i[s];if(o.isBlobSchema()){t[s]=n}else{t[s]=this.read(i[s],n)}return t}const l=(this.serdeContext?.utf8Encoder??L)(n);const u=this.parseXml(l);return this.readSchema(t,s?u[s]:u)}readSchema(t,n){const s=c.of(t);if(s.isUnitSchema()){return}const o=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(n)){return this.readSchema(s,[n])}if(n==null){return n}if(typeof n==="object"){const t=!!o.xmlFlattened;if(s.isListSchema()){const o=s.getValueSchema();const i=[];const A=o.getMergedTraits().xmlName??"member";const c=t?n:(n[0]??n)[A];if(c==null){return i}const l=Array.isArray(c)?c:[c];for(const t of l){i.push(this.readSchema(o,t))}return i}const i={};if(s.isMapSchema()){const o=s.getKeySchema();const A=s.getValueSchema();let c;if(t){c=Array.isArray(n)?n:[n]}else{c=Array.isArray(n.entry)?n.entry:[n.entry]}const l=o.getMergedTraits().xmlName??"key";const u=A.getMergedTraits().xmlName??"value";for(const t of c){const n=t[l];const s=t[u];if(n==="__proto__"){writeKey(i)}i[n]=this.readSchema(A,s)}return i}if(s.isStructSchema()){const t=s.isUnionSchema();let o;if(t){o=new UnionSerde(n,i)}for(const[A,c]of s.structIterator()){const s=c.getMergedTraits();const l=!s.httpPayload?c.getMemberTraits().xmlName??A:s.xmlName??c.getName();if(t){o.mark(l)}if(n[l]!=null){i[A]=this.readSchema(c,n[l])}}if(t){o.writeUnknown()}return i}if(s.isDocumentSchema()){return n}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(true)}`)}if(s.isListSchema()){return[]}if(s.isMapSchema()||s.isStructSchema()){return{}}return this.stringDeserializer.read(s,n)}parseXml(t){if(t.length){let n;try{n=x(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const s="#text";const o=Object.keys(n)[0];const i=n[o];if(i[s]){i[o]=i[s];delete i[s]}return d(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(t){super();this.settings=t}write(t,n,s=""){if(this.buffer===undefined){this.buffer=""}const o=c.of(t);if(s&&!s.endsWith(".")){s+="."}if(o.isBlobSchema()){if(typeof n==="string"||n instanceof Uint8Array){this.writeKey(s);this.writeValue((this.serdeContext?.base64Encoder??P)(n))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(n!=null){this.writeKey(s);this.writeValue(String(n))}else if(o.isIdempotencyToken()){this.writeKey(s);this.writeValue(O())}}else if(o.isBigIntegerSchema()){if(n!=null){this.writeKey(s);this.writeValue(String(n))}}else if(o.isBigDecimalSchema()){if(n!=null){this.writeKey(s);this.writeValue(n instanceof H?n.string:String(n))}}else if(o.isTimestampSchema()){if(n instanceof Date){this.writeKey(s);const t=y(o,this.settings);switch(t){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(_(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(n)){this.write(64|15,n,s)}else if(n instanceof Date){this.write(4,n,s)}else if(n instanceof Uint8Array){this.write(21,n,s)}else if(n&&typeof n==="object"){this.write(128|15,n,s)}else{this.writeKey(s);this.writeValue(String(n))}}else if(o.isListSchema()){if(Array.isArray(n)){if(n.length===0){if(this.settings.serializeEmptyLists){this.writeKey(s);this.writeValue("")}}else{const t=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let A=1;for(const o of n){if(o==null){continue}const n=t.getMergedTraits();const c=this.getKey("member",n.xmlName,n.ec2QueryName);const l=i?`${s}${A}`:`${s}${c}.${A}`;this.write(t,o,l);++A}}}}else if(o.isMapSchema()){if(n&&typeof n==="object"){const t=o.getKeySchema();const i=o.getValueSchema();const A=o.getMergedTraits().xmlFlattened;let c=1;for(const o in n){const l=n[o];if(l==null){continue}const u=t.getMergedTraits();const d=this.getKey("key",u.xmlName,u.ec2QueryName);const g=A?`${s}${c}.${d}`:`${s}entry.${c}.${d}`;const h=i.getMergedTraits();const f=this.getKey("value",h.xmlName,h.ec2QueryName);const E=A?`${s}${c}.${f}`:`${s}entry.${c}.${f}`;this.write(t,o,g);this.write(i,l,E);++c}}}else if(o.isStructSchema()){if(n&&typeof n==="object"){let t=false;for(const[i,A]of o.structIterator()){if(n[i]==null&&!A.isIdempotencyToken()){continue}const o=A.getMergedTraits();const c=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const l=`${s}${c}`;this.write(A,n[i],l);t=true}if(!t&&o.isUnionSchema()){const{$unknown:t}=n;if(Array.isArray(t)){const[n,o]=t;const i=`${s}${n}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const t=this.buffer;delete this.buffer;return t}getKey(t,n,s,o){const{ec2:i,capitalizeKeys:A}=this.settings;if(i&&s){return s}const c=n??t;if(A&&o==="struct"){return c[0].toUpperCase()+c.slice(1)}return c}writeKey(t){if(t.endsWith(".")){t=t.slice(0,t.length-1)}this.buffer+=`&${w(t)}=`}writeValue(t){this.buffer+=w(t)}}class AwsQueryProtocol extends g{options;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super({defaultNamespace:t.defaultNamespace,errorTypeRegistries:t.errorTypeRegistries});this.options=t;const n={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(n);this.deserializer=new XmlShapeDeserializer(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);if(!o.path.endsWith("/")){o.path+="/"}o.headers["content-type"]="application/x-www-form-urlencoded";if(l(t.input)==="unit"||!o.body){o.body=""}const i=t.name.split("#")[1]??t.name;o.body=`Action=${i}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(t,n,s){const o=this.deserializer;const i=c.of(t.output);const A={};if(s.statusCode>=300){const i=await S(s.body,n);if(i.byteLength>0){Object.assign(A,await o.read(15,i))}await this.handleError(t,n,s,A,this.deserializeMetadata(s))}for(const t in s.headers){const n=s.headers[t];delete s.headers[t];s.headers[t.toLowerCase()]=n}const l=t.name.split("#")[1]??t.name;const u=i.isStructSchema()&&this.useNestedResult()?l+"Result":undefined;const d=await S(s.body,n);if(d.byteLength>0){Object.assign(A,await o.read(i,d,u))}A.$metadata=this.deserializeMetadata(s);return A}useNestedResult(){return true}async handleError(t,n,s,o,i){const A=this.loadQueryErrorCode(s,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);const l=this.loadQueryError(o)??{};const u=this.loadQueryErrorMessage(o);l.message=u;l.Error={Type:l.Type,Code:l.Code,Message:u};const{errorSchema:d,errorMetadata:g}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,s,l,i,this.mixin.findQueryCompatibleError);const h=c.of(d);const f=this.compositeErrorRegistry.getErrorCtor(d)??Error;const E=new f({});const p={Type:l.Error.Type,Code:l.Error.Code,Error:l.Error};for(const[t,n]of h.structIterator()){const s=n.getMergedTraits().xmlName??t;const i=l[s]??o[s];p[t]=this.deserializer.readSchema(n,i)}throw this.mixin.decorateServiceException(Object.assign(E,g,{$fault:h.getMergedTraits().error,message:u},p),o)}loadQueryErrorCode(t,n){const s=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(s!==undefined){return s}if(t.statusCode==404){return"NotFound"}}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(t){super(t);this.options=t;const n={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,n)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const collectBodyString=(t,n)=>S(t,n).then(t=>(n?.utf8Encoder??L)(t));const parseXmlBody=(t,n)=>collectBodyString(t,n).then(t=>{if(t.length){let n;try{n=x(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const s="#text";const o=Object.keys(n)[0];const i=n[o];if(i[s]){i[o]=i[s];delete i[s]}return d(i)}return{}});const parseXmlErrorBody=async(t,n)=>{const s=await parseXmlBody(t,n);if(s.Error){s.Error.message=s.Error.message??s.Error.Message}return s};const loadRestXmlErrorCode=(t,n)=>{if(n?.Error?.Code!==undefined){return n.Error.Code}if(n?.Code!==undefined){return n.Code}if(t.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(t){super();this.settings=t}write(t,n){const s=c.of(t);if(s.isStringSchema()&&typeof n==="string"){this.stringBuffer=n}else if(s.isBlobSchema()){this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??G)(n)}else{this.buffer=this.writeStruct(s,n,undefined);const t=s.getMergedTraits();if(t.httpPayload&&!t.xmlName){this.buffer.withName(s.getName())}}}flush(){if(this.byteBuffer!==undefined){const t=this.byteBuffer;delete this.byteBuffer;return t}if(this.stringBuffer!==undefined){const t=this.stringBuffer;delete this.stringBuffer;return t}const t=this.buffer;if(this.settings.xmlNamespace){if(!t?.attributes?.["xmlns"]){t.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return t.toString()}writeStruct(t,n,s){const o=t.getMergedTraits();const i=t.isMemberSchema()&&!o.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():o.xmlName??t.getName();if(!i||!t.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(true)}.`)}const A=M.of(i);const[c,l]=this.getXmlnsAttribute(t,s);for(const[s,o]of t.structIterator()){const t=n[s];if(t!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){A.addAttribute(o.getMergedTraits().xmlName??s,this.writeSimple(o,t));continue}if(o.isListSchema()){this.writeList(o,t,A,l)}else if(o.isMapSchema()){this.writeMap(o,t,A,l)}else if(o.isStructSchema()){A.addChildNode(this.writeStruct(o,t,l))}else{const n=M.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,t,n,l);A.addChildNode(n)}}}const{$unknown:u}=n;if(u&&t.isUnionSchema()&&Array.isArray(u)&&Object.keys(n).length===1){const[t,s]=u;const o=M.of(t);if(typeof s!=="string"){if(n instanceof M||n instanceof U){A.addChildNode(n)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,s,o,l);A.addChildNode(o)}if(l){A.addAttribute(c,l)}return A}writeList(t,n,s,o){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(true)}`)}const i=t.getMergedTraits();const A=t.getValueSchema();const c=A.getMergedTraits();const l=!!c.sparse;const u=!!i.xmlFlattened;const[d,g]=this.getXmlnsAttribute(t,o);const writeItem=(n,s)=>{if(A.isListSchema()){this.writeList(A,Array.isArray(s)?s:[s],n,g)}else if(A.isMapSchema()){this.writeMap(A,s,n,g)}else if(A.isStructSchema()){const o=this.writeStruct(A,s,g);n.addChildNode(o.withName(u?i.xmlName??t.getMemberName():c.xmlName??"member"))}else{const o=M.of(u?i.xmlName??t.getMemberName():c.xmlName??"member");this.writeSimpleInto(A,s,o,g);n.addChildNode(o)}};if(u){for(const t of n){if(l||t!=null){writeItem(s,t)}}}else{const o=M.of(i.xmlName??t.getMemberName());if(g){o.addAttribute(d,g)}for(const t of n){if(l||t!=null){writeItem(o,t)}}s.addChildNode(o)}}writeMap(t,n,s,o,i=false){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(true)}`)}const A=t.getMergedTraits();const c=t.getKeySchema();const l=c.getMergedTraits();const u=l.xmlName??"key";const d=t.getValueSchema();const g=d.getMergedTraits();const h=g.xmlName??"value";const f=!!g.sparse;const E=!!A.xmlFlattened;const[p,C]=this.getXmlnsAttribute(t,o);const addKeyValue=(t,n,s)=>{const o=M.of(u,n);const[i,A]=this.getXmlnsAttribute(c,C);if(A){o.addAttribute(i,A)}t.addChildNode(o);let l=M.of(h);if(d.isListSchema()){this.writeList(d,s,l,C)}else if(d.isMapSchema()){this.writeMap(d,s,l,C,true)}else if(d.isStructSchema()){l=this.writeStruct(d,s,C)}else{this.writeSimpleInto(d,s,l,C)}t.addChildNode(l)};if(E){for(const o in n){const i=n[o];if(f||i!=null){const n=M.of(A.xmlName??t.getMemberName());addKeyValue(n,o,i);s.addChildNode(n)}}}else{let o;if(!i){o=M.of(A.xmlName??t.getMemberName());if(C){o.addAttribute(p,C)}s.addChildNode(o)}for(const t in n){const A=n[t];if(f||A!=null){const n=M.of("entry");addKeyValue(n,t,A);(i?s:o).addChildNode(n)}}}}writeSimple(t,n){if(null===n){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const s=c.of(t);let o=null;if(n&&typeof n==="object"){if(s.isBlobSchema()){o=(this.serdeContext?.base64Encoder??P)(n)}else if(s.isTimestampSchema()&&n instanceof Date){const t=y(s,this.settings);switch(t){case 5:o=n.toISOString().replace(".000Z","Z");break;case 6:o=_(n);break;case 7:o=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n);o=_(n);break}}else if(s.isBigDecimalSchema()&&n){if(n instanceof H){return n.string}return String(n)}else if(s.isMapSchema()||s.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${s.getName(true)}`)}}if(s.isBooleanSchema()||s.isNumericSchema()||s.isBigIntegerSchema()||s.isBigDecimalSchema()){o=String(n)}if(s.isStringSchema()){if(n===undefined&&s.isIdempotencyToken()){o=O()}else{o=String(n)}}if(o===null){throw new Error(`Unhandled schema-value pair ${s.getName(true)}=${n}`)}return o}writeSimpleInto(t,n,s,o){const i=this.writeSimple(t,n);const A=c.of(t);const l=new U(i);const[u,d]=this.getXmlnsAttribute(A,o);if(d){s.addAttribute(u,d)}s.addChildNode(l)}getXmlnsAttribute(t,n){const s=t.getMergedTraits();const[o,i]=s.xmlNamespace??[];if(i&&i!==n){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new XmlShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new XmlShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}class AwsRestXmlProtocol extends E{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super(t);const n={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new XmlCodec(n);this.serializer=new p(this.codec.createSerializer(),n);this.deserializer=new C(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);const i=c.of(t.input);if(!o.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(t){o.headers["content-type"]=t}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(i)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(t,n,s){return super.deserializeResponse(t,n,s)}async handleError(t,n,s,o,i){const A=loadRestXmlErrorCode(s,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);if(o.Error&&typeof o.Error==="object"){for(const t of Object.keys(o.Error)){o[t]=o.Error[t];if(t.toLowerCase()==="message"){o.message=o.Error[t]}}}if(o.RequestId&&!i.requestId){i.requestId=o.RequestId}const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,s,o,i);const d=c.of(l);const g=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError";const h=this.compositeErrorRegistry.getErrorCtor(l)??Error;const f=new h({});await this.deserializeHttpMessage(l,n,s,o);const E={};const p=this.codec.createDeserializer();for(const[t,n]of d.structIterator()){const s=n.getMergedTraits().xmlName??t;const i=o.Error?.[s]??o[s];E[t]=p.readSchema(n,i)}throw this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:g},E),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator()){if(n.getMergedTraits().httpPayload){return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema())}}return false}}const awsExpectUnion=t=>{if(t==null){return undefined}if(typeof t==="object"&&"__type"in t){delete t.__type}return V(t)};const _toStr=t=>{if(t==null){return t}if(typeof t==="number"||typeof t==="bigint"){const n=new Error(`Received number ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}if(typeof t==="boolean"){const n=new Error(`Received boolean ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}return t};const _toBool=t=>{if(t==null){return t}if(typeof t==="string"){const n=t.toLowerCase();if(t!==""&&n!=="false"&&n!=="true"){const n=new Error(`Received string "${t}" where a boolean was expected.`);n.name="Warning";console.warn(n)}return t!==""&&n!=="false"}return t};const _toNum=t=>{if(t==null){return t}if(typeof t==="string"){const n=Number(t);if(n.toString()!==t){const n=new Error(`Received string "${t}" where a number was expected.`);n.name="Warning";console.warn(n);return t}return n}return t};n.AwsEc2QueryProtocol=AwsEc2QueryProtocol;n.AwsJson1_0Protocol=AwsJson1_0Protocol;n.AwsJson1_1Protocol=AwsJson1_1Protocol;n.AwsJsonRpcProtocol=AwsJsonRpcProtocol;n.AwsQueryProtocol=AwsQueryProtocol;n.AwsRestJsonProtocol=AwsRestJsonProtocol;n.AwsRestXmlProtocol=AwsRestXmlProtocol;n.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;n.AwsSmithyRpcV2JsonProtocol=AwsSmithyRpcV2JsonProtocol;n.QueryShapeSerializer=QueryShapeSerializer;n.XmlCodec=XmlCodec;n.XmlShapeDeserializer=XmlShapeDeserializer;n.XmlShapeSerializer=XmlShapeSerializer;n._toBool=_toBool;n._toNum=_toNum;n._toStr=_toStr;n.awsExpectUnion=awsExpectUnion;n.loadRestXmlErrorCode=loadRestXmlErrorCode;n.parseXmlBody=parseXmlBody;n.parseXmlErrorBody=parseXmlErrorBody},5606:(t,n,s)=>{const{setCredentialFeature:o}=s(5152);const{CredentialsProviderError:i}=s(7291);const A="AWS_ACCESS_KEY_ID";const c="AWS_SECRET_ACCESS_KEY";const l="AWS_SESSION_TOKEN";const u="AWS_CREDENTIAL_EXPIRATION";const d="AWS_CREDENTIAL_SCOPE";const g="AWS_ACCOUNT_ID";const fromEnv=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const n=process.env[A];const s=process.env[c];const h=process.env[l];const f=process.env[u];const E=process.env[d];const p=process.env[g];if(n&&s){const t={accessKeyId:n,secretAccessKey:s,...h&&{sessionToken:h},...f&&{expiration:new Date(f)},...E&&{credentialScope:E},...p&&{accountId:p}};o(t,"CREDENTIALS_ENV_VARS","g");return t}throw new i("Unable to find environment variable credentials.",{logger:t?.logger})};n.ENV_ACCOUNT_ID=g;n.ENV_CREDENTIAL_SCOPE=d;n.ENV_EXPIRATION=u;n.ENV_KEY=A;n.ENV_SECRET=c;n.ENV_SESSION=l;n.fromEnv=fromEnv},8605:(t,n,s)=>{const{setCredentialFeature:o}=s(5152);const{CredentialsProviderError:i}=s(7291);const{NodeHttpHandler:A}=s(1279);const c=s(1455);const{HttpRequest:l}=s(3422);const{sdkStreamMixin:u,parseRfc3339DateTime:d}=s(2430);const g="169.254.170.2";const h="169.254.170.23";const f="[fd00:ec2::23]";const checkUrl=(t,n)=>{if(t.protocol==="https:"){return}if(t.hostname===g||t.hostname===h||t.hostname===f){return}if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(t.hostname==="localhost"){return}const n=t.hostname.split(".");const inRange=t=>{const n=parseInt(t,10);return 0<=n&&n<=255};if(n[0]==="127"&&inRange(n[1])&&inRange(n[2])&&inRange(n[3])&&n.length===4){return}}throw new i(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:n})};function createGetRequest(t){return new l({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((t,[n,s])=>{t[n]=s;return t},{}),fragment:t.hash})}async function getCredentials(t,n){const s=u(t.body);const o=await s.transformToString();if(t.statusCode===200){const t=JSON.parse(o);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string"){throw new i("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:n})}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:d(t.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(o)}catch(t){}throw Object.assign(new i(`Server responded with status: ${t.statusCode}`,{logger:n}),{Code:s.Code,Message:s.Message})}throw new i(`Server responded with status: ${t.statusCode}`,{logger:n})}const retryWrapper=(t,n,s)=>async()=>{for(let o=0;o<n;++o){try{return await t()}catch(t){await new Promise(t=>setTimeout(t,s))}}return await t()};const E="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const p="http://169.254.170.2";const C="AWS_CONTAINER_CREDENTIALS_FULL_URI";const I="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const m="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let n;const s=t.awsContainerCredentialsRelativeUri??process.env[E];const l=t.awsContainerCredentialsFullUri??process.env[C];const u=t.awsContainerAuthorizationToken??process.env[m];const d=t.awsContainerAuthorizationTokenFile??process.env[I];const g=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(s&&l){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");g("awsContainerCredentialsRelativeUri will take precedence.")}if(u&&d){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");g("awsContainerAuthorizationTokenFile will take precedence.")}if(s){n=`${p}${s}`}else if(l){n=l}else{throw new i(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger})}const h=new URL(n);checkUrl(h,t.logger);const f=A.create({connectionTimeout:t.timeout??1e3});const B=t.timeout??1e3;const Q=retryWrapper(async()=>{const n=createGetRequest(h);if(d){n.headers.Authorization=validateToken((await c.readFile(d)).toString())}else if(u){n.headers.Authorization=validateToken(u)}try{const t=await f.handle(n,{requestTimeout:B});return getCredentials(t.response).then(t=>o(t,"CREDENTIALS_HTTP","z"))}catch(n){throw new i(String(n),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await Q()}finally{f.destroy?.()}}};const validateToken=t=>{if(t.includes("\r\n")){throw new i("Authorization token contains invalid \\r\\n sequence.")}return t};n.fromHttp=fromHttp},5869:(t,n,s)=>{const{CredentialsProviderError:o,chain:i,getProfileName:A,parseKnownFiles:c}=s(7291);const{setCredentialFeature:l}=s(5152);const resolveCredentialSource=(t,n,A)=>{const c={EcsContainer:async t=>{const{fromHttp:n}=s(8605);const{fromContainerMetadata:o}=s(566);A?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>i(n(t??{}),o(t))().then(setNamedProvider)},Ec2InstanceMetadata:async t=>{A?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:n}=s(566);return async()=>n(t)().then(setNamedProvider)},Environment:async t=>{A?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:n}=s(5606);return async()=>n(t)().then(setNamedProvider)}};if(t in c){return c[t]}else{throw new o(`Unsupported credential source in profile ${n}. Got ${t}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:A})}};const setNamedProvider=t=>l(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");const isAssumeRoleProfile=(t,{profile:n="default",logger:s}={})=>Boolean(t)&&typeof t==="object"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(t,{profile:n,logger:s})||isCredentialSourceProfile(t,{profile:n,logger:s}));const isAssumeRoleWithSourceProfile=(t,{profile:n,logger:s})=>{const o=typeof t.source_profile==="string"&&typeof t.credential_source==="undefined";if(o){s?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`)}return o};const isCredentialSourceProfile=(t,{profile:n,logger:s})=>{const o=typeof t.credential_source==="string"&&typeof t.source_profile==="undefined";if(o){s?.debug?.(` ${n} isCredentialSourceProfile credential_source=${t.credential_source}`)}return o};const resolveAssumeRoleCredentials=async(t,n,i,c,u={},d)=>{i.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const g=n[t];const{source_profile:h,region:f}=g;if(!i.roleAssumer){const{getDefaultRoleAssumer:t}=s(1136);i.roleAssumer=t({...i.clientConfig,credentialProviderLogger:i.logger,parentClientConfig:{...c,...i?.parentClientConfig,region:f??i?.parentClientConfig?.region??c?.region}},i.clientPlugins)}if(h&&h in u){throw new o(`Detected a cycle attempting to resolve credentials for profile`+` ${A(i)}. Profiles visited: `+Object.keys(u).join(", "),{logger:i.logger})}i.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${h?`source_profile=[${h}]`:`profile=[${t}]`}`);const E=h?d(h,n,i,c,{...u,[h]:true},isCredentialSourceWithoutRoleArn(n[h]??{})):(await resolveCredentialSource(g.credential_source,t,i.logger)(i))();if(isCredentialSourceWithoutRoleArn(g)){return E.then(t=>l(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}else{const n={RoleArn:g.role_arn,RoleSessionName:g.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:g.external_id,DurationSeconds:parseInt(g.duration_seconds||"3600",10)};const{mfa_serial:s}=g;if(s){if(!i.mfaCodeProvider){throw new o(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:i.logger,tryNextLink:false})}n.SerialNumber=s;n.TokenCode=await i.mfaCodeProvider(s)}const A=await E;return i.roleAssumer(A,n).then(t=>l(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}};const isCredentialSourceWithoutRoleArn=t=>!t.role_arn&&!!t.credential_source;const isLoginProfile=t=>Boolean(t&&t.login_session);const resolveLoginCredentials=async(t,n,o)=>{const{fromLoginCredentials:i}=s(4072);const A=await i({...n,profile:t})({callerClientConfig:o});return l(A,"CREDENTIALS_PROFILE_LOGIN","AC")};const isProcessProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.credential_process==="string";const resolveProcessCredentials=async(t,n)=>{const{fromProcess:o}=s(5360);const i=await o({...t,profile:n})();return l(i,"CREDENTIALS_PROFILE_PROCESS","v")};const resolveSsoCredentials=async(t,n,o={},i)=>{const{fromSSO:A}=s(998);return A({profile:t,logger:o.logger,parentClientConfig:o.parentClientConfig,clientConfig:o.clientConfig})({callerClientConfig:i}).then(t=>{if(n.sso_session){return l(t,"CREDENTIALS_PROFILE_SSO","r")}else{return l(t,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}})};const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const isStaticCredsProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.aws_access_key_id==="string"&&typeof t.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1;const resolveStaticCredentials=async(t,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const s={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return l(s,"CREDENTIALS_PROFILE","n")};const isWebIdentityProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.web_identity_token_file==="string"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1;const resolveWebIdentityCredentials=async(t,n,o)=>{const{fromTokenFile:i}=s(9956);const A=await i({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:o});return l(A,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")};const resolveProfileData=async(t,n,s,i,A={},c=false)=>{const l=n[t];if(Object.keys(A).length>0&&isStaticCredsProfile(l)){return resolveStaticCredentials(l,s)}if(c||isAssumeRoleProfile(l,{profile:t,logger:s.logger})){return resolveAssumeRoleCredentials(t,n,s,i,A,resolveProfileData)}if(isStaticCredsProfile(l)){return resolveStaticCredentials(l,s)}if(isWebIdentityProfile(l)){return resolveWebIdentityCredentials(l,s,i)}if(isProcessProfile(l)){return resolveProcessCredentials(s,t)}if(isSsoProfile(l)){return await resolveSsoCredentials(t,l,s,i)}if(isLoginProfile(l)){return resolveLoginCredentials(t,s,i)}throw new o(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:s.logger})};const fromIni=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const s=await c(t);return resolveProfileData(A({profile:t.profile??n?.profile}),s,t,n)};n.fromIni=fromIni},4072:(t,n,s)=>{const{setCredentialFeature:o}=s(5152);const{CredentialsProviderError:i,parseKnownFiles:A,getProfileName:c}=s(7291);const{HttpRequest:l}=s(3422);const{createHash:u,createPrivateKey:d,createPublicKey:g,sign:h}=s(7598);const{promises:f}=s(3024);const{homedir:E}=s(8161);const{dirname:p,join:C}=s(6760);class LoginCredentialsFetcher{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=5*60*1e3;constructor(t,n,s){this.profileData=t;this.init=n;this.callerClientConfig=s}async loadCredentials(){const t=await this.loadToken();if(!t){throw new i(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:false,logger:this.logger})}const n=t.accessToken;const s=Date.now();const o=new Date(n.expiresAt).getTime();const A=o-s;if(A<=LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.refresh(t)}return this.toCredentials(t.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken,accountId:t.accountId,expiration:new Date(t.expiresAt)}}async refresh(t){const n=await this.loadToken().catch(()=>t);const o=Date.now();const A=new Date(n.accessToken.expiresAt).getTime();const c=new Date(t.accessToken.expiresAt).getTime();const l=A<=o&&c>o?t:n;const u=new Date(l.accessToken.expiresAt).getTime();if(u-Date.now()>LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.toCredentials(l.accessToken)}const{SigninClient:d,CreateOAuth2TokenCommand:g}=s(9762);const{logger:h,userAgentAppId:f}=this.callerClientConfig??{};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const E=isH2(this.callerClientConfig?.requestHandler)?undefined:this.callerClientConfig?.requestHandler;const p=this.profileData.region??await(this.callerClientConfig?.region?.())??process.env.AWS_REGION;const C=new d({credentials:{accessKeyId:"",secretAccessKey:""},region:p,requestHandler:E,logger:h,userAgentAppId:f,...this.init?.clientConfig});this.createDPoPInterceptor(C.middlewareStack);const I={tokenInput:{clientId:l.clientId,refreshToken:l.refreshToken,grantType:"refresh_token"}};try{const t=await C.send(new g(I));const{accessKeyId:n,secretAccessKey:s,sessionToken:o}=t.tokenOutput?.accessToken??{};const{refreshToken:A,expiresIn:c}=t.tokenOutput??{};if(!n||!s||!o||!A){throw new i("Token refresh response missing required fields",{logger:this.logger,tryNextLink:false})}const u=(c??900)*1e3;const d=new Date(Date.now()+u);const h={...l,accessToken:{...l.accessToken,accessKeyId:n,secretAccessKey:s,sessionToken:o,expiresAt:d.toISOString()},refreshToken:A};await this.saveToken(h);return this.toCredentials(h.accessToken)}catch(t){if(t.name==="AccessDeniedException"){const n=t.error;let s;switch(n){case"TOKEN_EXPIRED":s="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":s="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":s="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:s=`Failed to refresh token: ${String(t)}. Please re-authenticate using \`aws login\``}throw new i(s,{logger:this.logger,tryNextLink:false})}const n=new Date(l.accessToken.expiresAt).getTime();if(n>Date.now()){this.logger?.warn?.(`Failed to refresh token: ${String(t)}. Using existing token until expiry.`);return this.toCredentials(l.accessToken)}throw new i(`Failed to refresh token: ${String(t)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){const t=this.getTokenFilePath();try{const n=await f.readFile(t,"utf8");const s=JSON.parse(n);const o=["accessToken","clientId","refreshToken","dpopKey"].filter(t=>!s[t]);if(!s.accessToken?.accountId){o.push("accountId")}if(o.length>0){throw new i(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:false})}return s}catch(n){throw new i(`Failed to load token from ${t}: ${String(n)}`,{logger:this.logger,tryNextLink:false})}}async saveToken(t){const n=this.getTokenFilePath();const s=p(n);try{await f.mkdir(s,{recursive:true})}catch(t){}await f.writeFile(n,JSON.stringify(t,null,2),"utf8")}getTokenFilePath(){const t=process.env.AWS_LOGIN_CACHE_DIRECTORY??C(E(),".aws","login","cache");const n=Buffer.from(this.loginSession,"utf8");const s=u("sha256").update(n).digest("hex");return C(t,`${s}.json`)}derToRawSignature(t){let n=2;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const s=t[n++];let o=t.subarray(n,n+s);n+=s;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const i=t[n++];let A=t.subarray(n,n+i);o=o[0]===0?o.subarray(1):o;A=A[0]===0?A.subarray(1):A;const c=Buffer.concat([Buffer.alloc(32-o.length),o]);const l=Buffer.concat([Buffer.alloc(32-A.length),A]);return Buffer.concat([c,l])}createDPoPInterceptor(t){t.add(t=>async n=>{if(l.isInstance(n.request)){const t=n.request;const s=`${t.protocol}//${t.hostname}${t.port?`:${t.port}`:""}${t.path}`;const o=await this.generateDpop(t.method,s);t.headers={...t.headers,DPoP:o}}return t(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:true})}async generateDpop(t="POST",n){const s=await this.loadToken();try{const o=d({key:s.dpopKey,format:"pem",type:"sec1"});const i=g(o);const A=i.export({format:"der",type:"spki"});let c=-1;for(let t=0;t<A.length;t++){if(A[t]===4){c=t;break}}const l=A.slice(c+1,c+33);const u=A.slice(c+33,c+65);const f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:l.toString("base64url"),y:u.toString("base64url")}};const E={jti:crypto.randomUUID(),htm:t,htu:n,iat:Math.floor(Date.now()/1e3)};const p=Buffer.from(JSON.stringify(f)).toString("base64url");const C=Buffer.from(JSON.stringify(E)).toString("base64url");const I=`${p}.${C}`;const m=h("sha256",Buffer.from(I),o);const B=this.derToRawSignature(m);const Q=B.toString("base64url");return`${I}.${Q}`}catch(t){throw new i(`Failed to generate Dpop proof: ${t instanceof Error?t.message:String(t)}`,{logger:this.logger,tryNextLink:false})}}}const fromLoginCredentials=t=>async({callerClientConfig:n}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");const s=await A(t||{});const l=c({profile:t?.profile??n?.profile});const u=s[l];if(!u?.login_session){throw new i(`Profile ${l} does not contain login_session.`,{tryNextLink:true,logger:t?.logger})}const d=new LoginCredentialsFetcher(u,t,n);const g=await d.loadCredentials();return o(g,"CREDENTIALS_LOGIN","AD")};n.fromLoginCredentials=fromLoginCredentials},5861:(t,n,s)=>{const{ENV_KEY:o,ENV_SECRET:i,fromEnv:A}=s(5606);const{chain:c,CredentialsProviderError:l,ENV_PROFILE:u}=s(7291);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async t=>{const{ENV_CMDS_FULL_URI:n,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:i,fromInstanceMetadata:A}=s(566);if(process.env[o]||process.env[n]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:n}=s(8605);return c(n(t),i(t))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new l("EC2 Instance Metadata Service access disabled",{logger:t.logger})}}t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return A(t)};function memoizeChain(t,n){const s=internalCreateChain(t);let o;let i;let A;let c;const provider=async t=>{if(t?.forceRefresh){if(!c){c=s(t).then(t=>{A=t}).finally(()=>{c=undefined})}await c;return A}if(A?.expiration){if(A?.expiration?.getTime()<Date.now()){A=undefined}}if(o){await o}else if(!A||n?.(A)){if(A){if(!i){i=s(t).then(t=>{A=t}).catch(()=>{}).finally(()=>{i=undefined})}}else{o=s(t).then(t=>{A=t}).finally(()=>{o=undefined});return provider(t)}}return A};return provider}const internalCreateChain=t=>async n=>{let s;for(const o of t){try{return await o(n)}catch(t){s=t;if(t?.tryNextLink){continue}throw t}}throw s};let g=false;const defaultProvider=(t={})=>memoizeChain([async()=>{const n=t.profile??process.env[u];if(n){const n=process.env[o]&&process.env[i];if(n){if(!g){const n=t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn;n(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);g=true}}throw new l("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:true})}t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return A(t)()},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:i,ssoRegion:A,ssoRoleName:c,ssoSession:u}=t;if(!o&&!i&&!A&&!c&&!u){throw new l("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger})}const{fromSSO:d}=s(998);return d(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=s(5869);return o(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=s(5360);return o(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=s(9956);return o(t)(n)},async()=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(t))()},async()=>{throw new l("Could not load credentials from any providers",{tryNextLink:false,logger:t.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=t=>t?.expiration!==undefined;const credentialsTreatedAsExpired=t=>t?.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5;n.credentialsTreatedAsExpired=credentialsTreatedAsExpired;n.credentialsWillNeedRefresh=credentialsWillNeedRefresh;n.defaultProvider=defaultProvider},5360:(t,n,s)=>{const{externalDataInterceptor:o,CredentialsProviderError:i,parseKnownFiles:A,getProfileName:c}=s(7291);const{exec:l}=s(1421);const{promisify:u}=s(7975);const{setCredentialFeature:d}=s(5152);const getValidatedProcessCredentials=(t,n,s)=>{if(n.Version!==1){throw Error(`Profile ${t} credential_process did not return Version 1.`)}if(n.AccessKeyId===undefined||n.SecretAccessKey===undefined){throw Error(`Profile ${t} credential_process returned invalid credentials.`)}if(n.Expiration){const s=new Date;const o=new Date(n.Expiration);if(o<s){throw Error(`Profile ${t} credential_process returned expired credentials.`)}}let o=n.AccountId;if(!o&&s?.[t]?.aws_account_id){o=s[t].aws_account_id}const i={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...o&&{accountId:o}};d(i,"CREDENTIALS_PROCESS","w");return i};const resolveProcessCredentials=async(t,n,s)=>{const A=n[t];if(n[t]){const c=A["credential_process"];if(c!==undefined){const A=u(o?.getTokenRecord?.().exec??l);try{const{stdout:s}=await A(c);let o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return getValidatedProcessCredentials(t,o,n)}catch(t){throw new i(t.message,{logger:s})}}else{throw new i(`Profile ${t} did not contain credential_process.`,{logger:s})}}else{throw new i(`Profile ${t} could not be found in shared credentials file.`,{logger:s})}};const fromProcess=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const s=await A(t);return resolveProcessCredentials(c({profile:t.profile??n?.profile}),s,t.logger)};n.fromProcess=fromProcess},998:(t,n,s)=>{const{CredentialsProviderError:o,getSSOTokenFromFile:i,getProfileName:A,parseKnownFiles:c,loadSsoSessionData:l}=s(7291);const{setCredentialFeature:u}=s(5152);const{fromSso:d}=s(5433);const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const g=false;const resolveSSOCredentials=async({ssoStartUrl:t,ssoSession:n,ssoAccountId:A,ssoRegion:c,ssoRoleName:l,ssoClient:h,clientConfig:f,parentClientConfig:E,callerClientConfig:p,profile:C,filepath:I,configFilepath:m,ignoreCache:B,logger:Q})=>{let y;const w=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(n){try{const t=await d({profile:C,filepath:I,configFilepath:m,ignoreCache:B,clientConfig:f,parentClientConfig:E,logger:Q})({callerClientConfig:p});y={accessToken:t.token,expiresAt:new Date(t.expiration).toISOString()}}catch(t){throw new o(t.message,{tryNextLink:g,logger:Q})}}else{try{y=await i(t)}catch(t){throw new o(`The SSO session associated with this profile is invalid. ${w}`,{tryNextLink:g,logger:Q})}}if(new Date(y.expiresAt).getTime()-Date.now()<=0){throw new o(`The SSO session associated with this profile has expired. ${w}`,{tryNextLink:g,logger:Q})}const{accessToken:S}=y;const{SSOClient:R,GetRoleCredentialsCommand:D}=s(3707);const k=h||new R(Object.assign({},f??{},{logger:f?.logger??p?.logger??E?.logger,region:f?.region??c,userAgentAppId:f?.userAgentAppId??p?.userAgentAppId??E?.userAgentAppId}));let v;try{v=await k.send(new D({accountId:A,roleName:l,accessToken:S}))}catch(t){throw new o(t,{tryNextLink:g,logger:Q})}const{roleCredentials:{accessKeyId:T,secretAccessKey:N,sessionToken:F,expiration:x,credentialScope:M,accountId:U}={}}=v;if(!T||!N||!F||!x){throw new o("SSO returns an invalid temporary credential.",{tryNextLink:g,logger:Q})}const L={accessKeyId:T,secretAccessKey:N,sessionToken:F,expiration:new Date(x),...M&&{credentialScope:M},...U&&{accountId:U}};if(n){u(L,"CREDENTIALS_SSO","s")}else{u(L,"CREDENTIALS_SSO_LEGACY","u")}return L};const validateSsoProfile=(t,n)=>{const{sso_start_url:s,sso_account_id:i,sso_region:A,sso_role_name:c}=t;if(!s||!i||!A||!c){throw new o(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:n})}return t};const fromSSO=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:s,ssoAccountId:i,ssoRegion:u,ssoRoleName:d,ssoSession:g}=t;const{ssoClient:h}=t;const f=A({profile:t.profile??n?.profile});if(!s&&!i&&!u&&!d&&!g){const n=await c(t);const i=n[f];if(!i){throw new o(`Profile ${f} was not found.`,{logger:t.logger})}if(!isSsoProfile(i)){throw new o(`Profile ${f} is not configured with SSO credentials.`,{logger:t.logger})}if(i?.sso_session){const n=await l(t);const A=n[i.sso_session];const c=` configurations in profile ${f} and sso-session ${i.sso_session}`;if(u&&u!==A.sso_region){throw new o(`Conflicting SSO region`+c,{tryNextLink:false,logger:t.logger})}if(s&&s!==A.sso_start_url){throw new o(`Conflicting SSO start_url`+c,{tryNextLink:false,logger:t.logger})}i.sso_region=A.sso_region;i.sso_start_url=A.sso_start_url}const{sso_start_url:A,sso_account_id:d,sso_region:g,sso_role_name:E,sso_session:p}=validateSsoProfile(i,t.logger);return resolveSSOCredentials({ssoStartUrl:A,ssoSession:p,ssoAccountId:d,ssoRegion:g,ssoRoleName:E,ssoClient:h,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:f,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else if(!s||!i||!u||!d){throw new o("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:t.logger})}else{return resolveSSOCredentials({ssoStartUrl:s,ssoSession:g,ssoAccountId:i,ssoRegion:u,ssoRoleName:d,ssoClient:h,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:f,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};n.fromSSO=fromSSO;n.isSsoProfile=isSsoProfile;n.validateSsoProfile=validateSsoProfile},3707:(t,n,s)=>{const{GetRoleCredentialsCommand:o,SSOClient:i}=s(2579);n.GetRoleCredentialsCommand=o;n.SSOClient=i},9956:(t,n,s)=>{const{setCredentialFeature:o}=s(5152);const{CredentialsProviderError:i,externalDataInterceptor:A}=s(7291);const{readFileSync:c}=s(3024);const fromWebToken=t=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:i,webIdentityToken:A,providerId:c,policyArns:l,policy:u,durationSeconds:d}=t;let{roleAssumerWithWebIdentity:g}=t;if(!g){const{getDefaultRoleAssumerWithWebIdentity:o}=s(1136);g=o({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return g({RoleArn:o,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:A,ProviderId:c,PolicyArns:l,Policy:u,DurationSeconds:d})};const l="AWS_WEB_IDENTITY_TOKEN_FILE";const u="AWS_ROLE_ARN";const d="AWS_ROLE_SESSION_NAME";const fromTokenFile=(t={})=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const s=t?.webIdentityTokenFile??process.env[l];const g=t?.roleArn??process.env[u];const h=t?.roleSessionName??process.env[d];if(!s||!g){throw new i("Web identity configuration not specified",{logger:t.logger})}const f=await fromWebToken({...t,webIdentityToken:A?.getTokenRecord?.()[s]??c(s,{encoding:"ascii"}),roleArn:g,roleSessionName:h})(n);if(s===process.env[l]){o(f,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return f};n.fromTokenFile=fromTokenFile;n.fromWebToken=fromWebToken},9762:(t,n,s)=>{const{awsEndpointFunctions:o,emitWarningIfUnsupportedVersion:i,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:c,getAwsRegionExtensionConfiguration:l,resolveAwsRegionExtensionConfiguration:u,resolveUserAgentConfig:d,resolveHostHeaderConfig:g,getUserAgentPlugin:h,getHostHeaderPlugin:f,getLoggerPlugin:E,getRecursionDetectionPlugin:p}=s(5152);const{NoAuthSigner:C,getHttpAuthSchemeEndpointRuleSetPlugin:I,DefaultIdentityProviderConfig:m,getHttpSigningPlugin:B}=s(402);const{normalizeProvider:Q,getSmithyContext:y,ServiceException:w,NoOpLogger:S,emitWarningIfUnsupportedVersion:R,loadConfigsForDefaultMode:D,getDefaultExtensionConfiguration:k,resolveDefaultRuntimeConfig:v,Client:T,makeBuilder:N,createAggregatedClient:F}=s(2658);const{Command:x}=s(2658);n.$Command=x;n.__Client=T;const{resolveDefaultsModeConfig:M,loadConfig:U,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:P,NODE_REGION_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_FILE_OPTIONS:H,resolveRegionConfig:_}=s(7291);const{BinaryDecisionDiagram:G,EndpointCache:V,decideEndpoint:Y,customEndpointFunctions:J,resolveEndpointConfig:q,getEndpointPlugin:W}=s(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:$,resolveHttpHandlerRuntimeConfig:j,getContentLengthPlugin:K}=s(3422);const{DEFAULT_RETRY_MODE:Z,NODE_RETRY_MODE_CONFIG_OPTIONS:X,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ee,resolveRetryConfig:te,getRetryPlugin:ne}=s(3609);const{TypeRegistry:re,getSchemaSerdePlugin:se}=s(6890);const{resolveAwsSdkSigV4Config:oe,AwsSdkSigV4Signer:ie,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ae}=s(7523);const{toUtf8:Ae,fromUtf8:ce,toBase64:le,fromBase64:ue,calculateBodyLength:de}=s(2430);const{streamCollector:ge,NodeHttpHandler:he}=s(1279);const{AwsRestJsonProtocol:fe}=s(7288);const{Sha256:Ee}=s(9542);const defaultSigninHttpAuthSchemeParametersProvider=async(t,n,s)=>({operation:y(n).operation,region:await Q(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSigninHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateOAuth2Token":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=oe(t);return Object.assign(n,{authSchemePreference:Q(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"signin"});const pe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ce="3.997.53";var Ie={version:Ce};const me="ref";const Be=-1,Qe=false,ye=true,we="isSet",Se="booleanEquals",be="coalesce",Re="PartitionResult",De="stringEquals",ke="getAttr",ve="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Te={[me]:"Endpoint"},Ne={fn:ke,argv:[{[me]:Re},"name"]},Fe={[me]:"Region"},xe={[me]:Re},Me={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Ue={},Le=[Fe];const Pe={conditions:[[we,Le],[Se,[{fn:be,argv:[{[me]:"IsControlPlane"},Qe]},ye]],[we,[Te]],["aws.partition",Le,Re],[Se,[{[me]:"UseFIPS"},ye]],[De,[Ne,"aws"]],[Se,[{fn:be,argv:[{[me]:"IsOAuthEndpoint"},Qe]},ye]],[Se,[{[me]:"UseDualStack"},ye]],[De,[Ne,"aws-cn"]],[De,[Fe,"us-gov-west-1"]],[De,[Ne,"aws-us-gov"]],[Se,[{fn:ke,argv:[xe,"supportsFIPS"]},ye]],[De,[Ne,"aws-iso"]],[De,[Ne,"aws-iso-b"]],[De,[Ne,"aws-iso-f"]],[De,[Ne,"aws-iso-e"]],[De,[Ne,"aws-eusc"]],[Se,[{fn:ke,argv:[xe,"supportsDualStack"]},ye]]],results:[[Be],["https://signin.{Region}.api.aws",Me],["https://signin.{Region}.api.amazonwebservices.com.cn",Me],[ve,Me],[Be,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Me],["https://{Region}.signin.aws.amazon.com",Ue],["https://{Region}.signin.amazonaws.cn",Ue],["https://{Region}.signin.amazonaws-us-gov.com",Ue],["https://{Region}.signin.c2shome.ic.gov",Ue],["https://{Region}.signin.sc2shome.sgov.gov",Ue],["https://{Region}.signin.csphome.hci.ic.gov",Ue],["https://{Region}.signin.csphome.adc-e.uk",Ue],["https://{Region}.signin.amazonaws-eusc.eu",Ue],["https://signin-fips.amazonaws-us-gov.com",Ue],["https://{Region}.signin-fips.amazonaws-us-gov.com",Ue],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Ue],[Be,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Be,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Te,Ue],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ue],[Be,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Ue],[Be,"FIPS is enabled but this partition does not support FIPS"],[ve,Ue],[Be,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Ue],[Be,"Invalid Configuration: Missing Region"]]};const Oe=2;const He=1e8;const _e=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,He+27,6,He+4,He+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,He+7,13,10,He+8,14,12,He+9,15,13,He+10,16,14,He+11,17,15,He+12,18,16,He+13,He+16,6,He+5,20,7,21,He+6,17,He+24,He+25,6,He+4,23,7,27,24,9,He+14,25,10,He+15,26,11,He+22,He+23,11,28,He+21,17,He+20,He+21,2,35,30,3,39,31,4,32,He+27,6,He+4,33,7,He+27,34,9,He+14,He+27,3,39,36,4,38,37,7,He+18,He+19,6,He+4,He+17,5,He+1,40,8,He+2,He+3]);const Ge=G.from(_e,Oe,Pe.conditions,Pe.results);const Ve=new V({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ve.get(t,()=>Y(Ge,{endpointParams:t,logger:n.logger}));J.aws=o;class SigninServiceException extends w{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(t){super(t);Object.setPrototypeOf(this,SigninServiceException.prototype)}}class AccessDeniedException extends SigninServiceException{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error}}class InternalServerException extends SigninServiceException{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error}}class TooManyRequestsError extends SigninServiceException{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(t){super({name:"TooManyRequestsError",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsError.prototype);this.error=t.error}}class ValidationException extends SigninServiceException{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype);this.error=t.error}}const Ye="AccessDeniedException";const Je="AccessToken";const qe="CreateOAuth2Token";const We="CreateOAuth2TokenRequest";const ze="CreateOAuth2TokenRequestBody";const $e="CreateOAuth2TokenResponseBody";const je="CreateOAuth2TokenResponse";const Ke="CreateOAuth2TokenWithIAM";const Ze="CreateOAuth2TokenWithIAMRequest";const Xe="CreateOAuth2TokenWithIAMResponse";const et="InternalServerException";const tt="OAuthAccessToken";const nt="RefreshToken";const rt="TooManyRequestsError";const st="ValidationException";const ot="accessKeyId";const it="accessToken";const at="access_token";const At="client";const ct="clientId";const lt="codeVerifier";const ut="code";const dt="error";const gt="expiresIn";const ht="expires_in";const ft="grantType";const Et="grant_type";const pt="http";const Ct="httpError";const It="idToken";const mt="jsonName";const Bt="message";const Qt="resource";const yt="refreshToken";const wt="redirectUri";const St="smithy.ts.sdk.synthetic.com.amazonaws.signin";const bt="secretAccessKey";const Rt="sessionToken";const Dt="server";const kt="tokenInput";const vt="tokenOutput";const Tt="tokenType";const Nt="token_type";const Ft="com.amazonaws.signin";const xt=new re(St);var Mt=[-3,St,"SigninServiceException",0,[],[]];xt.registerError(Mt,SigninServiceException);const Ut=new re(Ft);var Lt=[-3,Ft,Ye,{[dt]:At},[dt,Bt],[0,0],2];Ut.registerError(Lt,AccessDeniedException);var Pt=[-3,Ft,et,{[dt]:Dt,[Ct]:500},[dt,Bt],[0,0],2];Ut.registerError(Pt,InternalServerException);var Ot=[-3,Ft,rt,{[dt]:At,[Ct]:429},[dt,Bt],[0,0],2];Ut.registerError(Ot,TooManyRequestsError);var Ht=[-3,Ft,st,{[dt]:At,[Ct]:400},[dt,Bt],[0,0],2];Ut.registerError(Ht,ValidationException);const _t=[xt,Ut];var Gt=[0,Ft,tt,8,0];var Vt=[0,Ft,nt,8,0];var Yt=[3,Ft,Je,8,[ot,bt,Rt],[[0,{[mt]:ot}],[0,{[mt]:bt}],[0,{[mt]:Rt}]],3];var Jt=[3,Ft,We,0,[kt],[[()=>qt,16]],1];var qt=[3,Ft,ze,0,[ct,ft,ut,wt,lt,yt],[[0,{[mt]:ct}],[0,{[mt]:ft}],0,[0,{[mt]:wt}],[0,{[mt]:lt}],[()=>Vt,{[mt]:yt}]],2];var Wt=[3,Ft,je,0,[vt],[[()=>zt,16]],1];var zt=[3,Ft,$e,0,[it,Tt,gt,yt,It],[[()=>Yt,{[mt]:it}],[0,{[mt]:Tt}],[1,{[mt]:gt}],[()=>Vt,{[mt]:yt}],[0,{[mt]:It}]],4];var $t=[3,Ft,Ze,0,[ft,Qt],[[0,{[mt]:Et}],0],2];var jt=[3,Ft,Xe,0,[it,Tt,gt],[[()=>Gt,{[mt]:at}],[0,{[mt]:Nt}],[1,{[mt]:ht}]],3];var Kt=[9,Ft,qe,{[pt]:["POST","/v1/token",200]},()=>Jt,()=>Wt];var Zt=[9,Ft,Ke,{[pt]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>$t,()=>jt];const getRuntimeConfig$1=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??ue,base64Encoder:t?.base64Encoder??le,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ie},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new C}],logger:t?.logger??new S,protocol:t?.protocol??fe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:_t,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ce,utf8Encoder:t?.utf8Encoder??Ae});const getRuntimeConfig=t=>{R(process.version);const n=M(t);const defaultConfigProvider=()=>n().then(D);const s=getRuntimeConfig$1(t);i(process.version);const o={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??U(ae,o),bodyLengthChecker:t?.bodyLengthChecker??de,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:s.serviceId,clientVersion:Ie.version}),maxAttempts:t?.maxAttempts??U(ee,t),region:t?.region??U(O,{...H,...o}),requestHandler:he.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??U({...X,default:async()=>(await defaultConfigProvider()).retryMode||Z},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??U(P,o),useFipsEndpoint:t?.useFipsEndpoint??U(L,o),userAgentAppId:t?.userAgentAppId??U(c,o)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider;let o=t.credentials;return{setHttpAuthScheme(t){const s=n.findIndex(n=>n.schemeId===t.schemeId);if(s===-1){n.push(t)}else{n.splice(s,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){s=t},httpAuthSchemeProvider(){return s},setCredentials(t){o=t},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const s=Object.assign(l(t),k(t),$(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(s));return Object.assign(t,u(s),v(s),j(s),resolveHttpAuthRuntimeConfig(s))};class SigninClient extends T{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const s=resolveClientEndpointParameters(n);const o=d(s);const i=te(o);const A=_(i);const c=g(A);const l=q(c);const u=resolveHttpAuthSchemeConfig(l);const C=resolveRuntimeExtensions(u,t?.extensions||[]);this.config=C;this.middlewareStack.use(se(this.config));this.middlewareStack.use(h(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(K(this.config));this.middlewareStack.use(f(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(I(this.config,{httpAuthSchemeParametersProvider:defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new m({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(B(this.config))}destroy(){super.destroy()}}const Xt=N(pe,"Signin","SigninClient",W);const en={IsControlPlane:{type:"staticContextParams",value:false}};const tn={IsOAuthEndpoint:{type:"staticContextParams",value:true}};const _mw0=(t,n,s,o)=>[];class CreateOAuth2TokenCommand extends(Xt(en,_mw0,"CreateOAuth2Token",Kt)){}class CreateOAuth2TokenWithIAMCommand extends(Xt(tn,_mw0,"CreateOAuth2TokenWithIAM",Zt)){}const nn={CreateOAuth2TokenCommand:CreateOAuth2TokenCommand,CreateOAuth2TokenWithIAMCommand:CreateOAuth2TokenWithIAMCommand};class Signin extends SigninClient{}F(nn,Signin);const rn={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",OAUTH_INVALID_GRANT:"invalid_grant",OAUTH_INVALID_REQUEST:"invalid_request",OAUTH_INVALID_SCOPE:"invalid_scope",OAUTH_INVALID_TARGET:"invalid_target",OAUTH_RATE_EXCEEDED:"rate_exceeded",OAUTH_SERVICE_UNAVAILABLE:"service_unavailable",OAUTH_UNSUPPORTED_GRANT_TYPE:"unsupported_grant_type",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=Lt;n.AccessToken$=Yt;n.CreateOAuth2Token$=Kt;n.CreateOAuth2TokenCommand=CreateOAuth2TokenCommand;n.CreateOAuth2TokenRequest$=Jt;n.CreateOAuth2TokenRequestBody$=qt;n.CreateOAuth2TokenResponse$=Wt;n.CreateOAuth2TokenResponseBody$=zt;n.CreateOAuth2TokenWithIAM$=Zt;n.CreateOAuth2TokenWithIAMCommand=CreateOAuth2TokenWithIAMCommand;n.CreateOAuth2TokenWithIAMRequest$=$t;n.CreateOAuth2TokenWithIAMResponse$=jt;n.InternalServerException=InternalServerException;n.InternalServerException$=Pt;n.OAuth2ErrorCode=rn;n.Signin=Signin;n.SigninClient=SigninClient;n.SigninServiceException=SigninServiceException;n.SigninServiceException$=Mt;n.TooManyRequestsError=TooManyRequestsError;n.TooManyRequestsError$=Ot;n.ValidationException=ValidationException;n.ValidationException$=Ht;n.errorTypeRegistries=_t},9443:(t,n,s)=>{const{awsEndpointFunctions:o,emitWarningIfUnsupportedVersion:i,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:c,getAwsRegionExtensionConfiguration:l,resolveAwsRegionExtensionConfiguration:u,resolveUserAgentConfig:d,resolveHostHeaderConfig:g,getUserAgentPlugin:h,getHostHeaderPlugin:f,getLoggerPlugin:E,getRecursionDetectionPlugin:p}=s(5152);const{NoAuthSigner:C,getHttpAuthSchemeEndpointRuleSetPlugin:I,DefaultIdentityProviderConfig:m,getHttpSigningPlugin:B}=s(402);const{normalizeProvider:Q,getSmithyContext:y,ServiceException:w,NoOpLogger:S,emitWarningIfUnsupportedVersion:R,loadConfigsForDefaultMode:D,getDefaultExtensionConfiguration:k,resolveDefaultRuntimeConfig:v,Client:T,makeBuilder:N,createAggregatedClient:F}=s(2658);const{Command:x}=s(2658);n.$Command=x;n.__Client=T;const{resolveDefaultsModeConfig:M,loadConfig:U,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:P,NODE_REGION_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_FILE_OPTIONS:H,resolveRegionConfig:_}=s(7291);const{BinaryDecisionDiagram:G,EndpointCache:V,decideEndpoint:Y,customEndpointFunctions:J,resolveEndpointConfig:q,getEndpointPlugin:W}=s(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:$,resolveHttpHandlerRuntimeConfig:j,getContentLengthPlugin:K}=s(3422);const{DEFAULT_RETRY_MODE:Z,NODE_RETRY_MODE_CONFIG_OPTIONS:X,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ee,resolveRetryConfig:te,getRetryPlugin:ne}=s(3609);const{TypeRegistry:re,getSchemaSerdePlugin:se}=s(6890);const{resolveAwsSdkSigV4Config:oe,AwsSdkSigV4Signer:ie,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ae}=s(7523);const{toUtf8:Ae,fromUtf8:ce,toBase64:le,fromBase64:ue,calculateBodyLength:de}=s(2430);const{streamCollector:ge,NodeHttpHandler:he}=s(1279);const{AwsRestJsonProtocol:fe}=s(7288);const{Sha256:Ee}=s(9542);const defaultSSOOIDCHttpAuthSchemeParametersProvider=async(t,n,s)=>({operation:y(n).operation,region:await Q(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOOIDCHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateToken":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=oe(t);return Object.assign(n,{authSchemePreference:Q(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"sso-oauth"});const pe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ce="3.997.53";var Ie={version:Ce};const me="ref";const Be=-1,Qe=true,ye="isSet",we="PartitionResult",Se="booleanEquals",be="getAttr",Re={[me]:"Endpoint"},De={[me]:we},ke={},ve=[{[me]:"Region"}];const Te={conditions:[[ye,[Re]],[ye,ve],["aws.partition",ve,we],[Se,[{[me]:"UseFIPS"},Qe]],[Se,[{[me]:"UseDualStack"},Qe]],[Se,[{fn:be,argv:[De,"supportsDualStack"]},Qe]],[Se,[{fn:be,argv:[De,"supportsFIPS"]},Qe]],["stringEquals",[{fn:be,argv:[De,"name"]},"aws-us-gov"]]],results:[[Be],[Be,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Be,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Re,ke],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ke],[Be,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",ke],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",ke],[Be,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",ke],[Be,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",ke],[Be,"Invalid Configuration: Missing Region"]]};const Ne=2;const Fe=1e8;const xe=new Int32Array([-1,1,-1,0,13,3,1,4,Fe+12,2,5,Fe+12,3,8,6,4,7,Fe+11,5,Fe+9,Fe+10,4,11,9,6,10,Fe+8,7,Fe+6,Fe+7,5,12,Fe+5,6,Fe+4,Fe+5,3,Fe+1,14,4,Fe+2,Fe+3]);const Me=G.from(xe,Ne,Te.conditions,Te.results);const Ue=new V({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ue.get(t,()=>Y(Me,{endpointParams:t,logger:n.logger}));J.aws=o;class SSOOIDCServiceException extends w{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(t){super(t);Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t});Object.setPrototypeOf(this,AuthorizationPendingException.prototype);this.error=t.error;this.error_description=t.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype);this.error=t.error;this.error_description=t.error_description}}class InternalServerException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidClientException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(t){super({name:"InvalidClientException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidGrantException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(t){super({name:"InvalidGrantException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidGrantException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidRequestException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class InvalidScopeException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(t){super({name:"InvalidScopeException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidScopeException.prototype);this.error=t.error;this.error_description=t.error_description}}class SlowDownException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(t){super({name:"SlowDownException",$fault:"client",...t});Object.setPrototypeOf(this,SlowDownException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t});Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype);this.error=t.error;this.error_description=t.error_description}}const Le="AccessDeniedException";const Pe="AuthorizationPendingException";const Oe="AccessToken";const He="ClientSecret";const _e="CreateToken";const Ge="CreateTokenRequest";const Ve="CreateTokenResponse";const Ye="CodeVerifier";const Je="ExpiredTokenException";const qe="InvalidClientException";const We="InvalidGrantException";const ze="InvalidRequestException";const $e="InternalServerException";const je="InvalidScopeException";const Ke="IdToken";const Ze="RefreshToken";const Xe="SlowDownException";const et="UnauthorizedClientException";const tt="UnsupportedGrantTypeException";const nt="accessToken";const rt="client";const st="clientId";const ot="clientSecret";const it="codeVerifier";const at="code";const At="deviceCode";const ct="error";const lt="expiresIn";const ut="error_description";const dt="grantType";const gt="http";const ht="httpError";const ft="idToken";const Et="reason";const pt="refreshToken";const Ct="redirectUri";const It="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";const mt="scope";const Bt="server";const Qt="tokenType";const yt="com.amazonaws.ssooidc";const wt=new re(It);var St=[-3,It,"SSOOIDCServiceException",0,[],[]];wt.registerError(St,SSOOIDCServiceException);const bt=new re(yt);var Rt=[-3,yt,Le,{[ct]:rt,[ht]:400},[ct,Et,ut],[0,0,0]];bt.registerError(Rt,AccessDeniedException);var Dt=[-3,yt,Pe,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(Dt,AuthorizationPendingException);var kt=[-3,yt,Je,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(kt,ExpiredTokenException);var vt=[-3,yt,$e,{[ct]:Bt,[ht]:500},[ct,ut],[0,0]];bt.registerError(vt,InternalServerException);var Tt=[-3,yt,qe,{[ct]:rt,[ht]:401},[ct,ut],[0,0]];bt.registerError(Tt,InvalidClientException);var Nt=[-3,yt,We,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(Nt,InvalidGrantException);var Ft=[-3,yt,ze,{[ct]:rt,[ht]:400},[ct,Et,ut],[0,0,0]];bt.registerError(Ft,InvalidRequestException);var xt=[-3,yt,je,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(xt,InvalidScopeException);var Mt=[-3,yt,Xe,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(Mt,SlowDownException);var Ut=[-3,yt,et,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(Ut,UnauthorizedClientException);var Lt=[-3,yt,tt,{[ct]:rt,[ht]:400},[ct,ut],[0,0]];bt.registerError(Lt,UnsupportedGrantTypeException);const Pt=[wt,bt];var Ot=[0,yt,Oe,8,0];var Ht=[0,yt,He,8,0];var _t=[0,yt,Ye,8,0];var Gt=[0,yt,Ke,8,0];var Vt=[0,yt,Ze,8,0];var Yt=[3,yt,Ge,0,[st,ot,dt,At,at,pt,mt,Ct,it],[0,[()=>Ht,0],0,0,0,[()=>Vt,0],64|0,0,[()=>_t,0]],3];var Jt=[3,yt,Ve,0,[nt,Qt,lt,pt,ft],[[()=>Ot,0],0,1,[()=>Vt,0],[()=>Gt,0]]];var qt=[9,yt,_e,{[gt]:["POST","/token",200]},()=>Yt,()=>Jt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??ue,base64Encoder:t?.base64Encoder??le,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ie},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new C}],logger:t?.logger??new S,protocol:t?.protocol??fe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Pt,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ce,utf8Encoder:t?.utf8Encoder??Ae});const getRuntimeConfig=t=>{R(process.version);const n=M(t);const defaultConfigProvider=()=>n().then(D);const s=getRuntimeConfig$1(t);i(process.version);const o={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??U(ae,o),bodyLengthChecker:t?.bodyLengthChecker??de,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:s.serviceId,clientVersion:Ie.version}),maxAttempts:t?.maxAttempts??U(ee,t),region:t?.region??U(O,{...H,...o}),requestHandler:he.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??U({...X,default:async()=>(await defaultConfigProvider()).retryMode||Z},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??U(P,o),useFipsEndpoint:t?.useFipsEndpoint??U(L,o),userAgentAppId:t?.userAgentAppId??U(c,o)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider;let o=t.credentials;return{setHttpAuthScheme(t){const s=n.findIndex(n=>n.schemeId===t.schemeId);if(s===-1){n.push(t)}else{n.splice(s,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){s=t},httpAuthSchemeProvider(){return s},setCredentials(t){o=t},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const s=Object.assign(l(t),k(t),$(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(s));return Object.assign(t,u(s),v(s),j(s),resolveHttpAuthRuntimeConfig(s))};class SSOOIDCClient extends T{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const s=resolveClientEndpointParameters(n);const o=d(s);const i=te(o);const A=_(i);const c=g(A);const l=q(c);const u=resolveHttpAuthSchemeConfig(l);const C=resolveRuntimeExtensions(u,t?.extensions||[]);this.config=C;this.middlewareStack.use(se(this.config));this.middlewareStack.use(h(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(K(this.config));this.middlewareStack.use(f(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(I(this.config,{httpAuthSchemeParametersProvider:defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new m({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(B(this.config))}destroy(){super.destroy()}}const Wt=N(pe,"AWSSSOOIDCService","SSOOIDCClient",W);const zt={};const _mw0=(t,n,s,o)=>[];class CreateTokenCommand extends(Wt(zt,_mw0,"CreateToken",qt)){}const $t={CreateTokenCommand:CreateTokenCommand};class SSOOIDC extends SSOOIDCClient{}F($t,SSOOIDC);const jt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"};const Kt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=Rt;n.AccessDeniedExceptionReason=jt;n.AuthorizationPendingException=AuthorizationPendingException;n.AuthorizationPendingException$=Dt;n.CreateToken$=qt;n.CreateTokenCommand=CreateTokenCommand;n.CreateTokenRequest$=Yt;n.CreateTokenResponse$=Jt;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=kt;n.InternalServerException=InternalServerException;n.InternalServerException$=vt;n.InvalidClientException=InvalidClientException;n.InvalidClientException$=Tt;n.InvalidGrantException=InvalidGrantException;n.InvalidGrantException$=Nt;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=Ft;n.InvalidRequestExceptionReason=Kt;n.InvalidScopeException=InvalidScopeException;n.InvalidScopeException$=xt;n.SSOOIDC=SSOOIDC;n.SSOOIDCClient=SSOOIDCClient;n.SSOOIDCServiceException=SSOOIDCServiceException;n.SSOOIDCServiceException$=St;n.SlowDownException=SlowDownException;n.SlowDownException$=Mt;n.UnauthorizedClientException=UnauthorizedClientException;n.UnauthorizedClientException$=Ut;n.UnsupportedGrantTypeException=UnsupportedGrantTypeException;n.UnsupportedGrantTypeException$=Lt;n.errorTypeRegistries=Pt},2579:(t,n,s)=>{const{awsEndpointFunctions:o,emitWarningIfUnsupportedVersion:i,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:c,getAwsRegionExtensionConfiguration:l,resolveAwsRegionExtensionConfiguration:u,resolveUserAgentConfig:d,resolveHostHeaderConfig:g,getUserAgentPlugin:h,getHostHeaderPlugin:f,getLoggerPlugin:E,getRecursionDetectionPlugin:p}=s(5152);const{NoAuthSigner:C,getHttpAuthSchemeEndpointRuleSetPlugin:I,DefaultIdentityProviderConfig:m,getHttpSigningPlugin:B}=s(402);const{normalizeProvider:Q,getSmithyContext:y,ServiceException:w,NoOpLogger:S,emitWarningIfUnsupportedVersion:R,loadConfigsForDefaultMode:D,getDefaultExtensionConfiguration:k,resolveDefaultRuntimeConfig:v,Client:T,makeBuilder:N,createAggregatedClient:F}=s(2658);const{Command:x}=s(2658);n.$Command=x;n.__Client=T;const{resolveDefaultsModeConfig:M,loadConfig:U,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:P,NODE_REGION_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_FILE_OPTIONS:H,resolveRegionConfig:_}=s(7291);const{BinaryDecisionDiagram:G,EndpointCache:V,decideEndpoint:Y,customEndpointFunctions:J,resolveEndpointConfig:q,getEndpointPlugin:W}=s(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:$,resolveHttpHandlerRuntimeConfig:j,getContentLengthPlugin:K}=s(3422);const{DEFAULT_RETRY_MODE:Z,NODE_RETRY_MODE_CONFIG_OPTIONS:X,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ee,resolveRetryConfig:te,getRetryPlugin:ne}=s(3609);const{TypeRegistry:re,getSchemaSerdePlugin:se}=s(6890);const{resolveAwsSdkSigV4Config:oe,AwsSdkSigV4Signer:ie,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ae}=s(7523);const{toUtf8:Ae,fromUtf8:ce,toBase64:le,fromBase64:ue,calculateBodyLength:de}=s(2430);const{streamCollector:ge,NodeHttpHandler:he}=s(1279);const{AwsRestJsonProtocol:fe}=s(7288);const{Sha256:Ee}=s(9542);const defaultSSOHttpAuthSchemeParametersProvider=async(t,n,s)=>({operation:y(n).operation,region:await Q(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"GetRoleCredentials":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=oe(t);return Object.assign(n,{authSchemePreference:Q(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});const pe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ce="3.997.53";var Ie={version:Ce};const me="ref";const Be=-1,Qe=true,ye="isSet",we="PartitionResult",Se="booleanEquals",be="getAttr",Re={[me]:"Endpoint"},De={[me]:we},ke={},ve=[{[me]:"Region"}];const Te={conditions:[[ye,[Re]],[ye,ve],["aws.partition",ve,we],[Se,[{[me]:"UseFIPS"},Qe]],[Se,[{[me]:"UseDualStack"},Qe]],[Se,[{fn:be,argv:[De,"supportsDualStack"]},Qe]],[Se,[{fn:be,argv:[De,"supportsFIPS"]},Qe]],["stringEquals",[{fn:be,argv:[De,"name"]},"aws-us-gov"]]],results:[[Be],[Be,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Be,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Re,ke],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ke],[Be,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",ke],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",ke],[Be,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",ke],[Be,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",ke],[Be,"Invalid Configuration: Missing Region"]]};const Ne=2;const Fe=1e8;const xe=new Int32Array([-1,1,-1,0,13,3,1,4,Fe+12,2,5,Fe+12,3,8,6,4,7,Fe+11,5,Fe+9,Fe+10,4,11,9,6,10,Fe+8,7,Fe+6,Fe+7,5,12,Fe+5,6,Fe+4,Fe+5,3,Fe+1,14,4,Fe+2,Fe+3]);const Me=G.from(xe,Ne,Te.conditions,Te.results);const Ue=new V({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ue.get(t,()=>Y(Me,{endpointParams:t,logger:n.logger}));J.aws=o;class SSOServiceException extends w{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(t){super(t);Object.setPrototypeOf(this,SSOServiceException.prototype)}}class InvalidRequestException extends SSOServiceException{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype)}}class ResourceNotFoundException extends SSOServiceException{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class TooManyRequestsException extends SSOServiceException{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class UnauthorizedException extends SSOServiceException{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(t){super({name:"UnauthorizedException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedException.prototype)}}const Le="AccessTokenType";const Pe="GetRoleCredentials";const Oe="GetRoleCredentialsRequest";const He="GetRoleCredentialsResponse";const _e="InvalidRequestException";const Ge="RoleCredentials";const Ve="ResourceNotFoundException";const Ye="SecretAccessKeyType";const Je="SessionTokenType";const qe="TooManyRequestsException";const We="UnauthorizedException";const ze="accountId";const $e="accessKeyId";const je="accessToken";const Ke="account_id";const Ze="client";const Xe="error";const et="expiration";const tt="http";const nt="httpError";const rt="httpHeader";const st="httpQuery";const ot="message";const it="roleCredentials";const at="roleName";const At="role_name";const ct="smithy.ts.sdk.synthetic.com.amazonaws.sso";const lt="secretAccessKey";const ut="sessionToken";const dt="x-amz-sso_bearer_token";const gt="com.amazonaws.sso";const ht=new re(ct);var ft=[-3,ct,"SSOServiceException",0,[],[]];ht.registerError(ft,SSOServiceException);const Et=new re(gt);var pt=[-3,gt,_e,{[Xe]:Ze,[nt]:400},[ot],[0]];Et.registerError(pt,InvalidRequestException);var Ct=[-3,gt,Ve,{[Xe]:Ze,[nt]:404},[ot],[0]];Et.registerError(Ct,ResourceNotFoundException);var It=[-3,gt,qe,{[Xe]:Ze,[nt]:429},[ot],[0]];Et.registerError(It,TooManyRequestsException);var mt=[-3,gt,We,{[Xe]:Ze,[nt]:401},[ot],[0]];Et.registerError(mt,UnauthorizedException);const Bt=[ht,Et];var Qt=[0,gt,Le,8,0];var yt=[0,gt,Ye,8,0];var wt=[0,gt,Je,8,0];var St=[3,gt,Oe,0,[at,ze,je],[[0,{[st]:At}],[0,{[st]:Ke}],[()=>Qt,{[rt]:dt}]],3];var bt=[3,gt,He,0,[it],[[()=>Rt,0]]];var Rt=[3,gt,Ge,0,[$e,lt,ut,et],[0,[()=>yt,0],[()=>wt,0],1]];var Dt=[9,gt,Pe,{[tt]:["GET","/federation/credentials",200]},()=>St,()=>bt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??ue,base64Encoder:t?.base64Encoder??le,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ie},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new C}],logger:t?.logger??new S,protocol:t?.protocol??fe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Bt,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ce,utf8Encoder:t?.utf8Encoder??Ae});const getRuntimeConfig=t=>{R(process.version);const n=M(t);const defaultConfigProvider=()=>n().then(D);const s=getRuntimeConfig$1(t);i(process.version);const o={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??U(ae,o),bodyLengthChecker:t?.bodyLengthChecker??de,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:s.serviceId,clientVersion:Ie.version}),maxAttempts:t?.maxAttempts??U(ee,t),region:t?.region??U(O,{...H,...o}),requestHandler:he.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??U({...X,default:async()=>(await defaultConfigProvider()).retryMode||Z},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??U(P,o),useFipsEndpoint:t?.useFipsEndpoint??U(L,o),userAgentAppId:t?.userAgentAppId??U(c,o)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider;let o=t.credentials;return{setHttpAuthScheme(t){const s=n.findIndex(n=>n.schemeId===t.schemeId);if(s===-1){n.push(t)}else{n.splice(s,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){s=t},httpAuthSchemeProvider(){return s},setCredentials(t){o=t},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const s=Object.assign(l(t),k(t),$(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(s));return Object.assign(t,u(s),v(s),j(s),resolveHttpAuthRuntimeConfig(s))};class SSOClient extends T{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const s=resolveClientEndpointParameters(n);const o=d(s);const i=te(o);const A=_(i);const c=g(A);const l=q(c);const u=resolveHttpAuthSchemeConfig(l);const C=resolveRuntimeExtensions(u,t?.extensions||[]);this.config=C;this.middlewareStack.use(se(this.config));this.middlewareStack.use(h(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(K(this.config));this.middlewareStack.use(f(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(I(this.config,{httpAuthSchemeParametersProvider:defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new m({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(B(this.config))}destroy(){super.destroy()}}const kt=N(pe,"SWBPortalService","SSOClient",W);const vt={};const _mw0=(t,n,s,o)=>[];class GetRoleCredentialsCommand extends(kt(vt,_mw0,"GetRoleCredentials",Dt)){}const Tt={GetRoleCredentialsCommand:GetRoleCredentialsCommand};class SSO extends SSOClient{}F(Tt,SSO);n.GetRoleCredentials$=Dt;n.GetRoleCredentialsCommand=GetRoleCredentialsCommand;n.GetRoleCredentialsRequest$=St;n.GetRoleCredentialsResponse$=bt;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=pt;n.ResourceNotFoundException=ResourceNotFoundException;n.ResourceNotFoundException$=Ct;n.RoleCredentials$=Rt;n.SSO=SSO;n.SSOClient=SSOClient;n.SSOServiceException=SSOServiceException;n.SSOServiceException$=ft;n.TooManyRequestsException=TooManyRequestsException;n.TooManyRequestsException$=It;n.UnauthorizedException=UnauthorizedException;n.UnauthorizedException$=mt;n.errorTypeRegistries=Bt},1136:(t,n,s)=>{const{awsEndpointFunctions:o,emitWarningIfUnsupportedVersion:i,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:c,getAwsRegionExtensionConfiguration:l,resolveAwsRegionExtensionConfiguration:u,resolveUserAgentConfig:d,resolveHostHeaderConfig:g,getUserAgentPlugin:h,getHostHeaderPlugin:f,getLoggerPlugin:E,getRecursionDetectionPlugin:p,setCredentialFeature:C,stsRegionDefaultResolver:I}=s(5152);const{NoAuthSigner:m,getHttpAuthSchemeEndpointRuleSetPlugin:B,DefaultIdentityProviderConfig:Q,getHttpSigningPlugin:y}=s(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:R,NoOpLogger:D,emitWarningIfUnsupportedVersion:k,loadConfigsForDefaultMode:v,getDefaultExtensionConfiguration:T,resolveDefaultRuntimeConfig:N,Client:F,makeBuilder:x,createAggregatedClient:M}=s(2658);const{Command:U}=s(2658);n.$Command=U;n.__Client=F;const{resolveDefaultsModeConfig:L,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:O,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_OPTIONS:_,NODE_REGION_CONFIG_FILE_OPTIONS:G,resolveRegionConfig:V}=s(7291);const{BinaryDecisionDiagram:Y,EndpointCache:J,decideEndpoint:q,customEndpointFunctions:W,resolveParams:z,resolveEndpointConfig:$,getEndpointPlugin:j}=s(2085);const{parseUrl:K,getHttpHandlerExtensionConfiguration:Z,resolveHttpHandlerRuntimeConfig:X,getContentLengthPlugin:ee}=s(3422);const{DEFAULT_RETRY_MODE:te,NODE_RETRY_MODE_CONFIG_OPTIONS:ne,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:se,getRetryPlugin:oe}=s(3609);const{TypeRegistry:ie,getSchemaSerdePlugin:ae}=s(6890);const{resolveAwsSdkSigV4Config:Ae,resolveAwsSdkSigV4AConfig:ce,AwsSdkSigV4Signer:le,AwsSdkSigV4ASigner:ue,NODE_SIGV4A_CONFIG_OPTIONS:de,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ge}=s(7523);const{SignatureV4MultiRegion:he}=s(5785);const{toUtf8:fe,fromUtf8:Ee,toBase64:pe,fromBase64:Ce,calculateBodyLength:Ie}=s(2430);const{streamCollector:me,NodeHttpHandler:Be}=s(1279);const{AwsQueryProtocol:Qe}=s(7288);const{Sha256:ye}=s(9542);const we="ref";const Se=-1,be=true,Re="isSet",De="PartitionResult",ke="booleanEquals",ve="stringEquals",Te="getAttr",Ne="us-east-1",Fe="sigv4",xe="sts",Me="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ue={[we]:"Endpoint"},Le={[we]:"Region"},Pe={[we]:De},Oe={},He=[Le];const _e={conditions:[[Re,[Ue]],[Re,He],["aws.partition",He,De],[ke,[{[we]:"UseFIPS"},be]],[ke,[{[we]:"UseDualStack"},be]],[ve,[Le,"aws-global"]],[ke,[{[we]:"UseGlobalEndpoint"},be]],[ve,[Le,"eu-central-1"]],[ke,[{fn:Te,argv:[Pe,"supportsDualStack"]},be]],[ke,[{fn:Te,argv:[Pe,"supportsFIPS"]},be]],[ve,[Le,"ap-south-1"]],[ve,[Le,"eu-north-1"]],[ve,[Le,"eu-west-1"]],[ve,[Le,"eu-west-2"]],[ve,[Le,"eu-west-3"]],[ve,[Le,"sa-east-1"]],[ve,[Le,Ne]],[ve,[Le,"us-east-2"]],[ve,[Le,"us-west-2"]],[ve,[Le,"us-west-1"]],[ve,[Le,"ca-central-1"]],[ve,[Le,"ap-southeast-1"]],[ve,[Le,"ap-northeast-1"]],[ve,[Le,"ap-southeast-2"]],[ve,[{fn:Te,argv:[Pe,"name"]},"aws-us-gov"]]],results:[[Se],["https://sts.amazonaws.com",{authSchemes:[{name:Fe,signingName:xe,signingRegion:Ne}]}],[Me,{authSchemes:[{name:Fe,signingName:xe,signingRegion:"{Region}"}]}],[Se,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Se,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ue,Oe],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Oe],[Se,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Oe],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Oe],[Se,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Oe],[Se,"DualStack is enabled but this partition does not support DualStack"],[Me,Oe],[Se,"Invalid Configuration: Missing Region"]]};const Ge=2;const Ve=1e8;const Ye=new Int32Array([-1,1,-1,0,30,3,1,4,Ve+14,2,5,Ve+14,3,25,6,4,24,7,5,Ve+1,8,6,9,Ve+13,7,Ve+1,10,10,Ve+1,11,11,Ve+1,12,12,Ve+1,13,13,Ve+1,14,14,Ve+1,15,15,Ve+1,16,16,Ve+1,17,17,Ve+1,18,18,Ve+1,19,19,Ve+1,20,20,Ve+1,21,21,Ve+1,22,22,Ve+1,23,23,Ve+1,Ve+2,8,Ve+11,Ve+12,4,28,26,9,27,Ve+10,24,Ve+8,Ve+9,8,29,Ve+7,9,Ve+6,Ve+7,3,Ve+3,31,4,Ve+4,Ve+5]);const Je=Y.from(Ye,Ge,_e.conditions,_e.results);const qe=new J({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(t,n={})=>qe.get(t,()=>q(Je,{endpointParams:t,logger:n.logger}));W.aws=o;const createEndpointRuleSetHttpAuthSchemeParametersProvider=t=>async(n,s,o)=>{if(!o){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const i=await t(n,s,o);const A=S(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!A){throw new Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`)}const c=await z(o,{getEndpointParameterInstructions:A},n);return Object.assign(i,c)};const _defaultSTSHttpAuthSchemeParametersProvider=async(t,n,s)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const We=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createAwsAuthSigv4aHttpAuthOption(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const createEndpointRuleSetHttpAuthSchemeProvider=(t,n,s)=>{const endpointRuleSetHttpAuthSchemeProvider=o=>{const i=t(o);const A=i.properties?.authSchemes;if(!A){return n(o)}const c=[];for(const t of A){const{name:n,properties:i={},...l}=t;const u=n.toLowerCase();if(n!==u){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${n}' to '${u}'`)}let d;if(u==="sigv4a"){d="aws.auth#sigv4a";const t=A.find(t=>{const n=t.name.toLowerCase();return n!=="sigv4a"&&n.startsWith("sigv4")});if(he.sigv4aDependency()==="none"&&t){continue}}else if(u.startsWith("sigv4")){d="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${u}'`)}const g=s[d];if(!g){throw new Error(`Could not find HttpAuthOption create function for '${d}'`)}const h=g(o);h.schemeId=d;h.signingProperties={...h.signingProperties||{},...l,...i};c.push(h)}return c};return endpointRuleSetHttpAuthSchemeProvider};const _defaultSTSHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"AssumeRoleWithWebIdentity":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t));n.push(createAwsAuthSigv4aHttpAuthOption(t))}}return n};const ze=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption});const resolveHttpAuthSchemeConfig=t=>{const n=Ae(t);const s=ce(n);return Object.assign(s,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,useGlobalEndpoint:t.useGlobalEndpoint??false,defaultSigningName:"sts"});const $e={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var je="3.997.53";var Ke={version:je};class STSServiceException extends R{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(t){super(t);Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}const Ze="Arn";const Xe="AccessKeyId";const et="AssumeRole";const tt="AssumedRoleId";const nt="AssumeRoleRequest";const rt="AssumeRoleResponse";const st="AssumedRoleUser";const ot="AssumeRoleWithWebIdentity";const it="AssumeRoleWithWebIdentityRequest";const at="AssumeRoleWithWebIdentityResponse";const At="Audience";const ct="Credentials";const lt="ContextAssertion";const ut="DurationSeconds";const dt="Expiration";const gt="ExternalId";const ht="ExpiredTokenException";const ft="IDPCommunicationErrorException";const Et="IDPRejectedClaimException";const pt="InvalidIdentityTokenException";const Ct="Key";const It="MalformedPolicyDocumentException";const mt="MinimumSessionTokenSize";const Bt="Policy";const Qt="PolicyArns";const yt="ProviderArn";const wt="ProvidedContexts";const St="ProvidedContextsListType";const bt="ProvidedContext";const Rt="PolicyDescriptorType";const Dt="ProviderId";const kt="PackedPolicySize";const vt="PackedPolicyTooLargeException";const Tt="Provider";const Nt="RoleArn";const Ft="RegionDisabledException";const xt="RoleSessionName";const Mt="SecretAccessKey";const Ut="SubjectFromWebIdentityToken";const Lt="SourceIdentity";const Pt="SerialNumber";const Ot="SessionToken";const Ht="SessionTokenSize";const _t="SessionTokenUtilization";const Gt="Tags";const Vt="TokenCode";const Yt="TransitiveTagKeys";const Jt="Tag";const qt="Value";const Wt="WebIdentityToken";const zt="arn";const $t="accessKeySecretType";const jt="awsQueryError";const Kt="client";const Zt="clientTokenType";const Xt="error";const en="httpError";const tn="message";const nn="policyDescriptorListType";const rn="smithy.ts.sdk.synthetic.com.amazonaws.sts";const sn="tagListType";const on="com.amazonaws.sts";const an=new ie(rn);var An=[-3,rn,"STSServiceException",0,[],[]];an.registerError(An,STSServiceException);const cn=new ie(on);var ln=[-3,on,ht,{[jt]:[`ExpiredTokenException`,400],[Xt]:Kt,[en]:400},[tn],[0]];cn.registerError(ln,ExpiredTokenException);var un=[-3,on,ft,{[jt]:[`IDPCommunicationError`,400],[Xt]:Kt,[en]:400},[tn],[0]];cn.registerError(un,IDPCommunicationErrorException);var dn=[-3,on,Et,{[jt]:[`IDPRejectedClaim`,403],[Xt]:Kt,[en]:403},[tn],[0]];cn.registerError(dn,IDPRejectedClaimException);var gn=[-3,on,pt,{[jt]:[`InvalidIdentityToken`,400],[Xt]:Kt,[en]:400},[tn],[0]];cn.registerError(gn,InvalidIdentityTokenException);var hn=[-3,on,It,{[jt]:[`MalformedPolicyDocument`,400],[Xt]:Kt,[en]:400},[tn],[0]];cn.registerError(hn,MalformedPolicyDocumentException);var En=[-3,on,vt,{[jt]:[`PackedPolicyTooLarge`,400],[Xt]:Kt,[en]:400},[tn],[0]];cn.registerError(En,PackedPolicyTooLargeException);var pn=[-3,on,Ft,{[jt]:[`RegionDisabledException`,403],[Xt]:Kt,[en]:403},[tn],[0]];cn.registerError(pn,RegionDisabledException);const Cn=[an,cn];var In=[0,on,$t,8,0];var mn=[0,on,Zt,8,0];var Bn=[3,on,st,0,[tt,Ze],[0,0],2];var Qn=[3,on,nt,0,[Nt,xt,Qt,Bt,ut,Gt,Yt,gt,Pt,Vt,Lt,wt,mt],[0,0,()=>vn,0,1,()=>Nn,64|0,0,0,0,0,()=>Tn,1],2];var yn=[3,on,rt,0,[ct,st,kt,Lt,_t,Ht],[[()=>bn,0],()=>Bn,1,0,1,1]];var wn=[3,on,it,0,[Nt,xt,Wt,Dt,Qt,Bt,ut,mt],[0,0,[()=>mn,0],0,()=>vn,0,1,1],3];var Sn=[3,on,at,0,[ct,Ut,st,kt,Tt,At,Lt,_t,Ht],[[()=>bn,0],0,()=>Bn,1,0,0,0,1,1]];var bn=[3,on,ct,0,[Xe,Mt,Ot,dt],[0,[()=>In,0],0,4],4];var Rn=[3,on,Rt,0,[zt],[0]];var Dn=[3,on,bt,0,[yt,lt],[0,0]];var kn=[3,on,Jt,0,[Ct,qt],[0,0],2];var vn=[1,on,nn,0,()=>Rn];var Tn=[1,on,St,0,()=>Dn];var Nn=[1,on,sn,0,()=>kn];var Fn=[9,on,et,0,()=>Qn,()=>yn];var xn=[9,on,ot,0,()=>wn,()=>Sn];const getRuntimeConfig$1=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Ce,base64Encoder:t?.base64Encoder??pe,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ze,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new le},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new ue},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new m}],logger:t?.logger??new D,protocol:t?.protocol??Qe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Cn,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??ye,signerConstructor:t?.signerConstructor??he,urlParser:t?.urlParser??K,utf8Decoder:t?.utf8Decoder??Ee,utf8Encoder:t?.utf8Encoder??fe});const getRuntimeConfig=t=>{k(process.version);const n=L(t);const defaultConfigProvider=()=>n().then(v);const s=getRuntimeConfig$1(t);i(process.version);const o={profile:t?.profile,logger:s.logger};return{...s,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(ge,o),bodyLengthChecker:t?.bodyLengthChecker??Ie,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:s.serviceId,clientVersion:Ke.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n=>n.getIdentityProvider("aws.auth#sigv4")||(async n=>await t.credentialDefaultProvider(n?.__config||{})()),signer:new le},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new ue},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new m}],maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(_,{...G,...o}),requestHandler:Be.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...ne,default:async()=>(await defaultConfigProvider()).retryMode||te},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??P(de,o),streamCollector:t?.streamCollector??me,useDualstackEndpoint:t?.useDualstackEndpoint??P(H,o),useFipsEndpoint:t?.useFipsEndpoint??P(O,o),userAgentAppId:t?.userAgentAppId??P(c,o)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider;let o=t.credentials;return{setHttpAuthScheme(t){const s=n.findIndex(n=>n.schemeId===t.schemeId);if(s===-1){n.push(t)}else{n.splice(s,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){s=t},httpAuthSchemeProvider(){return s},setCredentials(t){o=t},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const s=Object.assign(l(t),T(t),Z(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(s));return Object.assign(t,u(s),N(s),X(s),resolveHttpAuthRuntimeConfig(s))};class STSClient extends F{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const s=resolveClientEndpointParameters(n);const o=d(s);const i=se(o);const A=V(i);const c=g(A);const l=$(c);const u=resolveHttpAuthSchemeConfig(l);const C=resolveRuntimeExtensions(u,t?.extensions||[]);this.config=C;this.middlewareStack.use(ae(this.config));this.middlewareStack.use(h(this.config));this.middlewareStack.use(oe(this.config));this.middlewareStack.use(ee(this.config));this.middlewareStack.use(f(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(B(this.config,{httpAuthSchemeParametersProvider:We,identityProviderConfigProvider:async t=>new Q({"aws.auth#sigv4":t.credentials,"aws.auth#sigv4a":t.credentials})}));this.middlewareStack.use(y(this.config))}destroy(){super.destroy()}}const Mn=x($e,"AWSSecurityTokenServiceV20110615","STSClient",j);const Un={};const _mw0=(t,n,s,o)=>[];class AssumeRoleCommand extends(Mn(Un,_mw0,"AssumeRole",Fn)){}class AssumeRoleWithWebIdentityCommand extends(Mn(Un,_mw0,"AssumeRoleWithWebIdentity",xn)){}const Ln={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand};class STS extends STSClient{}M(Ln,STS);const getAccountIdFromAssumedRoleUser=t=>{if(typeof t?.Arn==="string"){const n=t.Arn.split(":");if(n.length>4&&n[4]!==""){return n[4]}}return undefined};const resolveRegion=async(t,n,s,o={})=>{const i=typeof t==="function"?await t():t;const A=typeof n==="function"?await n():n;let c="";const l=i??A??(c=await I(o)());s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${i} (credential provider clientConfig)`,`${A} (contextual client)`,`${c} (STS default: AWS_REGION, profile region, or us-east-1)`);return l};const getDefaultRoleAssumer$1=(t,n)=>{let s;let o;return async(i,A)=>{o=i;if(!s){const{logger:i=t?.parentClientConfig?.logger,profile:A=t?.parentClientConfig?.profile,region:c,requestHandler:l=t?.parentClientConfig?.requestHandler,credentialProviderLogger:u,userAgentAppId:d=t?.parentClientConfig?.userAgentAppId}=t;const g=await resolveRegion(c,t?.parentClientConfig?.region,u,{logger:i,profile:A});const h=!isH2(l);s=new n({...t,userAgentAppId:d,profile:A,credentialDefaultProvider:()=>async()=>o,region:g,requestHandler:h?l:undefined,logger:i})}const{Credentials:c,AssumedRoleUser:l}=await s.send(new AssumeRoleCommand(A));if(!c||!c.AccessKeyId||!c.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${A.RoleArn}`)}const u=getAccountIdFromAssumedRoleUser(l);const d={accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration,...c.CredentialScope&&{credentialScope:c.CredentialScope},...u&&{accountId:u}};C(d,"CREDENTIALS_STS_ASSUME_ROLE","i");return d}};const getDefaultRoleAssumerWithWebIdentity$1=(t,n)=>{let s;return async o=>{if(!s){const{logger:o=t?.parentClientConfig?.logger,profile:i=t?.parentClientConfig?.profile,region:A,requestHandler:c=t?.parentClientConfig?.requestHandler,credentialProviderLogger:l,userAgentAppId:u=t?.parentClientConfig?.userAgentAppId}=t;const d=await resolveRegion(A,t?.parentClientConfig?.region,l,{logger:o,profile:i});const g=!isH2(c);s=new n({...t,userAgentAppId:u,profile:i,region:d,requestHandler:g?c:undefined,logger:o})}const{Credentials:i,AssumedRoleUser:A}=await s.send(new AssumeRoleWithWebIdentityCommand(o));if(!i||!i.AccessKeyId||!i.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`)}const c=getAccountIdFromAssumedRoleUser(A);const l={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};if(c){C(l,"RESOLVED_ACCOUNT_ID","T")}C(l,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return l}};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(t,n)=>{if(!n)return t;else return class CustomizableSTSClient extends t{constructor(t){super(t);for(const t of n){this.middlewareStack.use(t)}}}};const getDefaultRoleAssumer=(t={},n)=>getDefaultRoleAssumer$1(t,getCustomizableStsClientCtor(STSClient,n));const getDefaultRoleAssumerWithWebIdentity=(t={},n)=>getDefaultRoleAssumerWithWebIdentity$1(t,getCustomizableStsClientCtor(STSClient,n));const decorateDefaultCredentialProvider=t=>n=>t({roleAssumer:getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(n),...n});n.AssumeRole$=Fn;n.AssumeRoleCommand=AssumeRoleCommand;n.AssumeRoleRequest$=Qn;n.AssumeRoleResponse$=yn;n.AssumeRoleWithWebIdentity$=xn;n.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand;n.AssumeRoleWithWebIdentityRequest$=wn;n.AssumeRoleWithWebIdentityResponse$=Sn;n.AssumedRoleUser$=Bn;n.Credentials$=bn;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=ln;n.IDPCommunicationErrorException=IDPCommunicationErrorException;n.IDPCommunicationErrorException$=un;n.IDPRejectedClaimException=IDPRejectedClaimException;n.IDPRejectedClaimException$=dn;n.InvalidIdentityTokenException=InvalidIdentityTokenException;n.InvalidIdentityTokenException$=gn;n.MalformedPolicyDocumentException=MalformedPolicyDocumentException;n.MalformedPolicyDocumentException$=hn;n.PackedPolicyTooLargeException=PackedPolicyTooLargeException;n.PackedPolicyTooLargeException$=En;n.PolicyDescriptorType$=Rn;n.ProvidedContext$=Dn;n.RegionDisabledException=RegionDisabledException;n.RegionDisabledException$=pn;n.STS=STS;n.STSClient=STSClient;n.STSServiceException=STSServiceException;n.STSServiceException$=An;n.Tag$=kn;n.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider;n.errorTypeRegistries=Cn;n.getDefaultRoleAssumer=getDefaultRoleAssumer;n.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity},5785:(t,n,s)=>{const{SignatureV4:o,signatureV4aContainer:i}=s(5118);const A={CrtSignerV4:null};const c="X-Amz-S3session-Token";const l=c.toLowerCase();class SignatureV4SignWithCredentials extends o{async signWithCredentials(t,n,s){const o=getCredentialsWithoutSessionToken(n);t.headers[l]=n.sessionToken;const i=this;setSingleOverride(i,o);return i.signRequest(t,s??{})}async presignWithCredentials(t,n,s){const o=getCredentialsWithoutSessionToken(n);delete t.headers[l];t.headers[c]=n.sessionToken;t.query=t.query??{};t.query[c]=n.sessionToken;const i=this;setSingleOverride(i,o);return this.presign(t,s)}}function getCredentialsWithoutSessionToken(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function setSingleOverride(t,n){const s=t.credentialProvider;t.credentialProvider=()=>{t.credentialProvider=s;return Promise.resolve(n)}}class SignatureV4MultiRegion{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof A.CrtSignerV4==="function"){return"crt"}else if(typeof i.SignatureV4a==="function"){return"js"}return"none"}constructor(t){this.sigv4Signer=new SignatureV4SignWithCredentials(t);this.signerOptions=t}async sign(t,n={}){if(n.signingRegion==="*"){return this.getSigv4aSigner().sign(t,n)}return this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,s={}){if(s.signingRegion==="*"){const o=this.getSigv4aSigner();const i=A.CrtSignerV4;if(i&&o instanceof i){return o.signWithCredentials(t,n,s)}else{throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.signWithCredentials(t,n,s)}async presign(t,n={}){if(n.signingRegion==="*"){const s=this.getSigv4aSigner();const o=A.CrtSignerV4;if(o&&s instanceof o){return s.presign(t,n)}else{throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,s={}){if(s.signingRegion==="*"){throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].")}return this.sigv4Signer.presignWithCredentials(t,n,s)}getSigv4aSigner(){if(!this.sigv4aSigner){const t=A.CrtSignerV4;const n=i.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!n){throw new Error("Neither CRT nor JS SigV4a implementation is available. "+"Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}if(t&&typeof t==="function"){this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1})}else if(n&&typeof n==="function"){this.sigv4aSigner=new n({...this.signerOptions})}else{throw new Error("Available SigV4a implementation is not a valid constructor. "+"Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a."+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}}else{if(!n||typeof n!=="function"){throw new Error("JS SigV4a implementation is not available or not a valid constructor. "+"Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. "+"You must also register the package by calling [require('@aws-sdk/signature-v4a');] "+"or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a")}this.sigv4aSigner=new n({...this.signerOptions})}}return this.sigv4aSigner}}n.SignatureV4MultiRegion=SignatureV4MultiRegion;n.SignatureV4SignWithCredentials=SignatureV4SignWithCredentials;n.signatureV4CrtContainer=A},5433:(t,n,s)=>{const{setTokenFeature:o}=s(5152);const{getBearerTokenEnvKey:i}=s(7523);const{TokenProviderError:A,getSSOTokenFilepath:c,parseKnownFiles:l,getProfileName:u,loadSsoSessionData:d,getSSOTokenFromFile:g,memoize:h,chain:f}=s(7291);const{promises:E}=s(3024);const fromEnvSigningName=({logger:t,signingName:n}={})=>async()=>{t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");if(!n){throw new A("Please pass 'signingName' to compute environment variable key",{logger:t})}const s=i(n);if(!(s in process.env)){throw new A(`Token not present in '${s}' environment variable`,{logger:t})}const c={token:process.env[s]};o(c,"BEARER_SERVICE_ENV_VARS","3");return c};const p=5*60*1e3;const C=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;const getSsoOidcClient=async(t,n={},o)=>{const{SSOOIDCClient:i}=s(9443);const coalesce=t=>n.clientConfig?.[t]??n.parentClientConfig?.[t]??o?.[t];const A=new i(Object.assign({},n.clientConfig??{},{region:t??n.clientConfig?.region,logger:coalesce("logger"),userAgentAppId:coalesce("userAgentAppId")}));return A};const getNewSsoOidcToken=async(t,n,o={},i)=>{const{CreateTokenCommand:A}=s(9443);const c=await getSsoOidcClient(n,o,i);return c.send(new A({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))};const validateTokenExpiry=t=>{if(t.expiration&&t.expiration.getTime()<Date.now()){throw new A(`Token is expired. ${C}`,false)}};const validateTokenKey=(t,n,s=false)=>{if(typeof n==="undefined"){throw new A(`Value not present for '${t}' in SSO Token${s?". Cannot refresh":""}. ${C}`,false)}};const{writeFile:I}=E;const writeSSOTokenToFile=(t,n)=>{const s=c(t);const o=JSON.stringify(n,null,2);return I(s,o)};const m=new Map;const B=new Map;const fromSso=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");const s=await l(t);const o=u({profile:t.profile??n?.profile});const i=s[o];if(!i){throw new A(`Profile '${o}' could not be found in shared credentials file.`,false)}else if(!i["sso_session"]){throw new A(`Profile '${o}' is missing required property 'sso_session'.`)}const c=i["sso_session"];const h=B.get(c);if(h){return await h}const f=await d(t);const E=f[c];if(!E){throw new A(`Sso session '${c}' could not be found in shared credentials file.`,false)}for(const t of["sso_start_url","sso_region"]){if(!E[t]){throw new A(`Sso session '${c}' is missing required property '${t}'.`,false)}}E["sso_start_url"];const I=E["sso_region"];let Q;try{Q=await g(c)}catch(t){throw new A(`The SSO session token associated with profile=${o} was not found or is invalid. ${C}`,false)}validateTokenKey("accessToken",Q.accessToken);validateTokenKey("expiresAt",Q.expiresAt);const{accessToken:y,expiresAt:w}=Q;const S={token:y,expiration:new Date(w)};if(S.expiration.getTime()-Date.now()>p){return S}const R=B.get(c);if(R){return await R}const D=m.get(c)??0;if(Date.now()-D<30*1e3){validateTokenExpiry(S);return S}validateTokenKey("clientId",Q.clientId,true);validateTokenKey("clientSecret",Q.clientSecret,true);validateTokenKey("refreshToken",Q.refreshToken,true);const k=(async()=>{try{m.set(c,Date.now());const s=await getNewSsoOidcToken(Q,I,t,n);validateTokenKey("accessToken",s.accessToken);validateTokenKey("expiresIn",s.expiresIn);const o=new Date(Date.now()+s.expiresIn*1e3);try{await writeSSOTokenToFile(c,{...Q,accessToken:s.accessToken,expiresAt:o.toISOString(),refreshToken:s.refreshToken})}catch(t){}return{token:s.accessToken,expiration:o}}catch(t){validateTokenExpiry(S);return S}})();B.set(c,k);try{return await k}finally{B.delete(c)}};const fromStatic=({token:t,logger:n})=>async()=>{n?.debug("@aws-sdk/token-providers - fromStatic");if(!t||!t.token){throw new A(`Please pass a valid token to fromStatic`,false)}return t};const nodeProvider=(t={})=>h(f(fromSso(t),async()=>{throw new A("Could not load token from any providers",false)}),t=>t.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==undefined);n.fromEnvSigningName=fromEnvSigningName;n.fromSso=fromSso;n.fromStatic=fromStatic;n.nodeProvider=nodeProvider},4274:(t,n)=>{const s=/[&<>"]/g;const o={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(t){return t.replace(s,t=>o[t])}const i=/[&"'<>\r\n\u0085\u2028]/g;const A={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function escapeElement(t){return t.replace(i,t=>A[t])}class XmlText{value;constructor(t){this.value=t}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(t,n,s){const o=new XmlNode(t);if(n!==undefined){o.addChildNode(new XmlText(n))}if(s!==undefined){o.withName(s)}return o}constructor(t,n=[]){this.name=t;this.children=n}withName(t){this.name=t;return this}addAttribute(t,n){this.attributes[t]=n;return this}addChildNode(t){this.children.push(t);return this}removeAttribute(t){delete this.attributes[t];return this}n(t){this.name=t;return this}c(t){this.children.push(t);return this}a(t,n){if(n!=null){this.attributes[t]=n}return this}cc(t,n,s=n){if(t[n]!=null){const o=XmlNode.of(n,t[n]).withName(s);this.c(o)}}l(t,n,s,o){if(t[n]!=null){const t=o();t.map(t=>{t.withName(s);this.c(t)})}}lc(t,n,s,o){if(t[n]!=null){const t=o();const n=new XmlNode(s);t.map(t=>{n.c(t)});this.c(n)}}toString(){const t=Boolean(this.children.length);let n=`<${this.name}`;const s=this.attributes;for(const t of Object.keys(s)){const o=s[t];if(o!=null){n+=` ${t}="${escapeAttribute(""+o)}"`}}return n+=!t?"/>":`>${this.children.map(t=>t.toString()).join("")}</${this.name}>`}}function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}function parseXML(t){const n=new AwsXmlParser(t);return n.parse()}class AwsXmlParser{x;i=0;z;constructor(t){this.x=t;this.x=t.replace(/\r\n?/g,"\n");this.z=this.x.length}parse(){const t=this;const{z:n}=t;while(t.i<n){t.trim();if(t.i>=n){break}if(t.isNext("<?")){t.readTo("?>");t.trim()}else if(t.isNext("\x3c!--")){t.readTo("--\x3e");t.trim()}else if(t.isNext("<!DOCTYPE",false)){t.skipDoctype();t.trim()}else if(t.x[t.i]==="<"){const n=t.parseTag();return{[n.tag]:n.value}}else{throw new Error("@aws-sdk XML parse error: unexpected content.")}}throw new Error("@aws-sdk XML parse error: no root element.")}isNext(t,n=true){const s=this;if(n){return s.x.startsWith(t,s.i)}return s.x.toLowerCase().startsWith(t.toLowerCase(),s.i)}readTo(t){const n=this;const s=n.x.indexOf(t,n.i);if(s===-1){throw new Error(`@aws-sdk XML parse error: expected "${t}" not found.`)}const o=n.x.slice(n.i,s);n.i=s+t.length;return o}trim(){const t=this;while(t.i<t.z&&" \t\r\n".includes(t.x[t.i])){++t.i}}readAttrValue(){const t=this;const n=t.x[t.i];++t.i;let s="";while(t.i<t.z&&t.x[t.i]!==n){s+=t.x[t.i++]}++t.i;return t.decodeEntities(s)}parseTag(){const t=this;++t.i;let n="";while(t.i<t.z&&!" \t\r\n>/".includes(t.x[t.i])){n+=t.x[t.i++]}let s=false;const o={};while(t.i<t.z){t.trim();if(">/".includes(t.x[t.i])){break}let n="";while(t.i<t.z&&!"= \t\r\n>/?".includes(t.x[t.i])){n+=t.x[t.i++]}t.trim();if(t.x[t.i]!=="="){break}++t.i;t.trim();if(n==="__proto__"){writeKey(o)}o[n]=t.readAttrValue();s=true}if(t.i>=t.z){throw new Error("@aws-sdk XML parse error: unexpected end of input.")}if(t.x[t.i]==="/"){++t.i;if(t.i>=t.z||t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.")}++t.i;return{tag:n,value:s?o:""}}if(t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.")}++t.i;const i=[];const A=[];let c=false;while(t.i<t.z){if(t.isNext("</")){break}if(t.x[t.i]==="<"){if(t.isNext("\x3c!--")){t.readTo("--\x3e")}else if(t.isNext("<![CDATA[")){t.i+=9;i.push(t.readTo("]]>"))}else if(t.isNext("<?")){t.readTo("?>")}else{c=true;A.push(t.parseTag())}}else{let n="";while(t.i<t.z&&t.x[t.i]!=="<"){n+=t.x[t.i++]}i.push(t.decodeEntities(n))}}if(!t.isNext("</")){throw new Error(`@aws-sdk XML parse error: missing closing tag </${n}>.`)}t.i+=2;const l=t.readTo(">").trim();if(l!==n){throw new Error(`@aws-sdk XML parse error: mismatched tags <${n}> and </${l}>.`)}if(!s&&i.length===0&&!c){return{tag:n,value:""}}if(!s&&!c){const t=i.length===1?i[0]:i.join("");if(t.trim()===""&&t.includes("\n")){return{tag:n,value:""}}return{tag:n,value:t}}const u={};for(const t of i){if(t.trim()===""&&t.includes("\n")){continue}u["#text"]="#text"in u?u["#text"]+t:t}for(const t of A){if(t.tag==="__proto__"){writeKey(u)}if(t.tag in u){if(Array.isArray(u[t.tag])){u[t.tag].push(t.value)}else{u[t.tag]=[u[t.tag],t.value]}}else{u[t.tag]=t.value}}for(const[t,n]of Object.entries(o)){if(t==="__proto__"){writeKey(u)}u[t]=n}return{tag:n,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){const t=this;t.i+=9;let n=0;while(t.i<t.z){const s=t.x[t.i];if(s==="["){++n}else if(s==="]"){--n}else if(s===">"&&n===0){++t.i;return}++t.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(t){return t.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(t,n,s,o)=>{if(n){return String.fromCharCode(parseInt(n,16))}if(s){return String.fromCharCode(parseInt(s,10))}return AwsXmlParser.ENTITIES[o]??""})}}n.XmlNode=XmlNode;n.XmlText=XmlText;n.parseXML=parseXML},9320:(t,n,s)=>{"use strict";const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(t){return Object.values(o).includes(t)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}getTraceparent(){return this.get(o.TRACEPARENT)}getTracestate(){return this.get(o.TRACESTATE)}getBaggage(){return this.get(o.BAGGAGE)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(t){return this.currentContext?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}this.currentContext=this.currentContext||{};this.currentContext[t]=n}run(t,n){this.currentContext=t;return n()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const t=new InvokeStoreMulti;const n=await Promise.resolve().then(s.t.bind(s,6698,23));t.als=new n.AsyncLocalStorage;return t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(t){return this.als.getStore()?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}const s=this.als.getStore();if(!s){throw new Error("No context available")}s[t]=n}run(t,n){return this.als.run(t,n)}}n.InvokeStore=void 0;(function(t){let n=null;async function getInstanceAsync(t){if(!n){n=(async()=>{const n=t===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const s=n?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=s;return s}else{return s}})()}return n}t.getInstanceAsync=getInstanceAsync;t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{n=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(n.InvokeStore||(n.InvokeStore={}));n.InvokeStoreBase=InvokeStoreBase},402:(t,n,s)=>{const{getSmithyContext:o,hasOwn:i}=s(4534);n.getSmithyContext=o;const{HttpRequest:A}=s(3422);const{requestBuilder:c}=s(3422);n.requestBuilder=c;const{HttpApiKeyAuthLocation:l}=s(690);const resolveAuthOptions=(t,n)=>{if(!n||n.length===0){return t}const s=[];for(const o of n){for(const n of t){const t=n.schemeId.split("#")[1];if(t===o){s.push(n)}}}for(const n of t){if(!s.find(({schemeId:t})=>t===n.schemeId)){s.push(n)}}return s};function convertHttpAuthSchemesToMap(t){const n=new Map;for(const s of t){n.set(s.schemeId,s)}return n}const httpAuthSchemeMiddleware=(t,n)=>(s,i)=>async A=>{const c=t.httpAuthSchemeProvider(await n.httpAuthSchemeParametersProvider(t,i,A.input));const l=t.authSchemePreference?await t.authSchemePreference():[];const u=resolveAuthOptions(c,l);const d=convertHttpAuthSchemesToMap(t.httpAuthSchemes);const g=o(i);const h=[];for(const s of u){const o=d.get(s.schemeId);if(!o){h.push(`HttpAuthScheme \`${s.schemeId}\` was not enabled for this service.`);continue}const A=o.identityProvider(await n.identityProviderConfigProvider(t));if(!A){h.push(`HttpAuthScheme \`${s.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:c={},signingProperties:l={}}=s.propertiesExtractor?.(t,i)||{};s.identityProperties=Object.assign(s.identityProperties||{},c);s.signingProperties=Object.assign(s.signingProperties||{},l);g.selectedHttpAuthScheme={httpAuthOption:s,identity:await A(s.identityProperties),signer:o.signer};break}if(!g.selectedHttpAuthScheme){throw new Error(h.join("\n"))}return s(A)};const u={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:s})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:s}),u)}});const d={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:s})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:s}),d)}});const defaultErrorHandler=t=>t=>{throw t};const defaultSuccessHandler=(t,n)=>{};const httpSigningMiddleware=t=>(t,n)=>async s=>{if(!A.isInstance(s.request)){return t(s)}const i=o(n);const c=i.selectedHttpAuthScheme;if(!c){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:l={}},identity:u,signer:d}=c;const g=await t({...s,request:await d.sign(s.request,u,l)}).catch((d.errorHandler||defaultErrorHandler)(l));(d.successHandler||defaultSuccessHandler)(g.response,l);return g};const g={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=t=>({applyToStack:t=>{t.addRelativeTo(httpSigningMiddleware(),g)}});const normalizeProvider=t=>{if(typeof t==="function"){return t}const n=Promise.resolve(t);return()=>n};const makePagedClientRequest=async(t,n,s,o=t=>t,...i)=>{let A=new t(s);A=o(A)??A;return await n.send(A,...i)};function createPaginator(t,n,s,o,i){return async function*paginateOperation(A,c,...l){const u=c;let d=A.startingToken??u[s];let g=true;let h;while(g){u[s]=d;if(i){u[i]=u[i]??A.pageSize}if(A.client instanceof t){h=await makePagedClientRequest(n,A.client,c,A.withCommand,...l)}else{throw new Error(`Invalid client, expected instance of ${t.name}`)}yield h;const f=d;d=get(h,o);g=!!(d&&(!A.stopOnSameToken||d!==f))}return undefined}}const get=(t,n)=>{let s=t;const o=n.split(".");for(const t of o){if(!s||typeof s!=="object"){return undefined}s=s[t]}return s};function setFeature(t,n,s){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=s}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(t){for(const n in t){if(!i(t,n)){continue}const s=t[n];if(s!==undefined){this.authSchemes.set(n,s)}}}getIdentityProvider(t){return this.authSchemes.get(t)}}class HttpApiKeyAuthSigner{async sign(t,n,s){if(!s){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!s.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!s.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!n.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const o=A.clone(t);if(s.in===l.QUERY){o.query[s.name]=n.apiKey}else if(s.in===l.HEADER){o.headers[s.name]=s.scheme?`${s.scheme} ${n.apiKey}`:n.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+s.in+"`")}return o}}class HttpBearerAuthSigner{async sign(t,n,s){const o=A.clone(t);if(!n.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${n.token}`;return o}}class NoAuthSigner{async sign(t,n,s){return t}}const createIsIdentityExpiredFunction=t=>function isIdentityExpired(n){return doesIdentityRequireRefresh(n)&&n.expiration.getTime()-Date.now()<t};const h=3e5;const f=createIsIdentityExpiredFunction(h);const doesIdentityRequireRefresh=t=>t.expiration!==undefined;const memoizeIdentityProvider=(t,n,s)=>{if(t===undefined){return undefined}const o=typeof t!=="function"?async()=>Promise.resolve(t):t;let i;let A;let c;let l=false;const coalesceProvider=async t=>{if(!A){A=o(t)}try{i=await A;c=true;l=false}finally{A=undefined}return i};if(n===undefined){return async t=>{if(!c||t?.forceRefresh){i=await coalesceProvider(t)}return i}}return async t=>{if(!c||t?.forceRefresh){i=await coalesceProvider(t)}if(l){return i}if(!s(i)){l=true;return i}if(n(i)){await coalesceProvider(t);return i}return i}};n.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;n.EXPIRATION_MS=h;n.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;n.HttpBearerAuthSigner=HttpBearerAuthSigner;n.NoAuthSigner=NoAuthSigner;n.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;n.createPaginator=createPaginator;n.doesIdentityRequireRefresh=doesIdentityRequireRefresh;n.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;n.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;n.getHttpSigningPlugin=getHttpSigningPlugin;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=u;n.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;n.httpAuthSchemeMiddlewareOptions=d;n.httpSigningMiddleware=httpSigningMiddleware;n.httpSigningMiddlewareOptions=g;n.isIdentityExpired=f;n.memoizeIdentityProvider=memoizeIdentityProvider;n.normalizeProvider=normalizeProvider;n.setFeature=setFeature},4645:(t,n,s)=>{const{nv:o,NumericValue:i,calculateBodyLength:A,generateIdempotencyToken:c,fromBase64:l,_parseEpochTimestamp:u}=s(2430);const{hasOwn:d}=s(4534);const{HttpRequest:g,collectBody:h,SerdeContext:f,AbstractRpcV2Protocol:E}=s(3422);const{NormalizedSchema:p,TypeRegistry:C}=s(6890);const I=0;const m=1;const B=2;const Q=3;const y=4;const w=5;const S=6;const R=7;const D=20;const k=21;const v=22;const T=23;const N=24;const F=25;const x=26;const M=27;const U=31;function alloc(t){return typeof Buffer!=="undefined"?Buffer.alloc(t):new Uint8Array(t)}const L=Symbol("@smithy/core/cbor::tagSymbol");function tag(t){t[L]=true;return t}const P=typeof Buffer!=="undefined";const O=new TextDecoder;let H=alloc(0);let _=false;let G=new DataView(H.buffer,H.byteOffset,H.byteLength);let V=0;function setPayload(t){H=t;_=P&&H instanceof Buffer;G=new DataView(H.buffer,H.byteOffset,H.byteLength)}function decode(t,n){if(t>=n){throw new Error("unexpected end of (decode) payload.")}const s=(H[t]&224)>>5;const o=H[t]&31;if(o===U&&2<=s&&s<=5){return decodeIndefinite(t,n)}switch(s){case I:case m:case S:{let i;let A;if(o<24){i=o;A=1}else{switch(o){case N:if(n-t<2){overflow$1(1)}i=H[t+1];A=2;break;case F:if(n-t<3){overflow$1(2)}i=G.getUint16(t+1);A=3;break;case x:if(n-t<5){overflow$1(4)}i=G.getUint32(t+1);A=5;break;case M:if(n-t<9){overflow$1(8)}{const n=G.getUint32(t+1);if(n<2097152){i=n*4294967296+G.getUint32(t+5)}else{i=G.getBigUint64(t+1)}}A=9;break;default:unexpectedMinor(o)}}if(s===I){V=A;return castBigInt$1(i)}else if(s===m){let t;if(typeof i==="bigint"){t=BigInt(-1)-i}else{t=-1-i}V=A;return castBigInt$1(t)}else{return decodeTagValue(t,n,o,i,A)}}case Q:return decodeUtf8String(t,n);case w:return decodeMap(t,n);case y:return decodeList(t,n);case B:return decodeUnstructuredByteString(t,n);default:return decodeSpecial(t,n)}}function decodeIndefinite(t,n){const s=(H[t]&224)>>5;const o=H[t]&31;if(o===U){switch(s){case Q:return decodeUtf8StringIndefinite(t,n);case w:return decodeMapIndefinite(t,n);case y:return decodeListIndefinite(t,n);case B:return decodeUnstructuredByteStringIndefinite(t,n)}}}function bytesToFloat16$1(t,n){const s=t>>7;const o=(t&124)>>2;const i=(t&3)<<8|n;const A=s===0?1:-1;if(o===0){if(i===0){return 0}return A*(Math.pow(2,1-15)*(i/1024))}else if(o===31){if(i===0){return A*Infinity}return NaN}return A*(Math.pow(2,o-15)*(1+i/1024))}function decodeMap(t,n){const s=decodeCount$1(t,n);if(s<25){return decodeMapSmall(t,n,s)}return decodeMapLarge(t,n,s)}function decodeMapLarge(t,n,s){const o=V;t+=o;const i=t;const A=Object.create(null);for(let o=0;o<s;++o){const s=decodeUtf8String(t,n);t+=V;const o=(H[t]&224)>>5;if(o===Q){A[s]=decodeUtf8String(t,n)}else{A[s]=decode(t,n)}t+=V}V=o+(t-i);Object.setPrototypeOf(A,Object.prototype);return A}function decodeMapSmall(t,n,s){const o=V;t+=o;const i=t;const A={};for(let o=0;o<s;++o){const s=decodeUtf8String(t,n);t+=V;A[s]=decode(t,n);t+=V}V=o+(t-i);return A}function decodeList(t,n){const s=decodeCount$1(t,n);const o=V;t+=o;const i=t;const A=Array(s);for(let o=0;o<s;++o){A[o]=decode(t,n);t+=V}V=o+(t-i);return A}function decodeUtf8String(t,n){const s=decodeCount$1(t,n);const o=V;t+=o;if(n-t<s){overflow$1(s)}V=o+s;if(s<24){return decodeUtf8StringCached(t,s)}if(_){return H.toString("utf-8",t,t+s)}return O.decode(H.subarray(t,t+s))}const Y=new Array(2048);const J=new Uint16Array(2048);let q=0;function advanceDecodingEpoch(){q=q+1&65535}function decodeUtf8StringCached(t,n){let s=n;for(let o=0;o<n;++o){s=s*31+H[t+o]|0}const o=s>>>0&2047;const i=Y[o];if(i!==undefined){if(i.length===n){let s=true;for(let o=0;o<n;++o){if(i.charCodeAt(o)!==H[t+o]){s=false;break}}if(s){J[o]=q;return i}}}const A=_?H.toString("utf-8",t,t+n):O.decode(H.subarray(t,t+n));if(J[o]!==q){Y[o]=A;J[o]=q}return A}function decodeUnstructuredByteString(t,n){const s=decodeCount$1(t,n);const o=V;t+=o;if(n-t<s){overflow$1(s)}const i=H.subarray(t,t+s);V=o+s;return i}function decodeTagValue(t,n,s,i,A){if(s===2||s===3){const o=decodeCount$1(t+A,n);let i=BigInt(0);const c=t+A+V;for(let t=c;t<c+o;++t){i=i<<BigInt(8)|BigInt(H[t])}V=A+V+o;return s===3?-i-BigInt(1):i}else if(s===4){const s=decode(t+A,n);const[i,c]=s;const l=c<0?-1:1;const u=BigInt(l)*BigInt(c);const d=String(u);const g=c<0?"-":"";let h;const f=typeof i==="number"&&Math.abs(i)<=2**28;if(f){const t=i;const n="0".repeat(Math.abs(t)+1)+d;h=t===0?n:n.slice(0,n.length+t)+"."+n.slice(t);h=h.replace(/^0+/g,"");if(h===""){h="0"}if(h[0]==="."){h="0"+h}h=g+h}else{const t=BigInt(i);if(d.length===1){h=g+d+"e"+String(t)}else{const n=t+BigInt(d.length-1);h=g+d[0]+"."+d.slice(1)+"e"+String(n)}}V=A+V;return o(h)}else{const s=decode(t+A,n);const o=V;V=A+o;return tag({tag:castBigInt$1(i),value:s})}}function decodeSpecial(t,n){const s=H[t]&31;switch(s){case k:case D:V=1;return s===k;case v:V=1;return null;case T:V=1;return null;case F:if(n-t<3){throw new Error("incomplete float16 at end of buf.")}V=3;return bytesToFloat16$1(H[t+1],H[t+2]);case x:if(n-t<5){throw new Error("incomplete float32 at end of buf.")}V=5;return G.getFloat32(t+1);case M:if(n-t<9){throw new Error("incomplete float64 at end of buf.")}V=9;return G.getFloat64(t+1);default:unexpectedMinor(s)}}function decodeCount$1(t,n){const s=H[t]&31;if(s<24){V=1;return s}switch(s){case N:if(n-t<2){overflow$1(1)}V=2;return H[t+1];case F:if(n-t<3){overflow$1(2)}V=3;return G.getUint16(t+1);case x:if(n-t<5){overflow$1(4)}V=5;return G.getUint32(t+1);case M:if(n-t<9){overflow$1(8)}V=9;return demote(G.getBigUint64(t+1));default:unexpectedMinor(s)}}function decodeMapIndefinite(t,n){t+=1;const s=t;const o={};for(;t<n;){if(H[t]===255){V=t-s+2;return o}const i=decodeUtf8String(t,n);t+=V;o[i]=decode(t,n);t+=V}throw new Error("expected break marker.")}function decodeListIndefinite(t,n){t+=1;const s=[];for(const o=t;t<n;){if(H[t]===255){V=t-o+2;return s}s.push(decode(t,n));t+=V}throw new Error("expected break marker.")}function decodeUtf8StringIndefinite(t,n){t+=1;const s=[];for(const o=t;t<n;){if(H[t]===255){const n=alloc(s.length);n.set(s,0);V=t-o+2;if(P){return n.toString("utf-8",0,n.length)}return O.decode(n)}const i=(H[t]&224)>>5;const A=H[t]&31;if(i!==Q){unexpectedMajorInIndefiniteString(i)}if(A===U){throw new Error("nested indefinite string.")}const c=decodeUnstructuredByteString(t,n);const l=V;t+=l;for(let t=0;t<c.length;++t){s.push(c[t])}}throw new Error("expected break marker.")}function decodeUnstructuredByteStringIndefinite(t,n){t+=1;const s=[];for(const o=t;t<n;){if(H[t]===255){const n=alloc(s.length);n.set(s,0);V=t-o+2;return n}const i=(H[t]&224)>>5;const A=H[t]&31;if(i!==B){unexpectedMajorInIndefiniteString(i)}if(A===U){throw new Error("nested indefinite string.")}const c=decodeUnstructuredByteString(t,n);const l=V;t+=l;for(let t=0;t<c.length;++t){s.push(c[t])}}throw new Error("expected break marker.")}function castBigInt$1(t){if(typeof t==="number"){return t}const n=Number(t);if(Number.MIN_SAFE_INTEGER<=n&&n<=Number.MAX_SAFE_INTEGER){return n}return t}function demote(t){const n=Number(t);if(n<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<n){console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${t}) to ${n} with loss of precision.`))}return n}function overflow$1(t){throw new Error(`length ${t} greater than remaining buf len.`)}function unexpectedMinor(t){throw new Error(`unexpected minor value ${t}.`)}function unexpectedMajorInIndefiniteString(t){throw new Error(`unexpected major type ${t} in indefinite string.`)}const W=typeof Buffer!=="undefined";const z=new Map;let $=0;let j=false;const K=2048;let Z=alloc(K);let X=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);let ee=0;function encode(t){const n=[t];while(n.length){const t=n.pop();if(typeof t==="string"){const n=t.length;if(W){ensureSpace(n*3+9);if(n>23){encodeHeader$1(Q,Buffer.byteLength(t));ee+=Z.write(t,ee)}else{encodeStringCached(t)}}else{const s=n*3;ensureSpace(s+9);const o=ee;const i=(new TextEncoder).encodeInto(t,Z.subarray(ee+9));const A=i.written;let c;if(A<24){c=1}else if(A<256){c=2}else if(A<65536){c=3}else if(A<4294967296){c=5}else{c=9}if(c<9){Z.copyWithin(o+c,o+9,o+9+A)}ee=o;encodeInteger(Q,A);ee+=A}continue}if(Z.byteLength-ee<9){ensureSpace(64)}if(typeof t==="number"){if(Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991){const n=t>=0;const s=n?I:m;const o=n?t:-t-1;if(o<24){Z[ee++]=s<<5|o}else if(o<256){Z[ee++]=s<<5|24;Z[ee++]=o}else if(o<65536){Z[ee++]=s<<5|F;Z[ee++]=o>>8;Z[ee++]=o&255}else if(o<4294967296){Z[ee++]=s<<5|x;X.setUint32(ee,o);ee+=4}else{Z[ee++]=s<<5|M;const t=o/4294967296|0;const n=o-t*4294967296|0;X.setUint32(ee,t);X.setUint32(ee+4,n);ee+=8}continue}Z[ee++]=R<<5|M;X.setFloat64(ee,t);ee+=8;continue}else if(typeof t==="bigint"){const n=t>=0;const s=n?I:m;const o=n?t:-t-BigInt(1);if(o<BigInt("18446744073709551616")){const t=Number(o);if(t<4294967296){encodeInteger(s,t)}else{Z[ee++]=s<<5|M;X.setBigUint64(ee,o);ee+=8}}else{const t=o.toString(2);const s=new Uint8Array(Math.ceil(t.length/8));let i=o;let A=0;while(s.byteLength-++A>=0){s[s.byteLength-A]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(s.byteLength*2+16);Z[ee++]=n?194:195;encodeHeader$1(B,s.byteLength);Z.set(s,ee);ee+=s.byteLength}continue}else if(t===null){Z[ee++]=R<<5|v;continue}else if(typeof t==="boolean"){Z[ee++]=R<<5|(t?k:D);continue}else if(typeof t==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(t)){encodeInteger(y,t.length);ensureSpace(t.length*9+64);for(let s=t.length-1;s>=0;--s){n.push(t[s])}continue}else if(typeof t.byteLength==="number"){ensureSpace(t.length*2+9);encodeInteger(B,t.length);Z.set(t,ee);ee+=t.byteLength;continue}else if(typeof t==="object"){if(t instanceof i){let s=t.string;let o=BigInt(0);const i=s.search(/[eE]/);if(i!==-1){o=BigInt(s.slice(i+1));s=s.slice(0,i)}const A=s.indexOf(".");const c=A===-1?0:s.length-A-1;const l=o-BigInt(c);const u=BigInt(s.replace(".",""));Z[ee++]=196;encodeInteger(y,2);n.push(u);n.push(l>=-0x20000000000000n&&l<=0x1fffffffffffffn?Number(l):l);continue}if(t[L]){if("tag"in t&&"value"in t){n.push(t.value);encodeHeader$1(S,t.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(t))}}const s=Object.keys(t);const o=s.length;encodeInteger(w,o);for(let i=o-1;i>=0;--i){n.push(t[s[i]]);n.push(s[i])}continue}throw new Error(`data type ${t?.constructor?.name??typeof t} not compatible for encoding.`)}}function advanceEncodingEpoch(){$=$+1&65535;j=false}function toUint8Array(){const t=alloc(ee);t.set(Z.subarray(0,ee),0);ee=0;return t}function resize(t){const n=Z;Z=alloc(t);if(n){if(n.copy){n.copy(Z,0,0,n.byteLength)}else{Z.set(n,0)}}X=new DataView(Z.buffer,Z.byteOffset,Z.byteLength)}function encodeStringCached(t){const n=z.get(t);if(n!==undefined){Z.set(n.bytes,ee);ee+=n.bytes.length;n.epoch=$;return}const s=ee;const o=Buffer.byteLength(t);encodeInteger(Q,o);ee+=Z.write(t,ee);const i=Uint8Array.prototype.slice.call(Z,s,ee);if(z.size>=2048){if(j){return}let t=0;for(const[n,s]of z){if(t>=1024){break}if(s.epoch!==$){z.delete(n);t++}}if(t===0){j=true;return}}if(z.size<2048){z.set(t,{epoch:$,bytes:i})}}function ensureSpace(t){const n=Z.byteLength-ee;if(n<t){if(ee<16e6){resize(Math.max(Z.byteLength*4,Z.byteLength+t))}else{resize(Z.byteLength+t+16e6)}}}function encodeHeader$1(t,n){if(n<24){Z[ee++]=t<<5|n}else if(n<256){Z[ee++]=t<<5|24;Z[ee++]=n}else if(n<65536){Z[ee++]=t<<5|F;X.setUint16(ee,n);ee+=2}else if(n<4294967296){Z[ee++]=t<<5|x;X.setUint32(ee,n);ee+=4}else{Z[ee++]=t<<5|M;X.setBigUint64(ee,typeof n==="bigint"?n:BigInt(n));ee+=8}}function encodeInteger(t,n){if(n<24){Z[ee++]=t<<5|n}else if(n<256){Z[ee++]=t<<5|24;Z[ee++]=n}else if(n<65536){Z[ee++]=t<<5|F;Z[ee++]=n>>8;Z[ee++]=n&255}else if(n<4294967296){Z[ee++]=t<<5|x;X.setUint32(ee,n);ee+=4}else{Z[ee++]=t<<5|M;const s=n/4294967296|0;const o=n-s*4294967296|0;X.setUint32(ee,s);X.setUint32(ee+4,o);ee+=8}}const te={deserialize(t){advanceDecodingEpoch();setPayload(t);return decode(0,t.length)},serialize(t){advanceEncodingEpoch();try{encode(t);return toUint8Array()}catch(t){toUint8Array();throw t}},resizeEncodingBuffer(t){resize(t)}};const parseCborBody=(t,n)=>h(t,n).then(async t=>{if(t.length){try{return te.deserialize(t)}catch(s){Object.defineProperty(s,"$responseBodyText",{value:n.utf8Encoder(t)});throw s}}return{}});const dateToTag=t=>tag({tag:1,value:t.getTime()/1e3});const parseCborErrorBody=async(t,n)=>{const s=await parseCborBody(t,n);s.message=s.message??s.Message;return s};const loadSmithyRpcV2CborErrorCode=(t,n)=>{const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}return n};if(n["__type"]!==undefined){return sanitizeErrorCode(n["__type"])}};const checkCborResponse=t=>{if(String(t.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+t.statusCode)}};const buildHttpRpcRequest=async(t,n,s,o,i)=>{const c=await t.endpoint();const{hostname:l,protocol:u="https",port:h,path:f}=c;const E={protocol:u,hostname:l,port:h,method:"POST",path:f.endsWith("/")?f.slice(0,-1)+s:f+s,headers:{...n}};if(o!==undefined){E.hostname=o}if(c.headers){for(const t in c.headers){if(!d(c.headers,t)){continue}E.headers[t]=c.headers[t]}}if(i!==undefined){E.body=i;try{E.headers["content-length"]=String(A(i))}catch(t){}}return new g(E)};class CborShapeSerializer2 extends f{write(t,n){Ae=0;const s=p.of(t);writeValue(s,n,undefined,this.serdeContext)}flush(){const t=ie.subarray(0,Ae);Ae=0;ie=allocUnsafe(oe);ae=new DataView(ie.buffer,ie.byteOffset,ie.byteLength);return t}}const ne=Symbol.for("@smithy/cbor-struct-cache");function loadCborStructIterator(t){const n=t.getSchema();const s=n[ne];if(s){return s}const o=[];const i=[];for(const[n,s]of t.structIterator()){o.push(n);i.push(s)}const A=new Array(o.length);for(let t=0;t<o.length;++t){A[t]=encodeCborStringKey(o[t])}const c={memberNames:o,memberSchemas:i,encodedKeys:A};n[ne]=c;return c}function encodeCborStringKey(t){let n;if(re){n=Buffer.from(t,"utf-8")}else{n=(new TextEncoder).encode(t)}const s=n.length;let o;if(s<24){o=1}else if(s<256){o=2}else{o=3}const i=new Uint8Array(o+s);if(o===1){i[0]=Q<<5|s}else if(o===2){i[0]=Q<<5|24;i[1]=s}else{i[0]=Q<<5|F;i[1]=s>>8;i[2]=s&255}i.set(n,o);return i}const re=typeof Buffer!=="undefined";const se=new TextEncoder;const oe=2048;let ie=re?Buffer.allocUnsafe(oe):new Uint8Array(oe);let ae=new DataView(ie.buffer,ie.byteOffset,ie.byteLength);let Ae=0;const ce=2048;const le=new Map;let ue=0;let de=false;function allocUnsafe(t){return re?Buffer.allocUnsafe(t):new Uint8Array(t)}function writeValue(t,n,s,o){if(n==null){if(n===undefined&&t.isIdempotencyToken()){writeString(c());return}ensure(1);ie[Ae++]=R<<5|v;return}if(t.isUnitSchema()){ensure(1);encodeHeader(w,0);return}const A=typeof n==="object";if(A){if(t.isBlobSchema()){if(n instanceof Uint8Array){writeBytes(n);return}}if(t.isTimestampSchema()){if(n instanceof Date){writeTimestamp(n);return}}if(t.isStructSchema()){writeStruct(t,n,o);return}if(Array.isArray(n)&&(t.isListSchema()||t.isDocumentSchema())){writeList(t,n,t.isDocumentSchema(),o);return}if(t.isMapSchema()){writeMap(t,n,false,o);return}if(n instanceof Date){writeTimestamp(n);return}if(n instanceof Uint8Array){writeBytes(n);return}if(n instanceof i){writeNumericValue(n);return}if(n[L]){const t=n;writeTag(t.tag,t.value);return}if(t.isDocumentSchema()){if(Array.isArray(n)){writeList(t,n,true,o)}else{writeMap(t,n,true,o)}return}if(t.isBigDecimalSchema()){writeUntypedValue(n);return}writeMap(t,n,true,o);return}if(typeof n==="string"){if(t.isBlobSchema()){const t=(o?.base64Decoder??l)(n);writeBytes(t);return}writeString(n);return}if(typeof n==="number"){ensure(9);if(Number.isInteger(n)&&n>=-9007199254740992&&n<=9007199254740991){writeInteger(n)}else{writeFloat64(n)}return}if(typeof n==="boolean"){ensure(1);ie[Ae++]=R<<5|(n?k:D);return}if(typeof n==="bigint"){writeBigInt(n);return}writeString(String(n))}function writeStruct(t,n,s){if(t.isUnionSchema()){let o=false;for(const[i,A]of t.structIterator()){const c=n[i];if(c!=null){ensure(9);encodeHeader(w,1);writeString(i);writeValue(A,c,t,s);o=true;break}}if(!o){const{$unknown:t}=n;if(Array.isArray(t)){ensure(9);encodeHeader(w,1);writeString(t[0]);writeUntypedValue(t[1])}else{ensure(9);encodeHeader(w,0)}}return}const o=loadCborStructIterator(t);const{memberNames:i,memberSchemas:A,encodedKeys:c}=o;const l=i.length;let u;if(l<24){u=1}else if(l<256){u=2}else{u=3}ensure(u);const g=Ae;Ae+=u;let h=0;for(let o=0;o<l;++o){const l=n[i[o]];if(l==null&&!A[o].isIdempotencyToken()){continue}const u=c[o];ensure(u.length);ie.set(u,Ae);Ae+=u.length;writeValue(A[o],l,t,s);++h}if(typeof n.__type==="string"){for(const t in n){if(!d(n,t)){continue}if(!i.includes(t)){writeString(t);writeUntypedValue(n[t]);++h}}}if(u===1){ie[g]=w<<5|h}else if(u===2){ie[g]=w<<5|24;ie[g+1]=h}else{ie[g]=w<<5|F;ie[g+1]=h>>8;ie[g+2]=h&255}}function writeList(t,n,s,o){const i=!!t.getMergedTraits().sparse;const A=t.getValueSchema();if(s||i){const t=[];for(let o=0;o<n.length;++o){const A=n[o];if(s){if(A!==undefined){t.push(A)}}else{if(A!=null||i){t.push(A)}}}ensure(9);encodeHeader(y,t.length);for(let n=0;n<t.length;++n){writeValue(A,t[n],undefined,o)}}else{let t=0;for(let s=0;s<n.length;++s){if(n[s]!=null){++t}}ensure(9);encodeHeader(y,t);for(let t=0;t<n.length;++t){if(n[t]!=null){writeValue(A,n[t],undefined,o)}}}}function writeMap(t,n,s,o){const i=!!t.getMergedTraits().sparse;const A=t.getValueSchema();const c=[];for(const t in n){if(!d(n,t)){continue}const o=n[t];if(s?o!==undefined:o!=null||i){c.push(t)}}ensure(9);encodeHeader(w,c.length);for(let t=0;t<c.length;++t){const s=c[t];writeString(s);writeValue(A,n[s],undefined,o)}}function writeUntypedValue(t){if(t==null){ensure(1);ie[Ae++]=R<<5|v;return}if(typeof t==="string"){writeString(t);return}if(typeof t==="number"){ensure(9);if(Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991){writeInteger(t)}else{writeFloat64(t)}return}if(typeof t==="boolean"){ensure(1);ie[Ae++]=R<<5|(t?k:D);return}if(typeof t==="bigint"){writeBigInt(t);return}if(t instanceof Uint8Array){writeBytes(t);return}if(t instanceof Date){writeTimestamp(t);return}if(t instanceof i){writeNumericValue(t);return}if(t[L]){const n=t;writeTag(n.tag,n.value);return}if(Array.isArray(t)){ensure(9);encodeHeader(y,t.length);for(let n=0;n<t.length;++n){writeUntypedValue(t[n])}return}if(typeof t==="object"){const n=Object.keys(t);ensure(9);encodeHeader(w,n.length);for(let s=0;s<n.length;++s){writeString(n[s]);writeUntypedValue(t[n[s]])}return}writeString(String(t))}function ensure(t){if(Ae+t>ie.length){let n=ie.length*2;while(n<Ae+t){n*=2}const s=allocUnsafe(n);s.set(ie.subarray(0,Ae));ie=s;ae=new DataView(s.buffer,s.byteOffset,s.byteLength)}}function encodeHeader(t,n){if(n<24){ie[Ae++]=t<<5|n}else if(n<256){ie[Ae++]=t<<5|24;ie[Ae++]=n}else if(n<65536){ie[Ae++]=t<<5|F;ie[Ae++]=n>>8;ie[Ae++]=n&255}else if(n<4294967296){ie[Ae++]=t<<5|x;ae.setUint32(Ae,n);Ae+=4}else{ie[Ae++]=t<<5|M;const s=n/4294967296|0;const o=n-s*4294967296|0;ae.setUint32(Ae,s);ae.setUint32(Ae+4,o);Ae+=8}}function encodeBigHeader(t,n){const s=Number(n);if(s<4294967296){encodeHeader(t,s);return}ie[Ae++]=t<<5|M;ae.setBigUint64(Ae,n);Ae+=8}function writeString(t){const n=t.length;if(n<=23){const s=le.get(t);if(s){ensure(s.bytes.length);ie.set(s.bytes,Ae);Ae+=s.bytes.length;s.epoch=ue;return}const o=Ae;writeStringUncached(t,n);const i=Ae;const A=Uint8Array.prototype.slice.call(ie,o,i);if(le.size>=ce){if(de){return}let t=0;for(const[n,s]of le){if(t>=1024){break}if(s.epoch!==ue){le.delete(n);++t}}if(t===0){de=true;return}}if(le.size<ce){le.set(t,{epoch:ue,bytes:A})}return}writeStringUncached(t,n)}function writeStringUncached(t,n){if(re){const s=n*3;ensure(s+9);const o=Buffer.byteLength(t);encodeHeader(Q,o);Ae+=ie.write(t,Ae)}else{const s=n*3;ensure(s+9);const o=Ae;const i=se.encodeInto(t,ie.subarray(o+9));const A=i.written;let c;if(A<24){c=1}else if(A<256){c=2}else if(A<65536){c=3}else if(A<4294967296){c=5}else{c=9}if(c<9){ie.copyWithin(o+c,o+9,o+9+A)}Ae=o;encodeHeader(Q,A);Ae+=A}}function writeFloat64(t){ensure(9);ie[Ae++]=R<<5|M;ae.setFloat64(Ae,t);Ae+=8}function writeInteger(t){ensure(9);const n=t>=0;const s=n?I:m;const o=n?t:-t-1;encodeHeader(s,o)}function writeBigInt(t){const n=t>=0;const s=n?I:m;const o=n?t:-t-BigInt(1);if(o<BigInt("18446744073709551616")){ensure(9);encodeBigHeader(s,o)}else{const t=o.toString(2);const s=Math.ceil(t.length/8);const i=new Uint8Array(s);let A=o;for(let t=s-1;t>=0;--t){i[t]=Number(A&BigInt(255));A>>=BigInt(8)}ensure(s+16);ie[Ae++]=n?194:195;encodeHeader(B,s);ie.set(i,Ae);Ae+=s}}function writeBytes(t){ensure(t.length+9);encodeHeader(B,t.length);ie.set(t,Ae);Ae+=t.length}function writeTag(t,n){ensure(9);if(typeof t==="bigint"){encodeBigHeader(S,t)}else{encodeHeader(S,t)}writeUntypedValue(n)}function writeNumericValue(t){let n=t.string;let s=BigInt(0);const o=n.search(/[eE]/);if(o!==-1){s=BigInt(n.slice(o+1));n=n.slice(0,o)}const i=n.indexOf(".");const A=i===-1?0:n.length-i-1;const c=s-BigInt(A);const l=BigInt(n.replace(".",""));ensure(9);ie[Ae++]=196;encodeHeader(y,2);ensure(9);if(c>=-0x20000000000000n&&c<=0x1fffffffffffffn){writeInteger(Number(c))}else{writeBigInt(c)}writeBigInt(l)}function writeTimestamp(t){ensure(18);encodeHeader(S,1);const n=t.getTime()/1e3;if(Number.isInteger(n)){writeInteger(n)}else{writeFloat64(n)}}class CborShapeDeserializer2 extends f{read(t,n){fe=n;Ee=ge&&n instanceof Buffer;pe=new DataView(n.buffer,n.byteOffset,n.byteLength);Ce=0;Ie=n.length;ye=ye+1&65535;return readValue(p.of(t))}readValue(t,n){return transformObject(p.of(t),n)}}const ge=typeof Buffer!=="undefined";const he=new TextDecoder;let fe=new Uint8Array(0);let Ee=false;let pe=new DataView(new ArrayBuffer(0));let Ce=0;let Ie=0;const me=2048;const Be=new Array(me);const Qe=new Uint16Array(me);let ye=0;function readValue(t){if(Ce>=Ie){throw new Error("unexpected end of CBOR payload.")}const n=(fe[Ce]&224)>>5;const s=fe[Ce]&31;if(s===U&&n>=2&&n<=5){return readIndefinite(t,n)}switch(n){case I:return readUnsignedInt();case m:return readNegativeInt();case B:return readByteString();case Q:return readUtf8String();case y:return readList(t);case w:return readMap(t);case S:return readTag();case R:return readSpecial();default:throw new Error(`unexpected CBOR major type ${n}.`)}}function readList(t){const n=decodeCount();const s=t.isListSchema()?t.getValueSchema():t;const o=Array(n);for(let t=0;t<n;++t){o[t]=readValue(s)}return o}function readMap(t){const n=decodeCount();if(t.isStructSchema()){const s=Ce;return readStruct(t,n,s)}const s=t.isMapSchema()?t.getValueSchema():t;const o={};for(let t=0;t<n;++t){const t=readUtf8String();o[t]=readValue(s)}return o}function readStruct(t,n,s){const o=t.isUnionSchema();const i=loadCborStructIterator(t);const{memberSchemas:A,encodedKeys:c,memberNames:l}=i;const u=c.length;const g={};let h;let f;let E=0;let C=false;let I=0;for(let t=0;t<n;++t){const t=matchStructKey(c,u,I);if(t>=0){I=t+1;if(I>=u){I=0}const n=readValue(A[t]);if(n!=null){g[l[t]]=n}}else{const t=readUtf8String();const n=readValue(p.of(15));if(t==="__type"&&typeof n==="string"){C=true}else{h=t;f=n;++E}}}if(o){let t=true;for(const n in g){if(!d(g,n)){continue}t=false;break}if(t&&E===1){g.$unknown=[h,f]}}else if(C){Ce=s;const t=p.of(15);for(let s=0;s<n;++s){const n=readUtf8String();const s=readValue(t);if(!(n in g)){g[n]=s}}}return g}function readTag(t){const n=decodeArgument();const s=typeof n==="bigint"?Number(n):n;if(s===1){const t=p.of(15);const n=readValue(t);return u(n)}if(s===2||s===3){const t=readByteString();let n=BigInt(0);for(let s=0;s<t.length;++s){n=n<<BigInt(8)|BigInt(t[s])}return s===3?-n-BigInt(1):n}if(s===4){const t=p.of(15);const n=readValue(t);const[s,i]=n;const A=i<0?-1:1;const c=BigInt(A)*BigInt(i);const l=String(c);const u=i<0?"-":"";let d;const g=typeof s==="number"&&Math.abs(s)<=2**28;if(g){const t=s;const n="0".repeat(Math.abs(t)+1)+l;d=t===0?n:n.slice(0,n.length+t)+"."+n.slice(t);d=d.replace(/^0+/g,"");if(d===""){d="0"}if(d[0]==="."){d="0"+d}d=u+d}else{const t=BigInt(s);if(l.length===1){d=u+l+"e"+String(t)}else{const n=t+BigInt(l.length-1);d=u+l[0]+"."+l.slice(1)+"e"+String(n)}}return o(d)}const i=p.of(15);const A=readValue(i);return{tag:castBigInt(n),value:A}}function readIndefinite(t,n){switch(n){case Q:return readUtf8StringIndefinite();case B:return readByteStringIndefinite();case y:return readListIndefinite(t);case w:return readMapIndefinite(t);default:throw new Error(`unexpected indefinite length for major ${n}.`)}}function readUtf8StringIndefinite(){Ce+=1;const t=[];let n=0;while(Ce<Ie){if(fe[Ce]===255){Ce+=1;const s=new Uint8Array(n);let o=0;for(let n=0;n<t.length;++n){s.set(t[n],o);o+=t[n].length}if(ge){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString("utf-8")}return he.decode(s)}const s=readByteString();t.push(s);n+=s.length}throw new Error("expected break marker.")}function readByteStringIndefinite(){Ce+=1;const t=[];let n=0;while(Ce<Ie){if(fe[Ce]===255){Ce+=1;const s=new Uint8Array(n);let o=0;for(let n=0;n<t.length;++n){s.set(t[n],o);o+=t[n].length}return s}const s=readByteString();t.push(s);n+=s.length}throw new Error("expected break marker.")}function readListIndefinite(t){Ce+=1;const n=t.isListSchema()?t.getValueSchema():t;const s=[];while(Ce<Ie){if(fe[Ce]===255){Ce+=1;return s}s.push(readValue(n))}throw new Error("expected break marker.")}function readMapIndefinite(t){Ce+=1;if(t.isStructSchema()){const n=loadCborStructIterator(t);const{memberSchemas:s,encodedKeys:o,memberNames:i}=n;const A=o.length;const c=t.isUnionSchema();const l={};let u;let g;let h=0;let f=0;while(Ce<Ie){if(fe[Ce]===255){Ce+=1;if(c){let t=true;for(const n in l){if(!d(l,n)){continue}t=false;break}if(t&&h===1){l.$unknown=[u,g]}}return l}const t=matchStructKey(o,A,f);if(t>=0){f=t+1;if(f>=A){f=0}const n=readValue(s[t]);if(n!=null){l[i[t]]=n}}else{const t=readUtf8String();const n=readValue(p.of(15));if(t!=="__type"){u=t;g=n;++h}}}throw new Error("expected break marker.")}const n=t.isMapSchema()?t.getValueSchema():t;const s={};while(Ce<Ie){if(fe[Ce]===255){Ce+=1;return s}const t=readUtf8String();s[t]=readValue(n)}throw new Error("expected break marker.")}function matchStructKey(t,n,s){const o=t[s];if(Ce+o.length<=Ie&&bytesMatch(Ce,o)){Ce+=o.length;return s}for(let o=0;o<n;++o){if(o===s){continue}const n=t[o];if(Ce+n.length<=Ie&&bytesMatch(Ce,n)){Ce+=n.length;return o}}return-1}function bytesMatch(t,n){const s=n.length;if(fe[t]!==n[0]){return false}for(let o=1;o<s;++o){if(fe[t+o]!==n[o]){return false}}return true}function decodeArgument(){const t=fe[Ce]&31;if(t<24){Ce+=1;return t}switch(t){case N:if(Ie-Ce<2){overflow(1)}Ce+=2;return fe[Ce-1];case F:if(Ie-Ce<3){overflow(2)}Ce+=3;return pe.getUint16(Ce-2);case x:if(Ie-Ce<5){overflow(4)}Ce+=5;return pe.getUint32(Ce-4);case M:{if(Ie-Ce<9){overflow(8)}Ce+=9;const t=pe.getUint32(Ce-8);if(t<2097152){return t*4294967296+pe.getUint32(Ce-4)}return pe.getBigUint64(Ce-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function decodeCount(){const t=decodeArgument();return typeof t==="bigint"?Number(t):t}function readUnsignedInt(){const t=decodeArgument();return castBigInt(t)}function readNegativeInt(){const t=decodeArgument();if(typeof t==="bigint"){return BigInt(-1)-t}return-1-t}function readByteString(){const t=decodeCount();if(Ie-Ce<t){overflow(t)}const n=Ce;Ce+=t;return fe.subarray(n,n+t)}function readUtf8String(){const t=decodeCount();if(Ie-Ce<t){overflow(t)}const n=Ce;Ce+=t;if(t<24){return decodeUtf8Cached(n,t)}if(Ee){return fe.toString("utf-8",n,n+t)}return he.decode(fe.subarray(n,n+t))}function decodeUtf8Cached(t,n){let s=n;for(let o=0;o<n;++o){s=s*31+fe[t+o]|0}const o=s>>>0&me-1;const i=Be[o];if(i!==undefined&&i.length===n){let s=true;for(let o=0;o<n;++o){if(i.charCodeAt(o)!==fe[t+o]){s=false;break}}if(s){Qe[o]=ye;return i}}const A=Ee?fe.toString("utf-8",t,t+n):he.decode(fe.subarray(t,t+n));if(Qe[o]!==ye){Be[o]=A;Qe[o]=ye}return A}function readSpecial(){const t=Ce;const n=fe[t]&31;switch(n){case k:Ce=t+1;return true;case D:Ce=t+1;return false;case v:Ce=t+1;return null;case T:Ce=t+1;return null;case F:{if(Ie-t<3){overflow(2)}Ce=t+3;return bytesToFloat16(fe[t+1],fe[t+2])}case x:{if(Ie-t<5){overflow(4)}Ce=t+5;return pe.getFloat32(t+1)}case M:{if(Ie-t<9){overflow(8)}Ce=t+9;return pe.getFloat64(t+1)}default:throw new Error(`unexpected minor value ${n} for major 7.`)}}function bytesToFloat16(t,n){const s=t>>7;const o=(t&124)>>2;const i=(t&3)<<8|n;const A=s===0?1:-1;if(o===0){if(i===0){return 0}return A*(Math.pow(2,1-15)*(i/1024))}else if(o===31){if(i===0){return A*Infinity}return NaN}return A*(Math.pow(2,o-15)*(1+i/1024))}function castBigInt(t){if(typeof t==="number"){return t}const n=Number(t);if(Number.MIN_SAFE_INTEGER<=n&&n<=Number.MAX_SAFE_INTEGER){return n}return t}function overflow(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function transformObject(t,n){if(t.isTimestampSchema()){if(typeof n==="number"){return u(n)}if(typeof n==="object"&&n!==null){if(n.tag===1&&"value"in n){return u(n.value)}}}if(t.isBlobSchema()){return n}if(typeof n==="undefined"||typeof n==="boolean"||typeof n==="number"||typeof n==="string"||typeof n==="bigint"||typeof n==="symbol"){return n}if(typeof n!=="object"||n===null){return n}if("byteLength"in n){return n}if(n instanceof Date){return n}if(n instanceof i){return n}if(t.isDocumentSchema()){return n}if(t.isListSchema()){const s=t.getValueSchema();const o=[];for(const t of n){o.push(transformObject(s,t))}return o}const s={};if(t.isMapSchema()){const o=t.getValueSchema();for(const t in n){if(!d(n,t)){continue}s[t]=transformObject(o,n[t])}}else if(t.isStructSchema()){const o=t.isUnionSchema();let i;if(o){i=new Set;for(const t in n){if(!d(n,t)){continue}if(t!=="__type"){i.add(t)}}}for(const[A,c]of t.structIterator()){if(o){i.delete(A)}if(n[A]!=null){s[A]=transformObject(c,n[A])}}if(o&&i?.size===1){let t=true;for(const n in s){if(!d(s,n)){continue}t=false;break}if(t){const t=i.values().next().value;s.$unknown=[t,n[t]]}}else if(typeof n.__type==="string"){for(const t in n){if(!d(n,t)){continue}if(!(t in s)){s[t]=n[t]}}}}return s}class CborCodec extends f{createSerializer(){const t=new CborShapeSerializer2;t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new CborShapeDeserializer2;t.setSerdeContext(this.serdeContext);return t}}class SmithyRpcV2CborProtocol extends E{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-cbor"}applyEmptyBody(t){if(!t.body){this.serializer.write(15,{});t.body=this.serializer.flush()}if(t.body instanceof Uint8Array){t.headers["content-length"]=String(t.body.byteLength)}}async handleError(t,n,s,o,i){const A=loadSmithyRpcV2CborErrorCode(s,o)??"Unknown";const c=["*"];const{defaultNamespace:l}=this.options;c.unshift(l);const[u,d]=(()=>{if(A.includes("#")){return A.split("#")}return[undefined,A]})();if(u){c.unshift(u)}const g={$metadata:i,$fault:s.statusCode<500?"client":"server"};const h=[this.compositeErrorRegistry];if(u){h.push(C.for(u))}h.push(C.for(l));const[f,E,I]=this.resolveError(d,c,h);if(I==="native"||I==="synthetic"){if(o.Message){o.message=o.Message}const t=I==="synthetic"?new E({name:d}):new Error(d);throw Object.assign(t,g,o)}const m=p.of(f);const B=o.message??o.Message??"Unknown";const Q=new E({});const y={};for(const[t,n]of m.structIterator()){y[t]=this.deserializer.readValue(n,o[t])}throw Object.assign(Q,g,{$fault:m.getMergedTraits().error,message:B},y)}getDefaultContentType(){return"application/cbor"}}class CborShapeSerializer extends f{value;write(t,n){this.value=this.serialize(t,n)}serialize(t,n){const s=p.of(t);if(n==null){if(s.isIdempotencyToken()){return c()}return n}if(s.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??l)(n)}return n}if(s.isTimestampSchema()){if(typeof n==="number"||typeof n==="bigint"){return dateToTag(new Date(Number(n)/1e3|0))}return dateToTag(n)}if(typeof n==="function"||typeof n==="object"){const t=n;if(s.isListSchema()&&Array.isArray(t)){const n=!!s.getMergedTraits().sparse;const o=[];let i=0;for(const A of t){const t=this.serialize(s.getValueSchema(),A);if(t!=null||n){o[i++]=t}}return o}if(t instanceof Date){return dateToTag(t)}const o={};if(s.isMapSchema()){const n=!!s.getMergedTraits().sparse;for(const i in t){if(!d(t,i)){continue}const A=this.serialize(s.getValueSchema(),t[i]);if(A!=null||n){o[i]=A}}}else if(s.isStructSchema()){for(const[n,i]of s.structIterator()){const s=this.serialize(i,t[n]);if(s!=null){o[n]=s}}const n=s.isUnionSchema();if(n&&Array.isArray(t.$unknown)){const[n,s]=t.$unknown;o[n]=s}else if(typeof t.__type==="string"){for(const n in t){if(!d(t,n)){continue}if(!(n in o)){o[n]=this.serialize(15,t[n])}}}}else if(s.isDocumentSchema()){if(Array.isArray(t)){const n=[];let o=0;for(const i of t){n[o++]=this.serialize(s.getValueSchema(),i)}return n}for(const n in t){if(!d(t,n)){continue}o[n]=this.serialize(s.getValueSchema(),t[n])}}else if(s.isBigDecimalSchema()){return t}return o}return n}flush(){const t=te.serialize(this.value);this.value=undefined;return t}}class CborShapeDeserializer extends f{read(t,n){const s=te.deserialize(n);return this.readValue(t,s)}readValue(t,n){const s=p.of(t);if(s.isTimestampSchema()){if(typeof n==="number"){return u(n)}if(typeof n==="object"){if(n.tag===1&&"value"in n){return u(n.value)}}}if(s.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??l)(n)}return n}if(typeof n==="undefined"||typeof n==="boolean"||typeof n==="number"||typeof n==="string"||typeof n==="bigint"||typeof n==="symbol"){return n}else if(typeof n==="object"){if(n===null){return null}if("byteLength"in n){return n}if(n instanceof Date){return n}if(s.isDocumentSchema()){return n}if(s.isListSchema()){const t=[];const o=s.getValueSchema();for(const s of n){const n=this.readValue(o,s);t.push(n)}return t}const t={};if(s.isMapSchema()){const o=s.getValueSchema();for(const s in n){if(!d(n,s)){continue}const i=this.readValue(o,n[s]);t[s]=i}}else if(s.isStructSchema()){const o=s.isUnionSchema();let i;if(o){i=new Set;for(const t in n){if(!d(n,t)){continue}if(t!=="__type"){i.add(t)}}}for(const[A,c]of s.structIterator()){if(o){i.delete(A)}if(n[A]!=null){t[A]=this.readValue(c,n[A])}}if(o&&i?.size===1){let s=true;for(const n in t){if(!d(t,n)){continue}s=false;break}if(s){const s=i.values().next().value;t.$unknown=[s,n[s]]}}else if(typeof n.__type==="string"){for(const s in n){if(!d(n,s)){continue}if(!(s in t)){t[s]=n[s]}}}}else if(n instanceof i){return n}return t}else{return n}}}n.CborCodec=CborCodec;n.CborShapeDeserializer=CborShapeDeserializer;n.CborShapeDeserializer2=CborShapeDeserializer2;n.CborShapeSerializer=CborShapeSerializer;n.CborShapeSerializer2=CborShapeSerializer2;n.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;n.buildHttpRpcRequest=buildHttpRpcRequest;n.cbor=te;n.checkCborResponse=checkCborResponse;n.dateToTag=dateToTag;n.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;n.parseCborBody=parseCborBody;n.parseCborErrorBody=parseCborErrorBody;n.tag=tag;n.tagSymbol=L},9542:(t,n,s)=>{const{createReadStream:o}=s(3024);const{Writable:i}=s(7075);const{toUint8Array:A,concatBytes:c}=s(2430);const{createHash:l,createHmac:u}=s(7598);const d=s(8522);async function blobReader(t,n,s=1024*1024){const o=t.size;let i=0;while(i<o){const A=t.slice(i,Math.min(o,i+s));n(new Uint8Array(await A.arrayBuffer()));i+=A.size}}const g=async function blobHasher(t,n){const s=new t;await blobReader(n,t=>{s.update(t)});return s.digest()};class HashCalculator extends i{hash;constructor(t,n){super(n);this.hash=t}_write(t,n,s){try{this.hash.update(A(t))}catch(t){return s(t)}s()}}const fileStreamHasher=(t,n)=>new Promise((s,i)=>{if(!isReadStream(n)){i(new Error("Unable to calculate hash for non-file streams."));return}const A=o(n.path,{start:n.start,end:n.end});const c=new t;const l=new HashCalculator(c);A.pipe(l);A.on("error",t=>{l.end();i(t)});l.on("error",i);l.on("finish",function(){c.digest().then(s).catch(i)})});const isReadStream=t=>typeof t.path==="string";const readableStreamHasher=(t,n)=>{if(n.readableFlowing!==null){throw new Error("Unable to calculate hash for flowing readable stream")}const s=new t;const o=new HashCalculator(s);n.pipe(o);return new Promise((t,i)=>{n.on("error",t=>{o.end();i(t)});o.on("error",i);o.on("finish",()=>{s.digest().then(t).catch(i)})})};class Md5Js{digestLength=16;state=Uint32Array.from(h);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){const n=A(t);let s=0;let o=n.byteLength;this.bytesHashed+=o;while(o>0){this.writeBuffer.setUint8(this.bufferLength++,n[s++]);--o;if(this.bufferLength===64){compress(this.state,this.writeBuffer);this.bufferLength=0}}}async digest(){const t=Uint32Array.from(this.state);const n=new DataView(this.writeBuffer.buffer.slice(0));let s=this.bufferLength;const o=this.bytesHashed*8;n.setUint8(s++,128);if(this.bufferLength%64>=56){for(let t=s;t<64;++t){n.setUint8(t,0)}compress(t,n);s=0}for(let t=s;t<56;++t){n.setUint8(t,0)}n.setUint32(56,o>>>0,true);n.setUint32(60,Math.floor(o/2**32),true);compress(t,n);const i=new Uint8Array(16);const A=new DataView(i.buffer);for(let n=0;n<4;++n){A.setUint32(n*4,t[n],true)}return i}reset(){this.state.set(h);this.writeBuffer=new DataView(new ArrayBuffer(64));this.bufferLength=0;this.bytesHashed=0}}const h=[1732584193,4023233417,2562383102,271733878];const f=4294967295;const E=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21);const p=Array.from({length:64},(t,n)=>Math.abs(Math.sin(n+1))*2**32>>>0);function compress(t,n){let s=t[0],o=t[1],i=t[2],A=t[3];for(let t=0;t<64;++t){let c,l;if(t<16){c=o&i|~o&A;l=t}else if(t<32){c=A&o|i&~A;l=(5*t+1)%16}else if(t<48){c=o^i^A;l=(3*t+5)%16}else{c=i^(o|~A);l=7*t%16}const u=n.getUint32(l*4,true);const d=A;A=i;i=o;const g=E[(t>>4)*4+(t&3)];const h=(s+c&f)+(u+p[t]&f)&f;o=o+((h<<g|h>>>32-g)>>>0)&f;s=d}t[0]=t[0]+s&f;t[1]=t[1]+o&f;t[2]=t[2]+i&f;t[3]=t[3]+A&f}const C=(()=>{try{l("md5");return true}catch{return false}})();const I=C?buildNativeClass$2():Md5Js;function buildNativeClass$2(){return class Md5Node{digestLength=16;hash=l("md5");update(t){this.hash.update(A(t))}async digest(){const t=this.hash.copy().digest();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=l("md5")}}}const m=new Uint32Array(256);for(let t=0;t<256;++t){let n=t;for(let t=0;t<8;++t){n=n&1?3988292384^n>>>1:n>>>1}m[t]=n>>>0}const B=4294967295;class Crc32Js{digestLength=4;checksum=B;update(t){for(let n=0;n<t.length;++n){this.checksum=this.checksum>>>8^m[(this.checksum^t[n])&255]}}digestSync(){return(this.checksum^B)>>>0}async digest(){const t=this.digestSync();const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t,false);return n}reset(){this.checksum=B}}const Q=typeof d.crc32==="function"?d.crc32:undefined;const y=Q?buildNativeClass$1(Q):Crc32Js;function buildNativeClass$1(t){return class Crc32Node{digestLength=4;value=0;update(n){this.value=t(n,this.value)}digestSync(){return this.value>>>0}async digest(){const t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,this.digestSync(),false);return t}reset(){this.value=0}}}const w=64;const S=32;const R=2**53-1;class Sha256Js{digestLength=S;state=Int32Array.from(D);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=false;inner;outer;constructor(t){if(t){const n=Sha256Js.normalizeKey(t);this.inner=new Sha256Js;this.outer=new Sha256Js;const{inner:s,outer:o}=this;const i=new Uint8Array(w*2);for(let t=0;t<w;++t){i[t]=54^n[t];i[t+w]=92^n[t]}s.update(i.subarray(0,w));o.update(i.subarray(w))}}update(t){if(this.finished){throw new Error("Attempted to update an already finished HMAC.")}if(this.inner){this.inner.update(t);return}const n=A(t);let s=0;let{byteLength:o}=n;this.bytesHashed+=o;if(this.bytesHashed*8>R){throw new Error("Cannot hash more than 2^53 - 1 bits")}while(o>0){this.buffer[this.bufferLength++]=n[s++];o--;if(this.bufferLength===w){this.hashBuffer();this.bufferLength=0}}}async digest(){const{inner:t,outer:n}=this;if(t&&n){if(this.finished){throw new Error("Attempted to digest an already finished HMAC.")}this.finished=true;const s=t.digestSync();n.update(s);return n.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(D);this.buffer=new Uint8Array(64);this.bufferLength=0;this.bytesHashed=0}digestSync(){const t=this.state.slice();const n=this.buffer.slice();let s=this.bufferLength;const o=this.bytesHashed*8;const i=new DataView(n.buffer,n.byteOffset,n.byteLength);i.setUint8(s++,128);if((s-1)%w>=w-8){for(let t=s;t<w;++t){i.setUint8(t,0)}this.hashBufferWith(t,n);s=0}for(let t=s;t<w-8;++t){i.setUint8(t,0)}i.setUint32(w-8,Math.floor(o/4294967296),false);i.setUint32(w-4,o,false);this.hashBufferWith(t,n);const A=new Uint8Array(S);for(let n=0;n<8;++n){A[n*4]=t[n]>>>24&255;A[n*4+1]=t[n]>>>16&255;A[n*4+2]=t[n]>>>8&255;A[n*4+3]=t[n]>>>0&255}return A}static normalizeKey(t){const n=A(t);if(n.byteLength>w){const t=new Sha256Js;t.update(n);const s=t.digestSync();const o=new Uint8Array(w);o.set(s);return o}if(n.byteLength<w){const t=new Uint8Array(w);t.set(n);return t}return n}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(t,n){const s=this.w??=new Int32Array(64);let o=t[0],i=t[1],A=t[2],c=t[3],l=t[4],u=t[5],d=t[6],g=t[7];for(let t=0;t<w;++t){if(t<16){s[t]=(n[t*4]&255)<<24|(n[t*4+1]&255)<<16|(n[t*4+2]&255)<<8|n[t*4+3]&255}else{let n=s[t-2];const o=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10;n=s[t-15];const i=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3;s[t]=(o+s[t-7]|0)+(i+s[t-16]|0)}const h=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(g+(k[t]+s[t]|0)|0)|0;const f=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&i^o&A^i&A)|0;g=d;d=u;u=l;l=c+h|0;c=A;A=i;i=o;o=h+f|0}t[0]+=o;t[1]+=i;t[2]+=A;t[3]+=c;t[4]+=l;t[5]+=u;t[6]+=d;t[7]+=g}}const D=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);const k=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);const v=(()=>{try{l("sha256");return true}catch{return false}})();const T=v?buildNativeClass():Sha256Js;function buildNativeClass(){return class Sha256Node{digestLength=32;secret;hash;isHmac;finished=false;constructor(t){this.secret=t;this.isHmac=!!t;this.hash=this.createHash()}update(t){if(this.finished){throw new Error("Attempted to update an already finished hash.")}this.hash.update(t)}async digest(){let t;if(this.isHmac){this.finished=true;t=this.hash.digest()}else{t=this.hash.copy().digest()}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=this.createHash();this.finished=false}createHash(){return this.secret?u("sha256",toBuffer(this.secret)):l("sha256")}}}function toBuffer(t){if(typeof t==="string"){return t}if(ArrayBuffer.isView(t)){return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}return Buffer.from(t)}const{digest:N,sign:F,importKey:x}=globalThis?.crypto?.subtle??{};const M=typeof N==="function"&&typeof F==="function"&&typeof x==="function"?globalThis.crypto.subtle:undefined;const U=8*1024*1024;class Sha256WebCrypto{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=false;constructor(t){if(t){this.secret=A(t)}}update(t){if(this.finished){throw new Error("Attempted to update an already finished HMAC.")}if(this.fallback){this.fallback.update(t);return}this.pending.push(t.slice());this.pendingBytes+=t.byteLength;if(this.pendingBytes>=U){this.switchToFallback()}}async digest(){if(this.fallback){return this.fallback.digest()}if(this.secret&&this.finished){throw new Error("Attempted to digest an already finished HMAC.")}const t=c(this.pending);if(M){if(this.secret){this.finished=true;const n=await M.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},false,["sign"]);const s=await M.sign("HMAC",n,t);return new Uint8Array(s)}const n=await M.digest("SHA-256",t);return new Uint8Array(n)}const n=new Sha256Js(this.secret);n.update(t);return n.digest()}reset(){this.pending=[];this.pendingBytes=0;this.fallback=undefined;this.finished=false}switchToFallback(){const t=new Sha256Js(this.secret);for(const n of this.pending){t.update(n)}this.fallback=t;this.pending=[];this.pendingBytes=0}}n.Crc32=y;n.Crc32Js=Crc32Js;n.Crc32Node=y;n.Md5=I;n.Md5Js=Md5Js;n.Md5Node=I;n.Sha256=T;n.Sha256Js=Sha256Js;n.Sha256Node=T;n.Sha256WebCrypto=Sha256WebCrypto;n.blobHasher=g;n.blobReader=blobReader;n.fileStreamHasher=fileStreamHasher;n.readableStreamHasher=readableStreamHasher},2658:(t,n,s)=>{const{hasOwn:o}=s(4534);const{getSmithyContext:i,normalizeProvider:A}=s(4534);n.getSmithyContext=i;n.normalizeProvider=A;const{SMITHY_CONTEXT_KEY:c,AlgorithmId:l}=s(690);n.AlgorithmId=l;const{NormalizedSchema:u}=s(6890);const getAllAliases=(t,n)=>{const s=[];if(t){s.push(t)}if(n){for(const t of n){s.push(t)}}return s};const getMiddlewareNameWithAliases=(t,n)=>`${t||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`;const constructStack=()=>{let t=[];let n=[];let s=false;const o=new Set;const sort=t=>t.sort((t,n)=>d[n.step]-d[t.step]||g[n.priority||"normal"]-g[t.priority||"normal"]);const removeByName=s=>{let i=false;const filterCb=t=>{const n=getAllAliases(t.name,t.aliases);if(n.includes(s)){i=true;for(const t of n){o.delete(t)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return i};const removeByReference=s=>{let i=false;const filterCb=t=>{if(t.middleware===s){i=true;for(const n of getAllAliases(t.name,t.aliases)){o.delete(n)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return i};const cloneTo=s=>{t.forEach(t=>{s.add(t.middleware,{...t})});n.forEach(t=>{s.addRelativeTo(t.middleware,{...t})});s.identifyOnResolve?.(i.identifyOnResolve());return s};const expandRelativeMiddlewareList=t=>{const n=[];t.before.forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});n.push(t);t.after.reverse().forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});return n};const getMiddlewareList=(s=false)=>{const o=[];const i=[];const A={};t.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){A[t]=n}o.push(n)});n.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){A[t]=n}i.push(n)});i.forEach(t=>{if(t.toMiddleware){const n=A[t.toMiddleware];if(n===undefined){if(s){return}throw new Error(`${t.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(t.name,t.aliases)} `+`middleware ${t.relation} ${t.toMiddleware}`)}if(t.relation==="after"){n.after.push(t)}if(t.relation==="before"){n.before.push(t)}}});const c=sort(o).map(expandRelativeMiddlewareList).reduce((t,n)=>{t.push(...n);return t},[]);return c};const i={add:(n,s={})=>{const{name:i,override:A,aliases:c}=s;const l={step:"initialize",priority:"normal",middleware:n,...s};const u=getAllAliases(i,c);if(u.length>0){if(u.some(t=>o.has(t))){if(!A){throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(i,c)}'`)}for(const n of u){const s=t.findIndex(t=>t.name===n||t.aliases?.some(t=>t===n));if(s===-1){continue}const o=t[s];if(o.step!==l.step||l.priority!==o.priority){throw new Error(`"${getMiddlewareNameWithAliases(o.name,o.aliases)}" middleware with `+`${o.priority} priority in ${o.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(i,c)}" middleware with `+`${l.priority} priority in ${l.step} step.`)}t.splice(s,1)}}for(const t of u){o.add(t)}}t.push(l)},addRelativeTo:(t,s)=>{const{name:i,override:A,aliases:c}=s;const l={middleware:t,...s};const u=getAllAliases(i,c);if(u.length>0){if(u.some(t=>o.has(t))){if(!A){throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(i,c)}'`)}for(const t of u){const s=n.findIndex(n=>n.name===t||n.aliases?.some(n=>n===t));if(s===-1){continue}const o=n[s];if(o.toMiddleware!==l.toMiddleware||o.relation!==l.relation){throw new Error(`"${getMiddlewareNameWithAliases(o.name,o.aliases)}" middleware `+`${o.relation} "${o.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(i,c)}" middleware ${l.relation} `+`"${l.toMiddleware}" middleware.`)}n.splice(s,1)}}for(const t of u){o.add(t)}}n.push(l)},clone:()=>cloneTo(constructStack()),use:t=>{t.applyToStack(i)},remove:t=>{if(typeof t==="string"){return removeByName(t)}else{return removeByReference(t)}},removeByTag:s=>{let i=false;const filterCb=t=>{const{tags:n,name:A,aliases:c}=t;if(n&&n.includes(s)){const t=getAllAliases(A,c);for(const n of t){o.delete(n)}i=true;return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return i},concat:t=>{const n=cloneTo(constructStack());n.use(t);n.identifyOnResolve(s||n.identifyOnResolve()||(t.identifyOnResolve?.()??false));return n},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map(t=>{const n=t.step??t.relation+" "+t.toMiddleware;return getMiddlewareNameWithAliases(t.name,t.aliases)+" - "+n}),identifyOnResolve(t){if(typeof t==="boolean"){s=t}return s},resolve:(t,n)=>{for(const s of getMiddlewareList().map(t=>t.middleware).reverse()){t=s(t,n)}if(s){console.log(i.identify())}return t}};return i};const d={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const g={high:3,normal:2,low:1};const invalidFunction=t=>()=>{throw new Error(t)};const invalidProvider=t=>()=>Promise.reject(t);const getCircularReplacer=()=>{const t=new WeakSet;return(n,s)=>{if(typeof s==="object"&&s!==null){if(t.has(s)){return"[Circular]"}t.add(s)}return s}};const sleep=t=>new Promise(n=>setTimeout(n,t*1e3));const h={minDelay:2,maxDelay:120};var f;(function(t){t["ABORTED"]="ABORTED";t["FAILURE"]="FAILURE";t["SUCCESS"]="SUCCESS";t["RETRY"]="RETRY";t["TIMEOUT"]="TIMEOUT"})(f||(f={}));const checkExceptions=t=>{if(t.state===f.ABORTED){const n=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},getCircularReplacer())}`);n.name="AbortError";throw n}else if(t.state===f.TIMEOUT){const n=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},getCircularReplacer())}`);n.name="TimeoutError";throw n}else if(t.state!==f.SUCCESS){throw new Error(`${JSON.stringify(t,getCircularReplacer())}`)}return t};const runPolling=async({minDelay:t,maxDelay:n,maxWaitTime:s,abortController:o,client:i,abortSignal:A},c,l)=>{const u={};const[d,g]=[t*1e3,n*1e3];let h=0;const E=Date.now()+s*1e3;const p=Date.now()+6e4;let C=false;while(true){if(h>0){const t=exponentialBackoffWithJitter(d,g,h,E);if(o?.signal?.aborted||A?.aborted){const t="AbortController signal aborted.";u[t]|=0;u[t]+=1;return{state:f.ABORTED,observedResponses:u}}if(Date.now()+t>E){return{state:f.TIMEOUT,observedResponses:u}}await sleep(t/1e3)}const{state:t,reason:n}=await l(i,c);if(n){const t=createMessageFromResponse(n);u[t]|=0;u[t]+=1}if(t!==f.RETRY){return{state:t,reason:n,final:n,observedResponses:u}}h+=1;if(!C&&Date.now()>=p){checkWarn403(u,i);C=true}}};const checkWarn403=(t={},n)=>{const s=Object.keys(t);let o=0;for(const n of s){const s=t[n]|0;if(n.startsWith("403:")){o+=s}}const i=n?.config?.logger;const A=typeof i?.warn==="function"&&!i.constructor?.name?.includes?.("NoOpLogger")?i:console;if(o>=3||s[s.length-1]?.startsWith("403:")){A.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)}};const createMessageFromResponse=t=>{const n=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;if(t?.$responseBodyText){return`${n?n+": ":""}Deserialization error for body: ${t.$responseBodyText}`}if(n){if(t?.$response||t?.message){return`${n??"Unknown"}: ${t?.message}`}return`${n}: OK`}return String(t?.message??JSON.stringify(t,getCircularReplacer())??"Unknown")};const exponentialBackoffWithJitter=(t,n,s,o)=>{const i=Math.log(n/t)/Math.log(2)+1;if(s>i){return n}const A=t*2**(s-1);const c=Math.min(A,n);const l=randomInRange(t,c);if(Date.now()+l>o){const t=o-Date.now();return Math.max(0,t-500)}return l};const randomInRange=(t,n)=>t+Math.random()*(n-t);const validateWaiterOptions=t=>{if(t.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(t.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(t.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(t.maxWaitTime<=t.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}else if(t.maxDelay<t.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}};const abortTimeout=t=>{let n;const s=new Promise(s=>{n=()=>s({state:f.ABORTED});if(typeof t.addEventListener==="function"){t.addEventListener("abort",n)}else{t.onabort=n}});return{clearListener(){if(typeof t.removeEventListener==="function"){t.removeEventListener("abort",n)}},aborted:s}};const createWaiter=async(t,n,s)=>{const o={...h,...t};validateWaiterOptions(o);const i=[runPolling(o,n,s)];const A=[];if(t.abortSignal){const{aborted:n,clearListener:s}=abortTimeout(t.abortSignal);A.push(s);i.push(n)}if(t.abortController?.signal){const{aborted:n,clearListener:s}=abortTimeout(t.abortController.signal);A.push(s);i.push(n)}return Promise.race(i).then(t=>{for(const t of A){t()}return t})};class Client{config;middlewareStack=constructStack();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:s}=t;if(s){if(typeof n==="function"){t.protocol=new n(s)}}}send(t,n,s){const o=typeof n!=="function"?n:undefined;const i=typeof n==="function"?n:s;const A=o===undefined&&this.config.cacheMiddleware===true;let c;if(A){if(!this.handlers){this.handlers=new WeakMap}const n=this.handlers;if(n.has(t.constructor)){c=n.get(t.constructor)}else{c=t.resolveMiddleware(this.middlewareStack,this.config,o);n.set(t.constructor,c)}}else{delete this.handlers;c=t.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){c(t).then(t=>i(null,t.output),t=>i(t)).catch(()=>{})}else{return c(t).then(t=>t.output)}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const E="***SensitiveInformation***";function schemaLogFilter(t,n){if(n==null){return n}const s=u.of(t);if(s.getMergedTraits().sensitive){return E}if(s.isListSchema()){const t=s.getValueSchema();if(t.getMergedTraits().sensitive){return E}if(Array.isArray(n)){return n.map(n=>schemaLogFilter(t,n))}}else if(s.isMapSchema()){const t=s.getValueSchema();if(s.getKeySchema().getMergedTraits().sensitive||t.getMergedTraits().sensitive){return E}if(typeof n==="object"){return Object.fromEntries(Object.entries(n).map(([n,s])=>[n,schemaLogFilter(t,s)]))}}else if(s.isStructSchema()&&typeof n==="object"){const t=n;const o={};for(const[n,i]of s.structIterator()){if(t[n]!=null){o[n]=schemaLogFilter(i,t[n])}}return o}return n}const p=Symbol.for("@smithy/op-event-stream");class Command{middlewareStack=constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(t,n,s,{middlewareFn:o,clientName:i,commandName:A,inputFilterSensitiveLog:l,outputFilterSensitiveLog:d,smithyContext:g,additionalContext:h,CommandCtor:f}){for(const i of o.bind(this)(f,t,n,s)){this.middlewareStack.use(i)}const E=t.concat(this.middlewareStack);const{logger:C}=n;const I=h[c];const m={logger:C,clientName:i,commandName:A,inputFilterSensitiveLog:l,outputFilterSensitiveLog:d,...h,[c]:{...I,commandInstance:this,...g,...s?.metricsRecorder===undefined?{}:{metricsRecorder:s.metricsRecorder}}};const{requestHandler:B}=n;let Q=s??{};if(Q.metricsRecorder){Q={...Q};delete Q.metricsRecorder}let y;const w=this.schema;const S=w?.[p];if(S!==undefined){y=S}else if(w){if(Array.isArray(w)&&w[0]===9){const[,,,,t,n]=w;y=w[p]=Boolean(u.of(t).getEventStreamMember()||u.of(n).getEventStreamMember())}}if(y){Q={isEventStream:y,...Q}}return E.resolve(t=>B.handle(t.request,Q),m)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){this._ep=t;return this}m(t){this._middlewareFn=t;return this}s(t,n,s={}){this._smithyContext={service:t,operation:n,...s};return this}c(t={}){this._additionalContext=t;return this}n(t,n){this._clientName=t;this._commandName=n;return this}f(t=t=>t,n=t=>t){this._inputFilterSensitiveLog=t;this._outputFilterSensitiveLog=n;return this}ser(t){this._serializer=t;return this}de(t){this._deserializer=t;return this}sc(t){this._operationSchema=t;this._smithyContext.operationSchema=t;return this}build(){const t=this;let n;return n=class extends Command{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[n]){super();this.input=n??{};t._init(this);this.schema=t._operationSchema}resolveMiddleware(s,o,i){const A=t._operationSchema;const c=A?.[4]??A?.input;const l=A?.[5]??A?.output;return this.resolveMiddlewareWithContext(s,o,i,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(A?schemaLogFilter.bind(null,c):t=>t),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(A?schemaLogFilter.bind(null,l):t=>t),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}const C="***SensitiveInformation***";const createAggregatedClient=(t,n,s)=>{for(const[s,o]of Object.entries(t)){const methodImpl=async function(t,n,s){const i=new o(t);if(typeof n==="function"){this.send(i,n)}else if(typeof s==="function"){if(typeof n!=="object"){throw new Error(`Expected http options but got ${typeof n}`)}this.send(i,n||{},s)}else{return this.send(i,n)}};const t=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");n.prototype[t]=methodImpl}const{paginators:o={},waiters:i={}}=s??{};for(const[t,s]of Object.entries(o)){if(n.prototype[t]===void 0){n.prototype[t]=function(t={},n,...o){return s({...n,client:this},t,...o)}}}for(const[t,s]of Object.entries(i)){if(n.prototype[t]===void 0){n.prototype[t]=async function(t={},n,...o){let i=n;if(typeof n==="number"){i={maxWaitTime:n}}return s({...i,client:this},t,...o)}}}};class ServiceException extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=t.name;this.$fault=t.$fault;this.$metadata=t.$metadata}static isInstance(t){if(!t){return false}const n=t;return ServiceException.prototype.isPrototypeOf(n)||Boolean(n.$fault)&&Boolean(n.$metadata)&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t){return false}const n=t;if(this===ServiceException){return ServiceException.isInstance(t)}if(ServiceException.isInstance(t)){if(this.prototype.isPrototypeOf(t)){return true}const s=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:undefined;let o=false;if(s){let t=Object.getPrototypeOf(n);while(t&&t!==Object.prototype){const n=t.constructor;const i=n!==ServiceException&&Object.prototype.hasOwnProperty.call(n,"shapeId")?n?.shapeId:undefined;if(i){o=true;if(i===s){return true}}t=Object.getPrototypeOf(t)}}if(s&&o){return false}const i=this.name;if(i&&i.length>=6){if(n.name===i){return true}let t=Object.getPrototypeOf(n);while(t&&t!==Object.prototype){const n=t.constructor?.name;if(n&&n!=="Error"&&n===i){return true}t=Object.getPrototypeOf(t)}}}return false}}const decorateServiceException=(t,n={})=>{Object.entries(n).filter(([,t])=>t!==undefined).forEach(([n,s])=>{if(t[n]==undefined||t[n]===""){t[n]=s}});const s=t.message||t.Message||"UnknownError";t.message=s;delete t.Message;return t};const throwDefaultError=({output:t,parsedBody:n,exceptionCtor:s,errorCode:o})=>{const i=deserializeMetadata(t);const A=i.httpStatusCode?i.httpStatusCode+"":undefined;const c=new s({name:n?.code||n?.Code||o||A||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(c,n)};const withBaseException=t=>({output:n,parsedBody:s,errorCode:o})=>{throwDefaultError({output:n,parsedBody:s,exceptionCtor:t,errorCode:o})};const deserializeMetadata=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let I=false;const emitWarningIfUnsupportedVersion=t=>{if(t&&!I&&parseInt(t.substring(1,t.indexOf(".")))<16){I=true}};const m=Object.values(l);const getChecksumConfiguration=t=>{const n=[];for(const s in l){if(!o(l,s)){continue}const i=l[s];if(t[i]===undefined){continue}n.push({algorithmId:()=>i,checksumConstructor:()=>t[i]})}for(const[s,o]of Object.entries(t.checksumAlgorithms??{})){n.push({algorithmId:()=>s,checksumConstructor:()=>o})}return{addChecksumAlgorithm(s){t.checksumAlgorithms=t.checksumAlgorithms??{};const o=s.algorithmId();const i=s.checksumConstructor();if(m.includes(o)){t.checksumAlgorithms[o.toUpperCase()]=i}else{t.checksumAlgorithms[o]=i}n.push(s)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{const s=t.algorithmId();if(m.includes(s)){n[s]=t.checksumConstructor()}});return n};const getRetryConfiguration=t=>({setRetryStrategy(n){t.retryStrategy=n},retryStrategy(){return t.retryStrategy}});const resolveRetryRuntimeConfig=t=>{const n={};n.retryStrategy=t.retryStrategy();return n};const getDefaultExtensionConfiguration=t=>Object.assign(getChecksumConfiguration(t),getRetryConfiguration(t));const B=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=t=>Object.assign(resolveChecksumRuntimeConfig(t),resolveRetryRuntimeConfig(t));const getArrayIfSingleItem=t=>Array.isArray(t)?t:[t];const getValueFromTextNode=t=>{const n="#text";for(const s in t){if(!o(t,s)){continue}if(t[s][n]!==undefined){t[s]=t[s][n]}else if(typeof t[s]==="object"&&t[s]!==null){t[s]=getValueFromTextNode(t[s])}}return t};const isSerializableHeaderValue=t=>t!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(t,n,s){let i;let A;let c;if(typeof n==="undefined"&&typeof s==="undefined"){i={};c=t}else{i=t;if(typeof n==="function"){A=n;c=s;return mapWithFilter(i,A,c)}else{c=n}}for(const t in c){if(!o(c,t)){continue}if(!Array.isArray(c[t])){i[t]=c[t];continue}applyInstruction(i,null,c,t)}return i}const convertMap=t=>{const n={};for(const[s,o]of Object.entries(t||{})){n[s]=[,o]}return n};const take=(t,n)=>{const s={};for(const i in n){if(!o(n,i)){continue}applyInstruction(s,t,n,i)}return s};const mapWithFilter=(t,n,s)=>map(t,Object.entries(s).reduce((t,[s,o])=>{if(Array.isArray(o)){t[s]=o}else{if(typeof o==="function"){t[s]=[n,o()]}else{t[s]=[n,o]}}return t},{}));const applyInstruction=(t,n,s,o)=>{if(n!==null){let i=s[o];if(typeof i==="function"){i=[,i]}const[A=nonNullish,c=pass,l=o]=i;if(typeof A==="function"&&A(n[l])||typeof A!=="function"&&!!A){t[o]=c(n[l])}return}let[i,A]=s[o];if(typeof A==="function"){let n;const s=i===undefined&&(n=A())!=null;const c=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(s){t[o]=n}else if(c){t[o]=A()}}else{const n=i===undefined&&A!=null;const s=typeof i==="function"&&!!i(A)||typeof i!=="function"&&!!i;if(n||s){t[o]=A}}};const nonNullish=t=>t!=null;const pass=t=>t;const serializeFloat=t=>{if(t!==t){return"NaN"}switch(t){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return t}};const serializeDateTime=t=>t.toISOString().replace(".000Z","Z");const _json=t=>{if(t==null){return{}}if(Array.isArray(t)){return t.filter(t=>t!=null).map(_json)}if(typeof t==="object"){const n={};for(const s in t){if(!o(t,s)){continue}if(t[s]==null){continue}n[s]=_json(t[s])}return n}return t};function makeBuilder(t,n,s,o){return function makeCommand(i,A,c,l,u={}){const d=Object.assign({},t,i);return Command.classBuilder().ep(d).m(function(t,n,s,i){const c=A.call(this,t,n,s,i);c.unshift(o(s,t.getEndpointParameterInstructions()));return c}).s(n,c,u).n(s,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()}}n.Client=Client;n.Command=Command;n.NoOpLogger=NoOpLogger;n.SENSITIVE_STRING=C;n.ServiceException=ServiceException;n.WaiterState=f;n._json=_json;n.checkExceptions=checkExceptions;n.constructStack=constructStack;n.convertMap=convertMap;n.createAggregatedClient=createAggregatedClient;n.createWaiter=createWaiter;n.decorateServiceException=decorateServiceException;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.getArrayIfSingleItem=getArrayIfSingleItem;n.getChecksumConfiguration=getChecksumConfiguration;n.getDefaultClientConfiguration=B;n.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;n.getRetryConfiguration=getRetryConfiguration;n.getValueFromTextNode=getValueFromTextNode;n.invalidFunction=invalidFunction;n.invalidProvider=invalidProvider;n.isSerializableHeaderValue=isSerializableHeaderValue;n.loadConfigsForDefaultMode=loadConfigsForDefaultMode;n.makeBuilder=makeBuilder;n.map=map;n.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;n.resolveRetryRuntimeConfig=resolveRetryRuntimeConfig;n.schemaLogFilter=schemaLogFilter;n.serializeDateTime=serializeDateTime;n.serializeFloat=serializeFloat;n.take=take;n.throwDefaultError=throwDefaultError;n.waiterServiceDefaults=h;n.withBaseException=withBaseException},7291:(t,n,s)=>{const{homedir:o}=s(8161);const{sep:i,join:A}=s(6760);const{createHash:c}=s(7598);const{readFile:l}=s(1455);const{IniSectionType:u}=s(690);const{normalizeProvider:d}=s(2658);const{isValidHostLabel:g}=s(4534);class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(t,n=true){let s;let o=true;if(typeof n==="boolean"){s=undefined;o=n}else if(n!=null&&typeof n==="object"){s=n.logger;o=n.tryNextLink??true}super(t);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);s?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${t}`)}static from(t,n=true){return Object.assign(new this(t.message,n),t)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...t)=>async()=>{if(t.length===0){throw new ProviderError("No providers in chain")}let n;for(const s of t){try{const t=await s();return t}catch(t){n=t;if(t?.tryNextLink){continue}throw t}}throw n};const fromValue=t=>()=>Promise.resolve(t);const memoize=(t,n,s)=>{let o;let i;let A;let c=false;const coalesceProvider=async()=>{if(!i){i=t()}try{o=await i;A=true;c=false}finally{i=undefined}return o};if(n===undefined){return async t=>{if(!A||t?.forceRefresh){o=await coalesceProvider()}return o}}return async t=>{if(!A||t?.forceRefresh){o=await coalesceProvider()}if(c){return o}if(s&&!s(o)){c=true;return o}if(n(o)){await coalesceProvider();return o}return o}};const booleanSelector=(t,n,s)=>{if(!(n in t)){return undefined}if(t[n]==="true"){return true}if(t[n]==="false"){return false}throw new Error(`Cannot load ${s} "${n}". Expected "true" or "false", got ${t[n]}.`)};const numberSelector=(t,n,s)=>{if(!(n in t)){return undefined}const o=parseInt(t[n],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${s} '${n}'. Expected number, got '${t[n]}'.`)}return o};var h;(function(t){t["ENV"]="env";t["CONFIG"]="shared config entry"})(h||(h={}));const f={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:t,USERPROFILE:n,HOMEPATH:s,HOMEDRIVE:A=`C:${i}`}=process.env;if(t){return t}if(n){return n}if(s){return`${A}${s}`}const c=getHomeDirCacheKey();if(!f[c]){f[c]=o()}return f[c]};const E="AWS_PROFILE";const p="default";const getProfileName=t=>t.profile||process.env[E]||p;const getSSOTokenFilepath=t=>{const n=c("sha1");const s=n.update(t).digest("hex");return A(getHomeDir(),".aws","sso","cache",`${s}.json`)};const C={};const getSSOTokenFromFile=async t=>{if(C[t]){return C[t]}const n=getSSOTokenFilepath(t);const s=await l(n,"utf8");return JSON.parse(s)};const I=".";const getConfigData=t=>Object.entries(t).filter(([t])=>{const n=t.indexOf(I);if(n===-1){return false}return Object.values(u).includes(t.substring(0,n))}).reduce((t,[n,s])=>{const o=n.indexOf(I);const i=n.substring(0,o)===u.PROFILE?n.substring(o+1):n;t[i]=s;return t},{...t.default&&{default:t.default}});const m="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[m]||A(getHomeDir(),".aws","config");const B="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[B]||A(getHomeDir(),".aws","credentials");const Q=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;const y=["__proto__","profile __proto__"];const parseIni=t=>{const n={};let s;let o;for(const i of t.split(/\r?\n/)){const t=i.split(/(^|\s)[;#]/)[0].trim();const A=t[0]==="["&&t[t.length-1]==="]";if(A){s=undefined;o=undefined;const n=t.substring(1,t.length-1);const i=Q.exec(n);if(i){const[,t,,n]=i;if(Object.values(u).includes(t)){s=[t,n].join(I)}}else{s=n}if(y.includes(n)){throw new Error(`Found invalid profile name "${n}"`)}}else if(s){const A=t.indexOf("=");if(![0,-1].includes(A)){const[c,l]=[t.substring(0,A).trim(),t.substring(A+1).trim()];if(l===""){o=c}else{if(o&&i.trimStart()===i){o=undefined}n[s]=n[s]||{};const t=o?[o,c].join(I):c;n[s][t]=l}}}}return n};const w={};const S={};const readFile=(t,n)=>{if(S[t]!==undefined){return S[t]}if(!w[t]||n?.ignoreCache){w[t]=l(t,"utf8")}return w[t]};const swallowError$1=()=>({});const loadSharedConfigFiles=async(t={})=>{const{filepath:n=getCredentialsFilepath(),configFilepath:s=getConfigFilepath()}=t;const o=getHomeDir();const i="~/";let c=n;if(n.startsWith(i)){c=A(o,n.slice(2))}let l=s;if(s.startsWith(i)){l=A(o,s.slice(2))}const u=await Promise.all([readFile(l,{ignoreCache:t.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),readFile(c,{ignoreCache:t.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:u[0],credentialsFile:u[1]}};const getSsoSessionData=t=>Object.entries(t).filter(([t])=>t.startsWith(u.SSO_SESSION+I)).reduce((t,[n,s])=>({...t,[n.substring(n.indexOf(I)+1)]:s}),{});const swallowError=()=>({});const loadSsoSessionData=async(t={})=>readFile(t.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...t)=>{const n={};for(const s of t){for(const[t,o]of Object.entries(s)){if(n[t]!==undefined){Object.assign(n[t],o)}else{n[t]=o}}}return n};const parseKnownFiles=async t=>{const n=await loadSharedConfigFiles(t);return mergeConfigFiles(n.configFile,n.credentialsFile)};const R={getFileRecord(){return S},interceptFile(t,n){S[t]=Promise.resolve(n)},getTokenRecord(){return C},interceptToken(t,n){C[t]=n}};function getSelectorName(t){try{const n=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));n.delete("CONFIG");n.delete("CONFIG_PREFIX_SEPARATOR");n.delete("ENV");return[...n].join(", ")}catch(n){return t}}const fromEnv=(t,n)=>async()=>{try{const s=t(process.env,n);if(s===undefined){throw new Error}return s}catch(s){throw new CredentialsProviderError(s.message||`Not found in ENV: ${getSelectorName(t.toString())}`,{logger:n?.logger})}};const fromSharedConfigFiles=(t,{preferredFile:n="config",...s}={})=>async()=>{const o=getProfileName(s);const{configFile:i,credentialsFile:A}=await loadSharedConfigFiles(s);const c=A[o]||{};const l=i[o]||{};const u=n==="config"?{...c,...l}:{...l,...c};try{const s=n==="config"?i:A;const o=t(u,s);if(o===undefined){throw new Error}return o}catch(n){throw new CredentialsProviderError(n.message||`Not found in config files w/ profile [${o}]: ${getSelectorName(t.toString())}`,{logger:s.logger})}};const isFunction=t=>typeof t==="function";const fromStatic=t=>isFunction(t)?async()=>await t():fromValue(t);const loadConfig=({environmentVariableSelector:t,configFileSelector:n,default:s},o={})=>{const{signingName:i,logger:A}=o;const c={signingName:i,logger:A};return memoize(chain(fromEnv(t,c),fromSharedConfigFiles(n,o),fromStatic(s)))};const D="AWS_USE_DUALSTACK_ENDPOINT";const k="use_dualstack_endpoint";const v=false;const T={environmentVariableSelector:t=>booleanSelector(t,D,h.ENV),configFileSelector:t=>booleanSelector(t,k,h.CONFIG),default:false};const N={environmentVariableSelector:t=>booleanSelector(t,D,h.ENV),configFileSelector:t=>booleanSelector(t,k,h.CONFIG),default:undefined};const F="AWS_USE_FIPS_ENDPOINT";const x="use_fips_endpoint";const M=false;const U={environmentVariableSelector:t=>booleanSelector(t,F,h.ENV),configFileSelector:t=>booleanSelector(t,x,h.CONFIG),default:false};const L={environmentVariableSelector:t=>booleanSelector(t,F,h.ENV),configFileSelector:t=>booleanSelector(t,x,h.CONFIG),default:undefined};const resolveCustomEndpointsConfig=t=>{const{tls:n,endpoint:s,urlParser:o,useDualstackEndpoint:i}=t;return Object.assign(t,{tls:n??true,endpoint:d(typeof s==="string"?o(s):s),isCustomEndpoint:true,useDualstackEndpoint:d(i??false)})};const getEndpointFromRegion=async t=>{const{tls:n=true}=t;const s=await t.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(s)){throw new Error("Invalid region in client config")}const i=await t.useDualstackEndpoint();const A=await t.useFipsEndpoint();const{hostname:c}=await t.regionInfoProvider(s,{useDualstackEndpoint:i,useFipsEndpoint:A})??{};if(!c){throw new Error("Cannot resolve hostname from client config")}return t.urlParser(`${n?"https:":"http:"}//${c}`)};const resolveEndpointsConfig=t=>{const n=d(t.useDualstackEndpoint??false);const{endpoint:s,useFipsEndpoint:o,urlParser:i,tls:A}=t;return Object.assign(t,{tls:A??true,endpoint:s?d(typeof s==="string"?i(s):s):()=>getEndpointFromRegion({...t,useDualstackEndpoint:n,useFipsEndpoint:o}),isCustomEndpoint:!!s,useDualstackEndpoint:n})};const P="AWS_EXECUTION_ENV";const O="AWS_REGION";const H="AWS_DEFAULT_REGION";const _="AWS_EC2_METADATA_DISABLED";const G=["in-region","cross-region","mobile","standard","legacy"];const V="/latest/meta-data/placement/region";const Y="/latest/api/token";const J="x-aws-ec2-metadata-token";const q="x-aws-ec2-metadata-token-ttl-seconds";const W=1e3;const z=6e4;let $=0;const getInstanceMetadataRegion=async()=>{if(process.env[_]){return undefined}if(Date.now()<$){return undefined}try{const t=resolveImdsEndpoint();const n=(await imdsRequest({...t,path:Y,method:"PUT",headers:{[q]:"21600"}})).toString();const s=(await imdsRequest({...t,path:V,method:"GET",headers:{[J]:n}})).toString().trim();return s||cacheNegativeAndReturnUndefined()}catch{return cacheNegativeAndReturnUndefined()}};const cacheNegativeAndReturnUndefined=()=>{$=Date.now()+z;return undefined};const resolveImdsEndpoint=()=>{const t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){const n=new URL(t);return{hostname:n.hostname.replace(/^\[(.+)]$/,"$1"),port:n.port?Number(n.port):undefined}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"){return{hostname:"fd00:ec2::254"}}return{hostname:"169.254.169.254"}};const imdsRequest=async t=>{const{request:n}=s(7067);return new Promise((s,o)=>{const i=n({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:W,signal:AbortSignal.timeout(W)});i.on("error",t=>{o(t);i.destroy()});i.on("timeout",()=>{o(new Error("TimeoutError from instance metadata service"));i.destroy()});i.on("response",t=>{const{statusCode:n=400}=t;if(n<200||n>=300){o(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:n}));i.destroy();return}const A=[];t.on("data",t=>A.push(t));t.on("end",()=>{s(Buffer.concat(A));i.destroy()})});i.end()})};const j="AWS_REGION";const K="region";const Z={environmentVariableSelector:t=>t[j],configFileSelector:t=>t[K],default:async()=>{const t=await getInstanceMetadataRegion();if(t){return t}throw new Error("Region is missing")}};const X={preferredFile:"credentials"};const ee=new Set;const checkRegion=(t,n=g)=>{if(!ee.has(t)&&!n(t)){if(t==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`)}}else{ee.add(t)}};const isFipsRegion=t=>typeof t==="string"&&(t.startsWith("fips-")||t.endsWith("-fips"));const getRealRegion=t=>isFipsRegion(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t;const resolveRegionConfig=t=>{const{region:n,useFipsEndpoint:s}=t;if(!n){throw new Error("Region is missing")}return Object.assign(t,{region:async()=>{const t=typeof n==="function"?await n():n;const s=getRealRegion(t);checkRegion(s);return s},useFipsEndpoint:async()=>{const t=typeof n==="string"?n:await n();if(isFipsRegion(t)){return true}return typeof s!=="function"?Promise.resolve(!!s):s()}})};const getHostnameFromVariants=(t=[],{useFipsEndpoint:n,useDualstackEndpoint:s})=>t.find(({tags:t})=>n===t.includes("fips")&&s===t.includes("dualstack"))?.hostname;const getResolvedHostname=(t,{regionHostname:n,partitionHostname:s})=>n?n:s?s.replace("{region}",t):undefined;const getResolvedPartition=(t,{partitionHash:n})=>Object.keys(n||{}).find(s=>n[s].regions.includes(t))??"aws";const getResolvedSigningRegion=(t,{signingRegion:n,regionRegex:s,useFipsEndpoint:o})=>{if(n){return n}else if(o){const n=s.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=t.match(n);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(t,{useFipsEndpoint:n=false,useDualstackEndpoint:s=false,signingService:o,regionHash:i,partitionHash:A})=>{const c=getResolvedPartition(t,{partitionHash:A});const l=t in i?t:A[c]?.endpoint??t;const u={useFipsEndpoint:n,useDualstackEndpoint:s};const d=getHostnameFromVariants(i[l]?.variants,u);const g=getHostnameFromVariants(A[c]?.variants,u);const h=getResolvedHostname(l,{regionHostname:d,partitionHostname:g});if(h===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:l,useFipsEndpoint:n,useDualstackEndpoint:s}}`)}const f=getResolvedSigningRegion(h,{signingRegion:i[l]?.signingRegion,regionRegex:A[c].regionRegex,useFipsEndpoint:n});return{partition:c,signingService:o,hostname:h,...f&&{signingRegion:f},...i[l]?.signingService&&{signingService:i[l].signingService}}};const te="AWS_DEFAULTS_MODE";const ne="defaults_mode";const re={environmentVariableSelector:t=>t[te],configFileSelector:t=>t[ne],default:"legacy"};const resolveDefaultsModeConfig=({region:t=loadConfig(Z),defaultsMode:n=loadConfig(re)}={})=>memoize(async()=>{const s=typeof n==="function"?await n():n;switch(s?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(s?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${G.join(", ")}, got ${s}`)}});const resolveNodeDefaultsModeAuto=async t=>{if(t){const n=typeof t==="function"?await t():t;const s=await inferPhysicalRegion();if(!s){return"standard"}if(n===s){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[P]&&(process.env[O]||process.env[H])){return process.env[O]??process.env[H]}return getInstanceMetadataRegion()};n.CONFIG_PREFIX_SEPARATOR=I;n.CONFIG_USE_DUALSTACK_ENDPOINT=k;n.CONFIG_USE_FIPS_ENDPOINT=x;n.CredentialsProviderError=CredentialsProviderError;n.DEFAULT_PROFILE=p;n.DEFAULT_USE_DUALSTACK_ENDPOINT=v;n.DEFAULT_USE_FIPS_ENDPOINT=M;n.ENV_PROFILE=E;n.ENV_USE_DUALSTACK_ENDPOINT=D;n.ENV_USE_FIPS_ENDPOINT=F;n.NODE_REGION_CONFIG_FILE_OPTIONS=X;n.NODE_REGION_CONFIG_OPTIONS=Z;n.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=T;n.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=U;n.ProviderError=ProviderError;n.REGION_ENV_NAME=j;n.REGION_INI_NAME=K;n.SelectorType=h;n.TokenProviderError=TokenProviderError;n.booleanSelector=booleanSelector;n.chain=chain;n.externalDataInterceptor=R;n.fromStatic=fromStatic;n.fromValue=fromValue;n.getHomeDir=getHomeDir;n.getProfileName=getProfileName;n.getRegionInfo=getRegionInfo;n.getSSOTokenFilepath=getSSOTokenFilepath;n.getSSOTokenFromFile=getSSOTokenFromFile;n.loadConfig=loadConfig;n.loadSharedConfigFiles=loadSharedConfigFiles;n.loadSsoSessionData=loadSsoSessionData;n.memoize=memoize;n.nodeDualstackConfigSelectors=N;n.nodeFipsConfigSelectors=L;n.numberSelector=numberSelector;n.parseKnownFiles=parseKnownFiles;n.readFile=readFile;n.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;n.resolveDefaultsModeConfig=resolveDefaultsModeConfig;n.resolveEndpointsConfig=resolveEndpointsConfig;n.resolveRegionConfig=resolveRegionConfig},2085:(t,n,s)=>{const{CONFIG_PREFIX_SEPARATOR:o,booleanSelector:i,SelectorType:A,loadConfig:c}=s(7291);const{toEndpointV1:l,getSmithyContext:u,normalizeProvider:d,isValidHostLabel:g,hasOwn:h}=s(4534);n.isValidHostLabel=g;n.middlewareEndpointToEndpointV1=l;n.toEndpointV1=l;const{EndpointURLScheme:f}=s(690);const E="AWS_ENDPOINT_URL";const p="endpoint_url";const getEndpointUrlConfig=t=>({environmentVariableSelector:n=>{const s=t.split(" ").map(t=>t.toUpperCase());const o=n[[E,...s].join("_")];if(o){return o}const i=n[E];if(i){return i}return undefined},configFileSelector:(n,s)=>{if(n.services){const i=["services",n.services].join(o);if(!s||!s[i]){throw new Error(`The services section "${n.services}" specified in the profile is not present in the shared configuration file.`)}const A=s[i];const c=t.split(" ").map(t=>t.toLowerCase());const l=A[[c.join("_"),p].join(o)];if(l){return l}}const i=n[p];if(i){return i}return undefined},default:undefined});const C="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";const I="ignore_configured_endpoint_urls";const m={environmentVariableSelector:t=>i(t,C,A.ENV),configFileSelector:t=>i(t,I,A.CONFIG),default:false};const getEndpointFromConfig=async t=>{const n=await c(m)();if(n){return undefined}return c(getEndpointUrlConfig(t??""))()};const resolveParamsForS3=async t=>{const n=t?.Bucket||"";if(typeof t.Bucket==="string"){t.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(n)){if(t.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(n)||n.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3){t.ForcePathStyle=true}if(t.DisableMultiRegionAccessPoints){t.disableMultiRegionAccessPoints=true;t.DisableMRAP=true}return t};const B=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;const Q=/(\d+\.){3}\d+/;const y=/\.\./;const isDnsCompatibleBucketName=t=>B.test(t)&&!Q.test(t)&&!y.test(t);const isArnBucketName=t=>{const[n,s,o,,,i]=t.split(":");const A=n==="arn"&&t.split(":").length>=6;const c=Boolean(A&&s&&o&&i);if(A&&!c){throw new Error(`Invalid ARN: ${t} was an invalid ARN.`)}return c};const createConfigValueProvider=(t,n,s,o=false)=>{const configProvider=async()=>{let i;if(o){const o=s.clientContextParams;const A=o?.[t];i=A??s[t]??s[n]}else{i=s[t]??s[n]}if(typeof i==="function"){return i()}return i};if(t==="credentialScope"||n==="CredentialScope"){return async()=>{const t=typeof s.credentials==="function"?await s.credentials():s.credentials;const n=t?.credentialScope??t?.CredentialScope;return n}}if(t==="accountId"||n==="AccountId"){return async()=>{const t=typeof s.credentials==="function"?await s.credentials():s.credentials;const n=t?.accountId??t?.AccountId;return n}}if(t==="endpoint"||n==="endpoint"){return async()=>{if(s.isCustomEndpoint===false){return undefined}const t=await configProvider();if(t&&typeof t==="object"){if("url"in t){return t.url.href}if("hostname"in t){const{protocol:n,hostname:s,port:o,path:i}=t;return`${n}//${s}${o?":"+o:""}${i}`}}return t}}return configProvider};function bindGetEndpointFromInstructions(t){return async(n,s,o,i)=>{if(!o.isCustomEndpoint&&!o.ignoreConfiguredEndpointUrls){let n;if(o.serviceConfiguredEndpoint){n=await o.serviceConfiguredEndpoint()}else{n=await t(o.serviceId)}if(n){o.endpoint=()=>Promise.resolve(l(n));o.isCustomEndpoint=true;i?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${n}`)}}const A=await resolveParams(n,s,o);if(typeof o.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const c=o.endpointProvider(A,i);if(o.isCustomEndpoint&&o.endpoint){const t=await o.endpoint();if(t?.headers){c.headers??={};for(const[n,s]of Object.entries(t.headers)){c.headers[n]=Array.isArray(s)?s:[s]}}}return c}}const resolveParams=async(t,n,s)=>{const o={};const i=n?.getEndpointParameterInstructions?.()||{};for(const[n,A]of Object.entries(i)){switch(A.type){case"staticContextParams":o[n]=A.value;break;case"contextParams":o[n]=t[A.name];break;case"clientContextParams":case"builtInParams":o[n]=await createConfigValueProvider(A.name,n,s,A.type!=="builtInParams")();break;case"operationContextParams":o[n]=A.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(A))}}if(Object.keys(i).length===0){Object.assign(o,s)}if(String(s.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};function setFeature(t,n,s){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=s}function bindEndpointMiddleware(t){const n=bindGetEndpointFromInstructions(t);return({config:t,instructions:s})=>(o,i)=>async A=>{if(t.isCustomEndpoint){setFeature(i,"ENDPOINT_OVERRIDE","N")}const c=await n(A.input,{getEndpointParameterInstructions(){return s}},{...t},i);i.endpointV2=c;i.authSchemes=c.properties?.authSchemes;const l=i.authSchemes?.[0];if(l){i["signing_region"]=l.signingRegion;i["signing_service"]=l.signingName;const t=u(i);const n=t?.selectedHttpAuthScheme?.httpAuthOption;if(n){n.signingProperties=Object.assign(n.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties)}}return o({...A})}}const w={name:"serializerMiddleware"};const S={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:w.name};function bindGetEndpointPlugin(t){const n=bindEndpointMiddleware(t);return(t,s)=>({applyToStack:o=>{o.addRelativeTo(n({config:t,instructions:s}),S)}})}function bindResolveEndpointConfig(t){return n=>{const s=n.tls??true;const{endpoint:o,useDualstackEndpoint:i,useFipsEndpoint:A}=n;const c=o!=null?async()=>l(await d(o)()):undefined;const u=!!o;const g=Object.assign(n,{endpoint:c,tls:s,isCustomEndpoint:u,useDualstackEndpoint:d(i??false),useFipsEndpoint:d(A??false),ignoreConfiguredEndpointUrls:!!n.ignoreConfiguredEndpointUrls});let h=undefined;g.serviceConfiguredEndpoint=async()=>{if(n.serviceId&&!h){h=t(n.serviceId)}return h};return g}}class BinaryDecisionDiagram{nodes;root;conditions;results;constructor(t,n,s,o){this.nodes=t;this.root=n;this.conditions=s;this.results=o}static from(t,n,s,o){return new BinaryDecisionDiagram(t,n,s,o)}}class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50;if(n){this.parameters=n}}get(t,n){const s=this.hash(t);if(s===false){return n()}if(!this.data.has(s)){if(this.data.size>this.capacity+10){const t=this.data.keys();let n=0;while(true){const{value:s,done:o}=t.next();this.data.delete(s);if(o||++n>10){break}}}this.data.set(s,n())}return this.data.get(s)}size(){return this.data.size}hash(t){let n="";const{parameters:s}=this;if(s.length===0){return false}for(const o of s){const s=t[o];const i=s==null?"\0":String(s);if(i.includes("|;")){return false}n+=i+"|;"}return n}}class EndpointError extends Error{constructor(t){super(t);this.name="EndpointError"}}const R="endpoints";function toDebugString(t){if(typeof t!=="object"||t==null){return t}if("ref"in t){return`$${toDebugString(t.ref)}`}if("fn"in t){return`${t.fn}(${(t.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(t,null,2)}const D={};const booleanEquals=(t,n)=>t===n;function coalesce(...t){for(const n of t){if(n!=null){return n}}return undefined}const getAttrPathList=t=>{const n=t.split(".");const s=[];for(const o of n){const n=o.indexOf("[");if(n!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${t}' does not end with ']'`)}const i=o.slice(n+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${t}'`)}if(n!==0){s.push(o.slice(0,n))}s.push(i)}else{s.push(o)}}return s};const getAttr=(t,n)=>getAttrPathList(n).reduce((s,o)=>{if(typeof s!=="object"){throw new EndpointError(`Index '${o}' in '${n}' not found in '${JSON.stringify(t)}'`)}else if(Array.isArray(s)){const t=parseInt(o);return s[t<0?s.length+t:t]}return s[o]},t);const isSet=t=>t!=null;function ite(t,n,s){return t?n:s}const not=t=>!t;const k=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}$`);const isIpAddress=t=>k.test(t)||t.startsWith("[")&&t.endsWith("]");const v={[f.HTTP]:80,[f.HTTPS]:443};const parseURL=t=>{const n=(()=>{try{if(t instanceof URL){return t}if(typeof t==="object"&&"hostname"in t){const{hostname:n,port:s,protocol:o="",path:i="",query:A={}}=t;const c=new URL(`${o}//${n}${s?`:${s}`:""}${i}`);c.search=Object.entries(A).map(([t,n])=>`${t}=${n}`).join("&");return c}return new URL(t)}catch(t){return null}})();if(!n){console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`);return null}const s=n.href;const{host:o,hostname:i,pathname:A,protocol:c,search:l}=n;if(l){return null}const u=c.slice(0,-1);if(!Object.values(f).includes(u)){return null}const d=isIpAddress(i);const g=s.includes(`${o}:${v[u]}`)||typeof t==="string"&&t.includes(`${o}:${v[u]}`);const h=`${o}${g?`:${v[u]}`:``}`;return{scheme:u,authority:h,path:A,normalizedPath:A.endsWith("/")?A:`${A}/`,isIp:d}};function split(t,n,s){if(s===1){return[t]}if(t===""){return[""]}const o=t.split(n);if(s===0){return o}return o.slice(0,s-1).concat(o.slice(1).join(n))}const stringEquals=(t,n)=>t===n;const substring=(t,n,s,o)=>{if(t==null||n>=s||t.length<s||/[^\u0000-\u007f]/.test(t)){return null}if(!o){return t.substring(n,s)}return t.substring(t.length-s,t.length-n)};const uriEncode=t=>encodeURIComponent(t).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);const T={booleanEquals:booleanEquals,coalesce:coalesce,getAttr:getAttr,isSet:isSet,isValidHostLabel:g,ite:ite,not:not,parseURL:parseURL,split:split,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(t,n)=>{const s=[];const{referenceRecord:o,endpointParams:i}=n;let A=0;while(A<t.length){const n=t.indexOf("{",A);if(n===-1){s.push(t.slice(A));break}s.push(t.slice(A,n));const c=t.indexOf("}",n);if(c===-1){s.push(t.slice(n));break}if(t[n+1]==="{"&&t[c+1]==="}"){s.push(t.slice(n+1,c));A=c+2}const l=t.substring(n+1,c);if(l.includes("#")){const[t,n]=l.split("#");s.push(getAttr(o[t]??i[t],n))}else{s.push(o[l]??i[l])}A=c+1}return s.join("")};const getReferenceValue=({ref:t},n)=>n.referenceRecord[t]??n.endpointParams[t];const evaluateExpression=(t,n,s)=>{if(typeof t==="string"){return evaluateTemplate(t,s)}else if(t["fn"]){return N.callFunction(t,s)}else if(t["ref"]){return getReferenceValue(t,s)}throw new EndpointError(`'${n}': ${String(t)} is not a string, function or reference.`)};const callFunction=({fn:t,argv:n},s)=>{const o=Array(n.length);for(let t=0;t<o.length;++t){const i=n[t];if(typeof i==="boolean"||typeof i==="number"){o[t]=i}else{o[t]=N.evaluateExpression(i,"arg",s)}}const i=t.indexOf(".");if(i!==-1){const n=D[t.slice(0,i)];const s=n?.[t.slice(i+1)];if(typeof s==="function"){return s(...o)}}const A=T[t];if(typeof A==="function"){return A(...o)}throw new Error(`function ${t} not loaded in endpointFunctions.`)};const N={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=(t,n)=>{const{assign:s}=t;if(s&&s in n.referenceRecord){throw new EndpointError(`'${s}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${R} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);const i=o===""?true:!!o;if(s!=null){return{result:i,toAssign:{name:s,value:o}}}return{result:i}};const getEndpointHeaders=(t,n)=>Object.entries(t??{}).reduce((t,[s,o])=>{t[s]=o.map(t=>{const o=evaluateExpression(t,"Header value entry",n);if(typeof o!=="string"){throw new EndpointError(`Header '${s}' value '${o}' is not a string`)}return o});return t},{});const getEndpointProperties=(t,n)=>Object.entries(t).reduce((t,[s,o])=>{t[s]=F.getEndpointProperty(o,n);return t},{});const getEndpointProperty=(t,n)=>{if(Array.isArray(t)){return t.map(t=>getEndpointProperty(t,n))}switch(typeof t){case"string":return evaluateTemplate(t,n);case"object":if(t===null){throw new EndpointError(`Unexpected endpoint property: ${t}`)}return F.getEndpointProperties(t,n);case"boolean":return t;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof t}`)}};const F={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(t,n)=>{const s=evaluateExpression(t,"Endpoint URL",n);if(typeof s==="string"){try{return new URL(s)}catch(t){console.error(`Failed to construct URL with ${s}`,t);throw t}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof s}`)};const x=1e8;const decideEndpoint=(t,n)=>{const{nodes:s,root:o,results:i,conditions:A}=t;let c=o;const l={};const u={referenceRecord:l,endpointParams:n.endpointParams,logger:n.logger};while(c!==1&&c!==-1&&c<x){const t=3*(Math.abs(c)-1);const[n,o,i]=[s[t],s[t+1],s[t+2]];const[d,g,h]=A[n];const f=evaluateCondition({fn:d,assign:h,argv:g},u);if(f.toAssign){const{name:t,value:n}=f.toAssign;l[t]=n}c=c>=0===f.result?o:i}if(c>=x){const t=i[c-x];if(t[0]===-1){const[,n]=t;throw new EndpointError(evaluateExpression(n,"Error",u))}const[n,s,o]=t;return{url:getEndpointUrl(n,u),properties:getEndpointProperties(s,u),headers:getEndpointHeaders(o??{},u)}}throw new EndpointError(`No matching endpoint.`)};const evaluateConditions=(t=[],n)=>{const s={};const o={...n,referenceRecord:{...n.referenceRecord}};let i=false;for(const A of t){const{result:t,toAssign:c}=evaluateCondition(A,o);if(!t){return{result:t}}if(c){i=true;s[c.name]=c.value;o.referenceRecord[c.name]=c.value;n.logger?.debug?.(`${R} assign: ${c.name} := ${toDebugString(c.value)}`)}}if(i){return{result:true,referenceRecord:s}}return{result:true}};const evaluateEndpointRule=(t,n)=>{const{conditions:s,endpoint:o}=t;const{result:i,referenceRecord:A}=evaluateConditions(s,n);if(!i){return}const c=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;const{url:l,properties:u,headers:d}=o;n.logger?.debug?.(`${R} Resolving endpoint from template: ${toDebugString(o)}`);const g={url:getEndpointUrl(l,c)};if(d!=null){g.headers=getEndpointHeaders(d,c)}if(u!=null){g.properties=getEndpointProperties(u,c)}return g};const evaluateErrorRule=(t,n)=>{const{conditions:s,error:o}=t;const{result:i,referenceRecord:A}=evaluateConditions(s,n);if(!i){return}const c=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;throw new EndpointError(evaluateExpression(o,"Error",c))};const evaluateRules=(t,n)=>{for(const s of t){if(s.type==="endpoint"){const t=evaluateEndpointRule(s,n);if(t){return t}}else if(s.type==="error"){evaluateErrorRule(s,n)}else if(s.type==="tree"){const t=M.evaluateTreeRule(s,n);if(t){return t}}else{throw new EndpointError(`Unknown endpoint rule: ${s}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(t,n)=>{const{conditions:s,rules:o}=t;const{result:i,referenceRecord:A}=evaluateConditions(s,n);if(!i){return}const c=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;return M.evaluateRules(o,c)};const M={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(t,n)=>{const{endpointParams:s,logger:o}=n;const{parameters:i,rules:A}=t;n.logger?.debug?.(`${R} Initial EndpointParams: ${toDebugString(s)}`);for(const t in i){if(!h(i,t)){continue}const n=i[t];const o=s[t];if(o==null&&n.default!=null){s[t]=n.default;continue}if(n.required&&o==null){throw new EndpointError(`Missing required parameter: '${t}'`)}}const c=evaluateRules(A,{endpointParams:s,logger:o,referenceRecord:{}});n.logger?.debug?.(`${R} Resolved endpoint: ${toDebugString(c)}`);return c};const resolveEndpointRequiredConfig=t=>{const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return t};const U=bindGetEndpointFromInstructions(getEndpointFromConfig);const L=bindResolveEndpointConfig(getEndpointFromConfig);const P=bindEndpointMiddleware(getEndpointFromConfig);const O=bindGetEndpointPlugin(getEndpointFromConfig);n.BinaryDecisionDiagram=BinaryDecisionDiagram;n.EndpointCache=EndpointCache;n.EndpointError=EndpointError;n.customEndpointFunctions=D;n.decideEndpoint=decideEndpoint;n.endpointMiddleware=P;n.endpointMiddlewareOptions=S;n.getEndpointFromInstructions=U;n.getEndpointPlugin=O;n.isIpAddress=isIpAddress;n.resolveEndpoint=resolveEndpoint;n.resolveEndpointConfig=L;n.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;n.resolveParams=resolveParams},6579:(t,n,s)=>{const{Crc32:o}=s(9542);const{hasOwn:i}=s(4534);const{toHex:A,fromHex:c,toUtf8:l,fromUtf8:u}=s(2430);const{Readable:d}=s(7075);const{TypeRegistry:g}=s(6890);class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let s=7,o=Math.abs(Math.round(t));s>-1&&o>0;s--,o/=256){n[s]=o}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(A(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0){break}}}class HeaderMarshaller{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t;this.fromUtf8=n}format(t){const n=[];for(const s in t){if(!i(t,s)){continue}const o=this.fromUtf8(s);if(o.byteLength>255){throw new Error(`@smithy/core/event-streams - header name exceeds 255 bytes: ${o.byteLength}`)}n.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}const s=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let o=0;for(const t of n){s.set(t,o);o+=t.byteLength}return s}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,3);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));s.setUint8(0,4);s.setInt32(1,t.value,false);return new Uint8Array(s.buffer);case"long":const o=new Uint8Array(9);o[0]=5;o.set(t.value.bytes,1);return o;case"binary":if(t.value.byteLength>S){throw new Error(`@smithy/core/event-streams - header value (binary) exceeds ${S} bytes: ${t.value.byteLength}`)}const i=new DataView(new ArrayBuffer(3+t.value.byteLength));i.setUint8(0,6);i.setUint16(1,t.value.byteLength,false);const A=new Uint8Array(i.buffer);A.set(t.value,3);return A;case"string":const l=this.fromUtf8(t.value);if(l.byteLength>S){throw new Error(`@smithy/core/event-streams - header value (string) exceeds ${S} bytes: ${l.byteLength}`)}const u=new DataView(new ArrayBuffer(3+l.byteLength));u.setUint8(0,7);u.setUint16(1,l.byteLength,false);const d=new Uint8Array(u.buffer);d.set(l,3);return d;case"timestamp":const g=new Uint8Array(9);g[0]=8;g.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return g;case"uuid":if(!w.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const h=new Uint8Array(17);h[0]=9;h.set(c(t.value.replace(/-/g,"")),1);return h}}parse(t){const n={};let s=0;while(s<t.byteLength){const o=t.getUint8(s++);const i=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+s,o));s+=o;switch(t.getUint8(s++)){case 0:n[i]={type:f,value:true};break;case 1:n[i]={type:f,value:false};break;case 2:n[i]={type:E,value:t.getInt8(s++)};break;case 3:n[i]={type:p,value:t.getInt16(s,false)};s+=2;break;case 4:n[i]={type:C,value:t.getInt32(s,false)};s+=4;break;case 5:n[i]={type:I,value:new Int64(new Uint8Array(t.buffer,t.byteOffset+s,8))};s+=8;break;case 6:const o=t.getUint16(s,false);s+=2;n[i]={type:m,value:new Uint8Array(t.buffer,t.byteOffset+s,o)};s+=o;break;case 7:const c=t.getUint16(s,false);s+=2;n[i]={type:B,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+s,c))};s+=c;break;case 8:n[i]={type:Q,value:new Date(new Int64(new Uint8Array(t.buffer,t.byteOffset+s,8)).valueOf())};s+=8;break;case 9:const l=new Uint8Array(t.buffer,t.byteOffset+s,16);s+=16;n[i]={type:y,value:`${A(l.subarray(0,4))}-${A(l.subarray(4,6))}-${A(l.subarray(6,8))}-${A(l.subarray(8,10))}-${A(l.subarray(10))}`};break;default:throw new Error(`Unrecognized header type tag`)}}return n}}var h;(function(t){t[t["boolTrue"]=0]="boolTrue";t[t["boolFalse"]=1]="boolFalse";t[t["byte"]=2]="byte";t[t["short"]=3]="short";t[t["integer"]=4]="integer";t[t["long"]=5]="long";t[t["byteArray"]=6]="byteArray";t[t["string"]=7]="string";t[t["timestamp"]=8]="timestamp";t[t["uuid"]=9]="uuid"})(h||(h={}));const f="boolean";const E="byte";const p="short";const C="integer";const I="long";const m="binary";const B="string";const Q="timestamp";const y="uuid";const w=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;const S=32767;const R=4;const D=R*2;const k=4;const v=D+k*2;function splitMessage({byteLength:t,byteOffset:n,buffer:s}){if(t<v){throw new Error("Provided message too short to accommodate event stream message overhead")}const i=new DataView(s,n,t);const A=i.getUint32(0,false);if(t!==A){throw new Error("Reported message length does not match received message length")}const c=i.getUint32(R,false);const l=i.getUint32(D,false);const u=i.getUint32(t-k,false);const d=new o;d.update(new Uint8Array(s,n,D));if(l!==d.digestSync()){throw new Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${d.digestSync()})`)}d.update(new Uint8Array(s,n+D,t-(D+k)));if(u!==d.digestSync()){throw new Error(`The message checksum (${d.digestSync()}) did not match the expected value of ${u}`)}return{headers:new DataView(s,n+D+k,c),body:new Uint8Array(s,n+D+k+c,A-c-(D+k+k))}}class EventStreamCodec{headerMarshaller;messageBuffer;isEndOfStream;constructor(t,n){this.headerMarshaller=new HeaderMarshaller(t,n);this.messageBuffer=[];this.isEndOfStream=false}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=true}getMessage(){const t=this.messageBuffer.pop();const n=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return n}}}getAvailableMessages(){const t=this.messageBuffer;this.messageBuffer=[];const n=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return n}}}encode({headers:t,body:n}){const s=this.headerMarshaller.format(t);const i=s.byteLength+n.byteLength+16;const A=new Uint8Array(i);const c=new DataView(A.buffer,A.byteOffset,A.byteLength);const l=new o;c.setUint32(0,i,false);c.setUint32(4,s.byteLength,false);l.update(A.subarray(0,8));c.setUint32(8,l.digestSync(),false);A.set(s,12);A.set(n,s.byteLength+12);l.update(A.subarray(8,i-4));c.setUint32(i-4,l.digestSync(),false);return A}decode(t){const{headers:n,body:s}=splitMessage(t);return{headers:this.headerMarshaller.parse(n),body:s}}formatHeaders(t){return this.headerMarshaller.format(t)}}class MessageDecoderStream{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream){const n=this.options.decoder.decode(t);yield n}}}class MessageEncoderStream{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream){const n=this.options.encoder.encode(t);yield n}if(this.options.includeEndFrame){yield new Uint8Array(0)}}}class SmithyMessageDecoderStream{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream){const n=await this.options.deserializer(t);if(n===undefined){continue}yield n}}}class SmithyMessageEncoderStream{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream){const n=this.options.serializer(t);yield n}}}function getChunkedStream(t){let n=0;let s=0;let o=null;let i=null;const allocateMessage=t=>{if(typeof t!=="number"){throw new Error("Attempted to allocate an event message where size was not a number: "+t)}n=t;s=4;o=new Uint8Array(t);const i=new DataView(o.buffer);i.setUint32(0,t,false)};const iterator=async function*(){const A=t[Symbol.asyncIterator]();while(true){const{value:t,done:c}=await A.next();if(c){if(!n){return}else if(n===s){yield o}else{throw new Error("Truncated event message received.")}return}const l=t.length;let u=0;while(u<l){if(!o){const n=l-u;if(!i){i=new Uint8Array(4)}const o=Math.min(4-s,n);i.set(t.slice(u,u+o),s);s+=o;u+=o;if(s<4){break}allocateMessage(new DataView(i.buffer).getUint32(0,false));i=null}const A=Math.min(n-s,l-u);o.set(t.slice(u,u+A),s);s+=A;u+=A;if(n&&n===s){yield o;o=null;n=0;s=0}}}};return{[Symbol.asyncIterator]:iterator}}function getUnmarshalledStream(t,n){const s=getMessageUnmarshaller(n.deserializer,n.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(const o of t){const t=n.eventStreamCodec.decode(o);const i=await s(t);if(i===undefined){continue}yield i}}}}function getMessageUnmarshaller(t,n){return async function(s){const{value:o}=s.headers[":message-type"];if(o==="error"){const t=new Error(s.headers[":error-message"].value||"UnknownError");t.name=s.headers[":error-code"].value;throw t}else if(o==="exception"){const o=s.headers[":exception-type"].value;const i={[o]:s};const A=await t(i);if(A.$unknown){const t=new Error(n(s.body));t.name=o;throw t}throw A[o]}else if(o==="event"){const n={[s.headers[":event-type"].value]:s};const o=await t(n);if(o.$unknown){return}return o}else{throw Error(`Unrecognizable event type: ${s.headers[":event-type"].value}`)}}}let T=class EventStreamMarshaller{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:n}){this.eventStreamCodec=new EventStreamCodec(t,n);this.utfEncoder=t}deserialize(t,n){const s=getChunkedStream(t);return new SmithyMessageDecoderStream({messageStream:new MessageDecoderStream({inputStream:s,decoder:this.eventStreamCodec}),deserializer:getMessageUnmarshaller(n,this.utfEncoder)})}serialize(t,n){return new MessageEncoderStream({messageStream:new SmithyMessageEncoderStream({inputStream:t,serializer:n}),encoder:this.eventStreamCodec,includeEndFrame:true})}};const eventStreamSerdeProvider$1=t=>new T(t);class EventStreamMarshaller{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new T({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const s=typeof t[Symbol.asyncIterator]==="function"?t:readableToIterable(t);return this.universalMarshaller.deserialize(s,n)}serialize(t,n){return d.from(this.universalMarshaller.serialize(t,n))}}const eventStreamSerdeProvider=t=>new EventStreamMarshaller(t);async function*readableToIterable(t){let n=false;let s=false;const o=new Array;t.on("error",t=>{if(!n){n=true}if(t){throw t}});t.on("data",t=>{o.push(t)});t.on("end",()=>{n=true});while(!s){const t=await new Promise(t=>setTimeout(()=>t(o.shift()),0));if(t){yield t}s=n&&o.length===0}}const readableStreamToIterable=t=>({[Symbol.asyncIterator]:async function*(){const n=t.getReader();try{while(true){const{done:t,value:s}=await n.read();if(t){return}yield s}}finally{n.releaseLock()}}});const iterableToReadableStream=t=>{const n=t[Symbol.asyncIterator]();return new ReadableStream({async pull(t){const{done:s,value:o}=await n.next();if(s){return t.close()}t.enqueue(o)}})};const resolveEventStreamSerdeConfig=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)});class EventStreamSerde{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:n,deserializer:s,serdeContext:o,defaultContentType:i,compositeErrorRegistry:A}){this.marshaller=t;this.serializer=n;this.deserializer=s;this.serdeContext=o;this.defaultContentType=i;this.compositeErrorRegistry=A}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:s,initialMessageType:o}){const A=this.marshaller;const c=n.getEventStreamMember();const l=n.getMemberSchema(c);const u=this.serializer;const d=this.defaultContentType;const g=Symbol("initialRequestMarker");const h={async*[Symbol.asyncIterator](){if(s){const t={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:d}};u.write(n,s);const i=u.flush();yield{[g]:true,headers:t,body:i}}for await(const n of t){yield n}}};return A.serialize(h,t=>{if(t[g]){return{headers:t.headers,body:t.body}}let n="";for(const s in t){if(!i(t,s)){continue}if(s!=="__type"){n=s;break}}const{additionalHeaders:s,body:o,eventType:A,explicitPayloadContentType:c}=this.writeEventBody(n,l,t);const u={":event-type":{type:"string",value:A},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:c??d},...s};return{headers:u,body:o}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:s,initialMessageType:o}){const A=this.marshaller;const c=n.getEventStreamMember();const u=n.getMemberSchema(c);const d=u.getMemberSchemas();const g=Symbol("initialResponseMarker");const h=A.deserialize(t.body,async t=>{let s="";for(const n in t){if(!i(t,n)){continue}if(n!=="__type"){s=n;break}}const A=t[s].body;if(s===(o??"initial-response")){const t=await this.deserializer.read(n,A);delete t[c];return{[g]:true,...t}}else if(s in d){const n=d[s];if(n.isStructSchema()){const o={};let i=false;for(const[c,u]of n.structIterator()){const{eventHeader:n,eventPayload:d}=u.getMergedTraits();i=i||Boolean(n||d);if(d){if(u.isBlobSchema()){o[c]=A}else if(u.isStringSchema()){o[c]=(this.serdeContext?.utf8Encoder??l)(A)}else if(u.isStructSchema()){o[c]=await this.deserializer.read(u,A)}}else if(n){const n=t[s].headers[c]?.value;if(n!=null){if(u.isNumericSchema()){if(n&&typeof n==="object"&&"bytes"in n){o[c]=BigInt(n.toString())}else{o[c]=Number(n)}}else{o[c]=n}}}}return{[s]:await this.readEventMember(n,A,i,o)}}return{[s]:await this.deserializer.read(n,A)}}else{return{$unknown:t}}});const f=h[Symbol.asyncIterator]();const E=await f.next();if(E.done){return h}if(E.value?.[g]){if(!n){throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.")}for(const t in E.value){if(!i(E.value,t)){continue}s[t]=E.value[t]}}return{async*[Symbol.asyncIterator](){if(!E?.value?.[g]){yield E.value}while(true){const{done:t,value:n}=await f.next();if(t){break}yield n}}}}async readEventMember(t,n,s,o){let i;const A=t.getSchema();if(Array.isArray(A)&&A[0]===-3){const t=A[1];const n=g.for(t);this.compositeErrorRegistry?.copyFrom(n);i=(this.compositeErrorRegistry??n)?.getErrorCtor(A)}const c=s?o:n.byteLength===0?{}:await this.deserializer.read(t,n);if(i){const n=c.message??c.Message??"Unknown";const s={};const o=t.getMergedTraits().error;if(o){s.$fault=o}return Object.assign(new i({}),s,{message:n},c)}return c}writeEventBody(t,n,s){const o=this.serializer;let i=t;let A=null;let c;const l=(()=>{const s=n.getSchema();return s[4].includes(t)})();const d={};if(!l){const[n,A]=s[t];i=n;o.write(15,A)}else{const i=n.getMemberSchema(t);if(i.isStructSchema()){for(const[n,o]of i.structIterator()){const{eventHeader:i,eventPayload:c}=o.getMergedTraits();if(c){A=n}else if(i){const i=s[t][n];let A="binary";if(o.isNumericSchema()){if((-2)**31<=i&&i<=2**31-1){A="integer"}else{A="long"}}else if(o.isTimestampSchema()){A="timestamp"}else if(o.isStringSchema()){A="string"}else if(o.isBooleanSchema()){A="boolean"}if(i!=null){d[n]={type:A,value:i};delete s[t][n]}}}if(A!==null){const n=i.getMemberSchema(A);if(n.isBlobSchema()){c="application/octet-stream"}else if(n.isStringSchema()){c="text/plain"}o.write(n,s[t][A])}else{o.write(i,s[t])}}else if(i.isUnitSchema()){o.write(i,{})}else{throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}}const g=o.flush()??new Uint8Array;const h=typeof g==="string"?(this.serdeContext?.utf8Decoder??u)(g):g;return{body:h,eventType:i,explicitPayloadContentType:c,additionalHeaders:d}}}n.EventStreamCodec=EventStreamCodec;n.EventStreamMarshaller=EventStreamMarshaller;n.EventStreamSerde=EventStreamSerde;n.HeaderMarshaller=HeaderMarshaller;n.Int64=Int64;n.MessageDecoderStream=MessageDecoderStream;n.MessageEncoderStream=MessageEncoderStream;n.SmithyMessageDecoderStream=SmithyMessageDecoderStream;n.SmithyMessageEncoderStream=SmithyMessageEncoderStream;n.UniversalEventStreamMarshaller=T;n.eventStreamSerdeProvider=eventStreamSerdeProvider;n.getChunkedStream=getChunkedStream;n.getMessageUnmarshaller=getMessageUnmarshaller;n.getUnmarshalledStream=getUnmarshalledStream;n.iterableToReadableStream=iterableToReadableStream;n.readableStreamToIterable=readableStreamToIterable;n.resolveEventStreamSerdeConfig=resolveEventStreamSerdeConfig;n.universalEventStreamSerdeProvider=eventStreamSerdeProvider$1},3422:(t,n,s)=>{const{Uint8ArrayBlobAdapter:o,sdkStreamMixin:i,splitEvery:A,splitHeader:c,fromBase64:l,_parseEpochTimestamp:u,_parseRfc7231DateTime:d,_parseRfc3339DateTimeWithOffset:g,LazyJsonString:h,NumericValue:f,toUtf8:E,fromUtf8:p,generateIdempotencyToken:C,toBase64:I,dateToUtcString:m,quoteHeader:B,writeKey:Q,parseEpochTimestamp:y,parseRfc7231DateTime:w,parseRfc3339DateTimeWithOffset:S}=s(2430);const{HttpRequest:R,HttpResponse:D,hasOwn:k,isValidHostname:v,getSmithyContext:T}=s(4534);const{parseQueryString:N,parseUrl:F}=s(4534);n.HttpRequest=R;n.HttpResponse=D;n.isValidHostname=v;n.parseQueryString=N;n.parseUrl=F;const{TypeRegistry:x,NormalizedSchema:M,translateTraits:U,deref:L}=s(6890);const{FieldPosition:P}=s(690);const collectBody=async(t=new Uint8Array,n)=>{if(t instanceof Uint8Array){return o.mutate(t)}if(!t){return o.mutate(new Uint8Array)}const s=n.streamCollector(t);return o.mutate(await s)};function extendedEncodeURIComponent(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}class SerdeContext{serdeContext;setSerdeContext(t){this.serdeContext=t}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(t){super();this.options=t;this.compositeErrorRegistry=new x(t.defaultNamespace);for(const n of t.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(n)}}getRequestType(){return R}getResponseType(){return D}setSerdeContext(t){this.serdeContext=t;this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(t)}}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol;t.hostname=n.url.hostname;t.port=n.url.port?Number(n.url.port):undefined;t.path=n.url.pathname;t.fragment=n.url.hash||void 0;t.username=n.url.username||void 0;t.password=n.url.password||void 0;if(!t.query){t.query={}}for(const[s,o]of n.url.searchParams.entries()){t.query[s]=o}if(n.headers){for(const s in n.headers){if(!k(n.headers,s)){continue}t.headers[s]=n.headers[s].join(", ")}}return t}else{t.protocol=n.protocol;t.hostname=n.hostname;t.port=n.port?Number(n.port):undefined;t.path=n.path;t.query={...n.query};if(n.headers){for(const s in n.headers){if(!k(n.headers,s)){continue}t.headers[s]=n.headers[s]}}return t}}setHostPrefix(t,n,s){if(this.serdeContext?.disableHostPrefix){return}const o=M.of(n.input);const i=U(n.traits??{});if(i.endpoint){let n=i.endpoint?.[0];if(typeof n==="string"){for(const[t,i]of o.structIterator()){if(!i.getMergedTraits().hostLabel){continue}const o=s[t];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${t} in input must be a string as hostLabel.`)}n=n.replace(`{${t}}`,o)}t.hostname=n+t.hostname;if(!v(t.hostname)){throw new Error(`[${t.hostname}] is not a valid hostname.`)}}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}resolveError(t,n,s){const o=[-3,"","Error",0,[],[],0];let i;for(const o of s){for(const s of n){try{if(s==="*"){i=o.getSchema(t)}else{i=o.getSchema(s+"#"+t)}const n=o.getErrorCtor(i);if(n){return[i,n,"modeled"]}else{const t=o.getBaseException();if(t){const n=o.getErrorCtor(t);if(n){return[i,n,"synthetic"]}}}}catch(t){}}}for(const t of s){const n=t.getBaseException();if(n){const s=t.getErrorCtor(n);if(s){return[n,s,"synthetic"]}}}return[o,Error,"native"]}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:s}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:t,requestSchema:n,initialRequest:s})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:s}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:t,eventStreamSerdeProvider:n}=s(6579);const o=this.resolveEventStreamMarshaller(n);return new t({marshaller:o,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,s,o,i){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return t.eventStreamMarshaller}resolveEventStreamMarshaller(t){const n=this.serdeContext;if(n.eventStreamMarshaller){return n.eventStreamMarshaller}return t(this.serdeContext)}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(t,n,s){const o=n&&typeof n==="object"?n:{};const i=this.serializer;const A={};const c={};const l=await s.endpoint();const u=M.of(t?.input);const d=[];const g=[];let h=false;let f;const E=new R({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:A,headers:c,body:undefined});if(l){this.updateServiceEndpoint(E,l);this.setHostPrefix(E,t,o);const n=U(t.traits);if(n.http){E.method=n.http[0];const[t,s]=n.http[1].split("?");if(E.path=="/"){E.path=t}else{E.path+=t}const o=new URLSearchParams(s??"");for(const[t,n]of o){A[t]=n}}}for(const[t,n]of u.structIterator()){const s=n.getMergedTraits()??{};const l=o[t];if(l==null&&!n.isIdempotencyToken()){if(s.httpLabel){if(E.path.includes(`{${t}+}`)||E.path.includes(`{${t}}`)){throw new Error(`No value provided for input HTTP label: ${t}.`)}}continue}if(s.httpPayload){const s=n.isStreaming();if(s){const s=n.isStructSchema();if(s){if(o[t]){f=await this.serializeEventStream({eventStream:o[t],requestSchema:u})}}else{f=l}}else{i.write(n,l);f=i.flush()}}else if(s.httpLabel){i.write(n,l);const s=i.flush();if(E.path.includes(`{${t}+}`)){E.path=E.path.replace(`{${t}+}`,s.split("/").map(extendedEncodeURIComponent).join("/"))}else if(E.path.includes(`{${t}}`)){E.path=E.path.replace(`{${t}}`,extendedEncodeURIComponent(s))}}else if(s.httpHeader){i.write(n,l);c[s.httpHeader.toLowerCase()]=String(i.flush())}else if(typeof s.httpPrefixHeaders==="string"){for(const t in l){if(!k(l,t)){continue}const o=l[t];const A=s.httpPrefixHeaders+t;i.write([n.getValueSchema(),{httpHeader:A}],o);c[A.toLowerCase()]=i.flush()}}else if(s.httpQuery||s.httpQueryParams){this.serializeQuery(n,l,A)}else{h=true;d.push(t);g.push(n)}}if(h&&o){const[t,n]=(u.getName(true)??"#Unknown").split("#");const s=u.getSchema()[6];const A=[3,t,n,u.getMergedTraits(),d,g,undefined];if(s){A[6]=s}else{A.pop()}i.write(A,o);f=i.flush()}E.headers=c;E.query=A;E.body=f;return E}serializeQuery(t,n,s){const o=this.serializer;const i=t.getMergedTraits();if(i.httpQueryParams){for(const o in n){if(!k(n,o)){continue}if(!(o in s)){const A=n[o];const c=t.getValueSchema();Object.assign(c.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(c,A,s)}}return}if(t.isListSchema()){const A=!!t.getMergedTraits().sparse;const c=[];for(const s of n){o.write([t.getValueSchema(),i],s);const n=o.flush();if(A||n!==undefined){c.push(n)}}s[i.httpQuery]=c}else{o.write([t,i],n);s[i.httpQuery]=o.flush()}}async deserializeResponse(t,n,s){const o=this.deserializer;const i=M.of(t.output);const A={};if(s.statusCode>=300){const i=await collectBody(s.body,n);if(i.byteLength>0){Object.assign(A,await o.read(15,i))}await this.handleError(t,n,s,A,this.deserializeMetadata(s));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const t in s.headers){if(!k(s.headers,t)){continue}const n=s.headers[t];delete s.headers[t];s.headers[t.toLowerCase()]=n}const c=await this.deserializeHttpMessage(i,n,s,A);if(c.length){const t=await collectBody(s.body,n);if(t.byteLength>0){const n=await o.read(i,t);for(const t of c){if(n[t]!=null){A[t]=n[t]}}}}else if(c.discardResponseBody){await collectBody(s.body,n)}A.$metadata=this.deserializeMetadata(s);return A}async deserializeHttpMessage(t,n,s,o,l){let u;if(o instanceof Set){u=l}else{u=o}let d=true;const g=this.deserializer;const h=M.of(t);const f=[];for(const[t,o]of h.structIterator()){const l=o.getMemberTraits();if(l.httpPayload){d=false;const A=o.isStreaming();if(A){const n=o.isStructSchema();if(n){u[t]=await this.deserializeEventStream({response:s,responseSchema:h})}else{u[t]=i(s.body)}}else if(s.body){const i=await collectBody(s.body,n);if(i.byteLength>0){u[t]=await g.read(o,i)}}}else if(l.httpHeader){const n=String(l.httpHeader).toLowerCase();const i=s.headers[n];if(null!=i){if(o.isListSchema()){const s=o.getValueSchema();s.getMergedTraits().httpHeader=n;let l;if(s.isTimestampSchema()&&s.getSchema()===4){l=A(i,",",2)}else{l=c(i)}const d=[];for(const t of l){d.push(await g.read(s,t.trim()))}u[t]=d}else{u[t]=await g.read(o,i)}}}else if(l.httpPrefixHeaders!==undefined){u[t]={};for(const n in s.headers){if(!k(s.headers,n)){continue}if(n.startsWith(l.httpPrefixHeaders)){const i=s.headers[n];const A=o.getValueSchema();A.getMergedTraits().httpHeader=n;u[t][n.slice(l.httpPrefixHeaders.length)]=await g.read(A,i)}}}else if(l.httpResponseCode){u[t]=s.statusCode}else{f.push(t)}}f.discardResponseBody=d;return f}}class RpcProtocol extends HttpProtocol{async serializeRequest(t,n,s){const o=this.serializer;const i={};const A={};const c=await s.endpoint();const l=M.of(t?.input);const u=l.getSchema();let d;const g=n&&typeof n==="object"?n:{};const h=new R({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:i,headers:A,body:undefined});if(c){this.updateServiceEndpoint(h,c);this.setHostPrefix(h,t,g)}if(g){const t=l.getEventStreamMember();if(t){if(g[t]){const n={};for(const[s]of l.structIterator()){if(s!==t&&g[s]!=null){n[s]=g[s]}}d=await this.serializeEventStream({eventStream:g[t],requestSchema:l,initialRequest:n})}}else{o.write(u,g);d=o.flush()}}h.headers=Object.assign(h.headers,A);h.query=i;h.body=d;h.method="POST";return h}async deserializeResponse(t,n,s){const o=this.deserializer;const i=M.of(t.output);const A={};if(this.isErrorResponse(s.statusCode)){const i=await collectBody(s.body,n);if(i.byteLength>0){Object.assign(A,await o.read(15,i))}await this.handleError(t,n,s,A,this.deserializeMetadata(s));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const t in s.headers){if(!k(s.headers,t)){continue}const n=s.headers[t];delete s.headers[t];s.headers[t.toLowerCase()]=n}const c=i.getEventStreamMember();if(c){A[c]=await this.deserializeEventStream({response:s,responseSchema:i,initialResponseContainer:A})}else{const t=await collectBody(s.body,n);if(t.byteLength>0){Object.assign(A,await o.read(i,t))}}A.$metadata=this.deserializeMetadata(s);return A}isErrorResponse(t){return t>=300}}class AbstractRpcV2Protocol extends RpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n}){super({defaultNamespace:t,errorTypeRegistries:n})}async serializeRequest(t,n,s){const o=await super.serializeRequest(t,n,s);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":this.getSmithyProtocolHeaderValue(),accept:this.getDefaultContentType()});if(L(t.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{this.applyEmptyBody(o)}const{service:i,operation:A}=T(s);const c=`/service/${i}/operation/${A}`;if(o.path.endsWith("/")){o.path+=c.slice(1)}else{o.path+=c}return o}isErrorResponse(t){return t!==200}}const resolvedPath=(t,n,s,o,i,A)=>{if(n!=null&&n[s]!==undefined){const n=o();if(n==null||n.length<=0){throw new Error("Empty value provided for input HTTP label: "+s+".")}t=t.replace(i,A?n.split("/").map(t=>extendedEncodeURIComponent(t)).join("/"):extendedEncodeURIComponent(n))}else{throw new Error("No value provided for input HTTP label: "+s+".")}return t};function requestBuilder(t,n){return new RequestBuilder(t,n)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,n){this.input=t;this.context=n}async build(){const{hostname:t,protocol:n="https",port:s,path:o}=await this.context.endpoint();this.path=o;for(const t of this.resolvePathStack){t(this.path)}return new R({protocol:n,hostname:this.hostname||t,port:s,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){this.hostname=t;return this}bp(t){this.resolvePathStack.push(n=>{this.path=`${n?.endsWith("/")?n.slice(0,-1):n||""}`+t});return this}p(t,n,s,o){this.resolvePathStack.push(i=>{this.path=resolvedPath(i,this.input,t,n,s,o)});return this}h(t){this.headers=t;return this}q(t){this.query=t;return this}b(t){this.body=t;return this}m(t){this.method=t;return this}}function determineTimestampFormat(t,n){if(n.timestampFormat.useTrait){if(t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7)){return t.getSchema()}}const{httpLabel:s,httpPrefixHeaders:o,httpHeader:i,httpQuery:A}=t.getMergedTraits();const c=n.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(A)||Boolean(s)?5:undefined:undefined;return c??n.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(t){super();this.settings=t}read(t,n){const s=M.of(t);if(s.isListSchema()){return c(n).map(t=>this.read(s.getValueSchema(),t))}if(s.isBlobSchema()){return(this.serdeContext?.base64Decoder??l)(n)}if(s.isTimestampSchema()){const t=determineTimestampFormat(s,this.settings);switch(t){case 5:return g(n);case 6:return d(n);case 7:return u(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(s.isStringSchema()){const t=s.getMergedTraits().mediaType;let o=n;if(t){if(s.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const n=t==="application/json"||t.endsWith("+json");if(n){o=h.from(o)}return o}}if(s.isNumericSchema()){return Number(n)}if(s.isBigIntegerSchema()){return BigInt(n)}if(s.isBigDecimalSchema()){return new f(n,"bigDecimal")}if(s.isBooleanSchema()){return String(n).toLowerCase()==="true"}return n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??E)((this.serdeContext?.base64Decoder??l)(t))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(t,n){super();this.codecDeserializer=t;this.stringDeserializer=new FromStringShapeDeserializer(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t);this.codecDeserializer.setSerdeContext(t);this.serdeContext=t}read(t,n){const s=M.of(t);const o=s.getMergedTraits();const i=this.serdeContext?.utf8Encoder??E;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(s,i(n))}if(o.httpPayload){if(s.isBlobSchema()){const t=this.serdeContext?.utf8Decoder??p;if(typeof n==="string"){return t(n)}return n}else if(s.isStringSchema()){if("byteLength"in n){return i(n)}return n}}return this.codecDeserializer.read(s,n)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(t){super();this.settings=t}write(t,n){const s=M.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(s.isTimestampSchema()){if(!(n instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${s.getName(true)}`)}const t=determineTimestampFormat(s,this.settings);switch(t){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=m(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n);this.stringBuffer=String(n.getTime()/1e3)}return}if(s.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??I)(n);return}if(s.isListSchema()&&Array.isArray(n)){let t="";for(const o of n){this.write([s.getValueSchema(),s.getMergedTraits()],o);const n=this.flush();const i=s.getValueSchema().isTimestampSchema()?n:B(n);if(t!==""){t+=", "}t+=i}this.stringBuffer=t;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const t=s.getMergedTraits().mediaType;let o=n;if(t){const n=t==="application/json"||t.endsWith("+json");if(n){o=h.from(o)}if(s.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??I)(o.toString());return}}this.stringBuffer=n;break;default:if(s.isIdempotencyToken()){this.stringBuffer=C()}else{this.stringBuffer=String(n)}}}flush(){const t=this.stringBuffer;this.stringBuffer="";return t}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(t,n,s=new ToStringShapeSerializer(n)){this.codecSerializer=t;this.stringSerializer=s}setSerdeContext(t){this.codecSerializer.setSerdeContext(t);this.stringSerializer.setSerdeContext(t)}write(t,n){const s=M.of(t);const o=s.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(s,n);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(s,n)}flush(){if(this.buffer!==undefined){const t=this.buffer;this.buffer=undefined;return t}return this.codecSerializer.flush()}}class Field{name;kind;values;constructor({name:t,kind:n=P.HEADER,values:s=[]}){this.name=t;this.kind=n;this.values=s}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:t=[],encoding:n="utf-8"}){t.forEach(this.setField.bind(this));this.encoding=n}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(n=>n.kind===t)}}const getHttpHandlerExtensionConfiguration=t=>{if(t.logger&&t.logger.constructor?.name!=="NoOpLogger"){t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger)}if(t.defaultSocketTimeout){t.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"),t.defaultSocketTimeout)}return{setHttpHandler(n){t.requestHandler=n},httpHandler(){return t.requestHandler},updateHttpClientConfig(n,s){t.requestHandler?.updateHttpClientConfig(n,s)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}};const resolveHttpHandlerRuntimeConfig=t=>({requestHandler:t.httpHandler()});const O="content-length";function contentLengthMiddleware(t){return n=>async s=>{const o=s.request;if(R.isInstance(o)){const{body:n,headers:s}=o;if(n&&Object.keys(s).map(t=>t.toLowerCase()).indexOf(O)===-1){try{const s=t(n);if(s!=null){o.headers={...o.headers,[O]:String(s)}}}catch(t){}}}return n({...s,request:o})}}const H={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=t=>({applyToStack:n=>{n.add(contentLengthMiddleware(t.bodyLengthChecker),H)}});const escapeUri=t=>encodeURIComponent(t).replace(/[!'()*]/g,hexEncode);const hexEncode=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=t=>t.split("/").map(escapeUri).join("/");function buildQueryString(t){const n=[];for(let s of Object.keys(t).sort()){const o=t[s];s=escapeUri(s);if(Array.isArray(o)){for(let t=0,i=o.length;t<i;t++){n.push(`${s}=${escapeUri(o[t])}`)}}else{let t=s;if(o||typeof o==="string"){t+=`=${escapeUri(o)}`}n.push(t)}}return n.join("&")}class SerdeContextConfig{serdeContext;setSerdeContext(t){this.serdeContext=t}}class UnionSerde{from;to;keys;constructor(t,n){this.from=t;this.to=n;const s=Object.keys(this.from);const o=new Set(s);o.delete("__type");this.keys=o}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value;const n=this.from[t];this.to.$unknown=[t,n]}}}let _;function detectBufferParsing(){if(_===undefined){try{if(typeof Buffer!=="function"){_=false}else{const t=JSON.parse(Buffer.from([123,125]));_=t!==null&&typeof t==="object"}}catch{_=false}}return _}function jsonReviver(t,n,s){if(s?.source){const t=s.source;if(typeof n==="number"){const s=n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER;if(s){if(isRepresentable(t,n)){return n}return new f(t,"bigDecimal")}else{if(isFractionalBigNumeric(t)){return new f(t,"bigDecimal")}if(/[eE]/.test(t)){return expandExponentToBigInt(t)}return BigInt(t)}}}return n}function isFractionalBigNumeric(t){const n=t.indexOf(".");if(n===-1){return false}const s=t.search(/[eE]/);if(s===-1){return true}const o=s-n-1;const i=parseInt(t.slice(s+1),10);return i<o}function isRepresentable(t,n){if(t===String(n)){return true}if(Object.is(n,-0)){return true}if(/[eE]/.test(t)){return expandToDecimal(t)===expandToDecimal(String(n))}const s=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"");const o=String(n);if(s===o){return true}if(/[eE]/.test(o)){return s===expandToDecimal(o)}return false}function expandToDecimal(t){const n=t.startsWith("-");const s=n?t.slice(1):t;const o=s.search(/[eE]/);let i;if(o===-1){i=s}else{const t=parseInt(s.slice(o+1),10);const n=s.slice(0,o);const A=n.indexOf(".");let c;let l;if(A===-1){c=n;l=n.length}else{c=n.slice(0,A)+n.slice(A+1);l=A}c=c.replace(/0+$/,"")||"0";const u=l+t;if(c==="0"){i="0"}else if(u<=0){i="0."+"0".repeat(-u)+c}else if(u>=c.length){i=c+"0".repeat(u-c.length)}else{i=c.slice(0,u)+"."+c.slice(u)}}if(i.includes(".")){i=i.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")}return(n?"-":"")+i}function expandExponentToBigInt(t){const n=t.search(/[eE]/);const s=parseInt(t.slice(n+1),10);const o=t.startsWith("-");const i=t.slice(o?1:0,n);const A=i.indexOf(".");let c;let l;if(A===-1){c=i;l=s}else{c=i.slice(0,A)+i.slice(A+1);const t=i.length-A-1;l=s-t}c=c.replace(/0+$/,"")||"0";const u=BigInt(c)*10n**BigInt(l+(i.replace(".","").length-c.length));return o?-u:u}const G=Symbol.for("@aws-sdk/reviver");function needsReviver(t){const n=M.of(t);const s=n.getSchema();if(Array.isArray(s)&&n.isStructSchema()){if(G in s){return s[G]}const t=_check(n,new Set);s[G]=t;return t}return _check(n,new Set)}function _check(t,n){const s=t.getSchema();if(n.has(s)){return false}n.add(s);if(t.isBigIntegerSchema()||t.isBigDecimalSchema()){return true}if(t.isStructSchema()){for(const[,s]of t.structIterator()){if(_check(s,n)){return true}}}else if(t.isListSchema()||t.isMapSchema()){if(_check(t.getValueSchema(),n)){return true}}else if(t.isDocumentSchema()){return true}return false}const collectBodyString=(t,n)=>collectBody(t,n).then(t=>(n?.utf8Encoder??E)(t));async function parseJsonBody(t,n,s){let o;if(detectBufferParsing()&&typeof t?.[Symbol.asyncIterator]==="function"){const s=await collectBody(t,n);if(typeof Buffer==="function"){if(Buffer.isBuffer(s)){o=s}else{o=Buffer.from(s.buffer,s.byteOffset,s.byteLength)}}}if(!o){o=await collectBodyString(t,n)}if(o.length===0){return{}}const i=s&&needsReviver(s)?jsonReviver:undefined;try{return JSON.parse(o,i)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:typeof o==="string"?o:o.toString("utf8")})}throw t}}const parseJsonErrorBody=async(t,n)=>{const s=await parseJsonBody(t,n);s.message=s.message??s.Message;return s};const findKey=(t,n)=>Object.keys(t).find(t=>t.toLowerCase()===n.toLowerCase());const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}if(n.indexOf("#")>=0){n=n.split("#")[1]}return n};const loadRestJsonErrorCode=(t,n)=>loadErrorCode(t,n,["header","code","type"]);const loadJsonRpcErrorCode=(t,n,s=false)=>loadErrorCode(t,n,s?["code","header","type"]:["type","code","header"]);const loadSmithyRpcV2JsonErrorCode=(t,n)=>{if(n?.__type!==undefined){let t=n.__type;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}return t}};const loadErrorCode=({headers:t},n,s)=>{while(s.length>0){const o=s.shift();switch(o){case"header":const s=findKey(t??{},"x-amzn-errortype");if(s!==undefined){return sanitizeErrorCode(t[s])}break;case"code":const o=findKey(n??{},"code");if(o&&n[o]!==undefined){return sanitizeErrorCode(n[o])}break;case"type":if(n?.__type!==undefined){return sanitizeErrorCode(n.__type)}break}}};class JsonShapeDeserializer2 extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}async read(t,n){const s=needsReviver(t)?jsonReviver:undefined;let o;if(typeof n==="string"){if(n.length===0){return{}}o=JSON.parse(n,s)}else if(n instanceof Uint8Array&&detectBufferParsing()){if(n.byteLength===0){return{}}const t=Buffer.isBuffer(n)?n:Buffer.from(n.buffer,n.byteOffset,n.byteLength);o=JSON.parse(t,s)}else{o=await parseJsonBody(n,this.serdeContext,t)}return this._read(t,o)}readObject(t,n){return this._read(t,n)}_read(t,n){const s=n!==null&&typeof n==="object";const o=M.of(t);if(s){if(o.isStructSchema()){return this._readStruct(o,n)}if(Array.isArray(n)&&o.isListSchema()){const t=o.getValueSchema();if(this.needsTransform(t)){for(let s=0;s<n.length;++s){n[s]=this._read(t,n[s])}}return n}if(o.isMapSchema()){const t=o.getValueSchema();const s=n;if(this.needsTransform(t)){for(const n in s){if(!k(s,n)){continue}if(n==="__proto__"){Q(s)}s[n]=this._read(t,s[n])}}return s}}if(o.isBlobSchema()&&typeof n==="string"){return l(n)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof n==="string"&&i){const t=i==="application/json"||i.endsWith("+json");if(t){return h.from(n)}return n}if(o.isTimestampSchema()&&n!=null){const t=determineTimestampFormat(o,this.settings);switch(t){case 5:return S(n);case 6:return w(n);case 7:return y(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(o.isBigIntegerSchema()&&(typeof n==="number"||typeof n==="string")){return BigInt(n)}if(o.isBigDecimalSchema()&&n!=undefined){if(n instanceof f){return n}const t=n;if(t.type==="bigDecimal"&&"string"in t){return new f(t.string,t.type)}return new f(String(n),"bigDecimal")}if(o.isNumericSchema()&&typeof n==="string"){switch(n){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return n}if(o.isDocumentSchema()){if(s){if(Array.isArray(n)){for(let t=0;t<n.length;++t){const s=n[t];if(!(s instanceof f)){n[t]=this._read(o,s)}}}else{const t=n;for(const n in t){if(!k(t,n)){continue}if(n==="__proto__"){Q(t)}const s=t[n];if(!(s instanceof f)){t[n]=this._read(o,s)}}}}}return n}_readStruct(t,n){const s=t.isUnionSchema();const o={};let i;const A=typeof n.__type==="string";const{jsonName:c}=this.settings;if(c&&A){i={}}let l;if(s){l=new UnionSerde(n,o)}for(const[u,d]of t.structIterator()){let t=u;if(c){t=d.getMergedTraits().jsonName??t;if(A){i[t]=u}}if(s){l.mark(t)}if(n[t]!=null){o[u]=this._read(d,n[t])}}if(s){l.writeUnknown()}else if(A){for(const t in n){if(!k(n,t)){continue}const s=n[t];const A=c?i[t]??t:t;if(!(A in o)){o[A]=s}}}return o}needsTransform(t){if(t.isBlobSchema()||t.isTimestampSchema()||t.isBigIntegerSchema()||t.isBigDecimalSchema()||t.isNumericSchema()){return true}if(t.isDocumentSchema()||t.isStructSchema()||t.isListSchema()||t.isMapSchema()){return true}if(t.isStringSchema()&&t.getMergedTraits().mediaType){return true}return false}}class JsonBytesStringAdapter extends Uint8Array{string=null;static allocUnsafe(t){if(typeof Buffer==="function"){const n=Buffer.allocUnsafe(t);return new JsonBytesStringAdapter(n.buffer,n.byteOffset,n.byteLength)}return new JsonBytesStringAdapter(t)}toString(){return this.s()}valueOf(){return this.s()}includes(t,n){if(typeof t==="string"){return this.s().includes(t,n)}return Uint8Array.prototype.includes.call(this,t,n)}indexOf(t,n){if(typeof t==="string"){return this.s().indexOf(t,n)}return Uint8Array.prototype.indexOf.call(this,t,n)}lastIndexOf(t,n){if(typeof t==="string"){return this.s().lastIndexOf(t,n)}const s=Uint8Array.prototype.lastIndexOf;if(n!==undefined){return s.call(this,t,n)}return s.call(this,t)}startsWith(t,n){return this.s().startsWith(t,n)}endsWith(t,n){return this.s().endsWith(t,n)}match(t){return this.s().match(t)}replace(t,n){return this.s().replace(t,n)}search(t){return this.s().search(t)}split(t,n){return this.s().split(t,n)}substring(t,n){return this.s().substring(t,n)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(t){return this.s().charAt(t)}charCodeAt(t){return this.s().charCodeAt(t)}padStart(t,n){return this.s().padStart(t,n)}padEnd(t,n){return this.s().padEnd(t,n)}repeat(t){return this.s().repeat(t)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){const t=Date.now();if(t>V+6e4){console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. "+"It has been automatically converted to string. In a future version this will throw an error.");V=t}this.string=E(this)}return this.string}}var V=0;const Y=new TextEncoder;const J=123;const q=125;const W=91;const z=93;const $=34;const j=58;const K=44;const Z=92;const X=new Uint8Array([116,114,117,101]);const ee=new Uint8Array([102,97,108,115,101]);const te=new Uint8Array([110,117,108,108]);const ne=new Array(128).fill(null);ne[8]="b";ne[9]="t";ne[10]="n";ne[12]="f";ne[13]="r";ne[34]='"';ne[92]="\\";for(let t=0;t<32;t++){if(ne[t]===null){ne[t]="u00"+t.toString(16).padStart(2,"0")}}const re=2048;function alloc(t){return JsonBytesStringAdapter.allocUnsafe(t)}class JsonShapeSerializer2 extends SerdeContextConfig{settings;json;i=0;rootSchema;rawValue;passthrough=false;constructor(t){super();this.settings=t;this.json=alloc(re)}write(t,n){this.i=0;this.rawValue=n;this.rootSchema=M.of(t);this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema();if(!this.passthrough){this.writeValue(this.rootSchema,n,undefined)}}writeDiscriminatedDocument(t,n){this.i=0;this.rootSchema=M.of(t);const s=this.rootSchema;if(s.isStructSchema()&&n!=null&&typeof n==="object"){this.writeValue(s,n,undefined);const t=`"__type":"${s.getName(true)??"Unknown"}",`;const o=t.length;this.ensure(o);this.json.copyWithin(1+o,1,this.i);Y.encodeInto(t,this.json.subarray(1));this.i+=o}else{this.writeValue(s,n,undefined)}}flush(){this.rootSchema=undefined;const t=this.i;this.i=0;const n=this.rawValue;this.rawValue=undefined;if(t===0){return n}const s=this.json.subarray(0,t);this.json=alloc(re);return s}ensure(t){const{i:n,json:s}=this;if(n+t>s.length){let o=s.length*2;while(o<n+t){o*=2}const i=alloc(o);i.set(this.json);this.json=i}}writeAscii(t){const n=t.length;this.ensure(n);let{i:s,json:o}=this;for(let i=0;i<n;++i){o[s]=t.charCodeAt(i);s+=1}this.i=s}writeAsciiQuoted(t){const n=t.length;this.ensure(n+4);let{json:s,i:o}=this;s[o++]=$;for(let i=0;i<n;++i){s[o++]=t.charCodeAt(i)}s[o++]=$;this.i=o}writeJsonString(t){const n=t.length;this.ensure(n*3+2);this.json[this.i++]=$;for(let s=0;s<n;++s){const o=t.charCodeAt(s);if(o>34&&o<92){this.json[this.i++]=o}else if(o<128){const t=ne[o];if(t!==null){this.ensure(t.length+1+(n-s-1)*3+1);this.json[this.i++]=Z;for(let n=0;n<t.length;n++){this.json[this.i++]=t.charCodeAt(n)}}else{this.json[this.i++]=o}}else if(o>=55296&&o<=56319){const i=s+1<n?t.charCodeAt(s+1):0;if(i>=56320&&i<=57343){this.ensure(4);const{written:n}=Y.encodeInto(t.substring(s,s+2),this.json.subarray(this.i));this.i+=n;++s}else{this.ensure(6+(n-s-1)*3+1);this.writeUnicodeEscape(o)}}else if(o>=56320&&o<=57343){this.ensure(6+(n-s-1)*3+1);this.writeUnicodeEscape(o)}else{let{i:t,json:n}=this;if(o<2048){n[t++]=192|o>>6;n[t++]=128|o&63}else{n[t++]=224|o>>12;n[t++]=128|o>>6&63;n[t++]=128|o&63}this.i=t}}this.json[this.i++]=$}writeUnicodeEscape(t){let{json:n,i:s}=this;n[s++]=Z;n[s++]=117;const o=t.toString(16).padStart(4,"0");for(let t=0;t<4;++t){n[s++]=o.charCodeAt(t)}this.i=s}static B64=(()=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=new Uint8Array(64);for(let s=0;s<64;++s){n[s]=t.charCodeAt(s)}return n})();writeBase64(t){const n=Math.ceil(t.length/3)*4;this.ensure(n+2);const s=this.json;const o=JsonShapeSerializer2.B64;let i=this.i;s[i++]=$;const A=t.length;const c=A%3;const l=A-c;for(let n=0;n<l;n+=3){const A=t[n];const c=t[n+1];const l=t[n+2];s[i++]=o[A>>2];s[i++]=o[(A&3)<<4|c>>4];s[i++]=o[(c&15)<<2|l>>6];s[i++]=o[l&63]}if(c===2){const n=t[l];const A=t[l+1];s[i++]=o[n>>2];s[i++]=o[(n&3)<<4|A>>4];s[i++]=o[(A&15)<<2];s[i++]=61}else if(c===1){const n=t[l];s[i++]=o[n>>2];s[i++]=o[(n&3)<<4];s[i++]=61;s[i++]=61}s[i++]=$;this.i=i}writeValue(t,n,s){if(n==null){if(s?.isStructSchema()){if(n===undefined){const n=M.of(t);if(n.isIdempotencyToken()){this.writeAsciiQuoted(C());return}}return}this.ensure(4);this.json.set(te,this.i);this.i+=4;return}const o=M.of(t);const i=typeof n==="object";if(o.isStringSchema()){const t=o.getMergedTraits().mediaType;if(t){const s=t==="application/json"||t.endsWith("+json");if(s){this.writeJsonString(h.from(n).toString());return}}}if(this.settings.bigNumberAsString&&n!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){const t=n instanceof f?n.string:String(n);this.writeAsciiQuoted(t);return}if(i){if(o.isStructSchema()){this.writeStruct(o,n);return}if(Array.isArray(n)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,n,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,n,false);return}if(n instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(n);return}if(n instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,n);return}if(n instanceof f){this.writeAscii(n.string);return}if(o.isDocumentSchema()){if(Array.isArray(n)){this.writeList(o,n,true)}else{this.writeMap(o,n,true)}return}const t=JSON.stringify(n);this.writeAscii(t);return}if(typeof n==="string"){if(o.isBlobSchema()){const t=(this.serdeContext?.base64Encoder??I)(n);this.writeAsciiQuoted(t);return}this.writeJsonString(n);return}if(typeof n==="number"){if(Math.abs(n)===Infinity||Number.isNaN(n)){this.writeAsciiQuoted(String(n));return}const t=String(n);this.writeAscii(t);return}if(typeof n==="boolean"){this.ensure(5);let{i:t,json:s}=this;if(n){s.set(X,t);t+=4}else{s.set(ee,t);t+=5}this.i=t;return}if(typeof n==="bigint"){this.writeAscii(n.toString());return}this.writeAscii(String(n))}writeStruct(t,n){this.ensure(2);this.json[this.i++]=J;let s=false;const o=typeof n.__type==="string";let i;if(o){i=new Set}for(const[o,A]of t.structIterator()){const c=n[o];if(c==null&&!A.isIdempotencyToken()){continue}if(s){this.ensure(1);this.json[this.i++]=K}s=true;const l=this.settings.jsonName?A.getMergedTraits().jsonName??o:o;if(i){i.add(o);i.add(l)}this.writeAsciiQuoted(l);this.json[this.i++]=j;this.writeValue(A,c,t)}if(!s&&t.isUnionSchema()){const{$unknown:s}=n;if(Array.isArray(s)){const[n,o]=s;this.writeAsciiQuoted(n);this.ensure(1);this.json[this.i++]=j;this.writeValue(15,o,t)}}else if(o){for(const t in n){if(i.has(t)){continue}i.add(t);const o=n[t];if(s){this.ensure(1);this.json[this.i++]=K}s=true;this.writeAsciiQuoted(t);this.ensure(1);this.json[this.i++]=j;this.writeValue(15,o,undefined)}}this.ensure(1);this.json[this.i++]=q}writeList(t,n,s){const o=!!t.getMergedTraits().sparse;const i=t.getValueSchema();if(!s){if(i.isStringSchema()||i.isNumericSchema()||i.isBooleanSchema()){let t=false;for(let s=0;s<n.length;++s){const i=n[s];if(Number.isNaN(i)||i===Infinity||i===-Infinity||i==null&&!o){t=true;break}}let s;if(!t){s=JSON.stringify(n)}else{const t=[];for(let s=0;s<n.length;++s){const i=n[s];if(i==null&&!o){continue}if(Number.isNaN(i)||i===Infinity||i===-Infinity){t.push(String(i))}else{t.push(i)}}s=JSON.stringify(t)}this.ensure(s.length*3);this.i+=Y.encodeInto(s,this.json.subarray(this.i)).written;return}}this.ensure(2);this.json[this.i++]=W;let A=false;for(let t=0;t<n.length;++t){const c=n[t];if(s?c===undefined:c==null&&!o){continue}if(A){this.ensure(1);this.json[this.i++]=K}this.writeValue(i,c,undefined);A=true}this.ensure(1);this.json[this.i++]=z}writeMap(t,n,s){const o=!!t.getMergedTraits().sparse;const i=t.getValueSchema();if(!s){if(i.isStringSchema()||i.isNumericSchema()||i.isBooleanSchema()){let t;for(const s in n){if(!k(n,s)){continue}const i=n[s];if(Number.isNaN(i)||i===Infinity||i===-Infinity){(t??={})[s]=i;n[s]=String(i)}else if(i===null&&!o){(t??={})[s]=null;n[s]=undefined}}const s=JSON.stringify(n);if(t){Object.assign(n,t)}this.ensure(s.length*3);this.i+=Y.encodeInto(s,this.json.subarray(this.i)).written;return}}this.ensure(2);this.json[this.i++]=J;let A=true;for(const t in n){if(!k(n,t)){continue}const c=n[t];if(s?c===undefined:c==null&&!o){continue}if(!A){this.ensure(1);this.json[this.i++]=K}A=false;this.writeJsonString(t);this.ensure(1);this.json[this.i++]=j;this.writeValue(i,c,undefined)}this.ensure(1);this.json[this.i++]=q}writeTimestamp(t,n){const s=determineTimestampFormat(t,this.settings);switch(s){case 5:{const t=n.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(t);return}case 6:{this.writeAsciiQuoted(m(n));return}case 7:{const t=String(n.getTime()/1e3);this.writeAscii(t);return}default:{const t=String(n.getTime()/1e3);this.writeAscii(t);return}}}}class JsonCodec2 extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new JsonShapeSerializer2(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new JsonShapeDeserializer2(this.settings);t.setSerdeContext(this.serdeContext);return t}}class SmithyRpcV2JsonProtocol extends AbstractRpcV2Protocol{codec=new JsonCodec2({timestampFormat:{useTrait:false,default:7},jsonName:false,bigNumberAsString:true});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-json"}applyEmptyBody(t){if(!t.body){t.body="{}"}}async handleError(t,n,s,o,i){const A=loadSmithyRpcV2JsonErrorCode(s,o)??"Unknown";const c={$metadata:i,$fault:s.statusCode<=500?"client":"server"};let l=this.options.defaultNamespace;if(A.includes("#")){[l]=A.split("#")}const u=this.compositeErrorRegistry;const d=x.for(l);u.copyFrom(d);let g;try{g=u.getSchema(A)}catch(t){if(o.Message){o.message=o.Message}const n=x.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(n);const s=u.getBaseException();if(s){const t=u.getErrorCtor(s);throw Object.assign(new t({name:A}),c,o)}throw Object.assign(new Error(A),c,o)}const h=M.of(g);const f=u.getErrorCtor(g);const E=o.message??o.Message??"Unknown";const p=new f({});const C={};const I=this.codec.createDeserializer();for(const[t,n]of h.structIterator()){if(o[t]!=null){C[t]=I.readObject(n,o[t])}}throw Object.assign(p,c,{$fault:h.getMergedTraits().error,message:E},C)}getDefaultContentType(){return"application/json"}}class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}async read(t,n){const s=needsReviver(t)?jsonReviver:undefined;return this._read(t,typeof n==="string"?JSON.parse(n,s):await parseJsonBody(n,this.serdeContext,t))}readObject(t,n){return this._read(t,n)}_read(t,n){const s=n!==null&&typeof n==="object";const o=M.of(t);if(s){if(o.isStructSchema()){const t=n;const s=o.isUnionSchema();const i={};let A=void 0;const{jsonName:c}=this.settings;if(c){A={}}let l;if(s){l=new UnionSerde(t,i)}for(const[n,u]of o.structIterator()){let o=n;if(c){o=u.getMergedTraits().jsonName??o;A[o]=n}if(s){l.mark(o)}if(t[o]!=null){i[n]=this._read(u,t[o])}}if(s){l.writeUnknown()}else if(typeof t.__type==="string"){for(const n in t){if(!k(t,n)){continue}const s=t[n];const o=c?A[n]??n:n;if(!(o in i)){i[o]=s}}}return i}if(Array.isArray(n)&&o.isListSchema()){const t=o.getValueSchema();const s=[];for(const o of n){s.push(this._read(t,o))}return s}if(o.isMapSchema()){const t=o.getValueSchema();const s={};for(const o in n){if(!k(n,o)){continue}if(o==="__proto__"){Q(s)}s[o]=this._read(t,n[o])}return s}}if(o.isBlobSchema()&&typeof n==="string"){return l(n)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof n==="string"&&i){const t=i==="application/json"||i.endsWith("+json");if(t){return h.from(n)}return n}if(o.isTimestampSchema()&&n!=null){const t=determineTimestampFormat(o,this.settings);switch(t){case 5:return S(n);case 6:return w(n);case 7:return y(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(o.isBigIntegerSchema()&&(typeof n==="number"||typeof n==="string")){return BigInt(n)}if(o.isBigDecimalSchema()&&n!=undefined){if(n instanceof f){return n}const t=n;if(t.type==="bigDecimal"&&"string"in t){return new f(t.string,t.type)}return new f(String(n),"bigDecimal")}if(o.isNumericSchema()&&typeof n==="string"){switch(n){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return n}if(o.isDocumentSchema()){if(s){const t=Array.isArray(n)?[]:{};for(const s in n){if(!k(n,s)){continue}if(s==="__proto__"){Q(t)}const i=n[s];if(i instanceof f){t[s]=i}else{t[s]=this._read(o,i)}}return t}else{return structuredClone(n)}}return n}}const se=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(t,n)=>{if(n instanceof f){const t=`${se+"nv"+this.counter++}_`+n.string;this.values.set(`"${t}"`,n.string);return t}if(typeof n==="bigint"){const t=n.toString();const s=`${se+"b"+this.counter++}_`+t;this.values.set(`"${s}"`,t);return s}return n}}replaceInJson(t){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return t}for(const[n,s]of this.values){t=t.replace(n,s)}return t}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(t){super();this.settings=t}write(t,n){this.rootSchema=M.of(t);this.buffer=this._write(this.rootSchema,n)}flush(){const{rootSchema:t,useReplacer:n}=this;this.rootSchema=undefined;this.useReplacer=false;if(t?.isStructSchema()||t?.isDocumentSchema()){if(!n){return JSON.stringify(this.buffer)}const t=new JsonReplacer;return t.replaceInJson(JSON.stringify(this.buffer,t.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(t,n){this.write(t,n);if(typeof this.buffer==="object"){this.buffer.__type=M.of(t).getName(true)}}_write(t,n,s){const o=n!==null&&typeof n==="object";const i=M.of(t);if(o){if(i.isStructSchema()){const t=n;const s={};const{jsonName:o}=this.settings;let A=void 0;if(o){A={}}let c=0;for(const[n,l]of i.structIterator()){const u=this._write(l,t[n],i);if(u!==undefined){let t=n;if(o){t=l.getMergedTraits().jsonName??n;A[n]=t}s[t]=u;c++}}if(i.isUnionSchema()&&c===0){const{$unknown:n}=t;if(Array.isArray(n)){const[t,o]=n;if(t==="__proto__"){Q(s)}s[t]=this._write(15,o)}}else if(typeof t.__type==="string"){for(const n in t){if(!k(t,n)){continue}const i=t[n];const c=o?A[n]??n:n;if(!(c in s)){s[c]=this._write(15,i)}}}return s}if(Array.isArray(n)&&i.isListSchema()){const t=i.getValueSchema();const s=[];const o=!!i.getMergedTraits().sparse;for(const i of n){if(o||i!=null){s.push(this._write(t,i))}}return s}if(i.isMapSchema()){const t=i.getValueSchema();const s={};const o=!!i.getMergedTraits().sparse;for(const i in n){if(!k(n,i)){continue}const A=n[i];if(o||A!=null){if(i==="__proto__"){Q(s)}s[i]=this._write(t,A)}}return s}if(n instanceof Uint8Array&&i.isBlobSchema()){if(i===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??I)(n)}if(n instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema())){const t=determineTimestampFormat(i,this.settings);switch(t){case 5:return n.toISOString().replace(".000Z","Z");case 6:return m(n);case 7:return n.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",n);return n.getTime()/1e3}}if(n instanceof f){this.useReplacer=true}}if(n===null&&s?.isStructSchema()){return void 0}if(i.isStringSchema()){if(typeof n==="undefined"&&i.isIdempotencyToken()){return C()}const t=i.getMergedTraits().mediaType;if(n!=null&&t){const s=t==="application/json"||t.endsWith("+json");if(s){return h.from(n)}}return n}if(typeof n==="number"){if(Math.abs(n)===Infinity||isNaN(n)){return String(n)}return n}if(typeof n==="string"&&i.isBlobSchema()){if(i===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??I)(n)}if(typeof n==="bigint"){this.useReplacer=true}if(i.isDocumentSchema()){if(o){if(n instanceof Uint8Array){return(this.serdeContext?.base64Encoder??I)(n)}const t=Array.isArray(n)?[]:{};for(const s in n){if(!k(n,s)){continue}const o=n[s];if(s==="__proto__"){Q(t)}if(o instanceof f){this.useReplacer=true;t[s]=o}else{t[s]=this._write(i,o)}}return t}else{return structuredClone(n)}}return n}}class JsonCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new JsonShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new JsonShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}n.AbstractRpcV2Protocol=AbstractRpcV2Protocol;n.Field=Field;n.Fields=Fields;n.FromStringShapeDeserializer=FromStringShapeDeserializer;n.HttpBindingProtocol=HttpBindingProtocol;n.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;n.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;n.HttpProtocol=HttpProtocol;n.JsonCodec=JsonCodec;n.JsonCodec2=JsonCodec2;n.JsonShapeDeserializer=JsonShapeDeserializer;n.JsonShapeDeserializer2=JsonShapeDeserializer2;n.JsonShapeSerializer=JsonShapeSerializer;n.JsonShapeSerializer2=JsonShapeSerializer2;n.RequestBuilder=RequestBuilder;n.RpcProtocol=RpcProtocol;n.SerdeContext=SerdeContext;n.SmithyRpcV2JsonProtocol=SmithyRpcV2JsonProtocol;n.ToStringShapeSerializer=ToStringShapeSerializer;n.buildQueryString=buildQueryString;n.collectBody=collectBody;n.contentLengthMiddleware=contentLengthMiddleware;n.contentLengthMiddlewareOptions=H;n.determineTimestampFormat=determineTimestampFormat;n.escapeUri=escapeUri;n.escapeUriPath=escapeUriPath;n.extendedEncodeURIComponent=extendedEncodeURIComponent;n.getContentLengthPlugin=getContentLengthPlugin;n.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;n.loadJsonRpcErrorCode=loadJsonRpcErrorCode;n.loadRestJsonErrorCode=loadRestJsonErrorCode;n.loadSmithyRpcV2JsonErrorCode=loadSmithyRpcV2JsonErrorCode;n.parseJsonBody=parseJsonBody;n.parseJsonErrorBody=parseJsonErrorBody;n.requestBuilder=requestBuilder;n.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig;n.resolvedPath=resolvedPath},3609:(t,n,s)=>{const{Readable:o}=s(7075);const{NoOpLogger:i,normalizeProvider:A}=s(2658);const{HttpResponse:c,HttpRequest:l}=s(3422);const{parseRfc7231DateTime:u,v4:d}=s(2430);const{hasOwn:g}=s(4534);const isStreamingPayload=t=>t?.body instanceof o||typeof ReadableStream!=="undefined"&&t?.body instanceof ReadableStream;const h=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const f=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const E=["TimeoutError","RequestTimeout","RequestTimeoutException"];const p=[500,502,503,504];const C=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const I=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"];const isRetryableByTrait=t=>t?.$retryable!==undefined;const isClockSkewError=t=>h.includes(t.name);const isClockSkewCorrectedError=t=>t.$metadata?.clockSkewCorrected;const isBrowserNetworkError=t=>{const n=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const s=t&&t instanceof TypeError;if(!s){return false}return n.has(t.message)};const isThrottlingError=t=>t.$metadata?.httpStatusCode===429||f.includes(t.name)||t.$retryable?.throttling==true;const isTransientError=(t,n=0)=>t?.name!=="AbortError"&&(isRetryableByTrait(t)||isClockSkewCorrectedError(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||E.includes(t.name)||C.includes(t?.code||"")||I.includes(t?.code||"")||p.includes(t.$metadata?.httpStatusCode||0)||isBrowserNetworkError(t)||isNodeJsHttp2TransientError(t)||t.cause!==undefined&&n<=10&&isTransientError(t.cause,n+1));const isServerError=t=>{if(t.$metadata?.httpStatusCode!==undefined){const n=t.$metadata.httpStatusCode;if(500<=n&&n<=599&&!isTransientError(t)){return true}return false}return false};function isNodeJsHttp2TransientError(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}const m=100;const B=20*1e3;const Q=500;const y=500;const w=5;const S=10;const R=1;const D="amz-sdk-invocation-id";const k="amz-sdk-request";function parseRetryAfterHeader(t,n){if(!c.isInstance(t)){return}for(const s in t.headers){if(!g(t.headers,s)){continue}const o=s.toLowerCase();if(o==="retry-after"){const o=t.headers[s];let i=NaN;if(o.endsWith("GMT")){try{const t=u(o);i=(t.getTime()-Date.now())/1e3}catch(t){n?.trace?.("Failed to parse retry-after header");n?.trace?.(t)}}else if(o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)){i=Number(o.match(/ GMT, ([\d.]+)$/)?.[1])}else if(o.match(/^((\d+)|(\d+\.\d+))$/)){i=Number(o)}else if(Date.parse(o)>=Date.now()){i=(Date.parse(o)-Date.now())/1e3}if(isNaN(i)){return}return new Date(Date.now()+i*1e3)}else if(o==="x-amz-retry-after"){const o=t.headers[s];const i=Number(o);if(isNaN(i)){n?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+i)}}}function getRetryAfterHint(t,n){return parseRetryAfterHeader(t,n)}const asSdkError=t=>{if(t instanceof Error){return t}if(t instanceof Object){return Object.assign(new Error,t)}if(typeof t==="string"){return new Error(t)}return new Error(`AWS SDK error wrapper for ${t}`)};function bindRetryMiddleware(t){return n=>(s,o)=>async A=>{let c=await n.retryStrategy();const u=await n.maxAttempts();if(isRetryStrategyV2(c)){c=c;let g=await c.acquireInitialRetryToken((o["partition_id"]??"")+(o.__retryLongPoll?":longpoll":""));let h=new Error;let f=0;let E=0;const{request:p}=A;const C=l.isInstance(p);if(C){p.headers[D]=d()}while(true){try{if(C){p.headers[k]=`attempt=${f+1}; max=${u}`}const{response:t,output:n}=await s(A);c.recordSuccess(g);n.$metadata.attempts=f+1;n.$metadata.totalRetryDelay=E;return{response:t,output:n}}catch(s){const A=getRetryErrorInfo(s,n.logger);h=asSdkError(s);if(C&&t(p)){(o.logger instanceof i?console:o.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw h}try{g=await c.refreshRetryTokenForRetry(g,A)}catch(t){if(!h.$metadata){h.$metadata={}}h.$metadata.attempts=f+1;h.$metadata.totalRetryDelay=E;throw h}f=g.getRetryCount();const l=g.getRetryDelay();E+=(g?.$retryLog?.acquisitionDelay??0)+l;if(l>0){await cooldown(l)}}}}else{c=c;if(c?.mode){o.userAgent=[...o.userAgent||[],["cfg/retry-mode",c.mode]]}return c.retry(s,A)}}}const cooldown=t=>new Promise(n=>setTimeout(n,t));const isRetryStrategyV2=t=>typeof t.acquireInitialRetryToken!=="undefined"&&typeof t.refreshRetryTokenForRetry!=="undefined"&&typeof t.recordSuccess!=="undefined";const getRetryErrorInfo=(t,n)=>{const s={error:t,errorType:getRetryErrorType(t)};const o=parseRetryAfterHeader(t.$response,n);if(o){s.retryAfterHint=o}return s};const getRetryErrorType=t=>{if(isThrottlingError(t)){return"THROTTLING"}if(isTransientError(t)){return"TRANSIENT"}if(isServerError(t)){return"SERVER_ERROR"}return"CLIENT_ERROR"};const v={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};function bindGetRetryPlugin(t){const n=bindRetryMiddleware(t);return t=>({applyToStack:s=>{s.add(n(t),v)}})}class DefaultRateLimiter{static setTimeoutFn=(t,n)=>setTimeout(t,n);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7;this.minCapacity=t?.minCapacity??1;this.minFillRate=t?.minFillRate??.5;this.scaleConstant=t?.scaleConstant??.4;this.smooth=t?.smooth??.8;this.lastThrottleTime=this.getCurrentTimeInSeconds();this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let n;this.updateMeasuredRate();const s=t;const o=s?.errorType==="THROTTLING"||isThrottlingError(s?.error??t);if(o){const t=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=t;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();n=this.cubicThrottle(t);this.enableTokenBucket()}else{this.calculateTimeWindow();n=this.cubicSuccess(this.getCurrentTimeInSeconds())}const i=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(i)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(!this.enabled){return}this.refillTokenBucket();while(t>this.availableTokens){const n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>DefaultRateLimiter.setTimeoutFn(t,n));this.refillTokenBucket()}this.availableTokens=this.availableTokens-t}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+n);this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(t){this.refillTokenBucket();this.fillRate=Math.max(t,this.minFillRate);this.maxCapacity=Math.max(t,this.minCapacity);this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds();const n=Math.floor(t*2)/2;this.requestCount++;if(n>this.lastTxRateBucket){const t=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}class Retry{static v2026=typeof process!=="undefined"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return Retry.v2026?50:100}static throttlingDelay(){return Retry.v2026?1e3:500}static cost(){return Retry.v2026?14:5}static throttlingCost(){return Retry.v2026?5:10}static modifiedCostType(){return Retry.v2026?"THROTTLING":"TRANSIENT"}}class DefaultRetryBackoffStrategy{x=Retry.delay();computeNextBackoffDelay(t){const n=Math.random();const s=2;const o=n*Math.min(this.x*s**t,B);return Math.floor(o)}setDelayBase(t){this.x=t}}class DefaultRetryToken{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(t,n,s,o){this.delay=t;this.count=n;this.cost=s;this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(B,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var T;(function(t){t["STANDARD"]="standard";t["ADAPTIVE"]="adaptive"})(T||(T={}));const N=3;const F=T.STANDARD;const x={incompatible:1,attempts:2,capacity:3};let M=class StandardRetryStrategy{mode=T.STANDARD;retryBackoffStrategy;capacity=y;maxAttemptsProvider;baseDelay;constructor(t){if(typeof t==="number"){this.maxAttemptsProvider=async()=>t}else if(typeof t==="function"){this.maxAttemptsProvider=t}else if(t&&typeof t==="object"){this.maxAttemptsProvider=async()=>t.maxAttempts;this.baseDelay=t.baseDelay;this.retryBackoffStrategy=t.backoff}this.maxAttemptsProvider??=async()=>N;this.baseDelay??=Retry.delay();this.retryBackoffStrategy??=new DefaultRetryBackoffStrategy}async acquireInitialRetryToken(t){return new DefaultRetryToken(Retry.delay(),0,undefined,Retry.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,n){const s=await this.getMaxAttempts();const o=this.retryCode(t,n,s);const i=o===0;const A=t.isLongPoll?.();if(i||A){const s=n.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?Retry.throttlingDelay():this.baseDelay);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount());let l=c;if(n.retryAfterHint instanceof Date){l=Math.max(c,Math.min(n.retryAfterHint.getTime()-Date.now(),c+5e3))}if(!i){const t=Retry.v2026&&o===x.capacity&&A?l:0;if(t>0){await new Promise(n=>setTimeout(n,t))}}else{const n=this.getCapacityCost(s);this.capacity-=n;const o=new DefaultRetryToken(0,t.getRetryCount()+1,n,t.isLongPoll?.()??false);await new Promise(t=>setTimeout(t,l));o.$retryLog.acquisitionDelay=l;return o}}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(y,this.capacity+(t.getRetryCost()??R))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){console.warn(`Max attempts provider could not resolve. Using default of ${N}`);return N}}retryCode(t,n,s){const o=t.getRetryCount()+1;const i=this.isRetryableError(n.errorType)?0:x.incompatible;const A=o<s?0:x.attempts;const c=this.capacity>=this.getCapacityCost(n.errorType)?0:x.capacity;return i||A||c}getCapacityCost(t){return t===Retry.modifiedCostType()?Retry.throttlingCost():Retry.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};let U=class AdaptiveRetryStrategy{mode=T.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,n){const{rateLimiter:s}=n??{};this.rateLimiter=s??new DefaultRateLimiter;this.standardRetryStrategy=n?new M({maxAttempts:typeof t==="number"?t:3,...n}):new M(t)}async acquireInitialRetryToken(t){const n=await this.standardRetryStrategy.acquireInitialRetryToken(t);await this.rateLimiter.getSendToken();return n}async refreshRetryTokenForRetry(t,n){this.rateLimiter.updateClientSendingRate(n);const s=await this.standardRetryStrategy.refreshRetryTokenForRetry(t,n);await this.rateLimiter.getSendToken();return s}recordSuccess(t){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class ConfiguredRetryStrategy extends M{computeNextBackoffDelay;constructor(t,n=Retry.delay()){super(typeof t==="function"?t:async()=>t);if(typeof n==="number"){this.computeNextBackoffDelay=()=>n}else{this.computeNextBackoffDelay=n}this.retryBackoffStrategy.computeNextBackoffDelay=t=>{const n=t+1;return this.computeNextBackoffDelay(n)}}}const getDefaultRetryQuota=(t,n)=>{const s=t;const o=R;const i=w;const A=S;let c=t;const getCapacityAmount=t=>t.name==="TimeoutError"?A:i;const hasRetryTokens=t=>getCapacityAmount(t)<=c;const retrieveRetryTokens=t=>{if(!hasRetryTokens(t)){throw new Error("No retry token available")}const n=getCapacityAmount(t);c-=n;return n};const releaseRetryTokens=t=>{c+=t??o;c=Math.min(c,s)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(t,n)=>Math.floor(Math.min(B,Math.random()*2**n*t));const defaultRetryDecider=t=>{if(!t){return false}return isRetryableByTrait(t)||isClockSkewError(t)||isThrottlingError(t)||isTransientError(t)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=T.STANDARD;constructor(t,n){this.maxAttemptsProvider=t;this.retryDecider=n?.retryDecider??defaultRetryDecider;this.delayDecider=n?.delayDecider??defaultDelayDecider;this.retryQuota=n?.retryQuota??getDefaultRetryQuota(y)}shouldRetry(t,n,s){return n<s&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch(n){t=N}return t}async retry(t,n,s){let o;let i=0;let A=0;const c=await this.getMaxAttempts();const{request:u}=n;if(l.isInstance(u)){u.headers[D]=d()}while(true){try{if(l.isInstance(u)){u.headers[k]=`attempt=${i+1}; max=${c}`}if(s?.beforeRequest){await s.beforeRequest()}const{response:d,output:g}=await t(n);if(s?.afterRequest){s.afterRequest(d)}this.retryQuota.releaseRetryTokens(o);g.$metadata.attempts=i+1;g.$metadata.totalRetryDelay=A;return{response:d,output:g}}catch(t){const n=asSdkError(t);i++;if(this.shouldRetry(n,i,c)){o=this.retryQuota.retrieveRetryTokens(n);const t=this.delayDecider(isThrottlingError(n)?Q:m,i);const s=getDelayFromRetryAfterHeader(n.$response);const c=Math.max(s||0,t);A+=c;await new Promise(t=>setTimeout(t,c));continue}if(!n.$metadata){n.$metadata={}}n.$metadata.attempts=i;n.$metadata.totalRetryDelay=A;throw n}}}}const getDelayFromRetryAfterHeader=t=>{if(!c.isInstance(t)){return}const n=Object.keys(t.headers).find(t=>t.toLowerCase()==="retry-after");if(!n){return}const s=t.headers[n];const o=Number(s);if(!Number.isNaN(o)){return Math.min(o*1e3,2e4)}const i=new Date(s);return Math.min(i.getTime()-Date.now(),2e4)};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(t,n){const{rateLimiter:s,...o}=n??{};super(t,o);this.rateLimiter=s??new DefaultRateLimiter;this.mode=T.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:t=>{this.rateLimiter.updateClientSendingRate(t)}})}}const L="AWS_MAX_ATTEMPTS";const P="max_attempts";const O={environmentVariableSelector:t=>{const n=t[L];if(!n){return undefined}const s=parseInt(n);if(Number.isNaN(s)){throw new Error(`Environment variable ${L} mast be a number, got "${n}"`)}return s},configFileSelector:t=>{const n=t[P];if(!n){return undefined}const s=parseInt(n);if(Number.isNaN(s)){throw new Error(`Shared config file entry ${P} mast be a number, got "${n}"`)}return s},default:N};const resolveRetryConfig=(t,n)=>{const{retryStrategy:s,retryMode:o}=t;const{defaultMaxAttempts:i=N,defaultBaseDelay:c=Retry.delay()}=n??{};const l=A(t.maxAttempts??i);let u=s?Promise.resolve(s):undefined;const getDefault=async()=>{const t=await l();const n=await A(o)()===T.ADAPTIVE;if(n){return new U(l,{maxAttempts:t,baseDelay:c})}return new M({maxAttempts:t,baseDelay:c})};return Object.assign(t,{maxAttempts:l,retryStrategy:()=>u??=getDefault()})};const H="AWS_RETRY_MODE";const _="retry_mode";const G={environmentVariableSelector:t=>t[H],configFileSelector:t=>t[_],default:F};const omitRetryHeadersMiddleware=()=>t=>async n=>{const{request:s}=n;if(l.isInstance(s)){delete s.headers[D];delete s.headers[k]}return t(n)};const V={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=t=>({applyToStack:t=>{t.addRelativeTo(omitRetryHeadersMiddleware(),V)}});const Y=bindRetryMiddleware(isStreamingPayload);const J=bindGetRetryPlugin(isStreamingPayload);n.AdaptiveRetryStrategy=U;n.CONFIG_MAX_ATTEMPTS=P;n.CONFIG_RETRY_MODE=_;n.ConfiguredRetryStrategy=ConfiguredRetryStrategy;n.DEFAULT_MAX_ATTEMPTS=N;n.DEFAULT_RETRY_DELAY_BASE=m;n.DEFAULT_RETRY_MODE=F;n.DefaultRateLimiter=DefaultRateLimiter;n.DeprecatedAdaptiveRetryStrategy=AdaptiveRetryStrategy;n.DeprecatedStandardRetryStrategy=StandardRetryStrategy;n.ENV_MAX_ATTEMPTS=L;n.ENV_RETRY_MODE=H;n.INITIAL_RETRY_TOKENS=y;n.INVOCATION_ID_HEADER=D;n.MAXIMUM_RETRY_DELAY=B;n.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=O;n.NODE_RETRY_MODE_CONFIG_OPTIONS=G;n.NO_RETRY_INCREMENT=R;n.REQUEST_HEADER=k;n.RETRY_COST=w;n.RETRY_MODES=T;n.Retry=Retry;n.StandardRetryStrategy=M;n.THROTTLING_RETRY_DELAY_BASE=Q;n.TIMEOUT_RETRY_COST=S;n.defaultDelayDecider=defaultDelayDecider;n.defaultRetryDecider=defaultRetryDecider;n.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;n.getRetryAfterHint=getRetryAfterHint;n.getRetryPlugin=J;n.isBrowserNetworkError=isBrowserNetworkError;n.isClockSkewCorrectedError=isClockSkewCorrectedError;n.isClockSkewError=isClockSkewError;n.isNodeJsHttp2TransientError=isNodeJsHttp2TransientError;n.isRetryableByTrait=isRetryableByTrait;n.isServerError=isServerError;n.isThrottlingError=isThrottlingError;n.isTransientError=isTransientError;n.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;n.omitRetryHeadersMiddlewareOptions=V;n.resolveRetryConfig=resolveRetryConfig;n.retryMiddleware=Y;n.retryMiddlewareOptions=v},6890:(t,n,s)=>{const{getSmithyContext:o,HttpResponse:i,toEndpointV1:A}=s(4534);const deref=t=>{if(typeof t==="function"){return t()}return t};const operation=(t,n,s,o,i)=>({name:n,namespace:t,traits:s,input:o,output:i});const schemaDeserializationMiddleware=t=>(n,s)=>async A=>{const{response:c}=await n(A);const{operationSchema:l}=o(s);const[,u,d,g,h,f]=l??[];try{const n=await t.protocol.deserializeResponse(operation(u,d,g,h,f),{...t,...s},c);return{response:c,output:n}}catch(t){Object.defineProperty(t,"$response",{value:c,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{s.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(i.isInstance(c)){const{headers:n={},statusCode:s}=c;const o=Object.entries(n);t.$metadata={httpStatusCode:s,requestId:findHeader(/^x-[\w-]+-request-?id$/,o),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,o),cfId:findHeader(/^x-[\w-]+-cf-id$/,o)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const schemaSerializationMiddleware=t=>(n,s)=>async i=>{const{operationSchema:c}=o(s);const[,l,u,d,g,h]=c??[];const f=s.endpointV2?async()=>A(s.endpointV2):t.endpoint;const E=await t.protocol.serializeRequest(operation(l,u,d,g,h),i.input,{...t,...s,endpoint:f});return n({...i,request:E})};const c={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const l={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(t){return{applyToStack:n=>{n.add(schemaSerializationMiddleware(t),l);n.add(schemaDeserializationMiddleware(t),c);t.protocol.setSerdeContext(t)}}}class Schema{name;namespace;traits;static assign(t,n){const s=Object.assign(t,n);return s}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=ListSchema.symbol}const list=(t,n,s,o)=>Schema.assign(new ListSchema,{name:n,namespace:t,traits:s,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=MapSchema.symbol}const map=(t,n,s,o,i)=>Schema.assign(new MapSchema,{name:n,namespace:t,traits:s,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");input;output;symbol=OperationSchema.symbol}const op=(t,n,s,o,i)=>Schema.assign(new OperationSchema,{name:n,namespace:t,traits:s,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=StructureSchema.symbol}const struct=(t,n,s,o,i)=>Schema.assign(new StructureSchema,{name:n,namespace:t,traits:s,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(t,n,s,o,i,A)=>Schema.assign(new ErrorSchema,{name:n,namespace:t,traits:s,memberNames:o,memberList:i,ctor:null});const u=[];function translateTraits(t){if(typeof t==="object"){return t}t=t|0;if(u[t]){return u[t]}const n={};let s=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((t>>s++&1)===1){n[o]=1}}return u[t]=n}const d={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const g=[];const h={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t;this.memberName=n;const s=[];let o=t;let i=t;this._isMemberSchema=false;while(isMemberSchema(o)){s.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(s.length>0){this.memberTraits={};for(let t=s.length-1;t>=0;--t){const n=s[t];Object.assign(this.memberTraits,translateTraits(n))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const t=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},t,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=n??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!n){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}static of(t){const n=typeof t==="function"||typeof t==="object"&&t!==null;if(typeof t==="number"){if(g[t]){return g[t]}}else if(typeof t==="string"){if(h[t]){return h[t]}}else if(n){if(t[d.ns]){return t[d.ns]}}const s=deref(t);if(s instanceof NormalizedSchema){return s}if(isMemberSchema(s)){const[n,o]=s;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(o));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}const o=new NormalizedSchema(s);if(n){return t[d.ns]=o}if(typeof s==="string"){return h[s]=o}if(typeof s==="number"){return g[s]=o}return o}getSchema(){const t=this.schema;if(Array.isArray(t)&&t[0]===0){return t[4]}return t}getName(t=false){const{name:n}=this;const s=!t&&n&&n.includes("#");return s?n.split("#")[1]:n||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t==="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t==="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}return t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t==="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const s=this.getSchema();const o=t?15:s[4]??0;return member([o,0],"key")}getValueSchema(){const t=this.getSchema();const[n,s,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof t==="number"?63&t:t&&typeof t==="object"&&(s||o)?t[3+t[0]]:n?15:void 0;if(i!=null){return member([i,0],s?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const s=n[4].indexOf(t);const o=n[5][s];return member(isMemberSchema(o)?o:[o,0],t)}if(this.isDocumentSchema()){return member([15,0],t)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,s]of this.structIterator()){t[n]=s}}catch(t){}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator()){if(n.isStreaming()&&n.isStructSchema()){return t}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const t=this.getSchema();const n=t[4].length;let s=t[d.it];if(s&&n===s.length){yield*s;return}s=Array(n);for(let o=0;o<n;++o){const n=t[4][o];const i=member([t[5][o],0],n);yield s[o]=[n,i]}t[d.it]=s}}function member(t,n){if(t instanceof NormalizedSchema){return Object.assign(t,{memberName:n,_isMemberSchema:true})}const s=NormalizedSchema;return new s(t,n)}const isMemberSchema=t=>Array.isArray(t)&&t.length===2;const isStaticSchema=t=>Array.isArray(t)&&t.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=SimpleSchema.symbol}const sim=(t,n,s,o)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:o,schemaRef:s});const simAdapter=(t,n,s,o)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:s,schemaRef:o});const f={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,s=new Map){this.namespace=t;this.schemas=n;this.exceptions=s;if(!TypeRegistry.registries.has(t)){TypeRegistry.registries.set(t,this)}}static for(t){return TypeRegistry.registries.get(t)??new TypeRegistry(t)}copyFrom(t){const{schemas:n,exceptions:s}=this;for(const[s,o]of t.schemas){if(!n.has(s)){n.set(s,o)}}for(const[n,o]of t.exceptions){if(!s.has(n)){s.set(n,o)}}}register(t,n){const s=this.normalizeShapeId(t);for(const t of[this,TypeRegistry.for(s.split("#")[0])]){if(!t.schemas.has(s)){t.schemas.set(s,n)}}}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n)){if(!t.includes("#")){const n="#"+t;const s=[];for(const[t,o]of this.schemas.entries()){if(t.endsWith(n)){s.push(o)}}if(s.length===1){return s[0]}}throw new Error(`@smithy/core/schema - schema not found for ${n}`)}return this.schemas.get(n)}registerError(t,n){const s=t;const o=s[1];const i=o+"#"+s[2];if(!n.hasOwnProperty?.("shapeId")){n.shapeId=i}for(const t of[this,TypeRegistry.for(o)]){if(!t.schemas.has(i)&&!t.exceptions.has(s)){t.schemas.set(i,s);t.exceptions.set(s,n)}}}getErrorCtor(t){const n=t;if(this.exceptions.has(n)){return this.exceptions.get(n)}const s=TypeRegistry.for(n[1]);return s.exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys()){if(Array.isArray(t)){const[,n,s]=t;const o=n+"#"+s;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return t}}}return undefined}find(t){for(const n of this.schemas.values()){if(t(n)){return n}}return undefined}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(t){if(t.includes("#")){return t}return this.namespace+"#"+t}}n.ErrorSchema=ErrorSchema;n.ListSchema=ListSchema;n.MapSchema=MapSchema;n.NormalizedSchema=NormalizedSchema;n.OperationSchema=OperationSchema;n.SCHEMA=f;n.Schema=Schema;n.SimpleSchema=SimpleSchema;n.StructureSchema=StructureSchema;n.TypeRegistry=TypeRegistry;n.deref=deref;n.deserializerMiddlewareOption=c;n.error=error;n.getSchemaSerdePlugin=getSchemaSerdePlugin;n.isStaticSchema=isStaticSchema;n.list=list;n.map=map;n.op=op;n.operation=operation;n.serializerMiddlewareOption=l;n.sim=sim;n.simAdapter=simAdapter;n.simpleSchemaCacheN=g;n.simpleSchemaCacheS=h;n.struct=struct;n.traitsCache=u;n.translateTraits=translateTraits},2430:(t,n,s)=>{const{createHmac:o,createHash:i,getRandomValues:A}=s(7598);const{hasOwn:c,HttpResponse:l}=s(4534);n.hasOwn=c;const{ReadStream:u,lstatSync:d,fstatSync:g}=s(3024);const{toEndpointV1:h}=s(2085);const{Readable:f,Writable:E,PassThrough:p}=s(7075);const isArrayBuffer=t=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";const fromArrayBuffer=(t,n=0,s=t.byteLength-n)=>{if(!isArrayBuffer(t)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`)}return Buffer.from(t,n,s)};const fromString=(t,n)=>{if(typeof t!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`)}return n?Buffer.from(t,n):Buffer.from(t)};const C=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=t=>{if(t.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!C.exec(t)){throw new TypeError(`Invalid base64 string.`)}const n=fromString(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};const fromUtf8$1=t=>{const n=fromString(t,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toBase64$1=t=>{let n;if(typeof t==="string"){n=fromUtf8$1(t)}else{n=t}if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString("base64")};function bindUint8ArrayBlobAdapter(t,n,s,o){return class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(t,s="utf-8"){if(typeof t==="string"){if(s==="base64"){return Uint8ArrayBlobAdapter.mutate(o(t))}return Uint8ArrayBlobAdapter.mutate(n(t))}throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){Object.setPrototypeOf(t,Uint8ArrayBlobAdapter.prototype);return t}transformToString(n="utf-8"){if(n==="base64"){return s(this)}return t(this)}}}const toUtf8$1=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};const I=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function bindV4(t){if(typeof crypto!=="undefined"&&typeof crypto.randomUUID==="function"){return()=>crypto.randomUUID()}return()=>{const n=new Uint8Array(16);t(n);n[6]=n[6]&15|64;n[8]=n[8]&63|128;return I[n[0]]+I[n[1]]+I[n[2]]+I[n[3]]+"-"+I[n[4]]+I[n[5]]+"-"+I[n[6]]+I[n[7]]+"-"+I[n[8]]+I[n[9]]+"-"+I[n[10]]+I[n[11]]+I[n[12]]+I[n[13]]+I[n[14]]+I[n[15]]}}const copyDocumentWithTransform=(t,n,s=t=>t)=>t;const parseBoolean=t=>{switch(t){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${t}"`)}};const expectBoolean=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="number"){if(t===0||t===1){D.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(t===0){return false}if(t===1){return true}}if(typeof t==="string"){const n=t.toLowerCase();if(n==="false"||n==="true"){D.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(n==="false"){return false}if(n==="true"){return true}}if(typeof t==="boolean"){return t}throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)};const expectNumber=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){const n=parseFloat(t);if(!Number.isNaN(n)){if(String(n)!==String(t)){D.warn(stackTraceWarning(`Expected number but observed string: ${t}`))}return n}}if(typeof t==="number"){return t}throw new TypeError(`Expected number, got ${typeof t}: ${t}`)};const m=Math.ceil(2**127*(2-2**-23));const expectFloat32=t=>{const n=expectNumber(t);if(n!==undefined&&!Number.isNaN(n)&&n!==Infinity&&n!==-Infinity){if(Math.abs(n)>m){throw new TypeError(`Expected 32-bit float, got ${t}`)}}return n};const expectLong=t=>{if(t===null||t===undefined){return undefined}if(Number.isInteger(t)&&!Number.isNaN(t)){return t}throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};const B=expectLong;const expectInt32=t=>expectSizedInt(t,32);const expectShort=t=>expectSizedInt(t,16);const expectByte=t=>expectSizedInt(t,8);const expectSizedInt=(t,n)=>{const s=expectLong(t);if(s!==undefined&&castInt(s,n)!==s){throw new TypeError(`Expected ${n}-bit integer, got ${t}`)}return s};const castInt=(t,n)=>{switch(n){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}};const expectNonNull=(t,n)=>{if(t===null||t===undefined){if(n){throw new TypeError(`Expected a non-null value for ${n}`)}throw new TypeError("Expected a non-null value")}return t};const expectObject=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="object"&&!Array.isArray(t)){return t}const n=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${n}: ${t}`)};const expectString=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){return t}if(["boolean","number","bigint"].includes(typeof t)){D.warn(stackTraceWarning(`Expected string, got ${typeof t}: ${t}`));return String(t)}throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};const expectUnion=t=>{if(t===null||t===undefined){return undefined}const n=expectObject(t);const s=[];for(const t in n){if(!c(n,t)){continue}if(n[t]!=null){s.push(t)}}if(s.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(s.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${s} were not null.`)}return n};const strictParseDouble=t=>{if(typeof t=="string"){return expectNumber(parseNumber(t))}return expectNumber(t)};const Q=strictParseDouble;const strictParseFloat32=t=>{if(typeof t=="string"){return expectFloat32(parseNumber(t))}return expectFloat32(t)};const y=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=t=>{const n=t.match(y);if(n===null||n[0].length!==t.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(t)};const limitedParseDouble=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectNumber(t)};const w=limitedParseDouble;const S=limitedParseDouble;const limitedParseFloat32=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectFloat32(t)};const parseFloatString=t=>{switch(t){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${t}`)}};const strictParseLong=t=>{if(typeof t==="string"){return expectLong(parseNumber(t))}return expectLong(t)};const R=strictParseLong;const strictParseInt32=t=>{if(typeof t==="string"){return expectInt32(parseNumber(t))}return expectInt32(t)};const strictParseShort=t=>{if(typeof t==="string"){return expectShort(parseNumber(t))}return expectShort(t)};const strictParseByte=t=>{if(typeof t==="string"){return expectByte(parseNumber(t))}return expectByte(t)};const stackTraceWarning=t=>String(new TypeError(t).stack||t).split("\n").slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join("\n");const D={warn:console.warn};const k=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(t){const n=t.getUTCFullYear();const s=t.getUTCMonth();const o=t.getUTCDay();const i=t.getUTCDate();const A=t.getUTCHours();const c=t.getUTCMinutes();const l=t.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const d=A<10?`0${A}`:`${A}`;const g=c<10?`0${c}`:`${c}`;const h=l<10?`0${l}`:`${l}`;return`${k[o]}, ${u} ${v[s]} ${n} ${d}:${g}:${h} GMT`}const T=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=T.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[s,o,i,A,c,l,u,d]=n;const g=strictParseShort(stripLeadingZeroes(o));const h=parseDateValue(i,"month",1,12);const f=parseDateValue(A,"day",1,31);return buildDate(g,h,f,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};const N=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=N.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[s,o,i,A,c,l,u,d,g]=n;const h=strictParseShort(stripLeadingZeroes(o));const f=parseDateValue(i,"month",1,12);const E=parseDateValue(A,"day",1,31);const p=buildDate(h,f,E,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d});if(g.toUpperCase()!="Z"){p.setTime(p.getTime()-parseOffsetToMilliseconds(g))}return p};const F=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const x=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const M=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let n=F.exec(t);if(n){const[t,s,o,i,A,c,l,u]=n;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(s,"day",1,31),{hours:A,minutes:c,seconds:l,fractionalMilliseconds:u})}n=x.exec(t);if(n){const[t,s,o,i,A,c,l,u]=n;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(s,"day",1,31),{hours:A,minutes:c,seconds:l,fractionalMilliseconds:u}))}n=M.exec(t);if(n){const[t,s,o,i,A,c,l,u]=n;return buildDate(strictParseShort(stripLeadingZeroes(u)),parseMonthByShortName(s),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:A,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=t=>{if(t===null||t===undefined){return undefined}let n;if(typeof t==="number"){n=t}else if(typeof t==="string"){n=strictParseDouble(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(n)||n===Infinity||n===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(n*1e3))};const buildDate=(t,n,s,o)=>{const i=n-1;validateDayOfMonth(t,i,s);return new Date(Date.UTC(t,i,s,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=t=>{const n=(new Date).getUTCFullYear();const s=Math.floor(n/100)*100+strictParseShort(stripLeadingZeroes(t));if(s<n){return s+100}return s};const U=50*365*24*60*60*1e3;const adjustRfc850Year=t=>{if(t.getTime()-(new Date).getTime()>U){return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()))}return t};const parseMonthByShortName=t=>{const n=v.indexOf(t);if(n<0){throw new TypeError(`Invalid month: ${t}`)}return n+1};const L=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(t,n,s)=>{let o=L[n];if(n===1&&isLeapYear(t)){o=29}if(s>o){throw new TypeError(`Invalid day for ${v[n]} in ${t}: ${s}`)}};const isLeapYear=t=>t%4===0&&(t%100!==0||t%400===0);const parseDateValue=(t,n,s,o)=>{const i=strictParseByte(stripLeadingZeroes(t));if(i<s||i>o){throw new TypeError(`${n} must be between ${s} and ${o}, inclusive`)}return i};const parseMilliseconds=t=>{if(t===null||t===undefined){return 0}return strictParseFloat32("0."+t)*1e3};const parseOffsetToMilliseconds=t=>{const n=t[0];let s=1;if(n=="+"){s=1}else if(n=="-"){s=-1}else{throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`)}const o=Number(t.substring(1,3));const i=Number(t.substring(4,6));return s*(o*60+i)*60*1e3};const stripLeadingZeroes=t=>{let n=0;while(n<t.length-1&&t.charAt(n)==="0"){n++}if(n===0){return t}return t.slice(n)};const P=function LazyJsonString(t){const n=Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}});return n};P.from=t=>{if(t&&typeof t==="object"&&(t instanceof P||"deserializeJSON"in t)){return t}else if(typeof t==="string"||Object.getPrototypeOf(t)===String.prototype){return P(String(t))}return P(JSON.stringify(t))};P.fromObject=P.from;function quoteHeader(t){if(t.includes(",")||t.includes('"')){t=`"${t.replace(/"/g,'\\"')}"`}return t}const O=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const H=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const _=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const G=`(\\d?\\d)`;const V=`(\\d{4})`;const Y=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const J=new RegExp(`^${O}, ${G} ${H} ${V} ${_} GMT$`);const q=new RegExp(`^${O}, ${G}-${H}-(\\d\\d) ${_} GMT$`);const W=new RegExp(`^${O} ${H} ( [1-9]|\\d\\d) ${_} ${V}$`);const z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=t=>{if(t==null){return void 0}let n=NaN;if(typeof t==="number"){n=t}else if(typeof t==="string"){if(!/^-?\d*\.?\d+$/.test(t)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}n=Number.parseFloat(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}if(isNaN(n)||Math.abs(n)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(n*1e3))};const _parseRfc3339DateTimeWithOffset=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const n=Y.exec(t);if(!n){throw new TypeError(`Invalid RFC3339 timestamp format ${t}`)}const[,s,o,i,A,c,l,,u,d]=n;range(o,1,12);range(i,1,31);range(A,0,23);range(c,0,59);range(l,0,60);const g=new Date(Date.UTC(Number(s),Number(o)-1,Number(i),Number(A),Number(c),Number(l),Number(u)?Math.round(parseFloat(`0.${u}`)*1e3):0));g.setUTCFullYear(Number(s));if(d.toUpperCase()!="Z"){const[,t,n,s]=/([+-])(\d\d):(\d\d)/.exec(d)||[void 0,"+",0,0];const o=t==="-"?1:-1;g.setTime(g.getTime()+o*(Number(n)*60*60*1e3+Number(s)*60*1e3))}return g};const _parseRfc7231DateTime=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let n;let s;let o;let i;let A;let c;let l;let u;if(u=J.exec(t)){[,n,s,o,i,A,c,l]=u}else if(u=q.exec(t)){[,n,s,o,i,A,c,l]=u;o=(Number(o)+1900).toString()}else if(u=W.exec(t)){[,s,n,i,A,c,l,o]=u}if(o&&c){const t=Date.UTC(Number(o),z.indexOf(s),Number(n),Number(i),Number(A),Number(c),l?Math.round(parseFloat(`0.${l}`)*1e3):0);range(n,1,31);range(i,0,23);range(A,0,59);range(c,0,60);const u=new Date(t);u.setUTCFullYear(Number(o));return u}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)};function range(t,n,s){const o=Number(t);if(o<n||o>s){throw new Error(`Value ${o} out of range [${n}, ${s}]`)}}function splitEvery(t,n,s){if(s<=0||!Number.isInteger(s)){throw new Error("Invalid number of delimiters ("+s+") for splitEvery.")}const o=t.split(n);if(s===1){return o}const i=[];let A="";for(let t=0;t<o.length;t++){if(A===""){A=o[t]}else{A+=n+o[t]}if((t+1)%s===0){i.push(A);A=""}}if(A!==""){i.push(A)}return i}const splitHeader=t=>{const n=t.length;const s=[];let o=false;let i=undefined;let A=0;for(let c=0;c<n;++c){const n=t[c];switch(n){case`"`:if(i!=="\\"){o=!o}break;case",":if(!o){s.push(t.slice(A,c));A=c+1}break}i=n}s.push(t.slice(A));return s.map(t=>{t=t.trim();const n=t.length;if(n<2){return t}if(t[0]===`"`&&t[n-1]===`"`){t=t.slice(1,n-1)}return t.replace(/\\"/g,'"')})};const $=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;class NumericValue{string;type;constructor(t,n){this.string=t;this.type=n;if(!$.test(t)){throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${t}"`)}}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=="object"){return false}const n=t;return NumericValue.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&$.test(n.string)}}function nv(t){return new NumericValue(String(t),"bigDecimal")}const j={};const K={};for(let t=0;t<256;t++){let n=t.toString(16).toLowerCase();if(n.length===1){n=`0${n}`}j[t]=n;K[n]=t}function fromHex(t){if(t.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const n=new Uint8Array(t.length/2);for(let s=0;s<t.length;s+=2){const o=t.slice(s,s+2).toLowerCase();if(o in K){n[s/2]=K[o]}else{throw new Error(`Cannot decode unrecognized sequence ${o} as hexadecimal`)}}return n}function toHex(t){let n="";for(let s=0;s<t.byteLength;s++){n+=j[t[s]]}return n}const calculateBodyLength=t=>{if(!t){return 0}if(typeof t==="string"){return Buffer.byteLength(t)}else if(typeof t.byteLength==="number"){return t.byteLength}else if(typeof t.size==="number"){return t.size}else if(typeof t.start==="number"&&typeof t.end==="number"){return t.end+1-t.start}else if(t instanceof u){if(t.path!=null){return d(t.path).size}else if(typeof t.fd==="number"){return g(t.fd).size}}throw new Error(`Body Length computation failed for ${t}`)};const toUint8Array=t=>{if(t instanceof Uint8Array){return t}if(typeof t==="string"){return fromUtf8$1(t)}if(ArrayBuffer.isView(t)){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(t)};function concatBytes(t,n){if(n===undefined){n=0;for(const s of t){n+=s.byteLength}}const s=new Uint8Array(n);let o=0;for(const n of t){s.set(n,o);o+=n.byteLength}return s}const deserializerMiddleware=(t,n)=>(s,o)=>async i=>{const{response:A}=await s(i);try{const s=await n(A,t);return{response:A,output:s}}catch(t){Object.defineProperty(t,"$response",{value:A,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!o.logger||o.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{o.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(l.isInstance(A)){const{headers:n={}}=A;const s=Object.entries(n);t.$metadata={httpStatusCode:A.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,s),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,s),cfId:findHeader(/^x-[\w-]+-cf-id$/,s)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const serializerMiddleware=(t,n)=>(s,o)=>async i=>{const A=t;const c=o.endpointV2?async()=>h(o.endpointV2):A.endpoint;if(!c){throw new Error("No valid endpoint provider available.")}const l=await n(i.input,{...t,endpoint:c});return s({...i,request:l})};const Z={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const X={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(t,n,s){return{applyToStack:o=>{o.add(deserializerMiddleware(t,s),Z);o.add(serializerMiddleware(t,n),X)}}}class Hash{algorithmIdentifier;secret;hash;constructor(t,n){this.algorithmIdentifier=t;this.secret=n;this.reset()}update(t,n){this.hash.update(toUint8Array(castSourceData(t,n)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?o(this.algorithmIdentifier,castSourceData(this.secret)):i(this.algorithmIdentifier)}}function castSourceData(t,n){if(Buffer.isBuffer(t)){return t}if(typeof t==="string"){return fromString(t,n)}if(ArrayBuffer.isView(t)){return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayBuffer(t)}let ee=class ChecksumStream extends f{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:n,source:s,checksumSourceLocation:o,base64Encoder:i}){super();if(typeof s.pipe!=="function"){throw new Error(`@smithy/util-stream: unsupported source type ${s?.constructor?.name??s} in ChecksumStream.`)}this.source=s;this.base64Encoder=i??toBase64$1;this.expectedChecksum=t;this.checksum=n;this.checksumSourceLocation=o;this.source.on("data",this.onSourceData);this.source.on("end",this.onSourceEnd);this.source.on("error",this.onSourceError);this.source.on("close",this.onSourceClose);this.source.pause()}onSourceData=t=>{if(this.destroyed){return}try{this.checksum.update(t)}catch(t){this.destroy(t);return}if(!this.push(t)){this.source.pause()}};onSourceEnd=async()=>{if(this.destroyed){return}try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)};onSourceError=t=>{this.destroy(t)};onSourceClose=()=>{if(!this.destroyed&&!this.source.readableEnded){this.destroy(new Error("Connection lost or stream closed before all data was received."))}};_read(t){this.source.resume()}_destroy(t,n){this.source?.removeListener("data",this.onSourceData);this.source?.removeListener("end",this.onSourceEnd);this.source?.removeListener("error",this.onSourceError);this.source?.removeListener("close",this.onSourceClose);this.source?.destroy();n(t)}};const isReadableStream=t=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);const isBlob=t=>typeof Blob==="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob);const fromUtf8=t=>(new TextEncoder).encode(t);const te=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;Object.entries(te).reduce((t,[n,s])=>{t[s]=Number(n);return t},{});const ne=te.split("");const re=6;const se=8;const oe=63;function toBase64(t){let n;if(typeof t==="string"){n=fromUtf8(t)}else{n=t}const s=typeof n==="object"&&typeof n.length==="number";const o=typeof n==="object"&&typeof n.byteOffset==="number"&&typeof n.byteLength==="number";if(!s&&!o){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}let i="";for(let t=0;t<n.length;t+=3){let s=0;let o=0;for(let i=t,A=Math.min(t+3,n.length);i<A;i++){s|=n[i]<<(A-i-1)*se;o+=se}const A=Math.ceil(o/re);s<<=A*re-o;for(let t=1;t<=A;t++){const n=(A-t)*re;i+=ne[(s&oe<<n)>>n]}i+="==".slice(0,4-A)}return i}const ie=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends ie{}const createChecksumStream$1=({expectedChecksum:t,checksum:n,source:s,checksumSourceLocation:o,base64Encoder:i})=>{if(!isReadableStream(s)){throw new Error(`@smithy/util-stream: unsupported source type ${s?.constructor?.name??s} in ChecksumStream.`)}const A=i??toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const c=new TransformStream({start(){},async transform(t,s){n.update(t);s.enqueue(t)},async flush(s){const i=await n.digest();const c=A(i);if(t!==c){const n=new Error(`Checksum mismatch: expected "${t}" but received "${c}"`+` in response header "${o}".`);s.error(n)}else{s.terminate()}}});s.pipeThrough(c);const l=c.readable;Object.setPrototypeOf(l,ChecksumStream.prototype);return l};function createChecksumStream(t){if(typeof ReadableStream==="function"&&isReadableStream(t.source)){return createChecksumStream$1(t)}return new ee(t)}class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t);this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){const t=this.byteArrays[0];this.reset();return t}const t=this.allocByteArray(this.byteLength);let n=0;for(let s=0;s<this.byteArrays.length;++s){const o=this.byteArrays[s];t.set(o,n);n+=o.byteLength}this.reset();return t}reset(){this.byteArrays=[];this.byteLength=0}}function createBufferedReadableStream(t,n,s){const o=t.getReader();let i=false;let A=0;const c=["",new ByteArrayCollector(t=>new Uint8Array(t))];let l=-1;const pull=async t=>{const{value:u,done:d}=await o.read();const g=u;if(d){if(l!==-1){const n=flush(c,l);if(sizeOf(n)>0){t.enqueue(n)}}t.close()}else{const o=modeOf(g,false);if(l!==o){if(l>=0){t.enqueue(flush(c,l))}l=o}if(l===-1){t.enqueue(g);return}const u=sizeOf(g);A+=u;const d=sizeOf(c[l]);if(u>=n&&d===0){t.enqueue(g)}else{const o=merge(c,l,g);if(!i&&A>n*2){i=true;s?.warn(`@smithy/util-stream - stream chunk size ${u} is below threshold of ${n}, automatically buffering.`)}if(o>=n){t.enqueue(flush(c,l))}else{await pull(t)}}}};return new ReadableStream({pull:pull})}function merge(t,n,s){switch(n){case 0:t[0]+=s;return sizeOf(t[0]);case 1:case 2:t[n].push(s);return sizeOf(t[n])}}function flush(t,n){switch(n){case 0:const s=t[0];t[0]="";return s;case 1:case 2:return t[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function sizeOf(t){return t?.byteLength??t?.length??0}function modeOf(t,n=true){if(n&&typeof Buffer!=="undefined"&&t instanceof Buffer){return 2}if(t instanceof Uint8Array){return 1}if(typeof t==="string"){return 0}return-1}function createBufferedReadable(t,n,s){if(isReadableStream(t)){return createBufferedReadableStream(t,n,s)}const o=new f({read(){}});let i=false;let A=0;const c=["",new ByteArrayCollector(t=>new Uint8Array(t)),new ByteArrayCollector(t=>Buffer.from(new Uint8Array(t)))];let l=-1;t.on("data",t=>{const u=modeOf(t,true);if(l!==u){if(l>=0){o.push(flush(c,l))}l=u}if(l===-1){o.push(t);return}const d=sizeOf(t);A+=d;const g=sizeOf(c[l]);if(d>=n&&g===0){o.push(t)}else{const u=merge(c,l,t);if(!i&&A>n*2){i=true;s?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${n}, automatically buffering.`)}if(u>=n){o.push(flush(c,l))}}});t.on("end",()=>{if(l!==-1){const t=flush(c,l);if(sizeOf(t)>0){o.push(t)}}o.push(null)});return o}const getAwsChunkedEncodingStream$1=(t,n)=>{const{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:A,streamHasher:c}=n;const l=s!==undefined&&o!==undefined&&i!==undefined&&A!==undefined&&c!==undefined;const u=l?c(i,t):undefined;Promise.resolve(u).catch(()=>{});const d=t.getReader();return new ReadableStream({async pull(t){const{value:n,done:i}=await d.read();if(i){t.enqueue(`0\r\n`);if(l){const n=s(await u);t.enqueue(`${A}:${n}\r\n`);t.enqueue(`\r\n`)}t.close()}else{t.enqueue(`${(o(n)||0).toString(16)}\r\n${n}\r\n`)}}})};function getAwsChunkedEncodingStream(t,n){const s=t;const o=t;if(isReadableStream(o)){return getAwsChunkedEncodingStream$1(o,n)}const{base64Encoder:i,bodyLengthChecker:A,checksumAlgorithmFn:c,checksumLocationName:l,streamHasher:u}=n;const d=i!==undefined&&c!==undefined&&l!==undefined&&u!==undefined;const g=d?u(c,s):undefined;Promise.resolve(g).catch(()=>{});const h=new f({read(){s.resume()}});s.on("data",t=>{const n=A(t)||0;if(n===0){return}h.push(`${n.toString(16)}\r\n`);h.push(t);if(!h.push("\r\n")){s.pause()}});s.on("error",t=>{h.destroy(t)});s.pause();s.on("end",async()=>{try{h.push(`0\r\n`);if(d){const t=i(await g);h.push(`${l}:${t}\r\n`);h.push(`\r\n`)}h.push(null)}catch(t){h.destroy(t)}});return h}async function headStream$1(t,n){let s=0;const o=[];const i=t.getReader();let A=false;while(!A){const{done:t,value:c}=await i.read();if(c){o.push(c);s+=c?.byteLength??0}if(s>=n){break}A=t}i.releaseLock();const c=new Uint8Array(Math.min(n,s));let l=0;for(const t of o){if(t.byteLength>c.byteLength-l){c.set(t.subarray(0,c.byteLength-l),l);break}else{c.set(t,l)}l+=t.length}return c}const headStream=(t,n)=>{if(isReadableStream(t)){return headStream$1(t,n)}return new Promise((s,o)=>{const i=new ae;i.limit=n;t.pipe(i);t.on("error",t=>{i.end();o(t)});i.on("error",o);i.on("finish",function(){const t=concatBytes(this.buffers);s(t)})})};let ae=class Collector extends E{buffers=[];limit=Infinity;bytesBuffered=0;_write(t,n,s){this.buffers.push(t);this.bytesBuffered+=t.byteLength??0;if(this.bytesBuffered>=this.limit){const t=this.bytesBuffered-this.limit;const n=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=n.subarray(0,n.byteLength-t);this.emit("finish")}s()}};const toUtf8=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return new TextDecoder("utf-8").decode(t)};const streamCollector$1=async t=>{if(isBlob(t)){return collectBlob(t)}return collectReadableStream(t)};async function collectBlob(t){return t.arrayBuffer().then(t=>new Uint8Array(t))}async function collectReadableStream(t){const n=[];const s=t.getReader();let o=0;while(true){const{done:t,value:i}=await s.read();if(i){n.push(i);o+=i.length}if(t){break}}return concatBytes(n,o)}const Ae="The stream has already been transformed.";const sdkStreamMixin$1=t=>{if(!isBlobInstance(t)&&!isReadableStream(t)){const n=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(Ae)}n=true;return await streamCollector$1(t)};const blobToWebStream=t=>{if(typeof t.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return t.stream()};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t==="base64"){return toBase64(n)}else if(t==="hex"){return toHex(n)}else if(t===undefined||t==="utf8"||t==="utf-8"){return toUtf8(n)}else if(typeof TextDecoder==="function"){return new TextDecoder(t).decode(n)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(n){throw new Error(Ae)}n=true;if(isBlobInstance(t)){return blobToWebStream(t)}else if(isReadableStream(t)){return t}else{throw new Error(`Cannot transform payload to web stream, got ${t}`)}}})};const isBlobInstance=t=>typeof Blob==="function"&&t instanceof Blob;const streamCollector=t=>{if(isBlob(t)){return collectBlob(t)}if(isReadableStream(t)){return collectReadableStream(t)}return new Promise((n,s)=>{const o=new Collector;const i=t;i.pipe(o);i.on("error",t=>{o.end();s(t)});o.on("error",s);o.on("finish",function(){const t=concatBytes(this.bufferedBytes);n(t)})})};class Collector extends E{bufferedBytes=[];_write(t,n,s){this.bufferedBytes.push(t);s()}}const ce="The stream has already been transformed.";const sdkStreamMixin=t=>{if(!(t instanceof f)){try{return sdkStreamMixin$1(t)}catch(n){const s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(ce)}n=true;return await streamCollector(t)};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t===undefined||Buffer.isEncoding(t)){return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString(t)}else{const s=new TextDecoder(t);return s.decode(n)}},transformToWebStream:()=>{if(n){throw new Error(ce)}if(t.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof f.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}n=true;return f.toWeb(t)}})};async function splitStream$1(t){if(typeof t.stream==="function"){t=t.stream()}const n=t;return n.tee()}async function splitStream(t){if(isReadableStream(t)||isBlob(t)){return splitStream$1(t)}const n=new p;const s=new p;t.pipe(n);t.pipe(s);return[n,s]}function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}class Uint8ArrayBlobAdapter extends(bindUint8ArrayBlobAdapter(toUtf8$1,fromUtf8$1,toBase64$1,fromBase64)){}const le=A;const ue=bindV4(le);const de=ue;n.ChecksumStream=ee;n.Hash=Hash;n.LazyJsonString=P;n.NumericValue=NumericValue;n.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;n._parseEpochTimestamp=_parseEpochTimestamp;n._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;n._parseRfc7231DateTime=_parseRfc7231DateTime;n.calculateBodyLength=calculateBodyLength;n.concatBytes=concatBytes;n.copyDocumentWithTransform=copyDocumentWithTransform;n.createBufferedReadable=createBufferedReadable;n.createChecksumStream=createChecksumStream;n.dateToUtcString=dateToUtcString;n.deserializerMiddleware=deserializerMiddleware;n.deserializerMiddlewareOption=Z;n.expectBoolean=expectBoolean;n.expectByte=expectByte;n.expectFloat32=expectFloat32;n.expectInt=B;n.expectInt32=expectInt32;n.expectLong=expectLong;n.expectNonNull=expectNonNull;n.expectNumber=expectNumber;n.expectObject=expectObject;n.expectShort=expectShort;n.expectString=expectString;n.expectUnion=expectUnion;n.fromArrayBuffer=fromArrayBuffer;n.fromBase64=fromBase64;n.fromHex=fromHex;n.fromString=fromString;n.fromUtf8=fromUtf8$1;n.generateIdempotencyToken=de;n.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;n.getSerdePlugin=getSerdePlugin;n.handleFloat=w;n.headStream=headStream;n.isArrayBuffer=isArrayBuffer;n.isBlob=isBlob;n.isReadableStream=isReadableStream;n.limitedParseDouble=limitedParseDouble;n.limitedParseFloat=S;n.limitedParseFloat32=limitedParseFloat32;n.logger=D;n.nv=nv;n.parseBoolean=parseBoolean;n.parseEpochTimestamp=parseEpochTimestamp;n.parseRfc3339DateTime=parseRfc3339DateTime;n.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;n.parseRfc7231DateTime=parseRfc7231DateTime;n.quoteHeader=quoteHeader;n.sdkStreamMixin=sdkStreamMixin;n.serializerMiddleware=serializerMiddleware;n.serializerMiddlewareOption=X;n.splitEvery=splitEvery;n.splitHeader=splitHeader;n.splitStream=splitStream;n.streamCollector=streamCollector;n.strictParseByte=strictParseByte;n.strictParseDouble=strictParseDouble;n.strictParseFloat=Q;n.strictParseFloat32=strictParseFloat32;n.strictParseInt=R;n.strictParseInt32=strictParseInt32;n.strictParseLong=strictParseLong;n.strictParseShort=strictParseShort;n.toBase64=toBase64$1;n.toHex=toHex;n.toUint8Array=toUint8Array;n.toUtf8=toUtf8$1;n.v4=ue;n.writeKey=writeKey},4534:(t,n,s)=>{const{SMITHY_CONTEXT_KEY:o}=s(690);const getSmithyContext=t=>t[o]||(t[o]={});function hasOwn(t,n){return Object.prototype.hasOwnProperty.call(t,n)}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET";this.hostname=t.hostname||"localhost";this.port=t.port;this.query=t.query||{};this.headers=t.headers||{};this.body=t.body;this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:";this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/";this.username=t.username;this.password=t.password;this.fragment=t.fragment}static clone(t){const n=new HttpRequest({...t,headers:{...t.headers}});if(n.query){n.query=cloneQuery(n.query)}return n}static isInstance(t){if(!t){return false}const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n["query"]==="object"&&typeof n["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(t){return Object.keys(t).reduce((n,s)=>{const o=t[s];return{...n,[s]:Array.isArray(o)?[...o]:o}},{})}class HttpResponse{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode;this.reason=t.reason;this.headers=t.headers||{};this.body=t.body}static isInstance(t){if(!t){return false}const n=t;return typeof n.statusCode==="number"&&typeof n.headers==="object"}}const i=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(t,n=false)=>{if(!n){return i.test(t)}const s=t.split(".");for(const t of s){if(!isValidHostLabel(t)){return false}}return true};function isValidHostname(t){const n=/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/;return n.test(t)}const normalizeProvider=t=>{if(typeof t==="function"){return t}const n=Promise.resolve(t);return()=>n};function parseQueryString(t){const n={};t=t.replace(/^\?/,"");if(t){for(const s of t.split("&")){let[t,o=null]=s.split("=");t=decodeURIComponent(t);if(o){o=decodeURIComponent(o)}if(!(t in n)){n[t]=o}else if(Array.isArray(n[t])){n[t].push(o)}else{n[t]=[n[t],o]}}}return n}const parseUrl=t=>{if(typeof t==="string"){return parseUrl(new URL(t))}const{hostname:n,pathname:s,port:o,protocol:i,search:A}=t;let c;if(A){c=parseQueryString(A)}return{hostname:n,port:o?parseInt(o):undefined,protocol:i,path:s,query:c}};const toEndpointV1=t=>{if(typeof t==="object"){if("url"in t){const n=parseUrl(t.url);if(t.headers){n.headers={};for(const s in t.headers){if(!hasOwn(t.headers,s)){continue}n.headers[s.toLowerCase()]=t.headers[s].join(", ")}}return n}return t}return parseUrl(t)};n.HttpRequest=HttpRequest;n.HttpResponse=HttpResponse;n.getSmithyContext=getSmithyContext;n.hasOwn=hasOwn;n.isValidHostLabel=isValidHostLabel;n.isValidHostname=isValidHostname;n.normalizeProvider=normalizeProvider;n.parseQueryString=parseQueryString;n.parseUrl=parseUrl;n.toEndpointV1=toEndpointV1},566:(t,n,s)=>{const{ProviderError:o,CredentialsProviderError:i,loadConfig:A}=s(7291);const c=s(7067);const{parseUrl:l}=s(3422);const isImdsCredentials=t=>Boolean(t)&&typeof t==="object"&&typeof t.AccessKeyId==="string"&&typeof t.SecretAccessKey==="string"&&typeof t.Token==="string"&&typeof t.Expiration==="string";const fromImdsCredentials=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}});const u=1e3;const d=0;const providerConfigFromInit=({maxRetries:t=d,timeout:n=u})=>({maxRetries:t,timeout:n});function httpRequest(t){return new Promise((n,s)=>{const i=c.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});i.on("error",t=>{s(Object.assign(new o("Unable to connect to instance metadata service"),t));i.destroy()});i.on("timeout",()=>{s(new o("TimeoutError from instance metadata service"));i.destroy()});i.on("response",t=>{const{statusCode:A=400}=t;if(A<200||300<=A){s(Object.assign(new o("Error response received from instance metadata service"),{statusCode:A}));i.destroy()}const c=[];t.on("data",t=>{c.push(t)});t.on("end",()=>{n(Buffer.concat(c));i.destroy()})});i.end()})}const retry=(t,n)=>{let s=t();for(let o=0;o<n;o++){s=s.catch(t)}return s};const g="AWS_CONTAINER_CREDENTIALS_FULL_URI";const h="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const f="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(t={})=>{const{timeout:n,maxRetries:s}=providerConfigFromInit(t);return()=>retry(async()=>{const s=await getCmdsUri({logger:t.logger});const o=JSON.parse(await requestFromEcsImds(n,s));if(!isImdsCredentials(o)){throw new i("Invalid response received from instance metadata service.",{logger:t.logger})}return fromImdsCredentials(o)},s)};const requestFromEcsImds=async(t,n)=>{if(process.env[f]){n.headers={...n.headers,Authorization:process.env[f]}}const s=await httpRequest({...n,timeout:t});return s.toString()};const E="169.254.170.2";const p=new Set(["localhost","127.0.0.1"]);const C=new Set(["http:","https:"]);const getCmdsUri=async({logger:t})=>{if(process.env[h]){return{hostname:E,path:process.env[h]}}if(process.env[g]){let n;try{n=new URL(process.env[g])}catch{throw new i(`${process.env[g]} is not a valid container metadata service URL`,{tryNextLink:false,logger:t})}if(!n.hostname||!p.has(n.hostname)){throw new i(`${n.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:t})}if(!n.protocol||!C.has(n.protocol)){throw new i(`${n.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:t})}return{protocol:n.protocol,hostname:n.hostname,path:n.pathname+n.search,port:n.port?parseInt(n.port,10):undefined}}throw new i("The container metadata credential provider cannot be used unless"+` the ${h} or ${g} environment`+" variable is set",{tryNextLink:false,logger:t})};class InstanceMetadataV1FallbackError extends i{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(t,n=true){super(t,n);this.tryNextLink=n;Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}var I;(function(t){t["IPv4"]="http://169.254.169.254";t["IPv6"]="http://[fd00:ec2::254]"})(I||(I={}));const m="AWS_EC2_METADATA_SERVICE_ENDPOINT";const B="ec2_metadata_service_endpoint";const Q={environmentVariableSelector:t=>t[m],configFileSelector:t=>t[B],default:undefined};var y;(function(t){t["IPv4"]="IPv4";t["IPv6"]="IPv6"})(y||(y={}));const w="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";const S="ec2_metadata_service_endpoint_mode";const R={environmentVariableSelector:t=>t[w],configFileSelector:t=>t[S],default:y.IPv4};const getInstanceMetadataEndpoint=async()=>l(await getFromEndpointConfig()||await getFromEndpointModeConfig());const getFromEndpointConfig=async()=>A(Q)();const getFromEndpointModeConfig=async()=>{const t=await A(R)();switch(t){case y.IPv4:return I.IPv4;case y.IPv6:return I.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}.`+` Select from ${Object.values(y)}`)}};const D=5*60;const k=5*60;const v="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(t,n)=>{const s=D+Math.floor(Math.random()*k);const o=new Date(Date.now()+s*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(o)}.\nFor more information, please visit: `+v);const i=t.originalExpiration??t.expiration;return{...t,...i?{originalExpiration:i}:{},expiration:o}};const staticStabilityProvider=(t,n={})=>{const s=n?.logger||console;let o;return async()=>{let n;try{n=await t();if(n.expiration&&n.expiration.getTime()<Date.now()){n=getExtendedInstanceMetadataCredentials(n,s)}}catch(t){if(o){s.warn("Credential renew failed: ",t);n=getExtendedInstanceMetadataCredentials(o,s)}else{throw t}}o=n;return n}};const T="/latest/meta-data/iam/security-credentials/";const N="/latest/api/token";const F="AWS_EC2_METADATA_V1_DISABLED";const x="ec2_metadata_v1_disabled";const M="x-aws-ec2-metadata-token";const fromInstanceMetadata=(t={})=>staticStabilityProvider(getInstanceMetadataProvider(t),{logger:t.logger});const getInstanceMetadataProvider=(t={})=>{let n=false;const{logger:s,profile:o}=t;const{timeout:c,maxRetries:l}=providerConfigFromInit(t);const getCredentials=async(s,c)=>{const l=n||c.headers?.[M]==null;if(l){let n=false;let s=false;const c=await A({environmentVariableSelector:n=>{const o=n[F];s=!!o&&o!=="false";if(o===undefined){throw new i(`${F} not set in env, checking config file next.`,{logger:t.logger})}return s},configFileSelector:t=>{const s=t[x];n=!!s&&s!=="false";return n},default:false},{profile:o})();if(t.ec2MetadataV1Disabled||c){const o=[];if(t.ec2MetadataV1Disabled)o.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(n)o.push(`config file profile (${x})`);if(s)o.push(`process environment variable (${F})`);throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${o.join(", ")}].`)}}const u=(await retry(async()=>{let t;try{t=await getProfile(c)}catch(t){if(t.statusCode===401){n=false}throw t}return t},s)).trim();return retry(async()=>{let s;try{s=await getCredentialsFromProfile(u,c,t)}catch(t){if(t.statusCode===401){n=false}throw t}return s},s)};return async()=>{const t=await getInstanceMetadataEndpoint();if(n){s?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return getCredentials(l,{...t,timeout:c})}else{let o;try{o=(await getMetadataToken({...t,timeout:c})).toString()}catch(o){if(o?.statusCode===400){throw Object.assign(o,{message:"EC2 Metadata token request returned error"})}else if(o.message==="TimeoutError"||[403,404,405].includes(o.statusCode)){n=true}s?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return getCredentials(l,{...t,timeout:c})}return getCredentials(l,{...t,headers:{[M]:o},timeout:c})}}};const getMetadataToken=async t=>httpRequest({...t,path:N,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async t=>(await httpRequest({...t,path:T})).toString();const getCredentialsFromProfile=async(t,n,s)=>{const o=JSON.parse((await httpRequest({...n,path:T+t})).toString());if(!isImdsCredentials(o)){throw new i("Invalid response received from instance metadata service.",{logger:s.logger})}return fromImdsCredentials(o)};n.DEFAULT_MAX_RETRIES=d;n.DEFAULT_TIMEOUT=u;n.ENV_CMDS_AUTH_TOKEN=f;n.ENV_CMDS_FULL_URI=g;n.ENV_CMDS_RELATIVE_URI=h;n.Endpoint=I;n.fromContainerMetadata=fromContainerMetadata;n.fromInstanceMetadata=fromInstanceMetadata;n.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;n.httpRequest=httpRequest;n.providerConfigFromInit=providerConfigFromInit},1279:(t,n,s)=>{const{hasOwn:o}=s(2430);const{streamCollector:i}=s(2430);n.streamCollector=i;const{buildQueryString:A,HttpResponse:c}=s(3422);const l=s(4708);const{Readable:u}=s(7075);const d=s(2467);function buildAbortError(t){const n=t&&typeof t==="object"&&"reason"in t?t.reason:undefined;if(n){if(n instanceof Error){const t=new Error("Request aborted");t.name="AbortError";t.cause=n;return t}const t=new Error(String(n));t.name="AbortError";return t}const s=new Error("Request aborted");s.name="AbortError";return s}const g=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=t=>{const n={};for(const s in t){if(!o(t,s)){continue}const i=t[s];n[s]=Array.isArray(i)?i.join(","):i}return n};const h={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t)};const f=1e3;const setConnectionTimeout=(t,n,s=0)=>{if(!s){return-1}const registerTimeout=o=>{const i=h.setTimeout(()=>{t.destroy();n(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${s} ms.`),{name:"TimeoutError"}))},s-o);const doWithSocket=t=>{if(t?.connecting){t.on("connect",()=>{h.clearTimeout(i)})}else{h.clearTimeout(i)}};if(t.socket){doWithSocket(t.socket)}else{t.on("socket",doWithSocket)}};if(s<2e3){registerTimeout(0);return 0}return h.setTimeout(registerTimeout.bind(null,f),f)};const setRequestTimeout=(t,n,s=0,o,i)=>{if(s){return h.setTimeout(()=>{let A=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${s} ms requestTimeout.`;if(o){const s=Object.assign(new Error(A),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(s);n(s)}else{A+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(A)}},s)}return-1};const E=3e3;const setSocketKeepAlive=(t,{keepAlive:n,keepAliveMsecs:s},o=E)=>{if(n!==true){return-1}const registerListener=()=>{if(t.socket){t.socket.setKeepAlive(n,s||0)}else{t.on("socket",t=>{t.setKeepAlive(n,s||0)})}};if(o===0){registerListener();return 0}return h.setTimeout(registerListener,o)};const resolveDefaultSocketTimeout=t=>{const n=t?.defaultSocketTimeout;return typeof n==="number"&&Number.isFinite(n)&&n>0?n:undefined};const p=3e3;const setSocketTimeout=(t,n,s=0,o=false)=>{let i;if(o){t.once("response",t=>i=t)}const registerTimeout=A=>{const c=s-A;const onTimeout=()=>{const A=Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${s} ms of inactivity (${o?"service default socket timeout":"configured by client requestHandler"}).`),{name:"TimeoutError"});if(o){i?.destroy(A)}t.destroy();n(A)};if(t.socket){t.socket.setTimeout(c,onTimeout);t.on("close",()=>t.socket?.removeListener("timeout",onTimeout))}else{t.setTimeout(c,onTimeout)}};if(0<s&&s<6e3){registerTimeout(0);return 0}const A=h.setTimeout(registerTimeout.bind(null,s===0?0:p),p);if(o){t.once("close",()=>h.clearTimeout(A));return 0}return A};const C=6e3;async function writeRequestBody(t,n,s=C,o=false){const i=n.headers;const A=i?i.Expect||i.expect:undefined;let c=-1;let l=true;if(!o&&A==="100-continue"){l=await Promise.race([new Promise(t=>{c=Number(h.setTimeout(()=>t(true),Math.max(C,s)))}),new Promise(n=>{t.on("continue",()=>{h.clearTimeout(c);n(true)});t.on("response",()=>{h.clearTimeout(c);n(false)});t.on("error",()=>{h.clearTimeout(c);n(false)})})])}if(l){writeBody(t,n.body)}}function writeBody(t,n){if(n instanceof u){n.pipe(t);return}if(n){const s=Buffer.isBuffer(n);const o=typeof n==="string";if(s||o){if(s&&n.byteLength===0){t.end()}else{t.end(n)}return}const i=n;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){t.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}t.end(Buffer.from(n));return}t.end()}const I=0;let m=undefined;let B=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttpHandler(t)}static checkSocketUsage(t,n,s=console){const{sockets:i,requests:A,maxSockets:c}=t;if(typeof c!=="number"||c===Infinity){return n}const l=15e3;if(Date.now()-l<n){return n}if(i&&A){for(const t in i){if(!o(i,t)){continue}const n=i[t]?.length??0;const l=A[t]?.length??0;if(n>=c&&l>=2*c){s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${n} and ${l} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return n}constructor(t){this.configProvider=new Promise((n,s)=>{if(typeof t==="function"){t().then(t=>{n(this.resolveDefaultConfig(t))}).catch(s)}else{n(this.resolveDefaultConfig(t))}})}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:n,requestTimeout:s}={}){if(!this.config){this.config=await this.configProvider}const o=this.config;const i=o.logger;const u=t.protocol==="https:";if(!u&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise((d,f)=>{let E=undefined;let p=-1;let C=-1;let I=-1;let Q=-1;let y=-1;const clearTimeouts=()=>{h.clearTimeout(p);h.clearTimeout(C);h.clearTimeout(I);h.clearTimeout(Q);h.clearTimeout(y)};const resolve=async t=>{await E;clearTimeouts();d(t)};const reject=async t=>{await E;clearTimeouts();f(t)};if(n?.aborted){const t=buildAbortError(n);reject(t);return}const w=t.headers;const S=w?(w.Expect??w.expect)==="100-continue":false;let R=u?o.httpsAgent:o.httpAgent;if(S&&!this.externalAgent){R=new(u?l.Agent:m)({keepAlive:false,maxSockets:Infinity})}p=h.setTimeout(()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(R,this.socketWarningTimestamp,i)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));const D=t.query?A(t.query):"";let k=undefined;if(t.username!=null||t.password!=null){const n=t.username??"";const s=t.password??"";k=`${n}:${s}`}let v=t.path;if(D){v+=`?${D}`}if(t.fragment){v+=`#${t.fragment}`}let T=t.hostname??"";if(T[0]==="["&&T.endsWith("]")){T=t.hostname.slice(1,-1)}else{T=t.hostname}const N={headers:t.headers,host:T,method:t.method,path:v,port:t.port,agent:R,auth:k};const F=u?l.request:B;const x=F(N,t=>{const n=new c({statusCode:t.statusCode||-1,reason:t.statusMessage,headers:getTransformedHeaders(t.headers),body:t});resolve({response:n})});x.on("error",t=>{if(g.includes(t.code)){reject(Object.assign(t,{name:"TimeoutError"}))}else{reject(t)}});if(n){const onAbort=()=>{x.destroy();const t=buildAbortError(n);reject(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});x.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}const M=s??o.requestTimeout;C=setConnectionTimeout(x,reject,o.connectionTimeout);I=setRequestTimeout(x,reject,M,o.throwOnRequestTimeout,i??console);const U=o.socketTimeout===undefined?resolveDefaultSocketTimeout(o):undefined;if(U){Q=setSocketTimeout(x,reject,U,true)}else{Q=setSocketTimeout(x,reject,o.socketTimeout)}const L=N.agent;if(typeof L==="object"&&"keepAlive"in L){y=setSocketKeepAlive(x,{keepAlive:L.keepAlive,keepAliveMsecs:L.keepAliveMsecs})}E=writeRequestBody(x,t,M,this.externalAgent).catch(t=>{clearTimeouts();return f(t)})})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(s=>{switch(t){case Symbol.for("logger"):t="logger";n=s.logger??n;break;case Symbol.for("@smithy/defaultSocketTimeout"):t="defaultSocketTimeout";n=resolveDefaultSocketTimeout(s)??n;break}return{...s,[t]:n}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(t){const{requestTimeout:n,connectionTimeout:o,socketTimeout:i,socketAcquisitionWarningTimeout:A,httpAgent:c,httpsAgent:u,throwOnRequestTimeout:d,logger:g}=t||{};const h=true;const f=50;let E;return{connectionTimeout:o,requestTimeout:n,socketTimeout:i,defaultSocketTimeout:resolveDefaultSocketTimeout(t),socketAcquisitionWarningTimeout:A,throwOnRequestTimeout:d,httpAgentProvider:()=>E??=(async()=>{const t=s(7067);const{Agent:n,request:o}=t.default??t;B=o;m=n;if(c instanceof m||typeof c?.destroy==="function"){this.externalAgent=true;return c}return new m({keepAlive:h,maxSockets:f,...c})})(),httpsAgent:(()=>{if(u instanceof l.Agent||typeof u?.destroy==="function"){this.externalAgent=true;return u}return new l.Agent({keepAlive:h,maxSockets:f,...u})})(),logger:g}}}const Q=new Uint16Array(1);class ClientHttp2SessionRef{id=Q[0]++;total=0;max=0;session;refs=0;constructor(t){t.unref();this.session=t}retain(){if(this.session.destroyed){throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.")}this.refs+=1;this.total+=1;this.max=Math.max(this.refs,this.max);this.session.ref()}free(){if(this.session.destroyed){return}this.refs-=1;if(this.refs===0){this.session.unref()}if(this.refs<0){throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}}deref(){return this.session}close(){if(!this.session.closed){this.session.close()}}destroy(){this.refs=0;if(!this.session.destroyed){this.session.setTimeout(0);this.session.destroy()}}useCount(){return this.refs}}class NodeHttp2ConnectionPool{sessions=[];maxConcurrency=0;constructor(t){this.sessions=(t??[]).map(t=>new ClientHttp2SessionRef(t))}poll(){let t=false;for(const n of this.sessions){if(n.deref().destroyed){t=true;continue}if(!this.maxConcurrency||n.useCount()<this.maxConcurrency){return n}}if(t){for(const t of this.sessions){if(t.deref().destroyed){this.remove(t)}}}}offerLast(t){this.sessions.push(t)}remove(t){const n=this.sessions.indexOf(t);if(n>-1){this.sessions.splice(n,1)}}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(t){this.maxConcurrency=t}destroy(t){this.remove(t);t.destroy()}}class NodeHttp2ConnectionManager{config;connectOptions;connectionPools=new Map;constructor(t){this.config=t;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(t,n){const s=this.getUrlString(t);const o=this.getPool(s);if(!this.config.disableConcurrency&&!n.isEventStream){const t=o.poll();if(t){t.retain();return t}}const i=new ClientHttp2SessionRef(this.connect(s));const A=i.deref();if(this.config.maxConcurrency){A.settings({maxConcurrentStreams:this.config.maxConcurrency},n=>{if(n){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())}})}const graceful=()=>{this.removeFromPoolAndClose(s,i)};const ensureDestroyed=()=>{this.removeFromPoolAndCheckedDestroy(s,i)};A.on("goaway",graceful);A.on("error",ensureDestroyed);A.on("frameError",ensureDestroyed);A.on("close",ensureDestroyed);if(n.requestTimeout){A.setTimeout(n.requestTimeout,ensureDestroyed)}o.offerLast(i);i.retain();return i}release(t,n){n.free()}createIsolatedSession(t,n){const s=this.getUrlString(t);const o=new ClientHttp2SessionRef(this.connect(s));const i=o.deref();i.settings({maxConcurrentStreams:1});const ensureDestroyed=()=>{o.destroy()};i.on("error",ensureDestroyed);i.on("frameError",ensureDestroyed);i.on("close",ensureDestroyed);const A=n.requestTimeout??3e5;i.setTimeout(A,ensureDestroyed);o.retain();return o}destroy(){for(const[t,n]of this.connectionPools){for(const t of[...n]){t.destroy()}this.connectionPools.delete(t)}}setMaxConcurrentStreams(t){if(t&&t<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=t;for(const n of this.connectionPools.values()){n.setMaxConcurrency(t)}}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}setNodeHttp2ConnectOptions(t){this.connectOptions=t}debug(){const t={};for(const[n,s]of this.connectionPools){const o=[];for(const t of s){o.push({id:t.id,active:t.useCount(),maxConcurrent:t.max,totalRequests:t.total})}t[n]={sessions:o}}return t}removeFromPoolAndClose(t,n){this.connectionPools.get(t)?.remove(n);n.close()}removeFromPoolAndCheckedDestroy(t,n){this.connectionPools.get(t)?.remove(n);n.destroy()}getPool(t){if(!this.connectionPools.has(t)){const n=new NodeHttp2ConnectionPool;if(this.config.maxConcurrency){n.setMaxConcurrency(this.config.maxConcurrency)}this.connectionPools.set(t,n)}return this.connectionPools.get(t)}getUrlString(t){return t.destination.toString()}connect(t){return this.connectOptions===undefined?d.connect(t):d.connect(t,this.connectOptions)}}const{constants:y}=d;class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttp2Handler(t)}constructor(t){this.configProvider=new Promise((n,s)=>{if(typeof t==="function"){t().then(t=>{n(t||{})}).catch(s)}else{n(t||{})}})}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:n,requestTimeout:s,isEventStream:o}={}){if(!this.config){const t=await this.configProvider;this.config={...t,defaultSocketTimeout:resolveDefaultSocketTimeout(t)};const{disableConcurrentStreams:n,maxConcurrentStreams:s,nodeHttp2ConnectOptions:o}=this.config;this.connectionManager.setDisableConcurrentStreams(n??false);if(s){this.connectionManager.setMaxConcurrentStreams(s)}if(o){this.connectionManager.setNodeHttp2ConnectOptions(o)}}const{requestTimeout:i,disableConcurrentStreams:l,sessionTimeout:u}=this.config;const d=l||o;const g=s??i;const h=g===undefined&&u===undefined?this.config.defaultSocketTimeout:undefined;return new Promise((s,i)=>{let l=false;let u=undefined;const resolve=async t=>{await u;s(t)};const reject=async t=>{await u;i(t)};if(n?.aborted){l=true;const t=buildAbortError(n);reject(t);return}const{hostname:f,method:E,port:p,protocol:C,query:I}=t;let m="";if(t.username!=null||t.password!=null){const n=t.username??"";const s=t.password??"";m=`${n}:${s}@`}const B=`${C}//${m}${f}${p?`:${p}`:""}`;const Q={destination:new URL(B)};const w={requestTimeout:this.config?.sessionTimeout,isEventStream:o};const S=d?this.connectionManager.createIsolatedSession(Q,w):this.connectionManager.lease(Q,w);const R=S.deref();const rejectWithDestroy=t=>{if(d){S.destroy()}l=true;reject(t)};const D=I?A(I):"";let k=t.path;if(D){k+=`?${D}`}if(t.fragment){k+=`#${t.fragment}`}const v=R.request({...t.headers,[y.HTTP2_HEADER_PATH]:k,[y.HTTP2_HEADER_METHOD]:E});if(g){v.setTimeout(g,()=>{v.close();const t=new Error(`Stream timed out because of no activity for ${g} ms`);t.name="TimeoutError";rejectWithDestroy(t)})}else if(h){v.setTimeout(h,()=>{const t=new Error(`Stream timed out because of no activity for ${h} ms`);t.name="TimeoutError";l=true;reject(t);v.destroy(t);if(d){S.destroy()}});v.once("response",()=>v.setTimeout(h))}if(n){const onAbort=()=>{v.close();const t=buildAbortError(n);rejectWithDestroy(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});v.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}v.on("frameError",(t,n,s)=>{rejectWithDestroy(new Error(`Frame type id ${t} in stream id ${s} has failed with code ${n}.`))});v.on("error",rejectWithDestroy);v.on("aborted",()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))});v.on("response",t=>{const n=new c({statusCode:t[":status"]??-1,headers:getTransformedHeaders(t),body:v});l=true;resolve({response:n});if(d){R.close();v.on("end",()=>{S.destroy()})}});v.on("close",()=>{if(d){S.destroy()}else{this.connectionManager.release(Q,S)}if(!l){const t=new Error("Unexpected error: http2 request did not get a response");if(R.destroyed){t.name="TimeoutError"}rejectWithDestroy(t)}});u=writeRequestBody(v,t,g)})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(s=>{switch(t){case Symbol.for("@smithy/defaultSocketTimeout"):t="defaultSocketTimeout";n=resolveDefaultSocketTimeout(s)??n;break}return{...s,[t]:n}})}httpHandlerConfigs(){return this.config??{}}}n.DEFAULT_REQUEST_TIMEOUT=I;n.NodeHttp2Handler=NodeHttp2Handler;n.NodeHttpHandler=NodeHttpHandler},5118:(t,n,s)=>{const{hasOwn:o,fromUtf8:i,fromHex:A,toHex:c,toUint8Array:l,writeKey:u,isArrayBuffer:d}=s(2430);const{normalizeProvider:g}=s(2658);const{escapeUri:h,HttpRequest:f}=s(3422);class HeaderFormatter{format(t){const n=[];for(const s in t){if(!o(t,s)){continue}const A=i(s);n.push(Uint8Array.from([A.byteLength]),A,this.formatHeaderValue(t[s]))}const s=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let A=0;for(const t of n){s.set(t,A);A+=t.byteLength}return s}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,3);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));s.setUint8(0,4);s.setInt32(1,t.value,false);return new Uint8Array(s.buffer);case"long":const o=new Uint8Array(9);o[0]=5;o.set(t.value.bytes,1);return o;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6);c.setUint16(1,t.value.byteLength,false);const l=new Uint8Array(c.buffer);l.set(t.value,3);return l;case"string":const u=i(t.value);const d=new DataView(new ArrayBuffer(3+u.byteLength));d.setUint8(0,7);d.setUint16(1,u.byteLength,false);const g=new Uint8Array(d.buffer);g.set(u,3);return g;case"timestamp":const h=new Uint8Array(9);h[0]=8;h.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return h;case"uuid":if(!p.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const f=new Uint8Array(17);f[0]=9;f.set(A(t.value.replace(/-/g,"")),1);return f}}}var E;(function(t){t[t["boolTrue"]=0]="boolTrue";t[t["boolFalse"]=1]="boolFalse";t[t["byte"]=2]="byte";t[t["short"]=3]="short";t[t["integer"]=4]="integer";t[t["long"]=5]="long";t[t["byteArray"]=6]="byteArray";t[t["string"]=7]="string";t[t["timestamp"]=8]="timestamp";t[t["uuid"]=9]="uuid"})(E||(E={}));const p=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let s=7,o=Math.abs(Math.round(t));s>-1&&o>0;s--,o/=256){n[s]=o}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(c(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0){break}}}const C="X-Amz-Algorithm";const I="X-Amz-Credential";const m="X-Amz-Date";const B="X-Amz-SignedHeaders";const Q="X-Amz-Expires";const y="X-Amz-Signature";const w="X-Amz-Security-Token";const S="X-Amz-Region-Set";const R="authorization";const D=m.toLowerCase();const k="date";const v=[R,D,k];const T=y.toLowerCase();const N="x-amz-content-sha256";const F=w.toLowerCase();const x="host";const M={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const U=/^proxy-/;const L=/^sec-/;const P=[/^proxy-/i,/^sec-/i];const O="AWS4-HMAC-SHA256";const H="AWS4-ECDSA-P256-SHA256";const _="AWS4-HMAC-SHA256-PAYLOAD";const G="UNSIGNED-PAYLOAD";const V=50;const Y="aws4_request";const J=60*60*24*7;const getCanonicalQuery=({query:t={}})=>{const n=[];const s={};for(const i in t){if(!o(t,i)){continue}if(i.toLowerCase()===T){continue}const A=h(i);n.push(A);const c=t[i];if(typeof c==="string"){s[A]=`${A}=${h(c)}`}else if(Array.isArray(c)){s[A]=c.slice(0).reduce((t,n)=>t.concat([`${A}=${h(n)}`]),[]).sort().join("&")}}return n.sort().map(t=>s[t]).filter(t=>t).join("&")};const iso8601=t=>toDate(t).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=t=>{if(typeof t==="number"){return new Date(t*1e3)}if(typeof t==="string"){if(Number(t)){return new Date(Number(t)*1e3)}return new Date(t)}return t};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:s,service:o,sha256:i,uriEscapePath:A=true}){this.service=o;this.sha256=i;this.uriEscapePath=A;this.applyChecksum=typeof t==="boolean"?t:true;this.regionProvider=g(s);this.credentialProvider=g(n)}createCanonicalRequest(t,n,s){const o=Object.keys(n).sort();return`${t.method}\n${this.getCanonicalPath(t)}\n${getCanonicalQuery(t)}\n${o.map(t=>`${t}:${n[t]}`).join("\n")}\n\n${o.join(";")}\n${s}`}async createStringToSign(t,n,s,o){const i=new this.sha256;i.update(l(s));const A=await i.digest();return`${o}\n${t}\n${n}\n${c(A)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const s of t.split("/")){if(s?.length===0){continue}if(s==="."){continue}if(s===".."){n.pop()}else{n.push(s)}}const s=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;const o=h(s);return o.replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!=="object"||typeof t.accessKeyId!=="string"||typeof t.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(t){const n=iso8601(t).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}const q={};const W=[];const createScope=(t,n,s)=>`${t}/${n}/${s}/${Y}`;const getSigningKey=async(t,n,s,o,i)=>{const A=await hmac(t,n.secretAccessKey,n.accessKeyId);const l=`${s}:${o}:${i}:${c(A)}:${n.sessionToken}`;if(l in q){return q[l]}W.push(l);while(W.length>V){delete q[W.shift()]}let u=`AWS4${n.secretAccessKey}`;for(const n of[s,o,i,Y]){u=await hmac(t,u,n)}return q[l]=u};const clearCredentialCache=()=>{W.length=0;Object.keys(q).forEach(t=>{delete q[t]})};const hmac=(t,n,s)=>{const o=new t(n);o.update(l(s));return o.digest()};const getCanonicalHeaders=({headers:t},n,s)=>{const i={};for(const A of Object.keys(t).sort()){if(t[A]==undefined){continue}const c=A.toLowerCase();if(o(M,c)||n?.has(c)||U.test(c)||L.test(c)){if(!s||s&&!s.has(c)){continue}}if(c==="__proto__"){u(i)}i[c]=t[A].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,"")}return i};const getPayloadHash=async({headers:t,body:n},s)=>{for(const n in t){if(!o(t,n)){continue}if(n.toLowerCase()===N){return t[n]}}if(n==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof n==="string"||ArrayBuffer.isView(n)||d(n)){const t=new s;t.update(l(n));return c(await t.digest())}return G};const hasHeader=(t,n)=>{t=t.toLowerCase();for(const s in n){if(!o(n,s)){continue}if(t===s.toLowerCase()){return true}}return false};const moveHeadersToQuery=(t,n={})=>{const{headers:s,query:i={}}=f.clone(t);for(const t in s){if(!o(s,t)){continue}const A=t.toLowerCase();if(A.slice(0,6)==="x-amz-"&&!n.unhoistableHeaders?.has(A)||n.hoistableHeaders?.has(A)){i[t]=s[t];delete s[t]}}return{...t,headers:s,query:i}};const prepareRequest=t=>{t=f.clone(t);for(const n in t.headers){if(!o(t.headers,n)){continue}if(v.indexOf(n.toLowerCase())>-1){delete t.headers[n]}}return t};class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:t,credentials:n,region:s,service:o,sha256:i,uriEscapePath:A=true}){super({applyChecksum:t,credentials:n,region:s,service:o,sha256:i,uriEscapePath:A})}async presign(t,n={}){const{signingDate:s=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:A,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=n;const g=await this.credentialProvider();this.validateResolvedCredentials(g);const h=u??await this.regionProvider();const{longDate:f,shortDate:E}=this.formatDate(s);if(o>J){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const p=createScope(E,h,d??this.service);const S=moveHeadersToQuery(prepareRequest(t),{unhoistableHeaders:A,hoistableHeaders:l});if(g.sessionToken){S.query[w]=g.sessionToken}S.query[C]=O;S.query[I]=`${g.accessKeyId}/${p}`;S.query[m]=f;S.query[Q]=o.toString(10);const R=getCanonicalHeaders(S,i,c);S.query[B]=this.getCanonicalHeaderList(R);S.query[y]=await this.getSignature(f,p,this.getSigningKey(g,h,E,d),this.createCanonicalRequest(S,R,await getPayloadHash(t,this.sha256)));return S}async sign(t,n){if(typeof t==="string"){return this.signString(t,n)}else if(t.headers&&t.payload){return this.signEvent(t,n)}else if(t.message){return this.signMessage(t,n)}else{return this.signRequest(t,n)}}async signEvent({headers:t,payload:n},{signingDate:s=new Date,priorSignature:o,signingRegion:i,signingService:A,eventStreamCredentials:l}){const u=i??await this.regionProvider();const{shortDate:d,longDate:g}=this.formatDate(s);const h=createScope(d,u,A??this.service);const f=await getPayloadHash({headers:{},body:n},this.sha256);const E=new this.sha256;E.update(t);const p=c(await E.digest());const C=[_,g,h,o,p,f].join("\n");return this.signString(C,{signingDate:s,signingRegion:u,signingService:A,eventStreamCredentials:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:s,signingService:o,eventStreamCredentials:i}){const A=this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:s,signingService:o,priorSignature:t.priorSignature,eventStreamCredentials:i});return A.then(n=>({message:t.message,signature:n}))}async signString(t,{signingDate:n=new Date,signingRegion:s,signingService:o,eventStreamCredentials:i}={}){const A=i??await this.credentialProvider();this.validateResolvedCredentials(A);const u=s??await this.regionProvider();const{shortDate:d}=this.formatDate(n);const g=new this.sha256(await this.getSigningKey(A,u,d,o));g.update(l(t));return c(await g.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:s,unsignableHeaders:o,signingRegion:i,signingService:A}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=i??await this.regionProvider();const u=prepareRequest(t);const{longDate:d,shortDate:g}=this.formatDate(n);const h=createScope(g,l,A??this.service);u.headers[D]=d;if(c.sessionToken){u.headers[F]=c.sessionToken}const f=await getPayloadHash(u,this.sha256);if(!hasHeader(N,u.headers)&&this.applyChecksum){u.headers[N]=f}const E=getCanonicalHeaders(u,o,s);const p=await this.getSignature(d,h,this.getSigningKey(c,l,g,A),this.createCanonicalRequest(u,E,f));u.headers[R]=`${O} `+`Credential=${c.accessKeyId}/${h}, `+`SignedHeaders=${this.getCanonicalHeaderList(E)}, `+`Signature=${p}`;return u}async getSignature(t,n,s,o){const i=await this.createStringToSign(t,n,o,O);const A=new this.sha256(await s);A.update(l(i));return c(await A.digest())}getSigningKey(t,n,s,o){return getSigningKey(this.sha256,t,s,n,o||this.service)}}const z={SignatureV4a:null};n.ALGORITHM_IDENTIFIER=O;n.ALGORITHM_IDENTIFIER_V4A=H;n.ALGORITHM_QUERY_PARAM=C;n.ALWAYS_UNSIGNABLE_HEADERS=M;n.AMZ_DATE_HEADER=D;n.AMZ_DATE_QUERY_PARAM=m;n.AUTH_HEADER=R;n.CREDENTIAL_QUERY_PARAM=I;n.DATE_HEADER=k;n.EVENT_ALGORITHM_IDENTIFIER=_;n.EXPIRES_QUERY_PARAM=Q;n.GENERATED_HEADERS=v;n.HOST_HEADER=x;n.KEY_TYPE_IDENTIFIER=Y;n.MAX_CACHE_SIZE=V;n.MAX_PRESIGNED_TTL=J;n.PROXY_HEADER_PATTERN=U;n.REGION_SET_PARAM=S;n.SEC_HEADER_PATTERN=L;n.SHA256_HEADER=N;n.SIGNATURE_HEADER=T;n.SIGNATURE_QUERY_PARAM=y;n.SIGNED_HEADERS_QUERY_PARAM=B;n.SignatureV4=SignatureV4;n.SignatureV4Base=SignatureV4Base;n.TOKEN_HEADER=F;n.TOKEN_QUERY_PARAM=w;n.UNSIGNABLE_PATTERNS=P;n.UNSIGNED_PAYLOAD=G;n.clearCredentialCache=clearCredentialCache;n.createScope=createScope;n.getCanonicalHeaders=getCanonicalHeaders;n.getCanonicalQuery=getCanonicalQuery;n.getPayloadHash=getPayloadHash;n.getSigningKey=getSigningKey;n.hasHeader=hasHeader;n.moveHeadersToQuery=moveHeadersToQuery;n.prepareRequest=prepareRequest;n.signatureV4aContainer=z},690:(t,n)=>{var s;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(s||(s={}));var o;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(o||(o={}));var i;(function(t){t["HTTP"]="http";t["HTTPS"]="https"})(i||(i={}));var A;(function(t){t["MD5"]="md5";t["CRC32"]="crc32";t["CRC32C"]="crc32c";t["SHA1"]="sha1";t["SHA256"]="sha256"})(A||(A={}));const getChecksumConfiguration=t=>{const n=[];if(t.sha256!==undefined){n.push({algorithmId:()=>A.SHA256,checksumConstructor:()=>t.sha256})}if(t.md5!=undefined){n.push({algorithmId:()=>A.MD5,checksumConstructor:()=>t.md5})}return{addChecksumAlgorithm(t){n.push(t)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()});return n};const getDefaultClientConfiguration=t=>getChecksumConfiguration(t);const resolveDefaultRuntimeConfig=t=>resolveChecksumRuntimeConfig(t);var c;(function(t){t[t["HEADER"]=0]="HEADER";t[t["TRAILER"]=1]="TRAILER"})(c||(c={}));const l="__smithy_context";var u;(function(t){t["PROFILE"]="profile";t["SSO_SESSION"]="sso-session";t["SERVICES"]="services"})(u||(u={}));var d;(function(t){t["HTTP_0_9"]="http/0.9";t["HTTP_1_0"]="http/1.0";t["TDS_8_0"]="tds/8.0"})(d||(d={}));n.AlgorithmId=A;n.EndpointURLScheme=i;n.FieldPosition=c;n.HttpApiKeyAuthLocation=o;n.HttpAuthLocation=s;n.IniSectionType=u;n.RequestHandlerProtocol=d;n.SMITHY_CONTEXT_KEY=l;n.getDefaultClientConfiguration=getDefaultClientConfiguration;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},9449:function(t){
|
||
/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2026
|
||
*/
|
||
!function(n,s){true?t.exports=s():0}(this,function(){var t={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","HeyTap Browser":"heytap","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",Ladybird:"ladybird",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc","Vivo Browser":"vivo",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},n={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",heytap:"HeyTap Browser",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",ladybird:"Ladybird",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivo:"Vivo Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},s={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},o={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},i={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",LibWeb:"LibWeb",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"},A=function(){function r(){}return r.getFirstMatch=function(t,n){var s=n.match(t);return s&&s.length>0&&s[1]||""},r.getSecondMatch=function(t,n){var s=n.match(t);return s&&s.length>1&&s[2]||""},r.matchAndReturnConst=function(t,n,s){if(t.test(n))return s},r.isFirefoxOnIpad=function(t){var n=t.indexOf("Macintosh");if(-1===n)return!1;var s=t.indexOf(" FxiOS",n+9);return-1!==s&&-1!==t.indexOf("/",s+6)},r.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},r.getMacOSVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});n.push(0);var s=n[0],o=n[1];if(10===s)switch(o){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(s){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},r.getAndroidVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(n.push(0),!(1===n[0]&&n[1]<5))return 1===n[0]&&n[1]<6?"Cupcake":1===n[0]&&n[1]>=6?"Donut":2===n[0]&&n[1]<2?"Eclair":2===n[0]&&2===n[1]?"Froyo":2===n[0]&&n[1]>2?"Gingerbread":3===n[0]?"Honeycomb":4===n[0]&&n[1]<1?"Ice Cream Sandwich":4===n[0]&&n[1]<4?"Jelly Bean":4===n[0]&&n[1]>=4?"KitKat":5===n[0]?"Lollipop":6===n[0]?"Marshmallow":7===n[0]?"Nougat":8===n[0]?"Oreo":9===n[0]?"Pie":void 0},r.getVersionPrecision=function(t){return t.split(".").length},r.compareVersions=function(t,n,s){void 0===s&&(s=!1);var o=r.getVersionPrecision(t),i=r.getVersionPrecision(n),A=Math.max(o,i),c=0,l=r.map([t,n],function(t){var n=A-r.getVersionPrecision(t),s=t+new Array(n+1).join(".0");return r.map(s.split("."),function(t){return new Array(20-t.length).join("0")+t}).reverse()});for(s&&(c=A-Math.min(o,i)),A-=1;A>=c;){if(l[0][A]>l[1][A])return 1;if(l[0][A]===l[1][A]){if(A===c)return 0;A-=1}else if(l[0][A]<l[1][A])return-1}},r.map=function(t,n){var s,o=[];if(Array.prototype.map)return Array.prototype.map.call(t,n);for(s=0;s<t.length;s+=1)o.push(n(t[s]));return o},r.find=function(t,n){var s,o;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(s=0,o=t.length;s<o;s+=1){var i=t[s];if(n(i,s))return i}},r.assign=function(t){for(var n,s,o=t,i=arguments.length,A=new Array(i>1?i-1:0),c=1;c<i;c++)A[c-1]=arguments[c];if(Object.assign)return Object.assign.apply(Object,[t].concat(A));var a=function(){var t=A[n];"object"==typeof t&&null!==t&&Object.keys(t).forEach(function(n){o[n]=t[n]})};for(n=0,s=A.length;n<s;n+=1)a();return t},r.getBrowserAlias=function(n){return t[n]},r.getBrowserTypeByAlias=function(t){return n[t]||""},r}(),c=/version\/(\d+(\.?_?\d+)+)/i,l=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},s=A.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},s=A.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},s=A.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},s=A.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},s=A.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},s=A.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},s=A.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},s=A.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},s=A.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},s=A.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},s=A.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},s=A.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},s=A.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},s=A.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},s=A.getFirstMatch(/(?:linespider)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},s=A.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},s=A.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},s=A.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},s=A.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},s=A.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},s=A.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},s=A.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/HeyTapBrowser/i],describe:function(t){var n={name:"HeyTap Browser"},s=A.getFirstMatch(/(?:HeyTapBrowser)[\s/](\d+(?:\.\d+)*)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/VivoBrowser/i],describe:function(t){var n={name:"Vivo Browser"},s=A.getFirstMatch(/(?:VivoBrowser)[\s/](\d+(?:\.\d+)*)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},s=A.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},s=A.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},s=A.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},s=A.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},s=A.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},s=A.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},s=A.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},s=A.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},s=A.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/edg([ea]|ios)\//i],describe:function(t){var n={name:"Microsoft Edge"},s=A.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:function(t){return!!t.hasBrand("Vivaldi")||t.test(/vivaldi/i)},describe:function(t,n){var s={name:"Vivaldi"};if(n){var o=n.getBrandVersion("Vivaldi");if(o)return s.version=o,s}var i=A.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(s.version=i),s}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},s=A.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},s=A.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return s&&(n.version=s),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},s=A.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},s=A.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},s=A.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},s=A.getFirstMatch(c,t)||A.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},s=A.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},s=A.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},s=A.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},s=A.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},s=A.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},s=A.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},s=A.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),o=A.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),i=A.getFirstMatch(/se ([\d.]+)x/i,t),c=s||o||i;return c&&(n.version=c),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},s=A.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var s={name:"DuckDuckGo"};if(n){var o=n.getBrandVersion("DuckDuckGo");if(o)return s.version=o,s}var i=A.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return i&&(s.version=i),s}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var s={name:"Brave"};if(n){var o=n.getBrandVersion("Brave");if(o)return s.version=o,s}return s}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},s=A.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/ladybird/i],describe:function(t){var n={name:"Ladybird"},s=A.getFirstMatch(/ladybird\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},s=A.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},s=A.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:function(t){var n=!t.test(/like android/i),s=t.test(/android/i);return n&&s},describe:function(t){var n={name:"Android Browser"},s=A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},s=A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},s=A.getFirstMatch(c,t);return s&&(n.version=s),n}},{test:[/.*/i],describe:function(t){var n=-1!==t.search("\\(")?/^(.*)\/([^/]*)[ \t]\((.*)/:/^(.*)\/([^/]*) /;return{name:A.getFirstMatch(n,t),version:A.getSecondMatch(n,t)}}}],u=[{test:[/Roku\/DVP/],describe:function(t){var n=A.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=A.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=A.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),s=A.getWindowsVersionName(n);return{name:o.Windows,version:n,versionName:s}}},{test:function(t){return A.isFirefoxOnIpad(t.getUA())},describe:function(t){var n={name:o.iOS},s=A.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return s&&(n.version=s),n}},{test:[/macintosh/i],describe:function(t){var n=A.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),s=A.getMacOSVersionName(n),i={name:o.MacOS,version:n};return s&&(i.versionName=s),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=A.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=A.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:o.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),s=t.test(/android/i);return n&&s},describe:function(t){var n=A.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),s=A.getAndroidVersionName(n),i={name:o.Android,version:n};return s&&(i.versionName=s),i}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=A.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),s={name:o.WebOS};return n&&n.length&&(s.version=n),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=A.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||A.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||A.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=A.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=A.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:o.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=A.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.PlayStation4,version:n}}}],d=[{test:[/googlebot/i],describe:function(){return{type:s.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=A.getFirstMatch(/(can-l01)/i,t)&&"Nova",o={type:s.mobile,vendor:"Huawei"};return n&&(o.model=n),o}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.tablet,vendor:"Apple",model:"iPad"}}},{test:function(t){return A.isFirefoxOnIpad(t.getUA())},describe:function(){return{type:s.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),s=t.test(/like (ipod|iphone)/i);return n&&!s},describe:function(t){var n=A.getFirstMatch(/(ipod|iphone)/i,t);return{type:s.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=A.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),o={type:s.mobile,vendor:"Nokia"};return n&&(o.model=n),o}},{test:[/[^-]mobi/i],describe:function(){return{type:s.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:s.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:s.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:s.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&n>=3},describe:function(){return{type:s.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:s.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.tv}}},{test:[/netcast/i],describe:function(){return{type:s.tv}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:s.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:s.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:s.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:s.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:s.tv}}}],g=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:i.Blink};var n=A.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:i.EdgeHTML,version:n}}},{test:function(t){return"ladybird"===t.getBrowserName(!0)},describe:function(){return{name:i.LibWeb}}},{test:[/trident/i],describe:function(t){var n={name:i.Trident},s=A.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:i.Presto},s=A.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:function(t){var n=t.test(/gecko/i),s=t.test(/like gecko/i);return n&&!s},describe:function(t){var n={name:i.Gecko},s=A.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:i.WebKit},s=A.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return s&&(n.version=s),n}}],h=function(){function e(t,n,s){if(void 0===n&&(n=!1),void 0===s&&(s=null),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t;var o=!1;"boolean"==typeof n?(o=n,this._hints=s):this._hints=null!=n&&"object"==typeof n?n:null,this.parsedResult={},!0!==o&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(t){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var n=t.toLowerCase();return this._hints.brands.some(function(t){return t.brand&&t.brand.toLowerCase()===n})},t.getBrandVersion=function(t){if(this._hints&&Array.isArray(this._hints.brands)){var n=t.toLowerCase(),s=A.find(this._hints.brands,function(t){return t.brand&&t.brand.toLowerCase()===n});return s?s.version:void 0}},t.getUA=function(){return this._ua},t.test=function(t){return t.test(this._ua)},t.parseBrowser=function(){var t=this;this.parsedResult.browser={};var n=A.find(l,function(n){if("function"==typeof n.test)return n.test(t);if(Array.isArray(n.test))return n.test.some(function(n){return t.test(n)});throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.browser=n.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var t=this;this.parsedResult.os={};var n=A.find(u,function(n){if("function"==typeof n.test)return n.test(t);if(Array.isArray(n.test))return n.test.some(function(n){return t.test(n)});throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.os=n.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(t){var n=this.getOS().name;return t?String(n).toLowerCase()||"":n||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(t){void 0===t&&(t=!1);var n=this.getPlatform().type;return t?String(n).toLowerCase()||"":n||""},t.parsePlatform=function(){var t=this;this.parsedResult.platform={};var n=A.find(d,function(n){if("function"==typeof n.test)return n.test(t);if(Array.isArray(n.test))return n.test.some(function(n){return t.test(n)});throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.platform=n.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var t=this;this.parsedResult.engine={};var n=A.find(g,function(n){if("function"==typeof n.test)return n.test(t);if(Array.isArray(n.test))return n.test.some(function(n){return t.test(n)});throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.engine=n.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return A.assign({},this.parsedResult)},t.satisfies=function(t){var n=this,s={},o=0,i={},c=0;if(Object.keys(t).forEach(function(n){var A=t[n];"string"==typeof A||Array.isArray(A)?(i[n]=A,c+=1):"object"==typeof A&&(s[n]=A,o+=1)}),o>0){var l=Object.keys(s),u=A.find(l,function(t){return n.isOS(t)});if(u){var d=this.satisfies(s[u]);if(void 0!==d)return d}var g=A.find(l,function(t){return n.isPlatform(t)});if(g){var h=this.satisfies(s[g]);if(void 0!==h)return h}}if(c>0){var f=Object.keys(i),E=A.find(f,function(t){return n.isBrowser(t,!0)});if(void 0!==E)return this.compareVersions(i[E])}},t.isBrowser=function(t,n){void 0===n&&(n=!1);var s=this.getBrowserName().toLowerCase(),o=t.toLowerCase(),i=A.getBrowserTypeByAlias(o);return n&&i&&(o=i.toLowerCase()),o===s},t.compareVersions=function(t){var n=this;return"string"==typeof t?this.compareVersion(t):t.some(function(t){return n.compareVersion(t)})},t.compareVersion=function(t){var n=[0],s=t,o=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(s=t.substr(1),"="===t[1]?(o=!0,s=t.substr(2)):n=[],">"===t[0]?n.push(1):n.push(-1)):"="===t[0]?s=t.substr(1):"~"===t[0]&&(o=!0,s=t.substr(1)),n.indexOf(A.compareVersions(i,s,o))>-1},t.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},t.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},t.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},t.is=function(t,n){return void 0===n&&(n=!1),this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)},t.some=function(t){var n=this;return void 0===t&&(t=[]),t.some(function(t){return n.is(t)})},e}();function b(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}var f=function(){function e(){}return e.getParser=function(t,n,s){if(void 0===n&&(n=!1),void 0===s&&(s=null),"string"!=typeof t)throw new Error("UserAgent should be a string");return new h(t,n,s)},e.parse=function(t,n){return void 0===n&&(n=null),new h(t,n).getResult()},t=e,(A=[{key:"BROWSER_MAP",get:function(){return n}},{key:"ENGINE_MAP",get:function(){return i}},{key:"OS_MAP",get:function(){return o}},{key:"PLATFORMS_MAP",get:function(){return s}}])&&
|
||
/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/bowser-js/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2026
|
||
*/
|
||
function(t,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}(t,A),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,A}();return f.parse,f.getParser,f})},770:(t,n,s)=>{s(218)},218:(t,n,s)=>{"use strict";var o;var i=s(9278);var A=s(4756);var c=s(8611);var l=s(5692);var u=s(4434);var d=s(2613);var g=s(9023);o=httpOverHttp;o=httpsOverHttp;o=httpOverHttps;o=httpsOverHttps;function httpOverHttp(t){var n=new TunnelingAgent(t);n.request=c.request;return n}function httpsOverHttp(t){var n=new TunnelingAgent(t);n.request=c.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function httpOverHttps(t){var n=new TunnelingAgent(t);n.request=l.request;return n}function httpsOverHttps(t){var n=new TunnelingAgent(t);n.request=l.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function TunnelingAgent(t){var n=this;n.options=t||{};n.proxyOptions=n.options.proxy||{};n.maxSockets=n.options.maxSockets||c.Agent.defaultMaxSockets;n.requests=[];n.sockets=[];n.on("free",function onFree(t,s,o,i){var A=toOptions(s,o,i);for(var c=0,l=n.requests.length;c<l;++c){var u=n.requests[c];if(u.host===A.host&&u.port===A.port){n.requests.splice(c,1);u.request.onSocket(t);return}}t.destroy();n.removeSocket(t)})}g.inherits(TunnelingAgent,u.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(t,n,s,o){var i=this;var A=mergeOptions({request:t},i.options,toOptions(n,s,o));if(i.sockets.length>=this.maxSockets){i.requests.push(A);return}i.createSocket(A,function(n){n.on("free",onFree);n.on("close",onCloseOrRemove);n.on("agentRemove",onCloseOrRemove);t.onSocket(n);function onFree(){i.emit("free",n,A)}function onCloseOrRemove(t){i.removeSocket(n);n.removeListener("free",onFree);n.removeListener("close",onCloseOrRemove);n.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(t,n){var s=this;var o={};s.sockets.push(o);var i=mergeOptions({},s.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:false,headers:{host:t.host+":"+t.port}});if(t.localAddress){i.localAddress=t.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}h("making CONNECT request");var A=s.request(i);A.useChunkedEncodingByDefault=false;A.once("response",onResponse);A.once("upgrade",onUpgrade);A.once("connect",onConnect);A.once("error",onError);A.end();function onResponse(t){t.upgrade=true}function onUpgrade(t,n,s){process.nextTick(function(){onConnect(t,n,s)})}function onConnect(i,c,l){A.removeAllListeners();c.removeAllListeners();if(i.statusCode!==200){h("tunneling socket could not be established, statusCode=%d",i.statusCode);c.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";t.request.emit("error",u);s.removeSocket(o);return}if(l.length>0){h("got illegal response body from proxy");c.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";t.request.emit("error",u);s.removeSocket(o);return}h("tunneling connection has established");s.sockets[s.sockets.indexOf(o)]=c;return n(c)}function onError(n){A.removeAllListeners();h("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var i=new Error("tunneling socket could not be established, "+"cause="+n.message);i.code="ECONNRESET";t.request.emit("error",i);s.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(t){var n=this.sockets.indexOf(t);if(n===-1){return}this.sockets.splice(n,1);var s=this.requests.shift();if(s){this.createSocket(s,function(t){s.request.onSocket(t)})}};function createSecureSocket(t,n){var s=this;TunnelingAgent.prototype.createSocket.call(s,t,function(o){var i=t.request.getHeader("host");var c=mergeOptions({},s.options,{socket:o,servername:i?i.replace(/:.*$/,""):t.host});var l=A.connect(0,c);s.sockets[s.sockets.indexOf(o)]=l;n(l)})}function toOptions(t,n,s){if(typeof t==="string"){return{host:t,port:n,localAddress:s}}return t}function mergeOptions(t){for(var n=1,s=arguments.length;n<s;++n){var o=arguments[n];if(typeof o==="object"){var i=Object.keys(o);for(var A=0,c=i.length;A<c;++A){var l=i[A];if(o[l]!==undefined){t[l]=o[l]}}}}return t}var h;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){h=function(){var t=Array.prototype.slice.call(arguments);if(typeof t[0]==="string"){t[0]="TUNNEL: "+t[0]}else{t.unshift("TUNNEL:")}console.error.apply(console,t)}}else{h=function(){}}o=h},6752:(t,n,s)=>{"use strict";var o;const i=s(3701);const A=s(883);const c=s(628);const l=s(837);const u=s(7405);const d=s(6672);const g=s(3137);const h=s(50);const f=s(8707);const E=s(3440);const{InvalidArgumentError:p}=f;const C=s(6615);const I=s(9136);const m=s(7365);const B=s(7501);const Q=s(4004);const y=s(2429);const w=s(7816);const{getGlobalDispatcher:S,setGlobalDispatcher:R}=s(2581);const D=s(8155);const k=s(8754);const v=s(5092);Object.assign(A.prototype,C);o=A;o=i;o=c;o=l;o=u;o=d;o=g;o=h;o=w;o=D;o=k;o=v;o={redirect:s(1514),retry:s(2026),dump:s(8060),dns:s(379)};o=I;o=f;o={parseHeaders:E.parseHeaders,headerNameToString:E.headerNameToString};function makeDispatcher(t){return(n,s,o)=>{if(typeof s==="function"){o=s;s=null}if(!n||typeof n!=="string"&&typeof n!=="object"&&!(n instanceof URL)){throw new p("invalid url")}if(s!=null&&typeof s!=="object"){throw new p("invalid opts")}if(s&&s.path!=null){if(typeof s.path!=="string"){throw new p("invalid opts.path")}let t=s.path;if(!s.path.startsWith("/")){t=`/${t}`}n=new URL(E.parseOrigin(n).origin+t)}else{if(!s){s=typeof n==="object"?n:{}}n=E.parseURL(n)}const{agent:i,dispatcher:A=S()}=s;if(i){throw new p("unsupported opts.agent. Did you mean opts.client?")}return t.call(A,{...s,origin:n.origin,path:n.search?`${n.pathname}${n.search}`:n.pathname,method:s.method||(s.body?"PUT":"GET")},o)}}o=R;o=S;const T=s(4398).fetch;o=async function fetch(t,n=undefined){try{return await T(t,n)}catch(t){if(t&&typeof t==="object"){Error.captureStackTrace(t)}throw t}};s(660).Headers;s(9051).Response;s(9967).Request;s(5910).FormData;o=globalThis.File??s(4573).File;s(8355).FileReader;const{setGlobalOrigin:N,getGlobalOrigin:F}=s(1059);o=N;o=F;const{CacheStorage:x}=s(3245);const{kConstruct:M}=s(109);o=new x(M);const{deleteCookie:U,getCookies:L,getSetCookies:P,setCookie:O}=s(9061);o=U;o=L;o=P;o=O;const{parseMIMEType:H,serializeAMimeType:_}=s(1900);o=H;o=_;const{CloseEvent:G,ErrorEvent:V,MessageEvent:Y}=s(5188);s(3726).WebSocket;o=G;o=V;o=Y;o=makeDispatcher(C.request);o=makeDispatcher(C.stream);o=makeDispatcher(C.pipeline);o=makeDispatcher(C.connect);o=makeDispatcher(C.upgrade);o=m;o=Q;o=B;o=y;const{EventSource:J}=s(1238);o=J},158:(t,n,s)=>{const{addAbortListener:o}=s(3440);const{RequestAbortedError:i}=s(8707);const A=Symbol("kListener");const c=Symbol("kSignal");function abort(t){if(t.abort){t.abort(t[c]?.reason)}else{t.reason=t[c]?.reason??new i}removeSignal(t)}function addSignal(t,n){t.reason=null;t[c]=null;t[A]=null;if(!n){return}if(n.aborted){abort(t);return}t[c]=n;t[A]=()=>{abort(t)};o(t[c],t[A])}function removeSignal(t){if(!t[c]){return}if("removeEventListener"in t[c]){t[c].removeEventListener("abort",t[A])}else{t[c].removeListener("abort",t[A])}t[c]=null;t[A]=null}t.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(t,n,s)=>{"use strict";const o=s(4589);const{AsyncResource:i}=s(6698);const{InvalidArgumentError:A,SocketError:c}=s(8707);const l=s(3440);const{addSignal:u,removeSignal:d}=s(158);class ConnectHandler extends i{constructor(t,n){if(!t||typeof t!=="object"){throw new A("invalid opts")}if(typeof n!=="function"){throw new A("invalid callback")}const{signal:s,opaque:o,responseHeaders:i}=t;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=i||null;this.callback=n;this.abort=null;u(this,s)}onConnect(t,n){if(this.reason){t(this.reason);return}o(this.callback);this.abort=t;this.context=n}onHeaders(){throw new c("bad connect",null)}onUpgrade(t,n,s){const{callback:o,opaque:i,context:A}=this;d(this);this.callback=null;let c=n;if(c!=null){c=this.responseHeaders==="raw"?l.parseRawHeaders(n):l.parseHeaders(n)}this.runInAsyncScope(o,null,null,{statusCode:t,headers:c,socket:s,opaque:i,context:A})}onError(t){const{callback:n,opaque:s}=this;d(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:s})})}}}function connect(t,n){if(n===undefined){return new Promise((n,s)=>{connect.call(this,t,(t,o)=>t?s(t):n(o))})}try{const s=new ConnectHandler(t,n);this.dispatch({...t,method:"CONNECT"},s)}catch(s){if(typeof n!=="function"){throw s}const o=t?.opaque;queueMicrotask(()=>n(s,{opaque:o}))}}t.exports=connect},6862:(t,n,s)=>{"use strict";const{Readable:o,Duplex:i,PassThrough:A}=s(7075);const{InvalidArgumentError:c,InvalidReturnValueError:l,RequestAbortedError:u}=s(8707);const d=s(3440);const{AsyncResource:g}=s(6698);const{addSignal:h,removeSignal:f}=s(158);const E=s(4589);const p=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[p]=null}_read(){const{[p]:t}=this;if(t){this[p]=null;t()}}_destroy(t,n){this._read();n(t)}}class PipelineResponse extends o{constructor(t){super({autoDestroy:true});this[p]=t}_read(){this[p]()}_destroy(t,n){if(!t&&!this._readableState.endEmitted){t=new u}n(t)}}class PipelineHandler extends g{constructor(t,n){if(!t||typeof t!=="object"){throw new c("invalid opts")}if(typeof n!=="function"){throw new c("invalid handler")}const{signal:s,method:o,opaque:A,onInfo:l,responseHeaders:g}=t;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new c("invalid method")}if(l&&typeof l!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=A||null;this.responseHeaders=g||null;this.handler=n;this.abort=null;this.context=null;this.onInfo=l||null;this.req=(new PipelineRequest).on("error",d.nop);this.ret=new i({readableObjectMode:t.objectMode,autoDestroy:true,read:()=>{const{body:t}=this;if(t?.resume){t.resume()}},write:(t,n,s)=>{const{req:o}=this;if(o.push(t,n)||o._readableState.destroyed){s()}else{o[p]=s}},destroy:(t,n)=>{const{body:s,req:o,res:i,ret:A,abort:c}=this;if(!t&&!A._readableState.endEmitted){t=new u}if(c&&t){c()}d.destroy(s,t);d.destroy(o,t);d.destroy(i,t);f(this);n(t)}}).on("prefinish",()=>{const{req:t}=this;t.push(null)});this.res=null;h(this,s)}onConnect(t,n){const{ret:s,res:o}=this;if(this.reason){t(this.reason);return}E(!o,"pipeline cannot be retried");E(!s.destroyed);this.abort=t;this.context=n}onHeaders(t,n,s){const{opaque:o,handler:i,context:A}=this;if(t<200){if(this.onInfo){const s=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);this.onInfo({statusCode:t,headers:s})}return}this.res=new PipelineResponse(s);let c;try{this.handler=null;const s=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);c=this.runInAsyncScope(i,null,{statusCode:t,headers:s,opaque:o,body:this.res,context:A})}catch(t){this.res.on("error",d.nop);throw t}if(!c||typeof c.on!=="function"){throw new l("expected Readable")}c.on("data",t=>{const{ret:n,body:s}=this;if(!n.push(t)&&s.pause){s.pause()}}).on("error",t=>{const{ret:n}=this;d.destroy(n,t)}).on("end",()=>{const{ret:t}=this;t.push(null)}).on("close",()=>{const{ret:t}=this;if(!t._readableState.ended){d.destroy(t,new u)}});this.body=c}onData(t){const{res:n}=this;return n.push(t)}onComplete(t){const{res:n}=this;n.push(null)}onError(t){const{ret:n}=this;this.handler=null;d.destroy(n,t)}}function pipeline(t,n){try{const s=new PipelineHandler(t,n);this.dispatch({...t,body:s.req},s);return s.ret}catch(t){return(new A).destroy(t)}}t.exports=pipeline},4043:(t,n,s)=>{"use strict";const o=s(4589);const{Readable:i}=s(9927);const{InvalidArgumentError:A,RequestAbortedError:c}=s(8707);const l=s(3440);const{getResolveErrorBodyCallback:u}=s(7655);const{AsyncResource:d}=s(6698);class RequestHandler extends d{constructor(t,n){if(!t||typeof t!=="object"){throw new A("invalid opts")}const{signal:s,method:o,opaque:i,body:u,onInfo:d,responseHeaders:g,throwOnError:h,highWaterMark:f}=t;try{if(typeof n!=="function"){throw new A("invalid callback")}if(f&&(typeof f!=="number"||f<0)){throw new A("invalid highWaterMark")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new A("invalid method")}if(d&&typeof d!=="function"){throw new A("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(t){if(l.isStream(u)){l.destroy(u.on("error",l.nop),t)}throw t}this.method=o;this.responseHeaders=g||null;this.opaque=i||null;this.callback=n;this.res=null;this.abort=null;this.body=u;this.trailers={};this.context=null;this.onInfo=d||null;this.throwOnError=h;this.highWaterMark=f;this.signal=s;this.reason=null;this.removeAbortListener=null;if(l.isStream(u)){u.on("error",t=>{this.onError(t)})}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new c}else{this.removeAbortListener=l.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new c;if(this.res){l.destroy(this.res.on("error",l.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}})}}}onConnect(t,n){if(this.reason){t(this.reason);return}o(this.callback);this.abort=t;this.context=n}onHeaders(t,n,s,o){const{callback:A,opaque:c,abort:d,context:g,responseHeaders:h,highWaterMark:f}=this;const E=h==="raw"?l.parseRawHeaders(n):l.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:E})}return}const p=h==="raw"?l.parseHeaders(n):E;const C=p["content-type"];const I=p["content-length"];const m=new i({resume:s,abort:d,contentType:C,contentLength:this.method!=="HEAD"&&I?Number(I):null,highWaterMark:f});if(this.removeAbortListener){m.on("close",this.removeAbortListener)}this.callback=null;this.res=m;if(A!==null){if(this.throwOnError&&t>=400){this.runInAsyncScope(u,null,{callback:A,body:m,contentType:C,statusCode:t,statusMessage:o,headers:E})}else{this.runInAsyncScope(A,null,null,{statusCode:t,headers:E,trailers:this.trailers,opaque:c,body:m,context:g})}}}onData(t){return this.res.push(t)}onComplete(t){l.parseHeaders(t,this.trailers);this.res.push(null)}onError(t){const{res:n,callback:s,body:o,opaque:i}=this;if(s){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(s,null,t,{opaque:i})})}if(n){this.res=null;queueMicrotask(()=>{l.destroy(n,t)})}if(o){this.body=null;l.destroy(o,t)}if(this.removeAbortListener){n?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(t,n){if(n===undefined){return new Promise((n,s)=>{request.call(this,t,(t,o)=>t?s(t):n(o))})}try{this.dispatch(t,new RequestHandler(t,n))}catch(s){if(typeof n!=="function"){throw s}const o=t?.opaque;queueMicrotask(()=>n(s,{opaque:o}))}}t.exports=request;t.exports.RequestHandler=RequestHandler},3560:(t,n,s)=>{"use strict";const o=s(4589);const{finished:i,PassThrough:A}=s(7075);const{InvalidArgumentError:c,InvalidReturnValueError:l}=s(8707);const u=s(3440);const{getResolveErrorBodyCallback:d}=s(7655);const{AsyncResource:g}=s(6698);const{addSignal:h,removeSignal:f}=s(158);class StreamHandler extends g{constructor(t,n,s){if(!t||typeof t!=="object"){throw new c("invalid opts")}const{signal:o,method:i,opaque:A,body:l,onInfo:d,responseHeaders:g,throwOnError:f}=t;try{if(typeof s!=="function"){throw new c("invalid callback")}if(typeof n!=="function"){throw new c("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new c("invalid method")}if(d&&typeof d!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_STREAM")}catch(t){if(u.isStream(l)){u.destroy(l.on("error",u.nop),t)}throw t}this.responseHeaders=g||null;this.opaque=A||null;this.factory=n;this.callback=s;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=l;this.onInfo=d||null;this.throwOnError=f||false;if(u.isStream(l)){l.on("error",t=>{this.onError(t)})}h(this,o)}onConnect(t,n){if(this.reason){t(this.reason);return}o(this.callback);this.abort=t;this.context=n}onHeaders(t,n,s,o){const{factory:c,opaque:g,context:h,callback:f,responseHeaders:E}=this;const p=E==="raw"?u.parseRawHeaders(n):u.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:p})}return}this.factory=null;let C;if(this.throwOnError&&t>=400){const s=E==="raw"?u.parseHeaders(n):p;const i=s["content-type"];C=new A;this.callback=null;this.runInAsyncScope(d,null,{callback:f,body:C,contentType:i,statusCode:t,statusMessage:o,headers:p})}else{if(c===null){return}C=this.runInAsyncScope(c,null,{statusCode:t,headers:p,opaque:g,context:h});if(!C||typeof C.write!=="function"||typeof C.end!=="function"||typeof C.on!=="function"){throw new l("expected Writable")}i(C,{readable:false},t=>{const{callback:n,res:s,opaque:o,trailers:i,abort:A}=this;this.res=null;if(t||!s.readable){u.destroy(s,t)}this.callback=null;this.runInAsyncScope(n,null,t||null,{opaque:o,trailers:i});if(t){A()}})}C.on("drain",s);this.res=C;const I=C.writableNeedDrain!==undefined?C.writableNeedDrain:C._writableState?.needDrain;return I!==true}onData(t){const{res:n}=this;return n?n.write(t):true}onComplete(t){const{res:n}=this;f(this);if(!n){return}this.trailers=u.parseHeaders(t);n.end()}onError(t){const{res:n,callback:s,opaque:o,body:i}=this;f(this);this.factory=null;if(n){this.res=null;u.destroy(n,t)}else if(s){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(s,null,t,{opaque:o})})}if(i){this.body=null;u.destroy(i,t)}}}function stream(t,n,s){if(s===undefined){return new Promise((s,o)=>{stream.call(this,t,n,(t,n)=>t?o(t):s(n))})}try{this.dispatch(t,new StreamHandler(t,n,s))}catch(n){if(typeof s!=="function"){throw n}const o=t?.opaque;queueMicrotask(()=>s(n,{opaque:o}))}}t.exports=stream},1882:(t,n,s)=>{"use strict";const{InvalidArgumentError:o,SocketError:i}=s(8707);const{AsyncResource:A}=s(6698);const c=s(3440);const{addSignal:l,removeSignal:u}=s(158);const d=s(4589);class UpgradeHandler extends A{constructor(t,n){if(!t||typeof t!=="object"){throw new o("invalid opts")}if(typeof n!=="function"){throw new o("invalid callback")}const{signal:s,opaque:i,responseHeaders:A}=t;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=A||null;this.opaque=i||null;this.callback=n;this.abort=null;this.context=null;l(this,s)}onConnect(t,n){if(this.reason){t(this.reason);return}d(this.callback);this.abort=t;this.context=null}onHeaders(){throw new i("bad upgrade",null)}onUpgrade(t,n,s){d(t===101);const{callback:o,opaque:i,context:A}=this;u(this);this.callback=null;const l=this.responseHeaders==="raw"?c.parseRawHeaders(n):c.parseHeaders(n);this.runInAsyncScope(o,null,null,{headers:l,socket:s,opaque:i,context:A})}onError(t){const{callback:n,opaque:s}=this;u(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:s})})}}}function upgrade(t,n){if(n===undefined){return new Promise((n,s)=>{upgrade.call(this,t,(t,o)=>t?s(t):n(o))})}try{const s=new UpgradeHandler(t,n);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},s)}catch(s){if(typeof n!=="function"){throw s}const o=t?.opaque;queueMicrotask(()=>n(s,{opaque:o}))}}t.exports=upgrade},6615:(t,n,s)=>{"use strict";t.exports.request=s(4043);t.exports.stream=s(3560);t.exports.pipeline=s(6862);t.exports.upgrade=s(1882);t.exports.connect=s(2279)},9927:(t,n,s)=>{"use strict";const o=s(4589);const{Readable:i}=s(7075);const{RequestAbortedError:A,NotSupportedError:c,InvalidArgumentError:l,AbortError:u}=s(8707);const d=s(3440);const{ReadableStreamFrom:g}=s(3440);const h=Symbol("kConsume");const f=Symbol("kReading");const E=Symbol("kBody");const p=Symbol("kAbort");const C=Symbol("kContentType");const I=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends i{constructor({resume:t,abort:n,contentType:s="",contentLength:o,highWaterMark:i=64*1024}){super({autoDestroy:true,read:t,highWaterMark:i});this._readableState.dataEmitted=false;this[p]=n;this[h]=null;this[E]=null;this[C]=s;this[I]=o;this[f]=false}destroy(t){if(!t&&!this._readableState.endEmitted){t=new A}if(t){this[p]()}return super.destroy(t)}_destroy(t,n){if(!this[f]){setImmediate(()=>{n(t)})}else{n(t)}}on(t,...n){if(t==="data"||t==="readable"){this[f]=true}return super.on(t,...n)}addListener(t,...n){return this.on(t,...n)}off(t,...n){const s=super.off(t,...n);if(t==="data"||t==="readable"){this[f]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return s}removeListener(t,...n){return this.off(t,...n)}push(t){if(this[h]&&t!==null){consumePush(this[h],t);return this[f]?super.push(t):true}return super.push(t)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new c}get bodyUsed(){return d.isDisturbed(this)}get body(){if(!this[E]){this[E]=g(this);if(this[h]){this[E].getReader();o(this[E].locked)}}return this[E]}async dump(t){let n=Number.isFinite(t?.limit)?t.limit:128*1024;const s=t?.signal;if(s!=null&&(typeof s!=="object"||!("aborted"in s))){throw new l("signal must be an AbortSignal")}s?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise((t,o)=>{if(this[I]>n){this.destroy(new u)}const onAbort=()=>{this.destroy(s.reason??new u)};s?.addEventListener("abort",onAbort);this.on("close",function(){s?.removeEventListener("abort",onAbort);if(s?.aborted){o(s.reason??new u)}else{t(null)}}).on("error",noop).on("data",function(t){n-=t.length;if(n<=0){this.destroy()}}).resume()})}}function isLocked(t){return t[E]&&t[E].locked===true||t[h]}function isUnusable(t){return d.isDisturbed(t)||isLocked(t)}async function consume(t,n){o(!t[h]);return new Promise((s,o)=>{if(isUnusable(t)){const n=t._readableState;if(n.destroyed&&n.closeEmitted===false){t.on("error",t=>{o(t)}).on("close",()=>{o(new TypeError("unusable"))})}else{o(n.errored??new TypeError("unusable"))}}else{queueMicrotask(()=>{t[h]={type:n,stream:t,resolve:s,reject:o,length:0,body:[]};t.on("error",function(t){consumeFinish(this[h],t)}).on("close",function(){if(this[h].body!==null){consumeFinish(this[h],new A)}});consumeStart(t[h])})}})}function consumeStart(t){if(t.body===null){return}const{_readableState:n}=t.stream;if(n.bufferIndex){const s=n.bufferIndex;const o=n.buffer.length;for(let i=s;i<o;i++){consumePush(t,n.buffer[i])}}else{for(const s of n.buffer){consumePush(t,s)}}if(n.endEmitted){consumeEnd(this[h])}else{t.stream.on("end",function(){consumeEnd(this[h])})}t.stream.resume();while(t.stream.read()!=null){}}function chunksDecode(t,n){if(t.length===0||n===0){return""}const s=t.length===1?t[0]:Buffer.concat(t,n);const o=s.length;const i=o>2&&s[0]===239&&s[1]===187&&s[2]===191?3:0;return s.utf8Slice(i,o)}function chunksConcat(t,n){if(t.length===0||n===0){return new Uint8Array(0)}if(t.length===1){return new Uint8Array(t[0])}const s=new Uint8Array(Buffer.allocUnsafeSlow(n).buffer);let o=0;for(let n=0;n<t.length;++n){const i=t[n];s.set(i,o);o+=i.length}return s}function consumeEnd(t){const{type:n,body:s,resolve:o,stream:i,length:A}=t;try{if(n==="text"){o(chunksDecode(s,A))}else if(n==="json"){o(JSON.parse(chunksDecode(s,A)))}else if(n==="arrayBuffer"){o(chunksConcat(s,A).buffer)}else if(n==="blob"){o(new Blob(s,{type:i[C]}))}else if(n==="bytes"){o(chunksConcat(s,A))}consumeFinish(t)}catch(t){i.destroy(t)}}function consumePush(t,n){t.length+=n.length;t.body.push(n)}function consumeFinish(t,n){if(t.body===null){return}if(n){t.reject(n)}else{t.resolve()}t.type=null;t.stream=null;t.resolve=null;t.reject=null;t.length=0;t.body=null}t.exports={Readable:BodyReadable,chunksDecode:chunksDecode}},7655:(t,n,s)=>{const o=s(4589);const{ResponseStatusCodeError:i}=s(8707);const{chunksDecode:A}=s(9927);const c=128*1024;async function getResolveErrorBodyCallback({callback:t,body:n,contentType:s,statusCode:l,statusMessage:u,headers:d}){o(n);let g=[];let h=0;try{for await(const t of n){g.push(t);h+=t.length;if(h>c){g=[];h=0;break}}}catch{g=[];h=0}const f=`Response status code ${l}${u?`: ${u}`:""}`;if(l===204||!s||!h){queueMicrotask(()=>t(new i(f,l,d)));return}const E=Error.stackTraceLimit;Error.stackTraceLimit=0;let p;try{if(isContentTypeApplicationJson(s)){p=JSON.parse(A(g,h))}else if(isContentTypeText(s)){p=A(g,h)}}catch{}finally{Error.stackTraceLimit=E}queueMicrotask(()=>t(new i(f,l,d,p)))}const isContentTypeApplicationJson=t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n";const isContentTypeText=t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t";t.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(t,n,s)=>{"use strict";const o=s(7030);const i=s(4589);const A=s(3440);const{InvalidArgumentError:c,ConnectTimeoutError:l}=s(8707);const u=s(6603);function noop(){}let d;let g;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){g=class WeakSessionCache{constructor(t){this._maxCachedSessions=t;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry(t=>{if(this._sessionCache.size<this._maxCachedSessions){return}const n=this._sessionCache.get(t);if(n!==undefined&&n.deref()===undefined){this._sessionCache.delete(t)}})}get(t){const n=this._sessionCache.get(t);return n?n.deref():null}set(t,n){if(this._maxCachedSessions===0){return}this._sessionCache.set(t,new WeakRef(n));this._sessionRegistry.register(n,t)}}}else{g=class SimpleSessionCache{constructor(t){this._maxCachedSessions=t;this._sessionCache=new Map}get(t){return this._sessionCache.get(t)}set(t,n){if(this._maxCachedSessions===0){return}if(this._sessionCache.size>=this._maxCachedSessions){const{value:t}=this._sessionCache.keys().next();this._sessionCache.delete(t)}this._sessionCache.set(t,n)}}}function buildConnector({allowH2:t,maxCachedSessions:n,socketPath:l,timeout:u,session:f,...E}){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new c("maxCachedSessions must be a positive integer or zero")}const p={path:l,...E};const C=new g(n==null?100:n);u=u==null?1e4:u;t=t!=null?t:false;return function connect({hostname:n,host:c,protocol:l,port:g,servername:E,localAddress:I,httpSocket:m},B){let Q;if(l==="https:"){if(!d){d=s(1692)}E=E||p.servername||A.getServerName(c)||null;const o=E||n;i(o);const l=f||C.get(o)||null;g=g||443;Q=d.connect({highWaterMark:16384,...p,servername:E,session:l,localAddress:I,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:m,port:g,host:n});Q.on("session",function(t){C.set(o,t)})}else{i(!m,"httpSocket can only be sent on TLS update");g=g||80;Q=o.connect({highWaterMark:64*1024,...p,localAddress:I,port:g,host:n})}if(p.keepAlive==null||p.keepAlive){const t=p.keepAliveInitialDelay===undefined?6e4:p.keepAliveInitialDelay;Q.setKeepAlive(true,t)}const y=h(new WeakRef(Q),{timeout:u,hostname:n,port:g});Q.setNoDelay(true).once(l==="https:"?"secureConnect":"connect",function(){queueMicrotask(y);if(B){const t=B;B=null;t(null,this)}}).on("error",function(t){queueMicrotask(y);if(B){const n=B;B=null;n(t)}});return Q}}const h=process.platform==="win32"?(t,n)=>{if(!n.timeout){return noop}let s=null;let o=null;const i=u.setFastTimeout(()=>{s=setImmediate(()=>{o=setImmediate(()=>onConnectTimeout(t.deref(),n))})},n.timeout);return()=>{u.clearFastTimeout(i);clearImmediate(s);clearImmediate(o)}}:(t,n)=>{if(!n.timeout){return noop}let s=null;const o=u.setFastTimeout(()=>{s=setImmediate(()=>{onConnectTimeout(t.deref(),n)})},n.timeout);return()=>{u.clearFastTimeout(o);clearImmediate(s)}};function onConnectTimeout(t,n){if(t==null){return}let s="Connect Timeout Error";if(Array.isArray(t.autoSelectFamilyAttemptedAddresses)){s+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{s+=` (attempted address: ${n.hostname}:${n.port},`}s+=` timeout: ${n.timeout}ms)`;A.destroy(t,new l(s))}t.exports=buildConnector},735:t=>{"use strict";const n={};const s=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let t=0;t<s.length;++t){const o=s[t];const i=o.toLowerCase();n[o]=n[i]=i}Object.setPrototypeOf(n,null);t.exports={wellknownHeaderNames:s,headerNameLowerCasedRecord:n}},2414:(t,n,s)=>{"use strict";const o=s(3053);const i=s(7975);const A=i.debuglog("undici");const c=i.debuglog("fetch");const l=i.debuglog("websocket");let u=false;const d={beforeConnect:o.channel("undici:client:beforeConnect"),connected:o.channel("undici:client:connected"),connectError:o.channel("undici:client:connectError"),sendHeaders:o.channel("undici:client:sendHeaders"),create:o.channel("undici:request:create"),bodySent:o.channel("undici:request:bodySent"),headers:o.channel("undici:request:headers"),trailers:o.channel("undici:request:trailers"),error:o.channel("undici:request:error"),open:o.channel("undici:websocket:open"),close:o.channel("undici:websocket:close"),socketError:o.channel("undici:websocket:socket_error"),ping:o.channel("undici:websocket:ping"),pong:o.channel("undici:websocket:pong")};if(A.enabled||c.enabled){const t=c.enabled?c:A;o.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A}}=n;t("connecting to %s using %s%s",`${A}${i?`:${i}`:""}`,o,s)});o.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A}}=n;t("connected to %s using %s%s",`${A}${i?`:${i}`:""}`,o,s)});o.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A},error:c}=n;t("connection to %s using %s%s errored - %s",`${A}${i?`:${i}`:""}`,o,s,c.message)});o.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:s,path:o,origin:i}}=n;t("sending request to %s %s/%s",s,i,o)});o.channel("undici:request:headers").subscribe(n=>{const{request:{method:s,path:o,origin:i},response:{statusCode:A}}=n;t("received response to %s %s/%s - HTTP %d",s,i,o,A)});o.channel("undici:request:trailers").subscribe(n=>{const{request:{method:s,path:o,origin:i}}=n;t("trailers received from %s %s/%s",s,i,o)});o.channel("undici:request:error").subscribe(n=>{const{request:{method:s,path:o,origin:i},error:A}=n;t("request to %s %s/%s errored - %s",s,i,o,A.message)});u=true}if(l.enabled){if(!u){const t=A.enabled?A:l;o.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A}}=n;t("connecting to %s%s using %s%s",A,i?`:${i}`:"",o,s)});o.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A}}=n;t("connected to %s%s using %s%s",A,i?`:${i}`:"",o,s)});o.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:s,protocol:o,port:i,host:A},error:c}=n;t("connection to %s%s using %s%s errored - %s",A,i?`:${i}`:"",o,s,c.message)});o.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:s,path:o,origin:i}}=n;t("sending request to %s %s/%s",s,i,o)})}o.channel("undici:websocket:open").subscribe(t=>{const{address:{address:n,port:s}}=t;l("connection opened %s%s",n,s?`:${s}`:"")});o.channel("undici:websocket:close").subscribe(t=>{const{websocket:n,code:s,reason:o}=t;l("closed connection to %s - %s %s",n.url,s,o)});o.channel("undici:websocket:socket_error").subscribe(t=>{l("connection errored - %s",t.message)});o.channel("undici:websocket:ping").subscribe(t=>{l("ping received")});o.channel("undici:websocket:pong").subscribe(t=>{l("pong received")})}t.exports={channels:d}},8707:t=>{"use strict";const n=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(t){super(t);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](t){return t&&t[n]===true}[n]=true}const s=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(t){super(t);this.name="ConnectTimeoutError";this.message=t||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[s]===true}[s]=true}const o=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(t){super(t);this.name="HeadersTimeoutError";this.message=t||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[o]===true}[o]=true}const i=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(t){super(t);this.name="HeadersOverflowError";this.message=t||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](t){return t&&t[i]===true}[i]=true}const A=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(t){super(t);this.name="BodyTimeoutError";this.message=t||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[A]===true}[A]=true}const c=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(t,n,s,o){super(t);this.name="ResponseStatusCodeError";this.message=t||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=n;this.statusCode=n;this.headers=s}static[Symbol.hasInstance](t){return t&&t[c]===true}[c]=true}const l=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(t){super(t);this.name="InvalidArgumentError";this.message=t||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](t){return t&&t[l]===true}[l]=true}const u=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(t){super(t);this.name="InvalidReturnValueError";this.message=t||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](t){return t&&t[u]===true}[u]=true}const d=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(t){super(t);this.name="AbortError";this.message=t||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](t){return t&&t[d]===true}[d]=true}const g=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(t){super(t);this.name="AbortError";this.message=t||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](t){return t&&t[g]===true}[g]=true}const h=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(t){super(t);this.name="InformationalError";this.message=t||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](t){return t&&t[h]===true}[h]=true}const f=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="RequestContentLengthMismatchError";this.message=t||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[f]===true}[f]=true}const E=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="ResponseContentLengthMismatchError";this.message=t||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[E]===true}[E]=true}const p=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(t){super(t);this.name="ClientDestroyedError";this.message=t||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](t){return t&&t[p]===true}[p]=true}const C=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(t){super(t);this.name="ClientClosedError";this.message=t||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](t){return t&&t[C]===true}[C]=true}const I=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(t,n){super(t);this.name="SocketError";this.message=t||"Socket error";this.code="UND_ERR_SOCKET";this.socket=n}static[Symbol.hasInstance](t){return t&&t[I]===true}[I]=true}const m=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(t){super(t);this.name="NotSupportedError";this.message=t||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](t){return t&&t[m]===true}[m]=true}const B=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(t){super(t);this.name="MissingUpstreamError";this.message=t||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](t){return t&&t[B]===true}[B]=true}const Q=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(t,n,s){super(t);this.name="HTTPParserError";this.code=n?`HPE_${n}`:undefined;this.data=s?s.toString():undefined}static[Symbol.hasInstance](t){return t&&t[Q]===true}[Q]=true}const y=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(t){super(t);this.name="ResponseExceededMaxSizeError";this.message=t||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](t){return t&&t[y]===true}[y]=true}const w=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(t,n,{headers:s,data:o}){super(t);this.name="RequestRetryError";this.message=t||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=n;this.data=o;this.headers=s}static[Symbol.hasInstance](t){return t&&t[w]===true}[w]=true}const S=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(t,n,{headers:s,data:o}){super(t);this.name="ResponseError";this.message=t||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=n;this.data=o;this.headers=s}static[Symbol.hasInstance](t){return t&&t[S]===true}[S]=true}const R=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(t,n,s){super(n,{cause:t,...s??{}});this.name="SecureProxyConnectionError";this.message=n||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=t}static[Symbol.hasInstance](t){return t&&t[R]===true}[R]=true}const D=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(t){super(t);this.name="MessageSizeExceededError";this.message=t||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](t){return t&&t[D]===true}get[D](){return true}}t.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(t,n,s)=>{"use strict";const{InvalidArgumentError:o,NotSupportedError:i}=s(8707);const A=s(4589);const{isValidHTTPToken:c,isValidHeaderValue:l,isStream:u,destroy:d,isBuffer:g,isFormDataLike:h,isIterable:f,isBlobLike:E,buildURL:p,validateHandler:C,getServerName:I,normalizedMethodRecords:m}=s(3440);const{channels:B}=s(2414);const{headerNameLowerCasedRecord:Q}=s(735);const y=/[^\u0021-\u00ff]/;const w=Symbol("handler");class Request{constructor(t,{path:n,method:s,body:i,headers:A,query:Q,idempotent:S,blocking:R,upgrade:D,headersTimeout:k,bodyTimeout:v,reset:T,throwOnError:N,expectContinue:F,servername:x},M){if(typeof n!=="string"){throw new o("path must be a string")}else if(n[0]!=="/"&&!(n.startsWith("http://")||n.startsWith("https://"))&&s!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(y.test(n)){throw new o("invalid request path")}if(typeof s!=="string"){throw new o("method must be a string")}else if(m[s]===undefined&&!c(s)){throw new o("invalid request method")}if(D&&typeof D!=="string"){throw new o("upgrade must be a string")}if(D&&!l(D)){throw new o("invalid upgrade header")}if(k!=null&&(!Number.isFinite(k)||k<0)){throw new o("invalid headersTimeout")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new o("invalid bodyTimeout")}if(T!=null&&typeof T!=="boolean"){throw new o("invalid reset")}if(F!=null&&typeof F!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=k;this.bodyTimeout=v;this.throwOnError=N===true;this.method=s;this.abort=null;if(i==null){this.body=null}else if(u(i)){this.body=i;const t=this.body._readableState;if(!t||!t.autoDestroy){this.endHandler=function autoDestroy(){d(this)};this.body.on("end",this.endHandler)}this.errorHandler=t=>{if(this.abort){this.abort(t)}else{this.error=t}};this.body.on("error",this.errorHandler)}else if(g(i)){this.body=i.byteLength?i:null}else if(ArrayBuffer.isView(i)){this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null}else if(i instanceof ArrayBuffer){this.body=i.byteLength?Buffer.from(i):null}else if(typeof i==="string"){this.body=i.length?Buffer.from(i):null}else if(h(i)||f(i)||E(i)){this.body=i}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=D||null;this.path=Q?p(n,Q):n;this.origin=t;this.idempotent=S==null?s==="HEAD"||s==="GET":S;this.blocking=R==null?false:R;this.reset=T==null?null:T;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=F!=null?F:false;if(Array.isArray(A)){if(A.length%2!==0){throw new o("headers array must be even")}for(let t=0;t<A.length;t+=2){processHeader(this,A[t],A[t+1])}}else if(A&&typeof A==="object"){if(A[Symbol.iterator]){for(const t of A){if(!Array.isArray(t)||t.length!==2){throw new o("headers must be in key-value pair format")}processHeader(this,t[0],t[1])}}else{const t=Object.keys(A);for(let n=0;n<t.length;++n){processHeader(this,t[n],A[t[n]])}}}else if(A!=null){throw new o("headers must be an object or an array")}C(M,s,D);this.servername=x||I(this.host);this[w]=M;if(B.create.hasSubscribers){B.create.publish({request:this})}}onBodySent(t){if(this[w].onBodySent){try{return this[w].onBodySent(t)}catch(t){this.abort(t)}}}onRequestSent(){if(B.bodySent.hasSubscribers){B.bodySent.publish({request:this})}if(this[w].onRequestSent){try{return this[w].onRequestSent()}catch(t){this.abort(t)}}}onConnect(t){A(!this.aborted);A(!this.completed);if(this.error){t(this.error)}else{this.abort=t;return this[w].onConnect(t)}}onResponseStarted(){return this[w].onResponseStarted?.()}onHeaders(t,n,s,o){A(!this.aborted);A(!this.completed);if(B.headers.hasSubscribers){B.headers.publish({request:this,response:{statusCode:t,headers:n,statusText:o}})}try{return this[w].onHeaders(t,n,s,o)}catch(t){this.abort(t)}}onData(t){A(!this.aborted);A(!this.completed);try{return this[w].onData(t)}catch(t){this.abort(t);return false}}onUpgrade(t,n,s,o=""){this.onFinally();A(!this.aborted);A(!this.completed);if(t!==null){this.#e(t,n,o)}const i=this[w].onUpgrade(t,n,s);if(!this.aborted){this.completed=true;if(t!==null){this.#t()}}return i}onUpgradeResponse(t,n,s,o=""){A(!this.aborted);A(this.completed);if(B.headers.hasSubscribers){this.#e(t,s(n),o)}this.#t()}onUpgradeError(t){A(!this.aborted);A(this.completed);if(B.error.hasSubscribers){B.error.publish({request:this,error:t})}}#e(t,n,s){if(B.headers.hasSubscribers){B.headers.publish({request:this,response:{statusCode:t,headers:n,statusText:s}})}}#t(){if(B.trailers.hasSubscribers){B.trailers.publish({request:this,trailers:[]})}}onComplete(t){this.onFinally();A(!this.aborted);this.completed=true;if(B.trailers.hasSubscribers){B.trailers.publish({request:this,trailers:t})}try{return this[w].onComplete(t)}catch(t){this.onError(t)}}onError(t){this.onFinally();if(B.error.hasSubscribers){B.error.publish({request:this,error:t})}if(this.aborted){return}this.aborted=true;return this[w].onError(t)}onFinally(){if(this.errorHandler){this.body.off("error",this.errorHandler);this.errorHandler=null}if(this.endHandler){this.body.off("end",this.endHandler);this.endHandler=null}}addHeader(t,n){processHeader(this,t,n);return this}}function processHeader(t,n,s){if(s&&(typeof s==="object"&&!Array.isArray(s))){throw new o(`invalid ${n} header`)}else if(s===undefined){return}let A=Q[n];if(A===undefined){A=n.toLowerCase();if(Q[A]===undefined&&!c(A)){throw new o("invalid header key")}}if(Array.isArray(s)){const t=[];for(let i=0;i<s.length;i++){if(typeof s[i]==="string"){if(!l(s[i])){throw new o(`invalid ${n} header`)}t.push(s[i])}else if(s[i]===null){t.push("")}else if(typeof s[i]==="object"){throw new o(`invalid ${n} header`)}else{const A=`${s[i]}`;if(!l(A)){throw new o(`invalid ${n} header`)}t.push(A)}}s=t}else if(typeof s==="string"){if(!l(s)){throw new o(`invalid ${n} header`)}}else if(s===null){s=""}else{s=`${s}`;if(!l(s)){throw new o(`invalid ${n} header`)}}if(A==="host"){if(t.host!==null){throw new o("duplicate host header")}if(typeof s!=="string"){throw new o("invalid host header")}t.host=s}else if(A==="content-length"){if(t.contentLength!==null){throw new o("duplicate content-length header")}t.contentLength=parseInt(s,10);if(!Number.isFinite(t.contentLength)){throw new o("invalid content-length header")}}else if(t.contentType===null&&A==="content-type"){t.contentType=s;t.headers.push(n,s)}else if(A==="transfer-encoding"||A==="keep-alive"||A==="upgrade"){throw new o(`invalid ${A} header`)}else if(A==="connection"){const n=typeof s==="string"?s.toLowerCase():null;if(n!=="close"&&n!=="keep-alive"){throw new o("invalid connection header")}if(n==="close"){t.reset=true}}else if(A==="expect"){throw new i("expect header not supported")}else{t.headers.push(n,s)}}t.exports=Request},6443:t=>{t.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},7752:(t,n,s)=>{"use strict";const{wellknownHeaderNames:o,headerNameLowerCasedRecord:i}=s(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(t,n,s){if(s===undefined||s>=t.length){throw new TypeError("Unreachable")}const o=this.code=t.charCodeAt(s);if(o>127){throw new TypeError("key must be ascii string")}if(t.length!==++s){this.middle=new TstNode(t,n,s)}else{this.value=n}}add(t,n){const s=t.length;if(s===0){throw new TypeError("Unreachable")}let o=0;let i=this;while(true){const A=t.charCodeAt(o);if(A>127){throw new TypeError("key must be ascii string")}if(i.code===A){if(s===++o){i.value=n;break}else if(i.middle!==null){i=i.middle}else{i.middle=new TstNode(t,n,o);break}}else if(i.code<A){if(i.left!==null){i=i.left}else{i.left=new TstNode(t,n,o);break}}else if(i.right!==null){i=i.right}else{i.right=new TstNode(t,n,o);break}}}search(t){const n=t.length;let s=0;let o=this;while(o!==null&&s<n){let i=t[s];if(i<=90&&i>=65){i|=32}while(o!==null){if(i===o.code){if(n===++s){return o}o=o.middle;break}o=o.code<i?o.left:o.right}}return null}}class TernarySearchTree{node=null;insert(t,n){if(this.node===null){this.node=new TstNode(t,n,0)}else{this.node.add(t,n)}}lookup(t){return this.node?.search(t)?.value??null}}const A=new TernarySearchTree;for(let t=0;t<o.length;++t){const n=i[o[t]];A.insert(n,n)}t.exports={TernarySearchTree:TernarySearchTree,tree:A}},3440:(t,n,s)=>{"use strict";const o=s(4589);const{kDestroyed:i,kBodyUsed:A,kListeners:c,kBody:l}=s(6443);const{IncomingMessage:u}=s(7067);const d=s(7075);const g=s(7030);const{Blob:h}=s(4573);const f=s(7975);const{stringify:E}=s(1792);const{EventEmitter:p}=s(8474);const{InvalidArgumentError:C}=s(8707);const{headerNameLowerCasedRecord:I}=s(735);const{tree:m}=s(7752);const[B,Q]=process.versions.node.split(".").map(t=>Number(t));class BodyAsyncIterable{constructor(t){this[l]=t;this[A]=false}async*[Symbol.asyncIterator](){o(!this[A],"disturbed");this[A]=true;yield*this[l]}}function wrapRequestBody(t){if(isStream(t)){if(bodyLength(t)===0){t.on("data",function(){o(false)})}if(typeof t.readableDidRead!=="boolean"){t[A]=false;p.prototype.on.call(t,"data",function(){this[A]=true})}return t}else if(t&&typeof t.pipeTo==="function"){return new BodyAsyncIterable(t)}else if(t&&typeof t!=="string"&&!ArrayBuffer.isView(t)&&isIterable(t)){return new BodyAsyncIterable(t)}else{return t}}function nop(){}function isStream(t){return t&&typeof t==="object"&&typeof t.pipe==="function"&&typeof t.on==="function"}function isBlobLike(t){if(t===null){return false}else if(t instanceof h){return true}else if(typeof t!=="object"){return false}else{const n=t[Symbol.toStringTag];return(n==="Blob"||n==="File")&&("stream"in t&&typeof t.stream==="function"||"arrayBuffer"in t&&typeof t.arrayBuffer==="function")}}function buildURL(t,n){if(t.includes("?")||t.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const s=E(n);if(s){t+="?"+s}return t}function isValidPort(t){const n=parseInt(t,10);return n===Number(t)&&n>=0&&n<=65535}function isHttpOrHttpsPrefixed(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}function parseURL(t){if(typeof t==="string"){t=new URL(t);if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new C("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}if(!t||typeof t!=="object"){throw new C("Invalid URL: The URL argument must be a non-null object.")}if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&isValidPort(t.port)===false){throw new C("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(t.path!=null&&typeof t.path!=="string"){throw new C("Invalid URL path: the path must be a string or null/undefined.")}if(t.pathname!=null&&typeof t.pathname!=="string"){throw new C("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(t.hostname!=null&&typeof t.hostname!=="string"){throw new C("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(t.origin!=null&&typeof t.origin!=="string"){throw new C("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new C("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const n=t.port!=null?t.port:t.protocol==="https:"?443:80;let s=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${n}`;let o=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;if(s[s.length-1]==="/"){s=s.slice(0,s.length-1)}if(o&&o[0]!=="/"){o=`/${o}`}return new URL(`${s}${o}`)}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new C("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}function parseOrigin(t){t=parseURL(t);if(t.pathname!=="/"||t.search||t.hash){throw new C("invalid url")}return t}function getHostname(t){if(t[0]==="["){const n=t.indexOf("]");o(n!==-1);return t.substring(1,n)}const n=t.indexOf(":");if(n===-1)return t;return t.substring(0,n)}function getServerName(t){if(!t){return null}o(typeof t==="string");const n=getHostname(t);if(g.isIP(n)){return""}return n}function deepClone(t){return JSON.parse(JSON.stringify(t))}function isAsyncIterable(t){return!!(t!=null&&typeof t[Symbol.asyncIterator]==="function")}function isIterable(t){return!!(t!=null&&(typeof t[Symbol.iterator]==="function"||typeof t[Symbol.asyncIterator]==="function"))}function bodyLength(t){if(t==null){return 0}else if(isStream(t)){const n=t._readableState;return n&&n.objectMode===false&&n.ended===true&&Number.isFinite(n.length)?n.length:null}else if(isBlobLike(t)){return t.size!=null?t.size:null}else if(isBuffer(t)){return t.byteLength}return null}function isDestroyed(t){return t&&!!(t.destroyed||t[i]||d.isDestroyed?.(t))}function destroy(t,n){if(t==null||!isStream(t)||isDestroyed(t)){return}if(typeof t.destroy==="function"){if(Object.getPrototypeOf(t).constructor===u){t.socket=null}t.destroy(n)}else if(n){queueMicrotask(()=>{t.emit("error",n)})}if(t.destroyed!==true){t[i]=true}}const y=/timeout=(\d+)/;function parseKeepAliveTimeout(t){const n=t.toString().match(y);return n?parseInt(n[1],10)*1e3:null}function headerNameToString(t){return typeof t==="string"?I[t]??t.toLowerCase():m.lookup(t)??t.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(t){return m.lookup(t)??t.toString("latin1").toLowerCase()}function parseHeaders(t,n){if(n===undefined)n={};for(let s=0;s<t.length;s+=2){const o=headerNameToString(t[s]);let i=n[o];if(i){if(typeof i==="string"){i=[i];n[o]=i}i.push(t[s+1].toString("utf8"))}else{const i=t[s+1];if(typeof i==="string"){n[o]=i}else{n[o]=Array.isArray(i)?i.map(t=>t.toString("utf8")):i.toString("utf8")}}}if("content-length"in n&&"content-disposition"in n){n["content-disposition"]=Buffer.from(n["content-disposition"]).toString("latin1")}return n}function parseRawHeaders(t){const n=t.length;const s=new Array(n);let o=false;let i=-1;let A;let c;let l=0;for(let n=0;n<t.length;n+=2){A=t[n];c=t[n+1];typeof A!=="string"&&(A=A.toString());typeof c!=="string"&&(c=c.toString("utf8"));l=A.length;if(l===14&&A[7]==="-"&&(A==="content-length"||A.toLowerCase()==="content-length")){o=true}else if(l===19&&A[7]==="-"&&(A==="content-disposition"||A.toLowerCase()==="content-disposition")){i=n+1}s[n]=A;s[n+1]=c}if(o&&i!==-1){s[i]=Buffer.from(s[i]).toString("latin1")}return s}function isBuffer(t){return t instanceof Uint8Array||Buffer.isBuffer(t)}function validateHandler(t,n,s){if(!t||typeof t!=="object"){throw new C("handler must be an object")}if(typeof t.onConnect!=="function"){throw new C("invalid onConnect method")}if(typeof t.onError!=="function"){throw new C("invalid onError method")}if(typeof t.onBodySent!=="function"&&t.onBodySent!==undefined){throw new C("invalid onBodySent method")}if(s||n==="CONNECT"){if(typeof t.onUpgrade!=="function"){throw new C("invalid onUpgrade method")}}else{if(typeof t.onHeaders!=="function"){throw new C("invalid onHeaders method")}if(typeof t.onData!=="function"){throw new C("invalid onData method")}if(typeof t.onComplete!=="function"){throw new C("invalid onComplete method")}}}function isDisturbed(t){return!!(t&&(d.isDisturbed(t)||t[A]))}function isErrored(t){return!!(t&&d.isErrored(t))}function isReadable(t){return!!(t&&d.isReadable(t))}function getSocketInfo(t){return{localAddress:t.localAddress,localPort:t.localPort,remoteAddress:t.remoteAddress,remotePort:t.remotePort,remoteFamily:t.remoteFamily,timeout:t.timeout,bytesWritten:t.bytesWritten,bytesRead:t.bytesRead}}function ReadableStreamFrom(t){let n;return new ReadableStream({async start(){n=t[Symbol.asyncIterator]()},async pull(t){const{done:s,value:o}=await n.next();if(s){queueMicrotask(()=>{t.close();t.byobRequest?.respond(0)})}else{const n=Buffer.isBuffer(o)?o:Buffer.from(o);if(n.byteLength){t.enqueue(new Uint8Array(n))}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}function isFormDataLike(t){return t&&typeof t==="object"&&typeof t.append==="function"&&typeof t.delete==="function"&&typeof t.get==="function"&&typeof t.getAll==="function"&&typeof t.has==="function"&&typeof t.set==="function"&&t[Symbol.toStringTag]==="FormData"}function addAbortListener(t,n){if("addEventListener"in t){t.addEventListener("abort",n,{once:true});return()=>t.removeEventListener("abort",n)}t.addListener("abort",n);return()=>t.removeListener("abort",n)}const w=typeof String.prototype.toWellFormed==="function";const S=typeof String.prototype.isWellFormed==="function";function toUSVString(t){return w?`${t}`.toWellFormed():f.toUSVString(t)}function isUSVString(t){return S?`${t}`.isWellFormed():toUSVString(t)===`${t}`}function isTokenCharCode(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return t>=33&&t<=126}}function isValidHTTPToken(t){if(t.length===0){return false}for(let n=0;n<t.length;++n){if(!isTokenCharCode(t.charCodeAt(n))){return false}}return true}const R=/[^\t\x20-\x7e\x80-\xff]/;function isValidHeaderValue(t){return!R.test(t)}function parseRangeHeader(t){if(t==null||t==="")return{start:0,end:null,size:null};const n=t?t.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return n?{start:parseInt(n[1]),end:n[2]?parseInt(n[2]):null,size:n[3]?parseInt(n[3]):null}:null}function addListener(t,n,s){const o=t[c]??=[];o.push([n,s]);t.on(n,s);return t}function removeAllListeners(t){for(const[n,s]of t[c]??[]){t.removeListener(n,s)}t[c]=null}function errorRequest(t,n,s){try{n.onError(s);o(n.aborted)}catch(s){t.emit("error",s)}}const D=Object.create(null);D.enumerable=true;const k={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};const v={...k,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(k,null);Object.setPrototypeOf(v,null);t.exports={kEnumerableProperty:D,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isUSVString:isUSVString,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,bufferToLowerCasedHeaderName:bufferToLowerCasedHeaderName,addListener:addListener,removeAllListeners:removeAllListeners,errorRequest:errorRequest,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,addAbortListener:addAbortListener,isValidHTTPToken:isValidHTTPToken,isValidHeaderValue:isValidHeaderValue,isTokenCharCode:isTokenCharCode,parseRangeHeader:parseRangeHeader,normalizedMethodRecordsBase:k,normalizedMethodRecords:v,isValidPort:isValidPort,isHttpOrHttpsPrefixed:isHttpOrHttpsPrefixed,nodeMajor:B,nodeMinor:Q,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:wrapRequestBody}},7405:(t,n,s)=>{"use strict";const{InvalidArgumentError:o}=s(8707);const{kClients:i,kRunning:A,kClose:c,kDestroy:l,kDispatch:u,kInterceptors:d}=s(6443);const g=s(1841);const h=s(628);const f=s(3701);const E=s(3440);const p=s(5092);const C=Symbol("onConnect");const I=Symbol("onDisconnect");const m=Symbol("onConnectionError");const B=Symbol("maxRedirections");const Q=Symbol("onDrain");const y=Symbol("factory");const w=Symbol("options");function defaultFactory(t,n){return n&&n.connections===1?new f(t,n):new h(t,n)}class Agent extends g{constructor({factory:t=defaultFactory,maxRedirections:n=0,connect:s,tls:A,...c}={}){if(typeof t!=="function"){throw new o("factory must be a function.")}if(s!=null&&typeof s!=="function"&&typeof s!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(n)||n<0){throw new o("maxRedirections must be a positive number")}super(c);if(s&&typeof s!=="function"){s={...s}}if(A&&typeof A!=="function"){A={...A}}this[d]=c.interceptors?.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[p({maxRedirections:n})];this[w]={...E.deepClone(c),connect:s,tls:A};this[w].interceptors=c.interceptors?{...c.interceptors}:undefined;this[B]=n;this[y]=t;this[i]=new Map;this[Q]=(t,n)=>{this.emit("drain",t,[this,...n])};this[C]=(t,n)=>{this.emit("connect",t,[this,...n])};this[I]=(t,n,s)=>{this.emit("disconnect",t,[this,...n],s)};this[m]=(t,n,s)=>{this.emit("connectionError",t,[this,...n],s)}}get[A](){let t=0;for(const n of this[i].values()){t+=n[A]}return t}[u](t,n){let s;if(t.origin&&(typeof t.origin==="string"||t.origin instanceof URL)){s=String(t.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}let A=this[i].get(s);if(!A){A=this[y](t.origin,this[w]).on("drain",this[Q]).on("connect",this[C]).on("disconnect",this[I]).on("connectionError",this[m]);this[i].set(s,A)}return A.dispatch(t,n)}async[c](){const t=[];for(const n of this[i].values()){t.push(n.close())}this[i].clear();await Promise.all(t)}async[l](t){const n=[];for(const s of this[i].values()){n.push(s.destroy(t))}this[i].clear();await Promise.all(n)}}t.exports=Agent},837:(t,n,s)=>{"use strict";const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=s(8707);const{PoolBase:A,kClients:c,kNeedDrain:l,kAddClient:u,kRemoveClient:d,kGetDispatcher:g}=s(2128);const h=s(628);const{kUrl:f,kInterceptors:E}=s(6443);const{parseOrigin:p}=s(3440);const C=Symbol("factory");const I=Symbol("options");const m=Symbol("kGreatestCommonDivisor");const B=Symbol("kCurrentWeight");const Q=Symbol("kIndex");const y=Symbol("kWeight");const w=Symbol("kMaxWeightPerServer");const S=Symbol("kErrorPenalty");function getGreatestCommonDivisor(t,n){if(t===0)return n;while(n!==0){const s=n;n=t%n;t=s}return t}function defaultFactory(t,n){return new h(t,n)}class BalancedPool extends A{constructor(t=[],{factory:n=defaultFactory,...s}={}){super();this[I]=s;this[Q]=-1;this[B]=0;this[w]=this[I].maxWeightPerServer||100;this[S]=this[I].errorPenalty||15;if(!Array.isArray(t)){t=[t]}if(typeof n!=="function"){throw new i("factory must be a function.")}this[E]=s.interceptors?.BalancedPool&&Array.isArray(s.interceptors.BalancedPool)?s.interceptors.BalancedPool:[];this[C]=n;for(const n of t){this.addUpstream(n)}this._updateBalancedPoolStats()}addUpstream(t){const n=p(t).origin;if(this[c].find(t=>t[f].origin===n&&t.closed!==true&&t.destroyed!==true)){return this}const s=this[C](n,Object.assign({},this[I]));this[u](s);s.on("connect",()=>{s[y]=Math.min(this[w],s[y]+this[S])});s.on("connectionError",()=>{s[y]=Math.max(1,s[y]-this[S]);this._updateBalancedPoolStats()});s.on("disconnect",(...t)=>{const n=t[2];if(n&&n.code==="UND_ERR_SOCKET"){s[y]=Math.max(1,s[y]-this[S]);this._updateBalancedPoolStats()}});for(const t of this[c]){t[y]=this[w]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let t=0;for(let n=0;n<this[c].length;n++){t=getGreatestCommonDivisor(this[c][n][y],t)}this[m]=t}removeUpstream(t){const n=p(t).origin;const s=this[c].find(t=>t[f].origin===n&&t.closed!==true&&t.destroyed!==true);if(s){this[d](s)}return this}get upstreams(){return this[c].filter(t=>t.closed!==true&&t.destroyed!==true).map(t=>t[f].origin)}[g](){if(this[c].length===0){throw new o}const t=this[c].find(t=>!t[l]&&t.closed!==true&&t.destroyed!==true);if(!t){return}const n=this[c].map(t=>t[l]).reduce((t,n)=>t&&n,true);if(n){return}let s=0;let i=this[c].findIndex(t=>!t[l]);while(s++<this[c].length){this[Q]=(this[Q]+1)%this[c].length;const t=this[c][this[Q]];if(t[y]>this[c][i][y]&&!t[l]){i=this[Q]}if(this[Q]===0){this[B]=this[B]-this[m];if(this[B]<=0){this[B]=this[w]}}if(t[y]>=this[B]&&!t[l]){return t}}this[B]=this[c][i][y];this[Q]=i;return this[c][i]}}t.exports=BalancedPool},637:(t,n,s)=>{"use strict";const o=s(4589);const i=s(3440);const{channels:A}=s(2414);const c=s(6603);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:u,RequestAbortedError:d,InvalidArgumentError:g,HeadersTimeoutError:h,HeadersOverflowError:f,SocketError:E,InformationalError:p,BodyTimeoutError:C,HTTPParserError:I,ResponseExceededMaxSizeError:m}=s(8707);const{kUrl:B,kReset:Q,kClient:y,kParser:w,kBlocking:S,kRunning:R,kPending:D,kSize:k,kWriting:v,kQueue:T,kNoRef:N,kKeepAliveDefaultTimeout:F,kHostHeader:x,kPendingIdx:M,kRunningIdx:U,kError:L,kPipelining:P,kSocket:O,kKeepAliveTimeoutValue:H,kMaxHeadersSize:_,kKeepAliveMaxTimeout:G,kKeepAliveTimeoutThreshold:V,kHeadersTimeout:Y,kBodyTimeout:J,kStrictContentLength:q,kMaxRequests:W,kCounter:z,kMaxResponseSize:$,kOnError:j,kResume:K,kHTTPContext:Z}=s(6443);const X=s(2824);const ee=Buffer.alloc(0);const te=Buffer[Symbol.species];const ne=i.addListener;const re=i.removeAllListeners;const se=Symbol("kIdleSocketValidation");const oe=Symbol("kIdleSocketValidationTimeout");const ie=Symbol("kSocketUsed");let ae;async function lazyllhttp(){const t=process.env.JEST_WORKER_ID?s(3870):undefined;let n;try{n=await WebAssembly.compile(s(3434))}catch(o){n=await WebAssembly.compile(t||s(3870))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(t,n,s)=>0,wasm_on_status:(t,n,s)=>{o(le.ptr===t);const i=n-ge+ue.byteOffset;return le.onStatus(new te(ue.buffer,i,s))||0},wasm_on_message_begin:t=>{o(le.ptr===t);return le.onMessageBegin()||0},wasm_on_header_field:(t,n,s)=>{o(le.ptr===t);const i=n-ge+ue.byteOffset;return le.onHeaderField(new te(ue.buffer,i,s))||0},wasm_on_header_value:(t,n,s)=>{o(le.ptr===t);const i=n-ge+ue.byteOffset;return le.onHeaderValue(new te(ue.buffer,i,s))||0},wasm_on_headers_complete:(t,n,s,i)=>{o(le.ptr===t);return le.onHeadersComplete(n,Boolean(s),Boolean(i))||0},wasm_on_body:(t,n,s)=>{o(le.ptr===t);const i=n-ge+ue.byteOffset;return le.onBody(new te(ue.buffer,i,s))||0},wasm_on_message_complete:t=>{o(le.ptr===t);return le.onMessageComplete()||0}}})}let Ae=null;let ce=lazyllhttp();ce.catch();let le=null;let ue=null;let de=0;let ge=null;const he=0;const fe=1;const Ee=2|fe;const pe=4|fe;const Ce=8|he;class Parser{constructor(t,n,{exports:s}){o(Number.isFinite(t[_])&&t[_]>0);this.llhttp=s;this.ptr=this.llhttp.llhttp_alloc(X.TYPE.RESPONSE);this.client=t;this.socket=n;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=t[_];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=t[$]}setTimeout(t,n){if(t!==this.timeoutValue||n&fe^this.timeoutType&fe){if(this.timeout){c.clearTimeout(this.timeout);this.timeout=null}if(t){if(n&fe){this.timeout=c.setFastTimeout(onParserTimeout,t,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,t,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=t}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=n}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(le==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===pe);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||ee);this.readMore()}readMore(){while(!this.paused&&this.ptr){const t=this.socket.read();if(t===null){break}this.execute(t)}}execute(t){o(this.ptr!=null);o(le==null);o(!this.paused);const{socket:n,llhttp:s}=this;if(t.length>de){if(ge){s.free(ge)}de=Math.ceil(t.length/4096)*4096;ge=s.malloc(de)}new Uint8Array(s.memory.buffer,ge,de).set(t);try{let o;try{ue=t;le=this;o=s.llhttp_execute(this.ptr,ge,t.length)}catch(t){throw t}finally{le=null;ue=null}const i=s.llhttp_get_error_pos(this.ptr)-ge;if(o!==X.ERROR.OK){const s=t.subarray(i);if(o===X.ERROR.PAUSED_UPGRADE){this.onUpgrade(s)}else if(o===X.ERROR.PAUSED){this.paused=true;n.unshift(s)}else{throw this.createError(o,s)}}}catch(t){i.destroy(n,t)}}finish(){o(le===null);o(this.ptr!=null);o(!this.paused);const{llhttp:t}=this;let n;try{le=this;n=t.llhttp_finish(this.ptr)}finally{le=null}if(n===X.ERROR.OK){return null}if(n===X.ERROR.PAUSED||n===X.ERROR.PAUSED_UPGRADE){this.paused=true;return null}return this.createError(n,ee)}createError(t,n){const{llhttp:s,contentLength:o,bytesRead:i}=this;if(o&&i!==parseInt(o,10)){return new u}const A=s.llhttp_get_error_reason(this.ptr);let c="";if(A){const t=new Uint8Array(s.memory.buffer,A).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(s.memory.buffer,A,t).toString()+")"}return new I(c,X.ERROR[t],n)}destroy(){o(this.ptr!=null);o(le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(t){this.statusText=t.toString()}onMessageBegin(){const{socket:t,client:n}=this;if(t.destroyed){return-1}if(n[R]===0){i.destroy(t,new E("bad response",i.getSocketInfo(t)));return-1}const s=n[T][n[U]];if(!s){return-1}s.onResponseStarted()}onHeaderField(t){const n=this.headers.length;if((n&1)===0){this.headers.push(t)}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}this.trackHeader(t.length)}onHeaderValue(t){let n=this.headers.length;if((n&1)===1){this.headers.push(t);n+=1}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}const s=this.headers[n-2];if(s.length===10){const n=i.bufferToLowerCasedHeaderName(s);if(n==="keep-alive"){this.keepAlive+=t.toString()}else if(n==="connection"){this.connection+=t.toString()}}else if(s.length===14&&i.bufferToLowerCasedHeaderName(s)==="content-length"){this.contentLength+=t.toString()}this.trackHeader(t.length)}trackHeader(t){this.headersSize+=t;if(this.headersSize>=this.headersMaxSize){i.destroy(this.socket,new f)}}onUpgrade(t){const{upgrade:n,client:s,socket:A,headers:c,statusCode:l,statusText:u}=this;o(n);o(s[O]===A);o(!A.destroyed);o(!this.paused);o((c.length&1)===0);const d=s[T][s[U]];o(d);o(d.upgrade||d.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;A.unshift(t);A[w].destroy();A[w]=null;A[y]=null;A[L]=null;re(A);s[O]=null;s[Z]=null;s[T][s[U]++]=null;s.emit("disconnect",s[B],[s],new p("upgrade"));try{d.onUpgrade(l,c,A,u)}catch(t){i.errorRequest(s,d,t);i.destroy(A,t)}s[K]()}onHeadersComplete(t,n,s){const{client:A,socket:c,headers:l,statusText:u}=this;if(c.destroyed){return-1}if(A[R]===0){i.destroy(c,new E("bad response",i.getSocketInfo(c)));return-1}const d=A[T][A[U]];if(!d){return-1}o(!this.upgrade);o(this.statusCode<200);if(t===100){i.destroy(c,new E("bad response",i.getSocketInfo(c)));return-1}if(n&&!d.upgrade){i.destroy(c,new E("bad upgrade",i.getSocketInfo(c)));return-1}o(this.timeoutType===Ee);this.statusCode=t;this.shouldKeepAlive=s||d.method==="HEAD"&&!c[Q]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const t=d.bodyTimeout!=null?d.bodyTimeout:A[J];this.setTimeout(t,pe)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(d.method==="CONNECT"){o(A[R]===1);this.upgrade=true;return 2}if(n){o(A[R]===1);this.upgrade=true;return 2}o((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&A[P]){const t=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(t!=null){const n=Math.min(t-A[V],A[G]);if(n<=0){c[Q]=true}else{A[H]=n}}else{A[H]=A[F]}}else{c[Q]=true}const g=d.onHeaders(t,l,this.resume,u)===false;if(d.aborted){return-1}if(d.method==="HEAD"){return 1}if(t<200){return 1}if(c[S]){c[S]=false;A[K]()}return g?X.ERROR.PAUSED:0}onBody(t){const{client:n,socket:s,statusCode:A,maxResponseSize:c}=this;if(s.destroyed){return-1}const l=n[T][n[U]];o(l);o(this.timeoutType===pe);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(A>=200);if(c>-1&&this.bytesRead+t.length>c){i.destroy(s,new m);return-1}this.bytesRead+=t.length;if(l.onData(t)===false){return X.ERROR.PAUSED}}onMessageComplete(){const{client:t,socket:n,statusCode:s,upgrade:A,headers:c,contentLength:l,bytesRead:d,shouldKeepAlive:g}=this;if(n.destroyed&&(!s||g)){return-1}if(A){return}o(s>=100);o((this.headers.length&1)===0);const h=t[T][t[U]];o(h);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(s<200){return}if(h.method!=="HEAD"&&l&&d!==parseInt(l,10)){i.destroy(n,new u);return-1}h.onComplete(c);t[T][t[U]++]=null;n[ie]=true;if(n[v]){o(t[R]===0);i.destroy(n,new p("reset"));return X.ERROR.PAUSED}else if(!g){i.destroy(n,new p("reset"));return X.ERROR.PAUSED}else if(n[Q]&&t[R]===0){i.destroy(n,new p("reset"));return X.ERROR.PAUSED}else if(t[P]==null||t[P]===1){setImmediate(()=>t[K]())}else{t[K]()}}}function onParserTimeout(t){const{socket:n,timeoutType:s,client:A,paused:c}=t.deref();if(s===Ee){if(!n[v]||n.writableNeedDrain||A[R]>1){o(!c,"cannot be paused while waiting for headers");i.destroy(n,new h)}}else if(s===pe){if(!c){i.destroy(n,new C)}}else if(s===Ce){o(A[R]===0&&A[H]);i.destroy(n,new p("socket idle timeout"))}}async function connectH1(t,n){t[O]=n;if(!Ae){Ae=await ce;ce=null}n[N]=false;n[v]=false;n[Q]=false;n[S]=false;n[se]=0;n[oe]=null;n[ie]=false;n[w]=new Parser(t,n,Ae);ne(n,"error",function(t){const n=this[w];if(t.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){const t=n.finish();if(t){this[L]=t;this[y][j](t)}return}this[L]=t;this[y][j](t)});ne(n,"readable",function(){const t=this[w];if(t){t.readMore()}});ne(n,"end",function(){const t=this[w];if(t.statusCode&&!t.shouldKeepAlive){const n=t.finish();if(n){i.destroy(this,n)}return}i.destroy(this,new E("other side closed",i.getSocketInfo(this)))});ne(n,"close",function(){const t=this[y];const n=this[w];clearIdleSocketValidation(this);if(n){if(!this[L]&&n.statusCode&&!n.shouldKeepAlive){this[L]=n.finish()||this[L]}this[w].destroy();this[w]=null}const s=this[L]||new E("closed",i.getSocketInfo(this));t[O]=null;t[Z]=null;if(t.destroyed){o(t[D]===0);const n=t[T].splice(t[U]);for(let o=0;o<n.length;o++){const A=n[o];i.errorRequest(t,A,s)}}else if(t[R]>0&&s.code!=="UND_ERR_INFO"){const n=t[T][t[U]];t[T][t[U]++]=null;i.errorRequest(t,n,s)}t[M]=t[U];o(t[R]===0);t.emit("disconnect",t[B],[t],s);t[K]()});let s=false;n.on("close",()=>{s=true});return{version:"h1",defaultPipelining:1,write(...n){return writeH1(t,...n)},resume(){resumeH1(t)},destroy(t,o){if(s){queueMicrotask(o)}else{n.destroy(t).on("close",o)}},get destroyed(){return n.destroyed},busy(s){if(n[v]||n[Q]||n[S]||n[se]===1){return true}if(s){if(t[R]>0&&!s.idempotent){return true}if(t[R]>0&&(s.upgrade||s.method==="CONNECT")){return true}if(t[R]>0&&i.bodyLength(s.body)!==0&&(i.isStream(s.body)||i.isAsyncIterable(s.body)||i.isFormDataLike(s.body))){return true}}return false}}}function clearIdleSocketValidation(t){if(t[oe]){clearImmediate(t[oe]);t[oe]=null}t[se]=0}function scheduleIdleSocketValidation(t,n){n[se]=1;n[oe]=setImmediate(()=>{n[oe]=null;n[se]=2;if(t[O]===n&&!n.destroyed){t[K]()}})}function resumeH1(t){const n=t[O];if(n&&!n.destroyed){if(t[k]===0){if(!n[N]&&n.unref){n.unref();n[N]=true}}else if(n[N]&&n.ref){n.ref();n[N]=false}if(t[R]===0&&t[D]>0&&n[ie]){if(n[se]===0){scheduleIdleSocketValidation(t,n);n[w].readMore();if(n.destroyed){return}return}if(n[se]===1){n[w].readMore();if(n.destroyed){return}return}}if(t[R]===0){n[w].readMore();if(n.destroyed){return}}if(t[k]===0){if(n[w].timeoutType!==Ce){n[w].setTimeout(t[H],Ce)}}else if(t[R]>0&&n[w].statusCode<200){if(n[w].timeoutType!==Ee){const s=t[T][t[U]];const o=s.headersTimeout!=null?s.headersTimeout:t[Y];n[w].setTimeout(o,Ee)}}}}function shouldSendContentLength(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function writeH1(t,n){const{method:c,path:u,host:h,upgrade:f,blocking:E,reset:C}=n;let{body:I,headers:m,contentLength:B}=n;const y=c==="PUT"||c==="POST"||c==="PATCH"||c==="QUERY"||c==="PROPFIND"||c==="PROPPATCH";if(i.isFormDataLike(I)){if(!ae){ae=s(4492).extractBody}const[t,o]=ae(I);if(n.contentType==null){m.push("content-type",o)}I=t.stream;B=t.length}else if(i.isBlobLike(I)&&n.contentType==null){const s=I.type;if(s){const o=`${s}`;if(!i.isValidHeaderValue(o)){i.errorRequest(t,n,new g("invalid content-type header"));return false}m.push("content-type",o)}}if(I&&typeof I.read==="function"){I.read(0)}const w=i.bodyLength(I);B=w??B;if(B===null){B=n.contentLength}if(B===0&&!y){B=null}if(shouldSendContentLength(c)&&B>0&&n.contentLength!==null&&n.contentLength!==B){if(t[q]){i.errorRequest(t,n,new l);return false}process.emitWarning(new l)}const R=t[O];clearIdleSocketValidation(R);const abort=s=>{if(n.aborted){return}if(n.completed){if(n.upgrade||n.method==="CONNECT"){i.destroy(R,new p("aborted"))}return}i.errorRequest(t,n,s||new d);i.destroy(I);i.destroy(R,new p("aborted"))};try{n.onConnect(abort)}catch(s){i.errorRequest(t,n,s)}if(n.aborted){return false}if(c==="HEAD"){R[Q]=true}if(f||c==="CONNECT"){R[Q]=true}if(C!=null){R[Q]=C}if(t[W]&&R[z]++>=t[W]){R[Q]=true}if(E){R[S]=true}let D=`${c} ${u} HTTP/1.1\r\n`;if(typeof h==="string"){D+=`host: ${h}\r\n`}else{D+=t[x]}if(f){D+=`connection: upgrade\r\nupgrade: ${f}\r\n`}else if(t[P]&&!R[Q]){D+="connection: keep-alive\r\n"}else{D+="connection: close\r\n"}if(Array.isArray(m)){for(let t=0;t<m.length;t+=2){const n=m[t+0];const s=m[t+1];if(Array.isArray(s)){for(let t=0;t<s.length;t++){D+=`${n}: ${s[t]}\r\n`}}else{D+=`${n}: ${s}\r\n`}}}if(A.sendHeaders.hasSubscribers){A.sendHeaders.publish({request:n,headers:D,socket:R})}if(!I||w===0){writeBuffer(abort,null,t,n,R,B,D,y)}else if(i.isBuffer(I)){writeBuffer(abort,I,t,n,R,B,D,y)}else if(i.isBlobLike(I)){if(typeof I.stream==="function"){writeIterable(abort,I.stream(),t,n,R,B,D,y)}else{writeBlob(abort,I,t,n,R,B,D,y)}}else if(i.isStream(I)){writeStream(abort,I,t,n,R,B,D,y)}else if(i.isIterable(I)){writeIterable(abort,I,t,n,R,B,D,y)}else{o(false)}return true}function writeStream(t,n,s,A,c,l,u,g){o(l!==0||s[R]===0,"stream body cannot be pipelined");let h=false;const f=new AsyncWriter({abort:t,socket:c,request:A,contentLength:l,client:s,expectsPayload:g,header:u});const onData=function(t){if(h){return}try{if(!f.write(t)&&this.pause){this.pause()}}catch(t){i.destroy(this,t)}};const onDrain=function(){if(h){return}if(n.resume){n.resume()}};const onClose=function(){queueMicrotask(()=>{n.removeListener("error",onFinished)});if(!h){const t=new d;queueMicrotask(()=>onFinished(t))}};const onFinished=function(t){if(h){return}h=true;o(c.destroyed||c[v]&&s[R]<=1);c.off("drain",onDrain).off("error",onFinished);n.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!t){try{f.end()}catch(n){t=n}}f.destroy(t);if(t&&(t.code!=="UND_ERR_INFO"||t.message!=="reset")){i.destroy(n,t)}else{i.destroy(n)}};n.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(n.resume){n.resume()}c.on("drain",onDrain).on("error",onFinished);if(n.errorEmitted??n.errored){setImmediate(()=>onFinished(n.errored))}else if(n.endEmitted??n.readableEnded){setImmediate(()=>onFinished(null))}if(n.closeEmitted??n.closed){setImmediate(onClose)}}function writeBuffer(t,n,s,A,c,l,u,d){try{if(!n){if(l===0){c.write(`${u}content-length: 0\r\n\r\n`,"latin1")}else{o(l===null,"no body must not have content length");c.write(`${u}\r\n`,"latin1")}}else if(i.isBuffer(n)){o(l===n.byteLength,"buffer body must have content length");c.cork();c.write(`${u}content-length: ${l}\r\n\r\n`,"latin1");c.write(n);c.uncork();A.onBodySent(n);if(!d&&A.reset!==false){c[Q]=true}}A.onRequestSent();s[K]()}catch(n){t(n)}}async function writeBlob(t,n,s,i,A,c,u,d){o(c===n.size,"blob body must have content length");try{if(c!=null&&c!==n.size){throw new l}const t=Buffer.from(await n.arrayBuffer());A.cork();A.write(`${u}content-length: ${c}\r\n\r\n`,"latin1");A.write(t);A.uncork();i.onBodySent(t);i.onRequestSent();if(!d&&i.reset!==false){A[Q]=true}s[K]()}catch(n){t(n)}}async function writeIterable(t,n,s,i,A,c,l,u){o(c!==0||s[R]===0,"iterator body cannot be pipelined");let d=null;function onDrain(){if(d){const t=d;d=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{o(d===null);if(A[L]){n(A[L])}else{d=t}});A.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({abort:t,socket:A,request:i,contentLength:c,client:s,expectsPayload:u,header:l});try{for await(const t of n){if(A[L]){throw A[L]}if(!g.write(t)){await waitForDrain()}}g.end()}catch(t){g.destroy(t)}finally{A.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:t,socket:n,request:s,contentLength:o,client:i,expectsPayload:A,header:c}){this.socket=n;this.request=s;this.contentLength=o;this.client=i;this.bytesWritten=0;this.expectsPayload=A;this.header=c;this.abort=t;n[v]=true}write(t){const{socket:n,request:s,contentLength:o,client:i,bytesWritten:A,expectsPayload:c,header:u}=this;if(n[L]){throw n[L]}if(n.destroyed){return false}const d=Buffer.byteLength(t);if(!d){return true}if(o!==null&&A+d>o){if(i[q]){throw new l}process.emitWarning(new l)}n.cork();if(A===0){if(!c&&s.reset!==false){n[Q]=true}if(o===null){n.write(`${u}transfer-encoding: chunked\r\n`,"latin1")}else{n.write(`${u}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){n.write(`\r\n${d.toString(16)}\r\n`,"latin1")}this.bytesWritten+=d;const g=n.write(t);n.uncork();s.onBodySent(t);if(!g){if(n[w].timeout&&n[w].timeoutType===Ee){if(n[w].timeout.refresh){n[w].timeout.refresh()}}}return g}end(){const{socket:t,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:A,request:c}=this;c.onRequestSent();t[v]=false;if(t[L]){throw t[L]}if(t.destroyed){return}if(o===0){if(i){t.write(`${A}content-length: 0\r\n\r\n`,"latin1")}else{t.write(`${A}\r\n`,"latin1")}}else if(n===null){t.write("\r\n0\r\n\r\n","latin1")}if(n!==null&&o!==n){if(s[q]){throw new l}else{process.emitWarning(new l)}}if(t[w].timeout&&t[w].timeoutType===Ee){if(t[w].timeout.refresh){t[w].timeout.refresh()}}s[K]()}destroy(t){const{socket:n,client:s,abort:i}=this;n[v]=false;if(t){o(s[R]<=1,"pipeline should only contain this request");i(t)}}}t.exports=connectH1},8788:(t,n,s)=>{"use strict";const o=s(4589);const{errorMonitor:i}=s(8474);const{pipeline:A}=s(7075);const c=s(3440);const{RequestContentLengthMismatchError:l,RequestAbortedError:u,SocketError:d,InformationalError:g}=s(8707);const{kUrl:h,kReset:f,kClient:E,kRunning:p,kPending:C,kQueue:I,kPendingIdx:m,kRunningIdx:B,kError:Q,kSocket:y,kStrictContentLength:w,kOnError:S,kMaxConcurrentStreams:R,kHTTP2Session:D,kResume:k,kSize:v,kHTTPContext:T}=s(6443);const N=Symbol("open streams");let F;let x=false;let M;try{M=s(2467)}catch{M={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:U,HTTP2_HEADER_METHOD:L,HTTP2_HEADER_PATH:P,HTTP2_HEADER_SCHEME:O,HTTP2_HEADER_CONTENT_LENGTH:H,HTTP2_HEADER_EXPECT:_,HTTP2_HEADER_STATUS:G}}=M;function parseH2Headers(t){const n=[];for(const[s,o]of Object.entries(t)){if(Array.isArray(o)){for(const t of o){n.push(Buffer.from(s),Buffer.from(t))}}else{n.push(Buffer.from(s),Buffer.from(o))}}return n}function parseH2ResponseHeaders(t){const{[G]:n,...s}=t;return parseH2Headers(s)}async function connectH2(t,n){t[y]=n;if(!x){x=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=M.connect(t[h],{createConnection:()=>n,peerMaxConcurrentStreams:t[R]});s[N]=0;s[E]=t;s[y]=n;c.addListener(s,"error",onHttp2SessionError);c.addListener(s,"frameError",onHttp2FrameError);c.addListener(s,"end",onHttp2SessionEnd);c.addListener(s,"goaway",onHTTP2GoAway);c.addListener(s,"close",function(){const{[E]:t}=this;const{[y]:n}=t;const s=this[y][Q]||this[Q]||new d("closed",c.getSocketInfo(n));t[D]=null;if(t.destroyed){o(t[C]===0);const n=t[I].splice(t[B]);for(let o=0;o<n.length;o++){const i=n[o];c.errorRequest(t,i,s)}}});s.unref();t[D]=s;n[D]=s;c.addListener(n,"error",function(t){this[Q]=t;this[E][S](t)});c.addListener(n,"end",function(){c.destroy(this,new d("other side closed",c.getSocketInfo(this)))});c.addListener(n,"close",function(){const n=this[Q]||new d("closed",c.getSocketInfo(this));t[y]=null;if(this[D]!=null){this[D].destroy(n)}t[m]=t[B];o(t[p]===0);t.emit("disconnect",t[h],[t],n);t[k]()});let i=false;n.on("close",()=>{i=true});return{version:"h2",defaultPipelining:Infinity,write(...n){return writeH2(t,...n)},resume(){resumeH2(t)},destroy(t,s){if(i){queueMicrotask(s)}else{n.destroy(t).on("close",s)}},get destroyed(){return n.destroyed},busy(){return false}}}function resumeH2(t){const n=t[y];if(n?.destroyed===false){if(t[v]===0&&t[R]===0){n.unref();t[D].unref()}else{n.ref();t[D].ref()}}}function onHttp2SessionError(t){this[y][Q]=t;this[E][S](t)}function onHttp2FrameError(t,n,s){if(s===0){const s=new g(`HTTP/2: "frameError" received - type ${t}, code ${n}`);this[y][Q]=s;this[E][S](s)}}function onHttp2SessionEnd(){const t=new d("other side closed",c.getSocketInfo(this[y]));this.destroy(t);c.destroy(this[y],t)}function onHTTP2GoAway(t){const n=this[Q]||new d(`HTTP/2: "GOAWAY" frame received with code ${t}`,c.getSocketInfo(this));const s=this[E];s[y]=null;s[T]=null;if(this[D]!=null){this[D].destroy(n);this[D]=null}c.destroy(this[y],n);if(s[B]<s[I].length){const t=s[I][s[B]];s[I][s[B]++]=null;c.errorRequest(s,t,n);s[m]=s[B]}o(s[p]===0);s.emit("disconnect",s[h],[s],n);s[k]()}function shouldSendContentLength(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function writeH2(t,n){const A=t[D];const{method:d,path:f,host:E,upgrade:p,expectContinue:C,signal:Q,headers:S}=n;let{body:R}=n;if(p){c.errorRequest(t,n,new Error("Upgrade not supported for H2"));return false}const v={};for(let t=0;t<S.length;t+=2){const n=S[t+0];const s=S[t+1];if(Array.isArray(s)){for(let t=0;t<s.length;t++){if(v[n]){v[n]+=`,${s[t]}`}else{v[n]=s[t]}}}else{v[n]=s}}let T;const{hostname:x,port:M}=t[h];v[U]=E||`${x}${M?`:${M}`:""}`;v[L]=d;const abort=s=>{if(n.aborted){return}if(n.completed){if(d==="CONNECT"&&T!=null){c.destroy(T,s||new u)}return}s=s||new u;c.errorRequest(t,n,s);if(T!=null){c.destroy(T,s)}c.destroy(R,s);t[I][t[B]++]=null;t[k]()};try{n.onConnect(abort)}catch(s){c.errorRequest(t,n,s)}if(n.aborted){return false}if(d==="CONNECT"){A.ref();T=A.request(v,{endStream:false,signal:Q});let s=false;const onResponse=t=>{s=true;T.off(i,onUpgradeError);n.onUpgradeResponse(Number(t[G]),t,parseH2ResponseHeaders)};const onUpgradeError=t=>{s=true;T.off("response",onResponse);n.onUpgradeError(t)};const onReady=()=>{try{n.onUpgrade(null,null,T)}catch(t){T.off("response",onResponse);abort(t);return}if(n.aborted){return}T.off("error",abort);T.once(i,onUpgradeError);t[I][t[B]++]=null};T.once("response",onResponse);T.once("error",abort);++A[N];onReady();T.once("close",()=>{if(!s&&n.completed){T.off("response",onResponse);T.off(i,onUpgradeError);n.onUpgradeError(new g(`HTTP/2: "stream error" received - code ${T.rstCode}`))}A[N]-=1;if(A[N]===0)A.unref()});return true}v[P]=f;v[O]="https";const V=d==="PUT"||d==="POST"||d==="PATCH";if(R&&typeof R.read==="function"){R.read(0)}let Y=c.bodyLength(R);if(c.isFormDataLike(R)){F??=s(4492).extractBody;const[t,n]=F(R);v["content-type"]=n;R=t.stream;Y=t.length}if(Y==null){Y=n.contentLength}if(Y===0||!V){Y=null}if(shouldSendContentLength(d)&&Y>0&&n.contentLength!=null&&n.contentLength!==Y){if(t[w]){c.errorRequest(t,n,new l);return false}process.emitWarning(new l)}if(Y!=null){o(R,"no body must not have content length");v[H]=`${Y}`}A.ref();const J=d==="GET"||d==="HEAD"||R===null;if(C){v[_]="100-continue";T=A.request(v,{endStream:J,signal:Q});T.once("continue",writeBodyH2)}else{T=A.request(v,{endStream:J,signal:Q});writeBodyH2()}++A[N];T.once("response",s=>{const{[G]:o,...i}=s;n.onResponseStarted();if(n.aborted){const s=new u;c.errorRequest(t,n,s);c.destroy(T,s);return}if(n.onHeaders(Number(o),parseH2Headers(i),T.resume.bind(T),"")===false){T.pause()}T.on("data",t=>{if(n.onData(t)===false){T.pause()}})});T.once("end",()=>{if(T.state?.state==null||T.state.state<6){n.onComplete([])}if(A[N]===0){A.unref()}abort(new g("HTTP/2: stream half-closed (remote)"));t[I][t[B]++]=null;t[m]=t[B];t[k]()});T.once("close",()=>{A[N]-=1;if(A[N]===0){A.unref()}});T.once("error",function(t){abort(t)});T.once("frameError",(t,n)=>{abort(new g(`HTTP/2: "frameError" received - type ${t}, code ${n}`))});return true;function writeBodyH2(){if(!R||Y===0){writeBuffer(abort,T,null,t,n,t[y],Y,V)}else if(c.isBuffer(R)){writeBuffer(abort,T,R,t,n,t[y],Y,V)}else if(c.isBlobLike(R)){if(typeof R.stream==="function"){writeIterable(abort,T,R.stream(),t,n,t[y],Y,V)}else{writeBlob(abort,T,R,t,n,t[y],Y,V)}}else if(c.isStream(R)){writeStream(abort,t[y],V,T,R,t,n,Y)}else if(c.isIterable(R)){writeIterable(abort,T,R,t,n,t[y],Y,V)}else{o(false)}}}function writeBuffer(t,n,s,i,A,l,u,d){try{if(s!=null&&c.isBuffer(s)){o(u===s.byteLength,"buffer body must have content length");n.cork();n.write(s);n.uncork();n.end();A.onBodySent(s)}if(!d){l[f]=true}A.onRequestSent();i[k]()}catch(n){t(n)}}function writeStream(t,n,s,i,l,u,d,g){o(g!==0||u[p]===0,"stream body cannot be pipelined");const h=A(l,i,o=>{if(o){c.destroy(h,o);t(o)}else{c.removeAllListeners(h);d.onRequestSent();if(!s){n[f]=true}u[k]()}});c.addListener(h,"data",onPipeData);function onPipeData(t){d.onBodySent(t)}}async function writeBlob(t,n,s,i,A,c,u,d){o(u===s.size,"blob body must have content length");try{if(u!=null&&u!==s.size){throw new l}const t=Buffer.from(await s.arrayBuffer());n.cork();n.write(t);n.uncork();n.end();A.onBodySent(t);A.onRequestSent();if(!d){c[f]=true}i[k]()}catch(n){t(n)}}async function writeIterable(t,n,s,i,A,c,l,u){o(l!==0||i[p]===0,"iterator body cannot be pipelined");let d=null;function onDrain(){if(d){const t=d;d=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{o(d===null);if(c[Q]){n(c[Q])}else{d=t}});n.on("close",onDrain).on("drain",onDrain);try{for await(const t of s){if(c[Q]){throw c[Q]}const s=n.write(t);A.onBodySent(t);if(!s){await waitForDrain()}}n.end();A.onRequestSent();if(!u){c[f]=true}i[k]()}catch(n){t(n)}finally{n.off("close",onDrain).off("drain",onDrain)}}t.exports=connectH2},3701:(t,n,s)=>{"use strict";const o=s(4589);const i=s(7030);const A=s(7067);const c=s(3440);const{channels:l}=s(2414);const u=s(4655);const d=s(1841);const{InvalidArgumentError:g,InformationalError:h,ClientDestroyedError:f}=s(8707);const E=s(9136);const{kUrl:p,kServerName:C,kClient:I,kBusy:m,kConnect:B,kResuming:Q,kRunning:y,kPending:w,kSize:S,kQueue:R,kConnected:D,kConnecting:k,kNeedDrain:v,kKeepAliveDefaultTimeout:T,kHostHeader:N,kPendingIdx:F,kRunningIdx:x,kError:M,kPipelining:U,kKeepAliveTimeoutValue:L,kMaxHeadersSize:P,kKeepAliveMaxTimeout:O,kKeepAliveTimeoutThreshold:H,kHeadersTimeout:_,kBodyTimeout:G,kStrictContentLength:V,kConnector:Y,kMaxRedirections:J,kMaxRequests:q,kCounter:W,kClose:z,kDestroy:$,kDispatch:j,kInterceptors:K,kLocalAddress:Z,kMaxResponseSize:X,kOnError:ee,kHTTPContext:te,kMaxConcurrentStreams:ne,kResume:re}=s(6443);const se=s(637);const oe=s(8788);let ie=false;const ae=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(t){return t[U]??t[te]?.defaultPipelining??1}class Client extends d{constructor(t,{interceptors:n,maxHeaderSize:s,headersTimeout:o,socketTimeout:l,requestTimeout:u,connectTimeout:d,bodyTimeout:h,idleTimeout:f,keepAlive:I,keepAliveTimeout:m,maxKeepAliveTimeout:B,keepAliveMaxTimeout:y,keepAliveTimeoutThreshold:w,socketPath:S,pipelining:D,tls:k,strictContentLength:M,maxCachedSessions:W,maxRedirections:z,connect:$,maxRequestsPerClient:j,localAddress:se,maxResponseSize:oe,autoSelectFamily:ce,autoSelectFamilyAttemptTimeout:le,maxConcurrentStreams:ue,allowH2:de,webSocket:ge,eventSource:he}={}){super({webSocket:ge,eventSource:he});if(I!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(l!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(f!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(B!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(s!=null&&!Number.isFinite(s)){throw new g("invalid maxHeaderSize")}if(S!=null&&typeof S!=="string"){throw new g("invalid socketPath")}if(d!=null&&(!Number.isFinite(d)||d<0)){throw new g("invalid connectTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new g("invalid keepAliveTimeout")}if(y!=null&&(!Number.isFinite(y)||y<=0)){throw new g("invalid keepAliveMaxTimeout")}if(w!=null&&!Number.isFinite(w)){throw new g("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new g("headersTimeout must be a positive integer or zero")}if(h!=null&&(!Number.isInteger(h)||h<0)){throw new g("bodyTimeout must be a positive integer or zero")}if($!=null&&typeof $!=="function"&&typeof $!=="object"){throw new g("connect must be a function or an object")}if(z!=null&&(!Number.isInteger(z)||z<0)){throw new g("maxRedirections must be a positive number")}if(j!=null&&(!Number.isInteger(j)||j<0)){throw new g("maxRequestsPerClient must be a positive number")}if(se!=null&&(typeof se!=="string"||i.isIP(se)===0)){throw new g("localAddress must be valid string IP address")}if(oe!=null&&(!Number.isInteger(oe)||oe<-1)){throw new g("maxResponseSize must be a positive number")}if(le!=null&&(!Number.isInteger(le)||le<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(de!=null&&typeof de!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(ue!=null&&(typeof ue!=="number"||ue<1)){throw new g("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof $!=="function"){$=E({...k,maxCachedSessions:W,allowH2:de,socketPath:S,timeout:d,...ce?{autoSelectFamily:ce,autoSelectFamilyAttemptTimeout:le}:undefined,...$})}if(n?.Client&&Array.isArray(n.Client)){this[K]=n.Client;if(!ie){ie=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[K]=[Ae({maxRedirections:z})]}this[p]=c.parseOrigin(t);this[Y]=$;this[U]=D!=null?D:1;this[P]=s||A.maxHeaderSize;this[T]=m==null?4e3:m;this[O]=y==null?6e5:y;this[H]=w==null?2e3:w;this[L]=this[T];this[C]=null;this[Z]=se!=null?se:null;this[Q]=0;this[v]=0;this[N]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:""}\r\n`;this[G]=h!=null?h:3e5;this[_]=o!=null?o:3e5;this[V]=M==null?true:M;this[J]=z;this[q]=j;this[ae]=null;this[X]=oe>-1?oe:-1;this[ne]=ue!=null?ue:100;this[te]=null;this[R]=[];this[x]=0;this[F]=0;this[re]=t=>resume(this,t);this[ee]=t=>onError(this,t)}get pipelining(){return this[U]}set pipelining(t){this[U]=t;this[re](true)}get[w](){return this[R].length-this[F]}get[y](){return this[F]-this[x]}get[S](){return this[R].length-this[x]}get[D](){return!!this[te]&&!this[k]&&!this[te].destroyed}get[m](){return Boolean(this[te]?.busy(null)||this[S]>=(getPipelining(this)||1)||this[w]>0)}[B](t){connect(this);this.once("connect",t)}[j](t,n){const s=t.origin||this[p].origin;const o=new u(s,t,n);this[R].push(o);if(this[Q]){}else if(c.bodyLength(o.body)==null&&c.isIterable(o.body)){this[Q]=1;queueMicrotask(()=>resume(this))}else{this[re](true)}if(this[Q]&&this[v]!==2&&this[m]){this[v]=2}return this[v]<2}async[z](){return new Promise(t=>{if(this[S]){this[ae]=t}else{t(null)}})}async[$](t){return new Promise(n=>{const s=this[R].splice(this[F]);for(let n=0;n<s.length;n++){const o=s[n];c.errorRequest(this,o,t)}const callback=()=>{if(this[ae]){this[ae]();this[ae]=null}n(null)};if(this[te]){this[te].destroy(t,callback);this[te]=null}else{queueMicrotask(callback)}this[re]()})}}const Ae=s(5092);function onError(t,n){if(t[y]===0&&n.code!=="UND_ERR_INFO"&&n.code!=="UND_ERR_SOCKET"){o(t[F]===t[x]);const s=t[R].splice(t[x]);for(let o=0;o<s.length;o++){const i=s[o];c.errorRequest(t,i,n)}o(t[S]===0)}}async function connect(t){o(!t[k]);o(!t[te]);let{host:n,hostname:s,protocol:A,port:u}=t[p];if(s[0]==="["){const t=s.indexOf("]");o(t!==-1);const n=s.substring(1,t);o(i.isIP(n));s=n}t[k]=true;if(l.beforeConnect.hasSubscribers){l.beforeConnect.publish({connectParams:{host:n,hostname:s,protocol:A,port:u,version:t[te]?.version,servername:t[C],localAddress:t[Z]},connector:t[Y]})}try{const i=await new Promise((o,i)=>{t[Y]({host:n,hostname:s,protocol:A,port:u,servername:t[C],localAddress:t[Z]},(t,n)=>{if(t){i(t)}else{o(n)}})});if(t.destroyed){c.destroy(i.on("error",noop),new f);return}o(i);try{t[te]=i.alpnProtocol==="h2"?await oe(t,i):await se(t,i)}catch(t){i.destroy().on("error",noop);throw t}t[k]=false;i[W]=0;i[q]=t[q];i[I]=t;i[M]=null;if(l.connected.hasSubscribers){l.connected.publish({connectParams:{host:n,hostname:s,protocol:A,port:u,version:t[te]?.version,servername:t[C],localAddress:t[Z]},connector:t[Y],socket:i})}t.emit("connect",t[p],[t])}catch(i){if(t.destroyed){return}t[k]=false;if(l.connectError.hasSubscribers){l.connectError.publish({connectParams:{host:n,hostname:s,protocol:A,port:u,version:t[te]?.version,servername:t[C],localAddress:t[Z]},connector:t[Y],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(t[y]===0);while(t[w]>0&&t[R][t[F]].servername===t[C]){const n=t[R][t[F]++];c.errorRequest(t,n,i)}}else{onError(t,i)}t.emit("connectionError",t[p],[t],i)}t[re]()}function emitDrain(t){t[v]=0;t.emit("drain",t[p],[t])}function resume(t,n){if(t[Q]===2){return}t[Q]=2;_resume(t,n);t[Q]=0;if(t[x]>256){t[R].splice(0,t[x]);t[F]-=t[x];t[x]=0}}function _resume(t,n){while(true){if(t.destroyed){o(t[w]===0);return}if(t[ae]&&!t[S]){t[ae]();t[ae]=null;return}if(t[te]){t[te].resume()}if(t[m]){t[v]=2}else if(t[v]===2){if(n){t[v]=1;queueMicrotask(()=>emitDrain(t))}else{emitDrain(t)}continue}if(t[w]===0){return}if(t[y]>=(getPipelining(t)||1)){return}const s=t[R][t[F]];if(t[p].protocol==="https:"&&t[C]!==s.servername){if(t[y]>0){return}t[C]=s.servername;t[te]?.destroy(new h("servername changed"),()=>{t[te]=null;resume(t)})}if(t[k]){return}if(!t[te]){connect(t);return}if(t[te].destroyed){return}if(t[te].busy(s)){return}if(!s.aborted&&t[te].write(s)){t[F]++}else{t[R].splice(t[F],1)}}}t.exports=Client},1841:(t,n,s)=>{"use strict";const o=s(4573);const i=s(883);const{ClientDestroyedError:A,ClientClosedError:c,InvalidArgumentError:l}=s(8707);const{kDestroy:u,kClose:d,kClosed:g,kDestroyed:h,kDispatch:f,kInterceptors:E}=s(6443);const p=Symbol("onDestroyed");const C=Symbol("onClosed");const I=Symbol("Intercepted Dispatch");const m=Symbol("webSocketOptions");const B=Symbol("eventSourceOptions");class DispatcherBase extends i{constructor(t){super();this[h]=false;this[p]=null;this[g]=false;this[C]=[];this[m]=t?.webSocket??{};this[B]=t?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[m].maxFragments??131072,maxPayloadSize:this[m].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[B].maxEventSize??o.kStringMaxLength}}get destroyed(){return this[h]}get closed(){return this[g]}get interceptors(){return this[E]}set interceptors(t){if(t){for(let n=t.length-1;n>=0;n--){const t=this[E][n];if(typeof t!=="function"){throw new l("interceptor must be an function")}}}this[E]=t}close(t){if(t===undefined){return new Promise((t,n)=>{this.close((s,o)=>s?n(s):t(o))})}if(typeof t!=="function"){throw new l("invalid callback")}if(this[h]){queueMicrotask(()=>t(new A,null));return}if(this[g]){if(this[C]){this[C].push(t)}else{queueMicrotask(()=>t(null,null))}return}this[g]=true;this[C].push(t);const onClosed=()=>{const t=this[C];this[C]=null;for(let n=0;n<t.length;n++){t[n](null,null)}};this[d]().then(()=>this.destroy()).then(()=>{queueMicrotask(onClosed)})}destroy(t,n){if(typeof t==="function"){n=t;t=null}if(n===undefined){return new Promise((n,s)=>{this.destroy(t,(t,o)=>t?s(t):n(o))})}if(typeof n!=="function"){throw new l("invalid callback")}if(this[h]){if(this[p]){this[p].push(n)}else{queueMicrotask(()=>n(null,null))}return}if(!t){t=new A}this[h]=true;this[p]=this[p]||[];this[p].push(n);const onDestroyed=()=>{const t=this[p];this[p]=null;for(let n=0;n<t.length;n++){t[n](null,null)}};this[u](t).then(()=>{queueMicrotask(onDestroyed)})}[I](t,n){if(!this[E]||this[E].length===0){this[I]=this[f];return this[f](t,n)}let s=this[f].bind(this);for(let t=this[E].length-1;t>=0;t--){s=this[E][t](s)}this[I]=s;return s(t,n)}dispatch(t,n){if(!n||typeof n!=="object"){throw new l("handler must be an object")}try{if(!t||typeof t!=="object"){throw new l("opts must be an object.")}if(this[h]||this[p]){throw new A}if(this[g]){throw new c}return this[I](t,n)}catch(t){if(typeof n.onError!=="function"){throw new l("invalid onError method")}n.onError(t);return false}}}t.exports=DispatcherBase},883:(t,n,s)=>{"use strict";const o=s(8474);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...t){const n=Array.isArray(t[0])?t[0]:t;let s=this.dispatch.bind(this);for(const t of n){if(t==null){continue}if(typeof t!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof t}`)}s=t(s);if(s==null||typeof s!=="function"||s.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,s)}}class ComposedDispatcher extends Dispatcher{#n=null;#r=null;constructor(t,n){super();this.#n=t;this.#r=n}dispatch(...t){this.#r(...t)}close(...t){return this.#n.close(...t)}destroy(...t){return this.#n.destroy(...t)}}t.exports=Dispatcher},3137:(t,n,s)=>{"use strict";const o=s(1841);const{kClose:i,kDestroy:A,kClosed:c,kDestroyed:l,kDispatch:u,kNoProxyAgent:d,kHttpProxyAgent:g,kHttpsProxyAgent:h}=s(6443);const f=s(6672);const E=s(7405);const p={"http:":80,"https:":443};let C=false;class EnvHttpProxyAgent extends o{#s=null;#o=null;#i=null;constructor(t={}){super();this.#i=t;if(!C){C=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:n,httpsProxy:s,noProxy:o,...i}=t;this[d]=new E(i);const A=n??process.env.http_proxy??process.env.HTTP_PROXY;if(A){this[g]=new f({...i,uri:A})}else{this[g]=this[d]}const c=s??process.env.https_proxy??process.env.HTTPS_PROXY;if(c){this[h]=new f({...i,uri:c})}else{this[h]=this[g]}this.#a()}[u](t,n){const s=new URL(t.origin);const o=this.#A(s);return o.dispatch(t,n)}async[i](){await this[d].close();if(!this[g][c]){await this[g].close()}if(!this[h][c]){await this[h].close()}}async[A](t){await this[d].destroy(t);if(!this[g][l]){await this[g].destroy(t)}if(!this[h][l]){await this[h].destroy(t)}}#A(t){let{protocol:n,host:s,port:o}=t;s=s.replace(/:\d*$/,"").toLowerCase();o=Number.parseInt(o,10)||p[n]||0;if(!this.#c(s,o)){return this[d]}if(n==="https:"){return this[h]}return this[g]}#c(t,n){if(this.#l){this.#a()}if(this.#o.length===0){return true}if(this.#s==="*"){return false}for(let s=0;s<this.#o.length;s++){const o=this.#o[s];if(o.port&&o.port!==n){continue}if(!/^[.*]/.test(o.hostname)){if(t===o.hostname){return false}}else{if(t.endsWith(o.hostname.replace(/^\*/,""))){return false}}}return true}#a(){const t=this.#i.noProxy??this.#u;const n=t.split(/[,\s]/);const s=[];for(let t=0;t<n.length;t++){const o=n[t];if(!o){continue}const i=o.match(/^(.+):(\d+)$/);s.push({hostname:(i?i[1]:o).toLowerCase(),port:i?Number.parseInt(i[2],10):0})}this.#s=t;this.#o=s}get#l(){if(this.#i.noProxy!==undefined){return false}return this.#s!==this.#u}get#u(){return process.env.no_proxy??process.env.NO_PROXY??""}}t.exports=EnvHttpProxyAgent},4660:t=>{"use strict";const n=2048;const s=n-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(n);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&s)===this.bottom}push(t){this.list[this.top]=t;this.top=this.top+1&s}shift(){const t=this.list[this.bottom];if(t===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&s;return t}}t.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(t){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(t)}shift(){const t=this.tail;const n=t.shift();if(t.isEmpty()&&t.next!==null){this.tail=t.next}return n}}},2128:(t,n,s)=>{"use strict";const o=s(1841);const i=s(4660);const{kConnected:A,kSize:c,kRunning:l,kPending:u,kQueued:d,kBusy:g,kFree:h,kUrl:f,kClose:E,kDestroy:p,kDispatch:C}=s(6443);const I=s(3246);const m=Symbol("clients");const B=Symbol("needDrain");const Q=Symbol("queue");const y=Symbol("closed resolve");const w=Symbol("onDrain");const S=Symbol("onConnect");const R=Symbol("onDisconnect");const D=Symbol("onConnectionError");const k=Symbol("get dispatcher");const v=Symbol("add client");const T=Symbol("remove client");const N=Symbol("stats");class PoolBase extends o{constructor(t){super(t);this[Q]=new i;this[m]=[];this[d]=0;const n=this;this[w]=function onDrain(t,s){const o=n[Q];let i=false;while(!i){const t=o.shift();if(!t){break}n[d]--;i=!this.dispatch(t.opts,t.handler)}this[B]=i;if(!this[B]&&n[B]){n[B]=false;n.emit("drain",t,[n,...s])}if(n[y]&&o.isEmpty()){Promise.all(n[m].map(t=>t.close())).then(n[y])}};this[S]=(t,s)=>{n.emit("connect",t,[n,...s])};this[R]=(t,s,o)=>{n.emit("disconnect",t,[n,...s],o)};this[D]=(t,s,o)=>{n.emit("connectionError",t,[n,...s],o)};this[N]=new I(this)}get[g](){return this[B]}get[A](){return this[m].filter(t=>t[A]).length}get[h](){return this[m].filter(t=>t[A]&&!t[B]).length}get[u](){let t=this[d];for(const{[u]:n}of this[m]){t+=n}return t}get[l](){let t=0;for(const{[l]:n}of this[m]){t+=n}return t}get[c](){let t=this[d];for(const{[c]:n}of this[m]){t+=n}return t}get stats(){return this[N]}async[E](){if(this[Q].isEmpty()){await Promise.all(this[m].map(t=>t.close()))}else{await new Promise(t=>{this[y]=t})}}async[p](t){while(true){const n=this[Q].shift();if(!n){break}n.handler.onError(t)}await Promise.all(this[m].map(n=>n.destroy(t)))}[C](t,n){const s=this[k]();if(!s){this[B]=true;this[Q].push({opts:t,handler:n});this[d]++}else if(!s.dispatch(t,n)){s[B]=true;this[B]=!this[k]()}return!this[B]}[v](t){t.on("drain",this[w]).on("connect",this[S]).on("disconnect",this[R]).on("connectionError",this[D]);this[m].push(t);if(this[B]){queueMicrotask(()=>{if(this[B]){this[w](t[f],[this,t])}})}return this}[T](t){t.close(()=>{const n=this[m].indexOf(t);if(n!==-1){this[m].splice(n,1)}});this[B]=this[m].some(t=>!t[B]&&t.closed!==true&&t.destroyed!==true)}}t.exports={PoolBase:PoolBase,kClients:m,kNeedDrain:B,kAddClient:v,kRemoveClient:T,kGetDispatcher:k}},3246:(t,n,s)=>{const{kFree:o,kConnected:i,kPending:A,kQueued:c,kRunning:l,kSize:u}=s(6443);const d=Symbol("pool");class PoolStats{constructor(t){this[d]=t}get connected(){return this[d][i]}get free(){return this[d][o]}get pending(){return this[d][A]}get queued(){return this[d][c]}get running(){return this[d][l]}get size(){return this[d][u]}}t.exports=PoolStats},628:(t,n,s)=>{"use strict";const{PoolBase:o,kClients:i,kNeedDrain:A,kAddClient:c,kGetDispatcher:l}=s(2128);const u=s(3701);const{InvalidArgumentError:d}=s(8707);const g=s(3440);const{kUrl:h,kInterceptors:f}=s(6443);const E=s(9136);const p=Symbol("options");const C=Symbol("connections");const I=Symbol("factory");function defaultFactory(t,n){return new u(t,n)}class Pool extends o{constructor(t,{connections:n,factory:s=defaultFactory,connect:o,connectTimeout:A,tls:c,maxCachedSessions:l,socketPath:u,autoSelectFamily:m,autoSelectFamilyAttemptTimeout:B,allowH2:Q,...y}={}){if(n!=null&&(!Number.isFinite(n)||n<0)){throw new d("invalid connections")}if(typeof s!=="function"){throw new d("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new d("connect must be a function or an object")}if(typeof o!=="function"){o=E({...c,maxCachedSessions:l,allowH2:Q,socketPath:u,timeout:A,...m?{autoSelectFamily:m,autoSelectFamilyAttemptTimeout:B}:undefined,...o})}super(y);this[f]=y.interceptors?.Pool&&Array.isArray(y.interceptors.Pool)?y.interceptors.Pool:[];this[C]=n||null;this[h]=g.parseOrigin(t);this[p]={...g.deepClone(y),connect:o,allowH2:Q};this[p].interceptors=y.interceptors?{...y.interceptors}:undefined;this[I]=s;this.on("connectionError",(t,n,s)=>{for(const t of n){const n=this[i].indexOf(t);if(n!==-1){this[i].splice(n,1)}}})}[l](){for(const t of this[i]){if(!t[A]){return t}}if(!this[C]||this[i].length<this[C]){const t=this[I](this[h],this[p]);this[c](t);return t}}}t.exports=Pool},6672:(t,n,s)=>{"use strict";const{kProxy:o,kClose:i,kDestroy:A,kDispatch:c,kInterceptors:l}=s(6443);const{URL:u}=s(3136);const d=s(7405);const g=s(628);const h=s(1841);const{InvalidArgumentError:f,RequestAbortedError:E,SecureProxyConnectionError:p}=s(8707);const C=s(9136);const I=s(3701);const m=Symbol("proxy agent");const B=Symbol("proxy client");const Q=Symbol("proxy headers");const y=Symbol("request tls settings");const w=Symbol("proxy tls settings");const S=Symbol("connect endpoint function");const R=Symbol("tunnel proxy");function defaultProtocolPort(t){return t==="https:"?443:80}function defaultFactory(t,n){return new g(t,n)}const noop=()=>{};function defaultAgentFactory(t,n){if(n.connections===1){return new I(t,n)}return new g(t,n)}class Http1ProxyWrapper extends h{#d;constructor(t,{headers:n={},connect:s,factory:o}){super();if(!t){throw new f("Proxy URL is mandatory")}this[Q]=n;if(o){this.#d=o(t,{connect:s})}else{this.#d=new I(t,{connect:s})}}[c](t,n){const s=n.onHeaders;n.onHeaders=function(t,o,i){if(t===407){if(typeof n.onError==="function"){n.onError(new f("Proxy Authentication Required (407)"))}return}if(s)s.call(this,t,o,i)};const{origin:o,path:i="/",headers:A={}}=t;t.path=o+i;if(!("host"in A)&&!("Host"in A)){const{host:t}=new u(o);A.host=t}t.headers={...this[Q],...A};return this.#d[c](t,n)}async[i](){return this.#d.close()}async[A](t){return this.#d.destroy(t)}}class ProxyAgent extends h{constructor(t){super();if(!t||typeof t==="object"&&!(t instanceof u)&&!t.uri){throw new f("Proxy uri is mandatory")}const{clientFactory:n=defaultFactory}=t;if(typeof n!=="function"){throw new f("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:s=true}=t;const i=this.#g(t);const{href:A,origin:c,port:g,protocol:h,username:I,password:D,hostname:k}=i;this[o]={uri:A,protocol:h};this[l]=t.interceptors?.ProxyAgent&&Array.isArray(t.interceptors.ProxyAgent)?t.interceptors.ProxyAgent:[];this[y]=t.requestTls;this[w]=t.proxyTls;this[Q]=t.headers||{};this[R]=s;if(t.auth&&t.token){throw new f("opts.auth cannot be used in combination with opts.token")}else if(t.auth){this[Q]["proxy-authorization"]=`Basic ${t.auth}`}else if(t.token){this[Q]["proxy-authorization"]=t.token}else if(I&&D){this[Q]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(D)}`).toString("base64")}`}const v=C({...t.proxyTls});this[S]=C({...t.requestTls});const T=t.factory||defaultAgentFactory;const factory=(t,n)=>{const{protocol:s}=new u(t);if(!this[R]&&s==="http:"&&this[o].protocol==="http:"){return new Http1ProxyWrapper(this[o].uri,{headers:this[Q],connect:v,factory:T})}return T(t,n)};this[B]=n(i,{connect:v});this[m]=new d({...t,factory:factory,connect:async(t,n)=>{let s=t.host;if(!t.port){s+=`:${defaultProtocolPort(t.protocol)}`}try{const{socket:o,statusCode:i}=await this[B].connect({origin:c,port:g,path:s,signal:t.signal,headers:{...this[Q],host:t.host},servername:this[w]?.servername||k});if(i!==200){o.on("error",noop).destroy();n(new E(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(t.protocol!=="https:"){n(null,o);return}let A;if(this[y]){A=this[y].servername}else{A=t.servername}this[S]({...t,servername:A,httpSocket:o},n)}catch(t){if(t.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(new p(t))}else{n(t)}}}})}dispatch(t,n){const s=buildHeaders(t.headers);throwIfProxyAuthIsSent(s);if(s&&!("host"in s)&&!("Host"in s)){const{host:n}=new u(t.origin);s.host=n}return this[m].dispatch({...t,headers:s},n)}#g(t){if(typeof t==="string"){return new u(t)}else if(t instanceof u){return t}else{return new u(t.uri)}}async[i](){await this[m].close();await this[B].close()}async[A](){await this[m].destroy();await this[B].destroy()}}function buildHeaders(t){if(Array.isArray(t)){const n={};for(let s=0;s<t.length;s+=2){n[t[s]]=t[s+1]}return n}return t}function throwIfProxyAuthIsSent(t){const n=t&&Object.keys(t).find(t=>t.toLowerCase()==="proxy-authorization");if(n){throw new f("Proxy-Authorization should be sent in ProxyAgent constructor")}}t.exports=ProxyAgent},50:(t,n,s)=>{"use strict";const o=s(883);const i=s(7816);class RetryAgent extends o{#h=null;#f=null;constructor(t,n={}){super(n);this.#h=t;this.#f=n}dispatch(t,n){const s=new i({...t,retryOptions:this.#f},{dispatch:this.#h.dispatch.bind(this.#h),handler:n});return this.#h.dispatch(t,s)}close(){return this.#h.close()}destroy(){return this.#h.destroy()}}t.exports=RetryAgent},2581:(t,n,s)=>{"use strict";const o=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:i}=s(8707);const A=s(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new A)}function setGlobalDispatcher(t){if(!t||typeof t.dispatch!=="function"){throw new i("Argument agent must implement Agent")}Object.defineProperty(globalThis,o,{value:t,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[o]}t.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:t=>{"use strict";t.exports=class DecoratorHandler{#E;constructor(t){if(typeof t!=="object"||t===null){throw new TypeError("handler must be an object")}this.#E=t}onConnect(...t){return this.#E.onConnect?.(...t)}onError(...t){return this.#E.onError?.(...t)}onUpgrade(...t){return this.#E.onUpgrade?.(...t)}onResponseStarted(...t){return this.#E.onResponseStarted?.(...t)}onHeaders(...t){return this.#E.onHeaders?.(...t)}onData(...t){return this.#E.onData?.(...t)}onComplete(...t){return this.#E.onComplete?.(...t)}onBodySent(...t){return this.#E.onBodySent?.(...t)}}},8754:(t,n,s)=>{"use strict";const o=s(3440);const{kBodyUsed:i}=s(6443);const A=s(4589);const{InvalidArgumentError:c}=s(8707);const l=s(8474);const u=[300,301,302,303,307,308];const d=Symbol("body");class BodyAsyncIterable{constructor(t){this[d]=t;this[i]=false}async*[Symbol.asyncIterator](){A(!this[i],"disturbed");this[i]=true;yield*this[d]}}class RedirectHandler{constructor(t,n,s,u){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new c("maxRedirections must be a positive number")}o.validateHandler(u,s.method,s.upgrade);this.dispatch=t;this.location=null;this.abort=null;this.opts={...s,maxRedirections:0};this.maxRedirections=n;this.handler=u;this.history=[];this.redirectionLimitReached=false;if(o.isStream(this.opts.body)){if(o.bodyLength(this.opts.body)===0){this.opts.body.on("data",function(){A(false)})}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[i]=false;l.prototype.on.call(this.opts.body,"data",function(){this[i]=true})}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&o.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(t){this.abort=t;this.handler.onConnect(t,{history:this.history})}onUpgrade(t,n,s){this.handler.onUpgrade(t,n,s)}onError(t){this.handler.onError(t)}onHeaders(t,n,s,i){this.location=this.history.length>=this.maxRedirections||o.isDisturbed(this.opts.body)?null:parseLocation(t,n);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(t,n,s,i)}const{origin:A,pathname:c,search:l}=o.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const u=l?`${c}${l}`:c;this.opts.headers=cleanRequestHeaders(this.opts.headers,t===303,this.opts.origin!==A);this.opts.path=u;this.opts.origin=A;this.opts.maxRedirections=0;this.opts.query=null;if(t===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(t){if(this.location){}else{return this.handler.onData(t)}}onComplete(t){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(t)}}onBodySent(t){if(this.handler.onBodySent){this.handler.onBodySent(t)}}}function parseLocation(t,n){if(u.indexOf(t)===-1){return null}for(let t=0;t<n.length;t+=2){if(n[t].length===8&&o.headerNameToString(n[t])==="location"){return n[t+1]}}}function shouldRemoveHeader(t,n,s){if(t.length===4){return o.headerNameToString(t)==="host"}if(n&&o.headerNameToString(t).startsWith("content-")){return true}if(s&&(t.length===13||t.length===6||t.length===19)){const n=o.headerNameToString(t);return n==="authorization"||n==="cookie"||n==="proxy-authorization"}return false}function cleanRequestHeaders(t,n,s){const o=[];if(Array.isArray(t)){for(let i=0;i<t.length;i+=2){if(!shouldRemoveHeader(t[i],n,s)){o.push(t[i],t[i+1])}}}else if(t&&typeof t==="object"){for(const i of Object.keys(t)){if(!shouldRemoveHeader(i,n,s)){o.push(i,t[i])}}}else{A(t==null,"headers must be an object or an array")}return o}t.exports=RedirectHandler},7816:(t,n,s)=>{"use strict";const o=s(4589);const{kRetryHandlerDefaultRetry:i}=s(6443);const{RequestRetryError:A}=s(8707);const{isDisturbed:c,parseHeaders:l,parseRangeHeader:u,wrapRequestBody:d}=s(3440);function calculateRetryAfterHeader(t){const n=Date.now();return new Date(t).getTime()-n}function validatePartialResponseContentLength(t,n,s,o){const i=t["content-length"];if(i==null){return null}if(!Number.isFinite(n.start)||!Number.isFinite(n.end)){return null}const c=Number(i);const l=n.end-n.start+1;if(!Number.isFinite(c)||c!==l){return new A("Content-Length mismatch",s,{headers:t,data:{count:o}})}return null}class RetryHandler{constructor(t,n){const{retryOptions:s,...o}=t;const{retry:A,maxRetries:c,maxTimeout:l,minTimeout:u,timeoutFactor:g,methods:h,errorCodes:f,retryAfter:E,statusCodes:p}=s??{};this.dispatch=n.dispatch;this.handler=n.handler;this.opts={...o,body:d(t.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:A??RetryHandler[i],retryAfter:E??true,maxTimeout:l??30*1e3,minTimeout:u??500,timeoutFactor:g??2,maxRetries:c??5,methods:h??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:f??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.headersSent=false;this.handler.onConnect(t=>{this.aborted=true;if(this.abort){this.abort(t)}else{this.reason=t}})}checkpointResponseEnd(t,n){if(this.end==null&&this.opts.method!=="HEAD"){const n=t["content-length"];this.end=n!=null?Number(n)-1:null;o(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?n:null}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(t,n,s){if(this.handler.onUpgrade){this.handler.onUpgrade(t,n,s)}}onConnect(t){if(this.aborted){t(this.reason)}else{this.abort=t}}onBodySent(t){if(this.handler.onBodySent)return this.handler.onBodySent(t)}static[i](t,{state:n,opts:s},o){const{statusCode:i,code:A,headers:c}=t;const{method:l,retryOptions:u}=s;const{maxRetries:d,minTimeout:g,maxTimeout:h,timeoutFactor:f,statusCodes:E,errorCodes:p,methods:C}=u;const{counter:I}=n;if(A&&A!=="UND_ERR_REQ_RETRY"&&!p.includes(A)){o(t);return}if(Array.isArray(C)&&!C.includes(l)){o(t);return}if(i!=null&&Array.isArray(E)&&!E.includes(i)){o(t);return}if(I>d){o(t);return}let m=c?.["retry-after"];if(m){m=Number(m);m=Number.isNaN(m)?calculateRetryAfterHeader(m):m*1e3}const B=m>0?Math.min(m,h):Math.min(g*f**(I-1),h);setTimeout(()=>o(null),B)}onHeaders(t,n,s,i){const c=l(n);this.retryCount+=1;if(t>=300){if(!this.headersSent&&this.retryOpts.statusCodes.includes(t)===false){this.headersSent=true;this.checkpointResponseEnd(c,s);return this.handler.onHeaders(t,n,s,i)}else{this.abort(new A("Request failed",t,{headers:c,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(t!==206&&(this.start>0||t!==200)){this.abort(new A("server does not support the range header and the payload was partially consumed",t,{headers:c,data:{count:this.retryCount}}));return false}const n=u(c["content-range"]);if(!n){this.abort(new A("Content-Range mismatch",t,{headers:c,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==c.etag){this.abort(new A("ETag mismatch",t,{headers:c,data:{count:this.retryCount}}));return false}const o=validatePartialResponseContentLength(c,n,t,this.retryCount);if(o!=null){this.abort(o);return false}const{start:i,size:l,end:d=l-1}=n;if(this.start!==i||this.end!=null&&this.end!==d){this.abort(new A("Content-Range mismatch",t,{headers:c,data:{count:this.retryCount}}));return false}this.resume=s;return true}if(this.end==null){if(t===206){const A=u(c["content-range"]);if(A==null){this.headersSent=true;return this.handler.onHeaders(t,n,s,i)}const l=validatePartialResponseContentLength(c,A,t,this.retryCount);if(l!=null){this.abort(l);return false}const{start:d,size:g,end:h=g-1}=A;o(d!=null&&Number.isFinite(d),"content-range mismatch");o(h!=null&&Number.isFinite(h),"invalid content-length");this.start=d;this.end=h}if(this.end==null){const t=c["content-length"];this.end=t!=null?Number(t)-1:null}o(Number.isFinite(this.start));o(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=s;this.headersSent=true;this.etag=c.etag!=null?c.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(t,n,s,i)}const d=new A("Request failed",t,{headers:c,data:{count:this.retryCount}});this.abort(d);return false}onData(t){this.start+=t.length;return this.handler.onData(t)}onComplete(t){this.retryCount=0;return this.handler.onComplete(t)}onError(t){if(this.aborted||c(this.opts.body)||this.headersSent&&this.resume==null){return this.handler.onError(t)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(t,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(t){if(t!=null||this.aborted||c(this.opts.body)){return this.handler.onError(t)}if(this.start!==0){const t={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){t["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...t}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(t){this.handler.onError(t)}}}}t.exports=RetryHandler},379:(t,n,s)=>{"use strict";const{isIP:o}=s(7030);const{lookup:i}=s(610);const A=s(8155);const{InvalidArgumentError:c,InformationalError:l}=s(8707);const u=Math.pow(2,31)-1;class DNSInstance{#p=0;#C=0;#I=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(t){this.#p=t.maxTTL;this.#C=t.maxItems;this.dualStack=t.dualStack;this.affinity=t.affinity;this.lookup=t.lookup??this.#m;this.pick=t.pick??this.#B}get full(){return this.#I.size===this.#C}runLookup(t,n,s){const o=this.#I.get(t.hostname);if(o==null&&this.full){s(null,t.origin);return}const i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#p,maxItems:this.#C};if(o==null){this.lookup(t,i,(n,o)=>{if(n||o==null||o.length===0){s(n??new l("No DNS entries found"));return}this.setRecords(t,o);const A=this.#I.get(t.hostname);const c=this.pick(t,A,i.affinity);let u;if(typeof c.port==="number"){u=`:${c.port}`}else if(t.port!==""){u=`:${t.port}`}else{u=""}s(null,`${t.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)})}else{const A=this.pick(t,o,i.affinity);if(A==null){this.#I.delete(t.hostname);this.runLookup(t,n,s);return}let c;if(typeof A.port==="number"){c=`:${A.port}`}else if(t.port!==""){c=`:${t.port}`}else{c=""}s(null,`${t.protocol}//${A.family===6?`[${A.address}]`:A.address}${c}`)}}#m(t,n,s){i(t.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},(t,n)=>{if(t){return s(t)}const o=new Map;for(const t of n){o.set(`${t.address}:${t.family}`,t)}s(null,o.values())})}#B(t,n,s){let o=null;const{records:i,offset:A}=n;let c;if(this.dualStack){if(s==null){if(A==null||A===u){n.offset=0;s=4}else{n.offset++;s=(n.offset&1)===1?6:4}}if(i[s]!=null&&i[s].ips.length>0){c=i[s]}else{c=i[s===4?6:4]}}else{c=i[s]}if(c==null||c.ips.length===0){return o}if(c.offset==null||c.offset===u){c.offset=0}else{c.offset++}const l=c.offset%c.ips.length;o=c.ips[l]??null;if(o==null){return o}if(Date.now()-o.timestamp>o.ttl){c.ips.splice(l,1);return this.pick(t,n,s)}return o}setRecords(t,n){const s=Date.now();const o={records:{4:null,6:null}};for(const t of n){t.timestamp=s;if(typeof t.ttl==="number"){t.ttl=Math.min(t.ttl,this.#p)}else{t.ttl=this.#p}const n=o.records[t.family]??{ips:[]};n.ips.push(t);o.records[t.family]=n}this.#I.set(t.hostname,o)}getHandler(t,n){return new DNSDispatchHandler(this,t,n)}}class DNSDispatchHandler extends A{#Q=null;#i=null;#r=null;#E=null;#y=null;constructor(t,{origin:n,handler:s,dispatch:o},i){super(s);this.#y=n;this.#E=s;this.#i={...i};this.#Q=t;this.#r=o}onError(t){switch(t.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#Q.dualStack){this.#Q.runLookup(this.#y,this.#i,(t,n)=>{if(t){return this.#E.onError(t)}const s={...this.#i,origin:n};this.#r(s,this)});return}this.#E.onError(t);return}case"ENOTFOUND":this.#Q.deleteRecord(this.#y);default:this.#E.onError(t);break}}}t.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!=="number"||t?.maxTTL<0)){throw new c("Invalid maxTTL. Must be a positive number")}if(t?.maxItems!=null&&(typeof t?.maxItems!=="number"||t?.maxItems<1)){throw new c("Invalid maxItems. Must be a positive number and greater than zero")}if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6){throw new c("Invalid affinity. Must be either 4 or 6")}if(t?.dualStack!=null&&typeof t?.dualStack!=="boolean"){throw new c("Invalid dualStack. Must be a boolean")}if(t?.lookup!=null&&typeof t?.lookup!=="function"){throw new c("Invalid lookup. Must be a function")}if(t?.pick!=null&&typeof t?.pick!=="function"){throw new c("Invalid pick. Must be a function")}const n=t?.dualStack??true;let s;if(n){s=t?.affinity??null}else{s=t?.affinity??4}const i={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:n,affinity:s,maxItems:t?.maxItems??Infinity};const A=new DNSInstance(i);return t=>function dnsInterceptor(n,s){const i=n.origin.constructor===URL?n.origin:new URL(n.origin);if(o(i.hostname)!==0){return t(n,s)}A.runLookup(i,n,(o,c)=>{if(o){return s.onError(o)}let l=null;l={...n,servername:i.hostname,origin:c,headers:{host:i.hostname,...n.headers}};t(l,A.getHandler({origin:i,dispatch:t,handler:s},n))});return true}}},8060:(t,n,s)=>{"use strict";const o=s(3440);const{InvalidArgumentError:i,RequestAbortedError:A}=s(8707);const c=s(8155);class DumpHandler extends c{#w=1024*1024;#S=null;#b=false;#R=false;#D=0;#k=null;#E=null;constructor({maxSize:t},n){super(n);if(t!=null&&(!Number.isFinite(t)||t<1)){throw new i("maxSize must be a number greater than 0")}this.#w=t??this.#w;this.#E=n}onConnect(t){this.#S=t;this.#E.onConnect(this.#v.bind(this))}#v(t){this.#R=true;this.#k=t}onHeaders(t,n,s,i){const c=o.parseHeaders(n);const l=c["content-length"];if(l!=null&&l>this.#w){throw new A(`Response size (${l}) larger than maxSize (${this.#w})`)}if(this.#R){return true}return this.#E.onHeaders(t,n,s,i)}onError(t){if(this.#b){return}t=this.#k??t;this.#E.onError(t)}onData(t){this.#D=this.#D+t.length;if(this.#D>=this.#w){this.#b=true;if(this.#R){this.#E.onError(this.#k)}else{this.#E.onComplete([])}}return true}onComplete(t){if(this.#b){return}if(this.#R){this.#E.onError(this.reason);return}this.#E.onComplete(t)}}function createDumpInterceptor({maxSize:t}={maxSize:1024*1024}){return n=>function Intercept(s,o){const{dumpMaxSize:i=t}=s;const A=new DumpHandler({maxSize:i},o);return n(s,A)}}t.exports=createDumpInterceptor},5092:(t,n,s)=>{"use strict";const o=s(8754);function createRedirectInterceptor({maxRedirections:t}){return n=>function Intercept(s,i){const{maxRedirections:A=t}=s;if(!A){return n(s,i)}const c=new o(n,A,s,i);s={...s,maxRedirections:0};return n(s,c)}}t.exports=createRedirectInterceptor},1514:(t,n,s)=>{"use strict";const o=s(8754);t.exports=t=>{const n=t?.maxRedirections;return t=>function redirectInterceptor(s,i){const{maxRedirections:A=n,...c}=s;if(!A){return t(s,i)}const l=new o(t,A,s,i);return t(c,l)}}},2026:(t,n,s)=>{"use strict";const o=s(7816);t.exports=t=>n=>function retryInterceptor(s,i){return n(s,new o({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:n}))}},2824:(t,n,s)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.SPECIAL_HEADERS=n.HEADER_STATE=n.MINOR=n.MAJOR=n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS=n.TOKEN=n.STRICT_TOKEN=n.HEX=n.URL_CHAR=n.STRICT_URL_CHAR=n.USERINFO_CHARS=n.MARK=n.ALPHANUM=n.NUM=n.HEX_MAP=n.NUM_MAP=n.ALPHA=n.FINISH=n.H_METHOD_MAP=n.METHOD_MAP=n.METHODS_RTSP=n.METHODS_ICE=n.METHODS_HTTP=n.METHODS=n.LENIENT_FLAGS=n.FLAGS=n.TYPE=n.ERROR=void 0;const o=s(172);var i;(function(t){t[t["OK"]=0]="OK";t[t["INTERNAL"]=1]="INTERNAL";t[t["STRICT"]=2]="STRICT";t[t["LF_EXPECTED"]=3]="LF_EXPECTED";t[t["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";t[t["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";t[t["INVALID_METHOD"]=6]="INVALID_METHOD";t[t["INVALID_URL"]=7]="INVALID_URL";t[t["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";t[t["INVALID_VERSION"]=9]="INVALID_VERSION";t[t["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";t[t["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";t[t["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";t[t["INVALID_STATUS"]=13]="INVALID_STATUS";t[t["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";t[t["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";t[t["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";t[t["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";t[t["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";t[t["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";t[t["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";t[t["PAUSED"]=21]="PAUSED";t[t["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";t[t["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";t[t["USER"]=24]="USER"})(i=n.ERROR||(n.ERROR={}));var A;(function(t){t[t["BOTH"]=0]="BOTH";t[t["REQUEST"]=1]="REQUEST";t[t["RESPONSE"]=2]="RESPONSE"})(A=n.TYPE||(n.TYPE={}));var c;(function(t){t[t["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";t[t["CHUNKED"]=8]="CHUNKED";t[t["UPGRADE"]=16]="UPGRADE";t[t["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";t[t["SKIPBODY"]=64]="SKIPBODY";t[t["TRAILING"]=128]="TRAILING";t[t["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(c=n.FLAGS||(n.FLAGS={}));var l;(function(t){t[t["HEADERS"]=1]="HEADERS";t[t["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";t[t["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(l=n.LENIENT_FLAGS||(n.LENIENT_FLAGS={}));var u;(function(t){t[t["DELETE"]=0]="DELETE";t[t["GET"]=1]="GET";t[t["HEAD"]=2]="HEAD";t[t["POST"]=3]="POST";t[t["PUT"]=4]="PUT";t[t["CONNECT"]=5]="CONNECT";t[t["OPTIONS"]=6]="OPTIONS";t[t["TRACE"]=7]="TRACE";t[t["COPY"]=8]="COPY";t[t["LOCK"]=9]="LOCK";t[t["MKCOL"]=10]="MKCOL";t[t["MOVE"]=11]="MOVE";t[t["PROPFIND"]=12]="PROPFIND";t[t["PROPPATCH"]=13]="PROPPATCH";t[t["SEARCH"]=14]="SEARCH";t[t["UNLOCK"]=15]="UNLOCK";t[t["BIND"]=16]="BIND";t[t["REBIND"]=17]="REBIND";t[t["UNBIND"]=18]="UNBIND";t[t["ACL"]=19]="ACL";t[t["REPORT"]=20]="REPORT";t[t["MKACTIVITY"]=21]="MKACTIVITY";t[t["CHECKOUT"]=22]="CHECKOUT";t[t["MERGE"]=23]="MERGE";t[t["M-SEARCH"]=24]="M-SEARCH";t[t["NOTIFY"]=25]="NOTIFY";t[t["SUBSCRIBE"]=26]="SUBSCRIBE";t[t["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";t[t["PATCH"]=28]="PATCH";t[t["PURGE"]=29]="PURGE";t[t["MKCALENDAR"]=30]="MKCALENDAR";t[t["LINK"]=31]="LINK";t[t["UNLINK"]=32]="UNLINK";t[t["SOURCE"]=33]="SOURCE";t[t["PRI"]=34]="PRI";t[t["DESCRIBE"]=35]="DESCRIBE";t[t["ANNOUNCE"]=36]="ANNOUNCE";t[t["SETUP"]=37]="SETUP";t[t["PLAY"]=38]="PLAY";t[t["PAUSE"]=39]="PAUSE";t[t["TEARDOWN"]=40]="TEARDOWN";t[t["GET_PARAMETER"]=41]="GET_PARAMETER";t[t["SET_PARAMETER"]=42]="SET_PARAMETER";t[t["REDIRECT"]=43]="REDIRECT";t[t["RECORD"]=44]="RECORD";t[t["FLUSH"]=45]="FLUSH"})(u=n.METHODS||(n.METHODS={}));n.METHODS_HTTP=[u.DELETE,u.GET,u.HEAD,u.POST,u.PUT,u.CONNECT,u.OPTIONS,u.TRACE,u.COPY,u.LOCK,u.MKCOL,u.MOVE,u.PROPFIND,u.PROPPATCH,u.SEARCH,u.UNLOCK,u.BIND,u.REBIND,u.UNBIND,u.ACL,u.REPORT,u.MKACTIVITY,u.CHECKOUT,u.MERGE,u["M-SEARCH"],u.NOTIFY,u.SUBSCRIBE,u.UNSUBSCRIBE,u.PATCH,u.PURGE,u.MKCALENDAR,u.LINK,u.UNLINK,u.PRI,u.SOURCE];n.METHODS_ICE=[u.SOURCE];n.METHODS_RTSP=[u.OPTIONS,u.DESCRIBE,u.ANNOUNCE,u.SETUP,u.PLAY,u.PAUSE,u.TEARDOWN,u.GET_PARAMETER,u.SET_PARAMETER,u.REDIRECT,u.RECORD,u.FLUSH,u.GET,u.POST];n.METHOD_MAP=o.enumToMap(u);n.H_METHOD_MAP={};Object.keys(n.METHOD_MAP).forEach(t=>{if(/^H/.test(t)){n.H_METHOD_MAP[t]=n.METHOD_MAP[t]}});var d;(function(t){t[t["SAFE"]=0]="SAFE";t[t["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";t[t["UNSAFE"]=2]="UNSAFE"})(d=n.FINISH||(n.FINISH={}));n.ALPHA=[];for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++){n.ALPHA.push(String.fromCharCode(t));n.ALPHA.push(String.fromCharCode(t+32))}n.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};n.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};n.NUM=["0","1","2","3","4","5","6","7","8","9"];n.ALPHANUM=n.ALPHA.concat(n.NUM);n.MARK=["-","_",".","!","~","*","'","(",")"];n.USERINFO_CHARS=n.ALPHANUM.concat(n.MARK).concat(["%",";",":","&","=","+","$",","]);n.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(n.ALPHANUM);n.URL_CHAR=n.STRICT_URL_CHAR.concat(["\t","\f"]);for(let t=128;t<=255;t++){n.URL_CHAR.push(t)}n.HEX=n.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);n.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(n.ALPHANUM);n.TOKEN=n.STRICT_TOKEN.concat([" "]);n.HEADER_CHARS=["\t"];for(let t=32;t<=255;t++){if(t!==127){n.HEADER_CHARS.push(t)}}n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS.filter(t=>t!==44);n.MAJOR=n.NUM_MAP;n.MINOR=n.MAJOR;var g;(function(t){t[t["GENERAL"]=0]="GENERAL";t[t["CONNECTION"]=1]="CONNECTION";t[t["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";t[t["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";t[t["UPGRADE"]=4]="UPGRADE";t[t["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";t[t["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=n.HEADER_STATE||(n.HEADER_STATE={}));n.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},3870:(t,n,s)=>{"use strict";const{Buffer:o}=s(4573);t.exports=o.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3Vt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An9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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AsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQ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VC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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wMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.enumToMap=void 0;function enumToMap(t){const n={};Object.keys(t).forEach(s=>{const o=t[s];if(typeof o==="number"){n[s]=o}});return n}n.enumToMap=enumToMap},7501:(t,n,s)=>{"use strict";const{kClients:o}=s(6443);const i=s(7405);const{kAgent:A,kMockAgentSet:c,kMockAgentGet:l,kDispatches:u,kIsMockActive:d,kNetConnect:g,kGetNetConnect:h,kOptions:f,kFactory:E}=s(1117);const p=s(7365);const C=s(4004);const{matchValue:I,buildMockOptions:m}=s(3397);const{InvalidArgumentError:B,UndiciError:Q}=s(8707);const y=s(883);const w=s(1529);const S=s(6142);class MockAgent extends y{constructor(t){super(t);this[g]=true;this[d]=true;if(t?.agent&&typeof t.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}const n=t?.agent?t.agent:new i(t);this[A]=n;this[o]=n[o];this[f]=m(t)}get(t){let n=this[l](t);if(!n){n=this[E](t);this[c](t,n)}return n}dispatch(t,n){this.get(t.origin);return this[A].dispatch(t,n)}async close(){await this[A].close();this[o].clear()}deactivate(){this[d]=false}activate(){this[d]=true}enableNetConnect(t){if(typeof t==="string"||typeof t==="function"||t instanceof RegExp){if(Array.isArray(this[g])){this[g].push(t)}else{this[g]=[t]}}else if(typeof t==="undefined"){this[g]=true}else{throw new B("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[d]}[c](t,n){this[o].set(t,n)}[E](t){const n=Object.assign({agent:this},this[f]);return this[f]&&this[f].connections===1?new p(t,n):new C(t,n)}[l](t){const n=this[o].get(t);if(n){return n}if(typeof t!=="string"){const n=this[E]("http://localhost:9999");this[c](t,n);return n}for(const[n,s]of Array.from(this[o])){if(s&&typeof n!=="string"&&I(n,t)){const n=this[E](t);this[c](t,n);n[u]=s[u];return n}}}[h](){return this[g]}pendingInterceptors(){const t=this[o];return Array.from(t.entries()).flatMap(([t,n])=>n[u].map(n=>({...n,origin:t}))).filter(({pending:t})=>t)}assertNoPendingInterceptors({pendingInterceptorsFormatter:t=new S}={}){const n=this.pendingInterceptors();if(n.length===0){return}const s=new w("interceptor","interceptors").pluralize(n.length);throw new Q(`\n${s.count} ${s.noun} ${s.is} pending:\n\n${t.format(n)}\n`.trim())}}t.exports=MockAgent},7365:(t,n,s)=>{"use strict";const{promisify:o}=s(7975);const i=s(3701);const{buildMockDispatch:A}=s(3397);const{kDispatches:c,kMockAgent:l,kClose:u,kOriginalClose:d,kOrigin:g,kOriginalDispatch:h,kConnected:f}=s(1117);const{MockInterceptor:E}=s(1511);const p=s(6443);const{InvalidArgumentError:C}=s(8707);class MockClient extends i{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new C("Argument opts.agent must implement Agent")}this[l]=n.agent;this[g]=t;this[c]=[];this[f]=1;this[h]=this.dispatch;this[d]=this.close.bind(this);this.dispatch=A.call(this);this.close=this[u]}get[p.kConnected](){return this[f]}intercept(t){return new E(t,this[c])}async[u](){await o(this[d])();this[f]=0;this[l][p.kClients].delete(this[g])}}t.exports=MockClient},2429:(t,n,s)=>{"use strict";const{UndiciError:o}=s(8707);const i=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends o{constructor(t){super(t);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=t||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](t){return t&&t[i]===true}[i]=true}t.exports={MockNotMatchedError:MockNotMatchedError}},1511:(t,n,s)=>{"use strict";const{getResponseData:o,buildKey:i,addMockDispatch:A}=s(3397);const{kDispatches:c,kDispatchKey:l,kDefaultHeaders:u,kDefaultTrailers:d,kContentLength:g,kMockDispatch:h}=s(1117);const{InvalidArgumentError:f}=s(8707);const{buildURL:E}=s(3440);class MockScope{constructor(t){this[h]=t}delay(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new f("waitInMs must be a valid integer > 0")}this[h].delay=t;return this}persist(){this[h].persist=true;return this}times(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new f("repeatTimes must be a valid integer > 0")}this[h].times=t;return this}}class MockInterceptor{constructor(t,n){if(typeof t!=="object"){throw new f("opts must be an object")}if(typeof t.path==="undefined"){throw new f("opts.path must be defined")}if(typeof t.method==="undefined"){t.method="GET"}if(typeof t.path==="string"){if(t.query){t.path=E(t.path,t.query)}else{const n=new URL(t.path,"data://");t.path=n.pathname+n.search}}if(typeof t.method==="string"){t.method=t.method.toUpperCase()}this[l]=i(t);this[c]=n;this[u]={};this[d]={};this[g]=false}createMockScopeDispatchData({statusCode:t,data:n,responseOptions:s}){const i=o(n);const A=this[g]?{"content-length":i.length}:{};const c={...this[u],...A,...s.headers};const l={...this[d],...s.trailers};return{statusCode:t,data:n,headers:c,trailers:l}}validateReplyParameters(t){if(typeof t.statusCode==="undefined"){throw new f("statusCode must be defined")}if(typeof t.responseOptions!=="object"||t.responseOptions===null){throw new f("responseOptions must be an object")}}reply(t){if(typeof t==="function"){const wrappedDefaultsCallback=n=>{const s=t(n);if(typeof s!=="object"||s===null){throw new f("reply options callback must return an object")}const o={data:"",responseOptions:{},...s};this.validateReplyParameters(o);return{...this.createMockScopeDispatchData(o)}};const n=A(this[c],this[l],wrappedDefaultsCallback);return new MockScope(n)}const n={statusCode:t,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(n);const s=this.createMockScopeDispatchData(n);const o=A(this[c],this[l],s);return new MockScope(o)}replyWithError(t){if(typeof t==="undefined"){throw new f("error must be defined")}const n=A(this[c],this[l],{error:t});return new MockScope(n)}defaultReplyHeaders(t){if(typeof t==="undefined"){throw new f("headers must be defined")}this[u]=t;return this}defaultReplyTrailers(t){if(typeof t==="undefined"){throw new f("trailers must be defined")}this[d]=t;return this}replyContentLength(){this[g]=true;return this}}t.exports.MockInterceptor=MockInterceptor;t.exports.MockScope=MockScope},4004:(t,n,s)=>{"use strict";const{promisify:o}=s(7975);const i=s(628);const{buildMockDispatch:A}=s(3397);const{kDispatches:c,kMockAgent:l,kClose:u,kOriginalClose:d,kOrigin:g,kOriginalDispatch:h,kConnected:f}=s(1117);const{MockInterceptor:E}=s(1511);const p=s(6443);const{InvalidArgumentError:C}=s(8707);class MockPool extends i{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new C("Argument opts.agent must implement Agent")}this[l]=n.agent;this[g]=t;this[c]=[];this[f]=1;this[h]=this.dispatch;this[d]=this.close.bind(this);this.dispatch=A.call(this);this.close=this[u]}get[p.kConnected](){return this[f]}intercept(t){return new E(t,this[c])}async[u](){await o(this[d])();this[f]=0;this[l][p.kClients].delete(this[g])}}t.exports=MockPool},1117:t=>{"use strict";t.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(t,n,s)=>{"use strict";const{MockNotMatchedError:o}=s(2429);const{kDispatches:i,kMockAgent:A,kOriginalDispatch:c,kOrigin:l,kGetNetConnect:u}=s(1117);const{buildURL:d}=s(3440);const{STATUS_CODES:g}=s(7067);const{types:{isPromise:h}}=s(7975);function matchValue(t,n){if(typeof t==="string"){return t===n}if(t instanceof RegExp){return t.test(n)}if(typeof t==="function"){return t(n)===true}return false}function lowerCaseEntries(t){return Object.fromEntries(Object.entries(t).map(([t,n])=>[t.toLocaleLowerCase(),n]))}function getHeaderByName(t,n){if(Array.isArray(t)){for(let s=0;s<t.length;s+=2){if(t[s].toLocaleLowerCase()===n.toLocaleLowerCase()){return t[s+1]}}return undefined}else if(typeof t.get==="function"){return t.get(n)}else{return lowerCaseEntries(t)[n.toLocaleLowerCase()]}}function buildHeadersFromArray(t){const n=t.slice();const s=[];for(let t=0;t<n.length;t+=2){s.push([n[t],n[t+1]])}return Object.fromEntries(s)}function matchHeaders(t,n){if(typeof t.headers==="function"){if(Array.isArray(n)){n=buildHeadersFromArray(n)}return t.headers(n?lowerCaseEntries(n):{})}if(typeof t.headers==="undefined"){return true}if(typeof n!=="object"||typeof t.headers!=="object"){return false}for(const[s,o]of Object.entries(t.headers)){const t=getHeaderByName(n,s);if(!matchValue(o,t)){return false}}return true}function safeUrl(t){if(typeof t!=="string"){return t}const n=t.split("?");if(n.length!==2){return t}const s=new URLSearchParams(n.pop());s.sort();return[...n,s.toString()].join("?")}function matchKey(t,{path:n,method:s,body:o,headers:i}){const A=matchValue(t.path,n);const c=matchValue(t.method,s);const l=typeof t.body!=="undefined"?matchValue(t.body,o):true;const u=matchHeaders(t,i);return A&&c&&l&&u}function getResponseData(t){if(Buffer.isBuffer(t)){return t}else if(t instanceof Uint8Array){return t}else if(t instanceof ArrayBuffer){return t}else if(typeof t==="object"){return JSON.stringify(t)}else{return t.toString()}}function getMockDispatch(t,n){const s=n.query?d(n.path,n.query):n.path;const i=typeof s==="string"?safeUrl(s):s;let A=t.filter(({consumed:t})=>!t).filter(({path:t})=>matchValue(safeUrl(t),i));if(A.length===0){throw new o(`Mock dispatch not matched for path '${i}'`)}A=A.filter(({method:t})=>matchValue(t,n.method));if(A.length===0){throw new o(`Mock dispatch not matched for method '${n.method}' on path '${i}'`)}A=A.filter(({body:t})=>typeof t!=="undefined"?matchValue(t,n.body):true);if(A.length===0){throw new o(`Mock dispatch not matched for body '${n.body}' on path '${i}'`)}A=A.filter(t=>matchHeaders(t,n.headers));if(A.length===0){const t=typeof n.headers==="object"?JSON.stringify(n.headers):n.headers;throw new o(`Mock dispatch not matched for headers '${t}' on path '${i}'`)}return A[0]}function addMockDispatch(t,n,s){const o={timesInvoked:0,times:1,persist:false,consumed:false};const i=typeof s==="function"?{callback:s}:{...s};const A={...o,...n,pending:true,data:{error:null,...i}};t.push(A);return A}function deleteMockDispatch(t,n){const s=t.findIndex(t=>{if(!t.consumed){return false}return matchKey(t,n)});if(s!==-1){t.splice(s,1)}}function buildKey(t){const{path:n,method:s,body:o,headers:i,query:A}=t;return{path:n,method:s,body:o,headers:i,query:A}}function generateKeyValues(t){const n=Object.keys(t);const s=[];for(let o=0;o<n.length;++o){const i=n[o];const A=t[i];const c=Buffer.from(`${i}`);if(Array.isArray(A)){for(let t=0;t<A.length;++t){s.push(c,Buffer.from(`${A[t]}`))}}else{s.push(c,Buffer.from(`${A}`))}}return s}function getStatusText(t){return g[t]||"unknown"}async function getResponse(t){const n=[];for await(const s of t){n.push(s)}return Buffer.concat(n).toString("utf8")}function mockDispatch(t,n){const s=buildKey(t);const o=getMockDispatch(this[i],s);o.timesInvoked++;if(o.data.callback){o.data={...o.data,...o.data.callback(t)}}const{data:{statusCode:A,data:c,headers:l,trailers:u,error:d},delay:g,persist:f}=o;const{timesInvoked:E,times:p}=o;o.consumed=!f&&E>=p;o.pending=E<p;if(d!==null){deleteMockDispatch(this[i],s);n.onError(d);return true}if(typeof g==="number"&&g>0){setTimeout(()=>{handleReply(this[i])},g)}else{handleReply(this[i])}function handleReply(o,i=c){const d=Array.isArray(t.headers)?buildHeadersFromArray(t.headers):t.headers;const g=typeof i==="function"?i({...t,headers:d}):i;if(h(g)){g.then(t=>handleReply(o,t));return}const f=getResponseData(g);const E=generateKeyValues(l);const p=generateKeyValues(u);n.onConnect?.(t=>n.onError(t),null);n.onHeaders?.(A,E,resume,getStatusText(A));n.onData?.(Buffer.from(f));n.onComplete?.(p);deleteMockDispatch(o,s)}function resume(){}return true}function buildMockDispatch(){const t=this[A];const n=this[l];const s=this[c];return function dispatch(i,A){if(t.isMockActive){try{mockDispatch.call(this,i,A)}catch(c){if(c instanceof o){const l=t[u]();if(l===false){throw new o(`${c.message}: subsequent request to origin ${n} was not allowed (net.connect disabled)`)}if(checkNetConnect(l,n)){s.call(this,i,A)}else{throw new o(`${c.message}: subsequent request to origin ${n} was not allowed (net.connect is not enabled for this origin)`)}}else{throw c}}}else{s.call(this,i,A)}}}function checkNetConnect(t,n){const s=new URL(n);if(t===true){return true}else if(Array.isArray(t)&&t.some(t=>matchValue(t,s.host))){return true}return false}function buildMockOptions(t){if(t){const{agent:n,...s}=t;return s}}t.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(t,n,s)=>{"use strict";const{Transform:o}=s(7075);const{Console:i}=s(7540);const A=process.versions.icu?"✅":"Y ";const c=process.versions.icu?"❌":"N ";t.exports=class PendingInterceptorsFormatter{constructor({disableColors:t}={}){this.transform=new o({transform(t,n,s){s(null,t)}});this.logger=new i({stdout:this.transform,inspectOptions:{colors:!t&&!process.env.CI}})}format(t){const n=t.map(({method:t,path:n,data:{statusCode:s},persist:o,times:i,timesInvoked:l,origin:u})=>({Method:t,Origin:u,Path:n,"Status code":s,Persistent:o?A:c,Invocations:l,Remaining:o?Infinity:i-l}));this.logger.table(n);return this.transform.read().toString()}}},1529:t=>{"use strict";const n={pronoun:"it",is:"is",was:"was",this:"this"};const s={pronoun:"they",is:"are",was:"were",this:"these"};t.exports=class Pluralizer{constructor(t,n){this.singular=t;this.plural=n}pluralize(t){const o=t===1;const i=o?n:s;const A=o?this.singular:this.plural;return{...i,count:t,noun:A}}}},6603:t=>{"use strict";let n=0;const s=1e3;const o=(s>>1)-1;let i;const A=Symbol("kFastTimer");const c=[];const l=-2;const u=-1;const d=0;const g=1;function onTick(){n+=o;let t=0;let s=c.length;while(t<s){const i=c[t];if(i._state===d){i._idleStart=n-o;i._state=g}else if(i._state===g&&n>=i._idleStart+i._idleTimeout){i._state=u;i._idleStart=-1;i._onTimeout(i._timerArg)}if(i._state===u){i._state=l;if(--s!==0){c[t]=c[s]}}else{++t}}c.length=s;if(c.length!==0){refreshTimeout()}}function refreshTimeout(){if(i){i.refresh()}else{clearTimeout(i);i=setTimeout(onTick,o);if(i.unref){i.unref()}}}class FastTimer{[A]=true;_state=l;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(t,n,s){this._onTimeout=t;this._idleTimeout=n;this._timerArg=s;this.refresh()}refresh(){if(this._state===l){c.push(this)}if(!i||c.length===1){refreshTimeout()}this._state=d}clear(){this._state=u;this._idleStart=-1}}t.exports={setTimeout(t,n,o){return n<=s?setTimeout(t,n,o):new FastTimer(t,n,o)},clearTimeout(t){if(t[A]){t.clear()}else{clearTimeout(t)}},setFastTimeout(t,n,s){return new FastTimer(t,n,s)},clearFastTimeout(t){t.clear()},now(){return n},tick(t=0){n+=t-s+1;onTick();onTick()},reset(){n=0;c.length=0;clearTimeout(i);i=null},kFastTimer:A}},9634:(t,n,s)=>{"use strict";const{kConstruct:o}=s(109);const{urlEquals:i,getFieldValues:A}=s(6798);const{kEnumerableProperty:c,isDisturbed:l}=s(3440);const{webidl:u}=s(5893);const{Response:d,cloneResponse:g,fromInnerResponse:h}=s(9051);const{Request:f,fromInnerRequest:E}=s(9967);const{kState:p}=s(3627);const{fetching:C}=s(4398);const{urlIsHttpHttpsScheme:I,createDeferredPromise:m,readAllBytes:B}=s(3168);const Q=s(4589);class Cache{#T;constructor(){if(arguments[0]!==o){u.illegalConstructor()}u.util.markAsUncloneable(this);this.#T=arguments[1]}async match(t,n={}){u.brandCheck(this,Cache);const s="Cache.match";u.argumentLengthCheck(arguments,1,s);t=u.converters.RequestInfo(t,s,"request");n=u.converters.CacheQueryOptions(n,s,"options");const o=this.#N(t,n,1);if(o.length===0){return}return o[0]}async matchAll(t=undefined,n={}){u.brandCheck(this,Cache);const s="Cache.matchAll";if(t!==undefined)t=u.converters.RequestInfo(t,s,"request");n=u.converters.CacheQueryOptions(n,s,"options");return this.#N(t,n)}async add(t){u.brandCheck(this,Cache);const n="Cache.add";u.argumentLengthCheck(arguments,1,n);t=u.converters.RequestInfo(t,n,"request");const s=[t];const o=this.addAll(s);return await o}async addAll(t){u.brandCheck(this,Cache);const n="Cache.addAll";u.argumentLengthCheck(arguments,1,n);const s=[];const o=[];for(let s of t){if(s===undefined){throw u.errors.conversionFailed({prefix:n,argument:"Argument 1",types:["undefined is not allowed"]})}s=u.converters.RequestInfo(s);if(typeof s==="string"){continue}const t=s[p];if(!I(t.url)||t.method!=="GET"){throw u.errors.exception({header:n,message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const c of t){const t=new f(c)[p];if(!I(t.url)){throw u.errors.exception({header:n,message:"Expected http/s scheme."})}t.initiator="fetch";t.destination="subresource";o.push(t);const l=m();i.push(C({request:t,processResponse(t){if(t.type==="error"||t.status===206||t.status<200||t.status>299){l.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(t.headersList.contains("vary")){const n=A(t.headersList.get("vary"));for(const t of n){if(t==="*"){l.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const t of i){t.abort()}return}}}},processResponseEndOfBody(t){if(t.aborted){l.reject(new DOMException("aborted","AbortError"));return}l.resolve(t)}}));s.push(l.promise)}const c=Promise.all(s);const l=await c;const d=[];let g=0;for(const t of l){const n={type:"put",request:o[g],response:t};d.push(n);g++}const h=m();let E=null;try{this.#F(d)}catch(t){E=t}queueMicrotask(()=>{if(E===null){h.resolve(undefined)}else{h.reject(E)}});return h.promise}async put(t,n){u.brandCheck(this,Cache);const s="Cache.put";u.argumentLengthCheck(arguments,2,s);t=u.converters.RequestInfo(t,s,"request");n=u.converters.Response(n,s,"response");let o=null;if(t instanceof f){o=t[p]}else{o=new f(t)[p]}if(!I(o.url)||o.method!=="GET"){throw u.errors.exception({header:s,message:"Expected an http/s scheme when method is not GET"})}const i=n[p];if(i.status===206){throw u.errors.exception({header:s,message:"Got 206 status"})}if(i.headersList.contains("vary")){const t=A(i.headersList.get("vary"));for(const n of t){if(n==="*"){throw u.errors.exception({header:s,message:"Got * vary field value"})}}}if(i.body&&(l(i.body.stream)||i.body.stream.locked)){throw u.errors.exception({header:s,message:"Response body is locked or disturbed"})}const c=g(i);const d=m();if(i.body!=null){const t=i.body.stream;const n=t.getReader();B(n).then(d.resolve,d.reject)}else{d.resolve(undefined)}const h=[];const E={type:"put",request:o,response:c};h.push(E);const C=await d.promise;if(c.body!=null){c.body.source=C}const Q=m();let y=null;try{this.#F(h)}catch(t){y=t}queueMicrotask(()=>{if(y===null){Q.resolve()}else{Q.reject(y)}});return Q.promise}async delete(t,n={}){u.brandCheck(this,Cache);const s="Cache.delete";u.argumentLengthCheck(arguments,1,s);t=u.converters.RequestInfo(t,s,"request");n=u.converters.CacheQueryOptions(n,s,"options");let o=null;if(t instanceof f){o=t[p];if(o.method!=="GET"&&!n.ignoreMethod){return false}}else{Q(typeof t==="string");o=new f(t)[p]}const i=[];const A={type:"delete",request:o,options:n};i.push(A);const c=m();let l=null;let d;try{d=this.#F(i)}catch(t){l=t}queueMicrotask(()=>{if(l===null){c.resolve(!!d?.length)}else{c.reject(l)}});return c.promise}async keys(t=undefined,n={}){u.brandCheck(this,Cache);const s="Cache.keys";if(t!==undefined)t=u.converters.RequestInfo(t,s,"request");n=u.converters.CacheQueryOptions(n,s,"options");let o=null;if(t!==undefined){if(t instanceof f){o=t[p];if(o.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){o=new f(t)[p]}}const i=m();const A=[];if(t===undefined){for(const t of this.#T){A.push(t[0])}}else{const t=this.#x(o,n);for(const n of t){A.push(n[0])}}queueMicrotask(()=>{const t=[];for(const n of A){const s=E(n,(new AbortController).signal,"immutable");t.push(s)}i.resolve(Object.freeze(t))});return i.promise}#F(t){const n=this.#T;const s=[...n];const o=[];const i=[];try{for(const s of t){if(s.type!=="delete"&&s.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(s.type==="delete"&&s.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#x(s.request,s.options,o).length){throw new DOMException("???","InvalidStateError")}let t;if(s.type==="delete"){t=this.#x(s.request,s.options);if(t.length===0){return[]}for(const s of t){const t=n.indexOf(s);Q(t!==-1);n.splice(t,1)}}else if(s.type==="put"){if(s.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=s.request;if(!I(i.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(s.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}t=this.#x(s.request);for(const s of t){const t=n.indexOf(s);Q(t!==-1);n.splice(t,1)}n.push([s.request,s.response]);o.push([s.request,s.response])}i.push([s.request,s.response])}return i}catch(t){this.#T.length=0;this.#T=s;throw t}}#x(t,n,s){const o=[];const i=s??this.#T;for(const s of i){const[i,A]=s;if(this.#M(t,i,A,n)){o.push(s)}}return o}#M(t,n,s=null,o){const c=new URL(t.url);const l=new URL(n.url);if(o?.ignoreSearch){l.search="";c.search=""}if(!i(c,l,true)){return false}if(s==null||o?.ignoreVary||!s.headersList.contains("vary")){return true}const u=A(s.headersList.get("vary"));for(const s of u){if(s==="*"){return false}const o=n.headersList.get(s);const i=t.headersList.get(s);if(o!==i){return false}}return true}#N(t,n,s=Infinity){let o=null;if(t!==undefined){if(t instanceof f){o=t[p];if(o.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){o=new f(t)[p]}}const i=[];if(t===undefined){for(const t of this.#T){i.push(t[1])}}else{const t=this.#x(o,n);for(const n of t){i.push(n[1])}}const A=[];for(const t of i){const n=h(t,"immutable");A.push(n.clone());if(A.length>=s){break}}return Object.freeze(A)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:c,matchAll:c,add:c,addAll:c,put:c,delete:c,keys:c});const y=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:()=>false}];u.converters.CacheQueryOptions=u.dictionaryConverter(y);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...y,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(d);u.converters["sequence<RequestInfo>"]=u.sequenceConverter(u.converters.RequestInfo);t.exports={Cache:Cache}},3245:(t,n,s)=>{"use strict";const{kConstruct:o}=s(109);const{Cache:i}=s(9634);const{webidl:A}=s(5893);const{kEnumerableProperty:c}=s(3440);class CacheStorage{#U=new Map;constructor(){if(arguments[0]!==o){A.illegalConstructor()}A.util.markAsUncloneable(this)}async match(t,n={}){A.brandCheck(this,CacheStorage);A.argumentLengthCheck(arguments,1,"CacheStorage.match");t=A.converters.RequestInfo(t);n=A.converters.MultiCacheQueryOptions(n);if(n.cacheName!=null){if(this.#U.has(n.cacheName)){const s=this.#U.get(n.cacheName);const A=new i(o,s);return await A.match(t,n)}}else{for(const s of this.#U.values()){const A=new i(o,s);const c=await A.match(t,n);if(c!==undefined){return c}}}}async has(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.has";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");return this.#U.has(t)}async open(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.open";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");if(this.#U.has(t)){const n=this.#U.get(t);return new i(o,n)}const s=[];this.#U.set(t,s);return new i(o,s)}async delete(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.delete";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");return this.#U.delete(t)}async keys(){A.brandCheck(this,CacheStorage);const t=this.#U.keys();return[...t]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:c,has:c,open:c,delete:c,keys:c});t.exports={CacheStorage:CacheStorage}},109:(t,n,s)=>{"use strict";t.exports={kConstruct:s(6443).kConstruct}},6798:(t,n,s)=>{"use strict";const o=s(4589);const{URLSerializer:i}=s(1900);const{isValidHeaderName:A}=s(3168);function urlEquals(t,n,s=false){const o=i(t,s);const A=i(n,s);return o===A}function getFieldValues(t){o(t!==null);const n=[];for(let s of t.split(",")){s=s.trim();if(A(s)){n.push(s)}}return n}t.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:t=>{"use strict";const n=1024;const s=4096;t.exports={maxAttributeValueSize:n,maxNameValuePairSize:s}},9061:(t,n,s)=>{"use strict";const{parseSetCookie:o}=s(1978);const{stringify:i}=s(7797);const{webidl:A}=s(5893);const{Headers:c}=s(660);function getCookies(t){A.argumentLengthCheck(arguments,1,"getCookies");A.brandCheck(t,c,{strict:false});const n=t.get("cookie");const s={};if(!n){return s}for(const t of n.split(";")){const[n,...o]=t.split("=");s[n.trim()]=o.join("=")}return s}function deleteCookie(t,n,s){A.brandCheck(t,c,{strict:false});const o="deleteCookie";A.argumentLengthCheck(arguments,2,o);n=A.converters.DOMString(n,o,"name");s=A.converters.DeleteCookieAttributes(s);setCookie(t,{name:n,value:"",expires:new Date(0),...s})}function getSetCookies(t){A.argumentLengthCheck(arguments,1,"getSetCookies");A.brandCheck(t,c,{strict:false});const n=t.getSetCookie();if(!n){return[]}return n.map(t=>o(t))}function setCookie(t,n){A.argumentLengthCheck(arguments,2,"setCookie");A.brandCheck(t,c,{strict:false});n=A.converters.Cookie(n);const s=i(n);if(s){t.append("Set-Cookie",s)}}A.converters.DeleteCookieAttributes=A.dictionaryConverter([{converter:A.nullableConverter(A.converters.DOMString),key:"path",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"domain",defaultValue:()=>null}]);A.converters.Cookie=A.dictionaryConverter([{converter:A.converters.DOMString,key:"name"},{converter:A.converters.DOMString,key:"value"},{converter:A.nullableConverter(t=>{if(typeof t==="number"){return A.converters["unsigned long long"](t)}return new Date(t)}),key:"expires",defaultValue:()=>null},{converter:A.nullableConverter(A.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"path",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.boolean),key:"secure",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:A.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:A.sequenceConverter(A.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);t.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(t,n,s)=>{"use strict";const{maxNameValuePairSize:o,maxAttributeValueSize:i}=s(1276);const{isCTLExcludingHtab:A}=s(7797);const{collectASequenceOfCodePointsFast:c}=s(1900);const l=s(4589);function parseSetCookie(t){if(A(t)){return null}let n="";let s="";let i="";let l="";if(t.includes(";")){const o={position:0};n=c(";",t,o);s=t.slice(o.position)}else{n=t}if(!n.includes("=")){l=n}else{const t={position:0};i=c("=",n,t);l=n.slice(t.position+1)}i=i.trim();l=l.trim();if(i.length+l.length>o){return null}return{name:i,value:l,...parseUnparsedAttributes(s)}}function parseUnparsedAttributes(t,n={}){if(t.length===0){return n}l(t[0]===";");t=t.slice(1);let s="";if(t.includes(";")){s=c(";",t,{position:0});t=t.slice(s.length)}else{s=t;t=""}let o="";let A="";if(s.includes("=")){const t={position:0};o=c("=",s,t);A=s.slice(t.position+1)}else{o=s}o=o.trim();A=A.trim();if(A.length>i){return parseUnparsedAttributes(t,n)}const u=o.toLowerCase();if(u==="expires"){const t=new Date(A);n.expires=t}else if(u==="max-age"){const s=A.charCodeAt(0);if((s<48||s>57)&&A[0]!=="-"){return parseUnparsedAttributes(t,n)}if(!/^\d+$/.test(A)){return parseUnparsedAttributes(t,n)}const o=Number(A);n.maxAge=o}else if(u==="domain"){let t=A;if(t[0]==="."){t=t.slice(1)}t=t.toLowerCase();n.domain=t}else if(u==="path"){let t="";if(A.length===0||A[0]!=="/"){t="/"}else{t=A}n.path=t}else if(u==="secure"){n.secure=true}else if(u==="httponly"){n.httpOnly=true}else if(u==="samesite"){const t=A.toLowerCase();if(t==="none"){n.sameSite="None"}else if(t==="strict"){n.sameSite="Strict"}else if(t==="lax"){n.sameSite="Lax"}}else{n.unparsed??=[];n.unparsed.push(`${o}=${A}`)}return parseUnparsedAttributes(t,n)}t.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:t=>{"use strict";function isCTLExcludingHtab(t){for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(s>=0&&s<=8||s>=10&&s<=31||s===127){return true}}return false}function validateCookieName(t){for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(s<33||s>126||s===34||s===40||s===41||s===60||s===62||s===64||s===44||s===59||s===58||s===92||s===47||s===91||s===93||s===63||s===61||s===123||s===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(t){let n=t.length;let s=0;if(t[0]==='"'){if(n===1||t[n-1]!=='"'){throw new Error("Invalid cookie value")}--n;++s}while(s<n){const n=t.charCodeAt(s++);if(n<33||n>126||n===34||n===44||n===59||n===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(t){for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(s<32||s>126||s===59){throw new Error("Invalid cookie path")}}}function isLetterOrDigit(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function validateCookieDomain(t){if(t===" "){return}if(t.length>255){throw new Error("Invalid cookie domain")}let n=0;for(let s=0;s<t.length;++s){const o=t.charCodeAt(s);if(o===46){if(n===0){throw new Error("Invalid cookie domain")}if(t.charCodeAt(s-1)===45){throw new Error("Invalid cookie domain")}n=0;continue}if(n===0&&!isLetterOrDigit(o)){throw new Error("Invalid cookie domain")}if(!isLetterOrDigit(o)&&o!==45){throw new Error("Invalid cookie domain")}if(++n>63){throw new Error("Invalid cookie domain")}}if(n===0||t.charCodeAt(t.length-1)===45){throw new Error("Invalid cookie domain")}}const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const o=Array(61).fill(0).map((t,n)=>n.toString().padStart(2,"0"));function toIMFDate(t){if(typeof t==="number"){t=new Date(t)}return`${n[t.getUTCDay()]}, ${o[t.getUTCDate()]} ${s[t.getUTCMonth()]} ${t.getUTCFullYear()} ${o[t.getUTCHours()]}:${o[t.getUTCMinutes()]}:${o[t.getUTCSeconds()]} GMT`}function validateCookieMaxAge(t){if(t<0){throw new Error("Invalid cookie max-age")}}function stringify(t){if(t.name.length===0){return null}validateCookieName(t.name);validateCookieValue(t.value);const n=[`${t.name}=${t.value}`];if(t.name.startsWith("__Secure-")){t.secure=true}if(t.name.startsWith("__Host-")){t.secure=true;t.domain=null;t.path="/"}if(t.secure){n.push("Secure")}if(t.httpOnly){n.push("HttpOnly")}if(typeof t.maxAge==="number"){validateCookieMaxAge(t.maxAge);n.push(`Max-Age=${t.maxAge}`)}if(t.domain){validateCookieDomain(t.domain);n.push(`Domain=${t.domain}`)}if(t.path){validateCookiePath(t.path);n.push(`Path=${t.path}`)}if(t.expires&&t.expires.toString()!=="Invalid Date"){n.push(`Expires=${toIMFDate(t.expires)}`)}if(t.sameSite){n.push(`SameSite=${t.sameSite}`)}for(const s of t.unparsed){if(!s.includes("=")){throw new Error("Invalid unparsed")}const[t,...o]=s.split("=");const i=t.trim();const A=o.join("=");validateCookieName(i);validateCookieValue(A);n.push(`${i}=${A}`)}return n.join("; ")}t.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(t,n,s)=>{"use strict";const o=s(4573);const{Transform:i}=s(7075);const{isASCIINumber:A,isValidLastEventId:c}=s(4811);const l=[239,187,191];const u=10;const d=13;const g=58;const h=32;const f=o.kStringMaxLength;const E=Buffer.from("data");const p=Buffer.from("event");const C=Buffer.from("id");const I=Buffer.from("retry");const m=1024;const B=131072;const Q=128;function isASCIINumberBytes(t,n){if(n>=t.length){return false}for(let s=n;s<t.length;s++){if(t[s]<48||t[s]>57){return false}}return true}function isValidLastEventIdBytes(t,n){for(let s=n;s<t.length;s++){if(t[s]===0){return false}}return true}function isFieldName(t,n,s){if(n!==s.length){return false}for(let o=0;o<n;o++){if(t[o]!==s[o]){return false}}return true}function createMaxEventSizeExceededError(){const t=new Error("EventSource message size exceeded");t.aborted=false;return t}class EventSourceStream extends i{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;chunks=[];chunkIndex=0;pos=0;lineChunkIndex=0;linePos=0;lineLength=0;eventSize=0;eventFieldSizes={data:0,event:0,id:0,retry:0};dataLineCount=0;maxEventSize;maxDataLines;maxBufferedChunks;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(t={}){t.readableObjectMode=true;super(t);this.state=t.eventSourceSettings||{};this.maxEventSize=t.maxEventSize??f;const n=this.maxEventSize>0?Math.min(B,Math.max(m,Math.floor(this.maxEventSize/Q))):0;this.maxDataLines=n;this.maxBufferedChunks=n;if(t.push){this.push=t.push}}_transform(t,n,s){if(t.length===0){s();return}if(this.maxEventSize>0&&this.chunks.length>=this.maxBufferedChunks&&t[0]!==u&&t[0]!==d){s(createMaxEventSizeExceededError());return}this.chunks.push(t);if(this.checkBOM){if(this.handleBOM()){s();return}}while(this.hasCurrentByte()){const t=this.currentByte();if(this.eventEndCheck){if(this.crlfCheck){if(t===u){this.crlfCheck=false;this.consumeCurrentByte();continue}this.crlfCheck=false}if(t===u||t===d){if(t===d){this.crlfCheck=true}this.consumeCurrentByte();if(this.hasPendingEvent()){this.processEvent(this.event)}this.clearEvent();continue}this.eventEndCheck=false;continue}if(t===u||t===d){if(t===d){this.crlfCheck=true}try{this.parseLine(this.readLine(),this.event)}catch(t){s(t);return}this.consumeCurrentByte();this.eventEndCheck=true;continue}if(this.maxEventSize>0&&++this.lineLength>this.maxEventSize+7){s(createMaxEventSizeExceededError());return}this.advanceCursor()}s()}_destroy(t,n){this.chunks.length=0;this.clearEvent();super._destroy(t,n)}parseLine(t,n){if(t.length===0){return}const s=t.indexOf(g);if(s===0){return}let o=t.length;let i=t.length;if(s!==-1){o=s;i=s+1;if(t[i]===h){++i}}if(isFieldName(t,o,E)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines){throw createMaxEventSizeExceededError()}const s=t.length-i;const o=this.eventFieldSizes.data+(n.data===undefined?0:1)+s;this.setEventFieldSize("data",o);const A=t.toString("utf8",i);if(n.data===undefined){n.data=A}else{n.data+=`\n${A}`}this.dataLineCount++;return}if(isFieldName(t,o,I)){if(isASCIINumberBytes(t,i)){this.setEventFieldSize("retry",t.length-i);n.retry=t.toString("utf8",i)}return}if(isFieldName(t,o,C)){if(isValidLastEventIdBytes(t,i)){this.setEventFieldSize("id",t.length-i);n.id=t.toString("utf8",i)}return}if(isFieldName(t,o,p)){if(i<t.length){this.setEventFieldSize("event",t.length-i);n.event=t.toString("utf8",i)}}}setEventFieldSize(t,n){const s=this.eventSize-this.eventFieldSizes[t]+n;if(this.maxEventSize>0&&s>this.maxEventSize){throw createMaxEventSizeExceededError()}this.eventSize=s;this.eventFieldSizes[t]=n}processEvent(t){if(t.retry&&A(t.retry)){this.state.reconnectionTime=parseInt(t.retry,10)}if(t.id&&c(t.id)){this.state.lastEventId=t.id}if(t.data!==undefined){this.push({type:t.event||"message",options:{data:t.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event.data=undefined;this.event.event=undefined;this.event.id=undefined;this.event.retry=undefined;this.eventSize=0;this.dataLineCount=0;this.eventFieldSizes.data=0;this.eventFieldSizes.event=0;this.eventFieldSizes.id=0;this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==undefined||this.event.event!==undefined||this.event.id!==undefined||this.event.retry!==undefined}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor();this.syncLineStartToCursor()}advanceCursor(){this.pos++;while(this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length){this.chunkIndex++;this.pos=0}}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex;this.linePos=this.pos;this.lineLength=0;this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){const t=this.lineChunkIndex;this.chunks.splice(0,t);this.lineChunkIndex=0;this.chunkIndex-=t}if(this.chunkIndex===this.chunks.length){this.chunks.length=0;this.chunkIndex=0;this.pos=0;this.lineChunkIndex=0;this.linePos=0}}readLine(){if(this.lineChunkIndex===this.chunkIndex){return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos)}const t=[];let n=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){const o=this.chunks[s];const i=s===this.lineChunkIndex?this.linePos:0;const A=s===this.chunkIndex?this.pos:o.length;const c=o.subarray(i,A);n+=c.length;t.push(c)}return Buffer.concat(t,n)}peekBufferedByte(t){let n=this.lineChunkIndex;let s=this.linePos;while(n<this.chunks.length){const o=this.chunks[n];const i=o.length-s;if(t<i){return o[s+t]}t-=i;n++;s=0}}discardLeadingBytes(t){while(t>0&&this.lineChunkIndex<this.chunks.length){const n=this.chunks[this.lineChunkIndex];const s=n.length-this.linePos;if(t<s){this.linePos+=t;t=0}else{t-=s;this.lineChunkIndex++;this.linePos=0}}this.chunkIndex=this.lineChunkIndex;this.pos=this.linePos;this.dropConsumedChunks()}handleBOM(){const t=this.peekBufferedByte(0);const n=this.peekBufferedByte(1);const s=this.peekBufferedByte(2);if(n===undefined){if(t===l[0]){return true}this.checkBOM=false;return true}if(s===undefined){if(t===l[0]&&n===l[1]){return true}this.checkBOM=false;return false}if(t===l[0]&&n===l[1]&&s===l[2]){this.discardLeadingBytes(3)}this.checkBOM=false;return!this.hasCurrentByte()}}t.exports={EventSourceStream:EventSourceStream}},1238:(t,n,s)=>{"use strict";const{pipeline:o}=s(7075);const{fetching:i}=s(4398);const{makeRequest:A}=s(9967);const{webidl:c}=s(5893);const{EventSourceStream:l}=s(4031);const{parseMIMEType:u}=s(1900);const{createFastMessageEvent:d}=s(5188);const{isNetworkError:g}=s(9051);const{delay:h}=s(4811);const{kEnumerableProperty:f}=s(3440);const{environmentSettingsObject:E}=s(3168);const{getGlobalDispatcher:p}=s(2581);let C=false;const I=3e3;const m=0;const B=1;const Q=2;const y="anonymous";const w="use-credentials";class EventSource extends EventTarget{#L={open:null,error:null,message:null};#P=null;#O=false;#H=m;#_=null;#G=null;#n;#Q;constructor(t,n={}){super();c.util.markAsUncloneable(this);const s="EventSource constructor";c.argumentLengthCheck(arguments,1,s);if(!C){C=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}t=c.converters.USVString(t,s,"url");n=c.converters.EventSourceInitDict(n,s,"eventSourceInitDict");this.#n=n.dispatcher;this.#Q={lastEventId:"",reconnectionTime:I};const o=E;let i;try{i=new URL(t,o.settingsObject.baseUrl);this.#Q.origin=i.origin}catch(t){throw new DOMException(t,"SyntaxError")}this.#P=i.href;let l=y;if(n.withCredentials){l=w;this.#O=true}const u={redirect:"follow",keepalive:true,mode:"cors",credentials:l==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};u.client=E.settingsObject;u.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];u.cache="no-store";u.initiator="other";u.urlList=[new URL(this.#P)];this.#_=A(u);this.#V()}get readyState(){return this.#H}get url(){return this.#P}get withCredentials(){return this.#O}#V(){if(this.#H===Q)return;this.#H=m;const t={request:this.#_,dispatcher:this.#n};const processEventSourceEndOfBody=t=>{if(g(t)){this.dispatchEvent(new Event("error"));this.close()}this.#Y()};t.processResponseEndOfBody=processEventSourceEndOfBody;t.processResponse=t=>{if(g(t)){if(t.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#Y();return}}const n=t.headersList.get("content-type",true);const s=n!==null?u(n):"failure";const i=s!=="failure"&&s.essence==="text/event-stream";if(t.status!==200||i===false){this.close();this.dispatchEvent(new Event("error"));return}this.#H=B;this.dispatchEvent(new Event("open"));this.#Q.origin=t.urlList[t.urlList.length-1].origin;const A=new l({eventSourceSettings:this.#Q,maxEventSize:this.#n.eventSourceOptions?.maxEventSize,push:t=>{this.dispatchEvent(d(t.type,t.options))}});o(t.body.stream,A,t=>{if(t?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}})};this.#G=i(t)}async#Y(){if(this.#H===Q)return;this.#H=m;this.dispatchEvent(new Event("error"));await h(this.#Q.reconnectionTime);if(this.#H!==m)return;if(this.#Q.lastEventId.length){this.#_.headersList.set("last-event-id",this.#Q.lastEventId,true)}this.#V()}close(){c.brandCheck(this,EventSource);if(this.#H===Q)return;this.#H=Q;this.#G.abort();this.#_=null}get onopen(){return this.#L.open}set onopen(t){if(this.#L.open){this.removeEventListener("open",this.#L.open)}if(typeof t==="function"){this.#L.open=t;this.addEventListener("open",t)}else{this.#L.open=null}}get onmessage(){return this.#L.message}set onmessage(t){if(this.#L.message){this.removeEventListener("message",this.#L.message)}if(typeof t==="function"){this.#L.message=t;this.addEventListener("message",t)}else{this.#L.message=null}}get onerror(){return this.#L.error}set onerror(t){if(this.#L.error){this.removeEventListener("error",this.#L.error)}if(typeof t==="function"){this.#L.error=t;this.addEventListener("error",t)}else{this.#L.error=null}}}const S={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:m,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:B,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:Q,writable:false}};Object.defineProperties(EventSource,S);Object.defineProperties(EventSource.prototype,S);Object.defineProperties(EventSource.prototype,{close:f,onerror:f,onmessage:f,onopen:f,readyState:f,url:f,withCredentials:f});c.converters.EventSourceInitDict=c.dictionaryConverter([{key:"withCredentials",converter:c.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:c.converters.any,defaultValue:()=>p()}]);t.exports={EventSource:EventSource,defaultReconnectionTime:I}},4811:t=>{"use strict";function isValidLastEventId(t){return t.indexOf("\0")===-1}function isASCIINumber(t){if(t.length===0)return false;for(let n=0;n<t.length;n++){if(t.charCodeAt(n)<48||t.charCodeAt(n)>57)return false}return true}function delay(t){return new Promise(n=>{setTimeout(n,t).unref()})}t.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(t,n,s)=>{"use strict";const o=s(3440);const{ReadableStreamFrom:i,isBlobLike:A,isReadableStreamLike:c,readableStreamClose:l,createDeferredPromise:u,fullyReadBody:d,extractMimeType:g,utf8DecodeBytes:h}=s(3168);const{FormData:f}=s(5910);const{kState:E}=s(3627);const{webidl:p}=s(5893);const{Blob:C}=s(4573);const I=s(4589);const{isErrored:m,isDisturbed:B}=s(7075);const{isArrayBuffer:Q}=s(3429);const{serializeAMimeType:y}=s(1900);const{multipartFormDataParser:w}=s(116);let S;try{const t=s(7598);S=n=>t.randomInt(0,n)}catch{S=t=>Math.floor(Math.random(t))}const R=new TextEncoder;function noop(){}const D=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let k;if(D){k=new FinalizationRegistry(t=>{const n=t.deref();if(n&&!n.locked&&!B(n)&&!m(n)){n.cancel("Response object has been garbage collected").catch(noop)}})}function extractBody(t,n=false){let s=null;if(t instanceof ReadableStream){s=t}else if(A(t)){s=t.stream()}else{s=new ReadableStream({async pull(t){const n=typeof d==="string"?R.encode(d):d;if(n.byteLength){t.enqueue(n)}queueMicrotask(()=>l(t))},start(){},type:"bytes"})}I(c(s));let u=null;let d=null;let g=null;let h=null;if(typeof t==="string"){d=t;h="text/plain;charset=UTF-8"}else if(t instanceof URLSearchParams){d=t.toString();h="application/x-www-form-urlencoded;charset=UTF-8"}else if(Q(t)){d=new Uint8Array(t.slice())}else if(ArrayBuffer.isView(t)){d=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength))}else if(o.isFormDataLike(t)){const n=`----formdata-undici-0${`${S(1e11)}`.padStart(11,"0")}`;const s=`--${n}\r\nContent-Disposition: form-data`
|
||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=t=>t.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=t=>t.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);g=0;let A=false;for(const[n,c]of t){if(typeof c==="string"){const t=R.encode(s+`; name="${escape(normalizeLinefeeds(n))}"`+`\r\n\r\n${normalizeLinefeeds(c)}\r\n`);o.push(t);g+=t.byteLength}else{const t=R.encode(`${s}; name="${escape(normalizeLinefeeds(n))}"`+(c.name?`; filename="${escape(c.name)}"`:"")+"\r\n"+`Content-Type: ${c.type||"application/octet-stream"}\r\n\r\n`);o.push(t,c,i);if(typeof c.size==="number"){g+=t.byteLength+c.size+i.byteLength}else{A=true}}}const c=R.encode(`--${n}--\r\n`);o.push(c);g+=c.byteLength;if(A){g=null}d=t;u=async function*(){for(const t of o){if(t.stream){yield*t.stream()}else{yield t}}};h=`multipart/form-data; boundary=${n}`}else if(A(t)){d=t;g=t.size;if(t.type){h=t.type}}else if(typeof t[Symbol.asyncIterator]==="function"){if(n){throw new TypeError("keepalive")}if(o.isDisturbed(t)||t.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=t instanceof ReadableStream?t:i(t)}if(typeof d==="string"||o.isBuffer(d)){g=Buffer.byteLength(d)}if(u!=null){let n;s=new ReadableStream({async start(){n=u(t)[Symbol.asyncIterator]()},async pull(t){const{value:o,done:i}=await n.next();if(i){queueMicrotask(()=>{t.close();t.byobRequest?.respond(0)})}else{if(!m(s)){const n=new Uint8Array(o);if(n.byteLength){t.enqueue(n)}}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}const f={stream:s,source:d,length:g};return[f,h]}function safelyExtractBody(t,n=false){if(t instanceof ReadableStream){I(!o.isDisturbed(t),"The body has already been consumed.");I(!t.locked,"The stream is locked.")}return extractBody(t,n)}function cloneBody(t,n){const[s,o]=n.stream.tee();n.stream=s;return{stream:o,length:n.length,source:n.source}}function throwIfAborted(t){if(t.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(t){const n={blob(){return consumeBody(this,t=>{let n=bodyMimeType(this);if(n===null){n=""}else if(n){n=y(n)}return new C([t],{type:n})},t)},arrayBuffer(){return consumeBody(this,t=>new Uint8Array(t).buffer,t)},text(){return consumeBody(this,h,t)},json(){return consumeBody(this,parseJSONFromBytes,t)},formData(){return consumeBody(this,t=>{const n=bodyMimeType(this);if(n!==null){switch(n.essence){case"multipart/form-data":{const s=w(t,n);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const o=new f;o[E]=s;return o}case"application/x-www-form-urlencoded":{const n=new URLSearchParams(t.toString());const s=new f;for(const[t,o]of n){s.append(t,o)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return consumeBody(this,t=>new Uint8Array(t),t)}};return n}function mixinBody(t){Object.assign(t.prototype,bodyMixinMethods(t))}async function consumeBody(t,n,s){p.brandCheck(t,s);if(bodyUnusable(t)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(t[E]);const o=u();const errorSteps=t=>o.reject(t);const successSteps=t=>{try{o.resolve(n(t))}catch(t){errorSteps(t)}};if(t[E].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await d(t[E].body,successSteps,errorSteps);return o.promise}function bodyUnusable(t){const n=t[E].body;return n!=null&&(n.stream.locked||o.isDisturbed(n.stream))}function parseJSONFromBytes(t){return JSON.parse(h(t))}function bodyMimeType(t){const n=t[E].headersList;const s=g(n);if(s==="failure"){return null}return s}t.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:k,hasFinalizationRegistry:D,bodyUnusable:bodyUnusable}},4495:t=>{"use strict";const n=["GET","HEAD","POST"];const s=new Set(n);const o=[101,204,205,304];const i=[301,302,303,307,308];const A=new Set(i);const c=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const l=new Set(c);const u=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const d=new Set(u);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const f=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const p=["omit","same-origin","include"];const C=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const I=["content-encoding","content-language","content-location","content-type","content-length"];const m=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const y=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const w=new Set(y);t.exports={subresource:y,forbiddenMethods:B,requestBodyHeader:I,referrerPolicy:u,requestRedirect:g,requestMode:E,requestCredentials:p,requestCache:C,redirectStatus:i,corsSafeListedMethods:n,nullBodyStatus:o,safeMethods:h,badPorts:c,requestDuplex:m,subresourceSet:w,badPortsSet:l,redirectStatusSet:A,corsSafeListedMethodsSet:s,safeMethodsSet:f,forbiddenMethodsSet:Q,referrerPolicySet:d}},1900:(t,n,s)=>{"use strict";const o=s(4589);const i=new TextEncoder;const A=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const c=/[\u000A\u000D\u0009\u0020]/;const l=/[\u0009\u000A\u000C\u000D\u0020]/g;const u=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(t){o(t.protocol==="data:");let n=URLSerializer(t,true);n=n.slice(5);const s={position:0};let i=collectASequenceOfCodePointsFast(",",n,s);const A=i.length;i=removeASCIIWhitespace(i,true,true);if(s.position>=n.length){return"failure"}s.position++;const c=n.slice(A+1);let l=stringPercentDecode(c);if(/;(\u0020){0,}base64$/i.test(i)){const t=isomorphicDecode(l);l=forgivingBase64(t);if(l==="failure"){return"failure"}i=i.slice(0,-6);i=i.replace(/(\u0020)+$/,"");i=i.slice(0,-1)}if(i.startsWith(";")){i="text/plain"+i}let u=parseMIMEType(i);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:l}}function URLSerializer(t,n=false){if(!n){return t.href}const s=t.href;const o=t.hash.length;const i=o===0?s:s.substring(0,s.length-o);if(!o&&s.endsWith("#")){return i.slice(0,-1)}return i}function collectASequenceOfCodePoints(t,n,s){let o="";while(s.position<n.length&&t(n[s.position])){o+=n[s.position];s.position++}return o}function collectASequenceOfCodePointsFast(t,n,s){const o=n.indexOf(t,s.position);const i=s.position;if(o===-1){s.position=n.length;return n.slice(i)}s.position=o;return n.slice(i,s.position)}function stringPercentDecode(t){const n=i.encode(t);return percentDecode(n)}function isHexCharByte(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexByteToNumber(t){return t>=48&&t<=57?t-48:(t&223)-55}function percentDecode(t){const n=t.length;const s=new Uint8Array(n);let o=0;for(let i=0;i<n;++i){const n=t[i];if(n!==37){s[o++]=n}else if(n===37&&!(isHexCharByte(t[i+1])&&isHexCharByte(t[i+2]))){s[o++]=37}else{s[o++]=hexByteToNumber(t[i+1])<<4|hexByteToNumber(t[i+2]);i+=2}}return n===o?s:s.subarray(0,o)}function parseMIMEType(t){t=removeHTTPWhitespace(t,true,true);const n={position:0};const s=collectASequenceOfCodePointsFast("/",t,n);if(s.length===0||!A.test(s)){return"failure"}if(n.position>t.length){return"failure"}n.position++;let o=collectASequenceOfCodePointsFast(";",t,n);o=removeHTTPWhitespace(o,false,true);if(o.length===0||!A.test(o)){return"failure"}const i=s.toLowerCase();const l=o.toLowerCase();const d={type:i,subtype:l,parameters:new Map,essence:`${i}/${l}`};while(n.position<t.length){n.position++;collectASequenceOfCodePoints(t=>c.test(t),t,n);let s=collectASequenceOfCodePoints(t=>t!==";"&&t!=="=",t,n);s=s.toLowerCase();if(n.position<t.length){if(t[n.position]===";"){continue}n.position++}if(n.position>t.length){break}let o=null;if(t[n.position]==='"'){o=collectAnHTTPQuotedString(t,n,true);collectASequenceOfCodePointsFast(";",t,n)}else{o=collectASequenceOfCodePointsFast(";",t,n);o=removeHTTPWhitespace(o,false,true);if(o.length===0){continue}}if(s.length!==0&&A.test(s)&&(o.length===0||u.test(o))&&!d.parameters.has(s)){d.parameters.set(s,o)}}return d}function forgivingBase64(t){t=t.replace(l,"");let n=t.length;if(n%4===0){if(t.charCodeAt(n-1)===61){--n;if(t.charCodeAt(n-1)===61){--n}}}if(n%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(t.length===n?t:t.substring(0,n))){return"failure"}const s=Buffer.from(t,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function collectAnHTTPQuotedString(t,n,s){const i=n.position;let A="";o(t[n.position]==='"');n.position++;while(true){A+=collectASequenceOfCodePoints(t=>t!=='"'&&t!=="\\",t,n);if(n.position>=t.length){break}const s=t[n.position];n.position++;if(s==="\\"){if(n.position>=t.length){A+="\\";break}A+=t[n.position];n.position++}else{o(s==='"');break}}if(s){return A}return t.slice(i,n.position)}function serializeAMimeType(t){o(t!=="failure");const{parameters:n,essence:s}=t;let i=s;for(let[t,s]of n.entries()){i+=";";i+=t;i+="=";if(!A.test(s)){s=s.replace(/(\\|")/g,"\\$1");s='"'+s;s+='"'}i+=s}return i}function isHTTPWhiteSpace(t){return t===13||t===10||t===9||t===32}function removeHTTPWhitespace(t,n=true,s=true){return removeChars(t,n,s,isHTTPWhiteSpace)}function isASCIIWhitespace(t){return t===13||t===10||t===9||t===12||t===32}function removeASCIIWhitespace(t,n=true,s=true){return removeChars(t,n,s,isASCIIWhitespace)}function removeChars(t,n,s,o){let i=0;let A=t.length-1;if(n){while(i<t.length&&o(t.charCodeAt(i)))i++}if(s){while(A>0&&o(t.charCodeAt(A)))A--}return i===0&&A===t.length-1?t:t.slice(i,A+1)}function isomorphicDecode(t){const n=t.length;if((2<<15)-1>n){return String.fromCharCode.apply(null,t)}let s="";let o=0;let i=(2<<15)-1;while(o<n){if(o+i>n){i=n-o}s+=String.fromCharCode.apply(null,t.subarray(o,o+=i))}return s}function minimizeSupportedMimeType(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(t.subtype.endsWith("+json")){return"application/json"}if(t.subtype.endsWith("+xml")){return"application/xml"}return""}t.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:A,isomorphicDecode:isomorphicDecode}},6653:(t,n,s)=>{"use strict";const{kConnected:o,kSize:i}=s(6443);class CompatWeakRef{constructor(t){this.value=t}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(t){this.finalizer=t}register(t,n){if(t.on){t.on("disconnect",()=>{if(t[o]===0&&t[i]===0){this.finalizer(n)}})}}unregister(t){}}t.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(t,n,s)=>{"use strict";const{Blob:o,File:i}=s(4573);const{kState:A}=s(3627);const{webidl:c}=s(5893);class FileLike{constructor(t,n,s={}){const o=n;const i=s.type;const c=s.lastModified??Date.now();this[A]={blobLike:t,name:o,type:i,lastModified:c}}stream(...t){c.brandCheck(this,FileLike);return this[A].blobLike.stream(...t)}arrayBuffer(...t){c.brandCheck(this,FileLike);return this[A].blobLike.arrayBuffer(...t)}slice(...t){c.brandCheck(this,FileLike);return this[A].blobLike.slice(...t)}text(...t){c.brandCheck(this,FileLike);return this[A].blobLike.text(...t)}get size(){c.brandCheck(this,FileLike);return this[A].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[A].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[A].name}get lastModified(){c.brandCheck(this,FileLike);return this[A].lastModified}get[Symbol.toStringTag](){return"File"}}c.converters.Blob=c.interfaceConverter(o);function isFileLike(t){return t instanceof i||t&&(typeof t.stream==="function"||typeof t.arrayBuffer==="function")&&t[Symbol.toStringTag]==="File"}t.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(t,n,s)=>{"use strict";const{isUSVString:o,bufferToLowerCasedHeaderName:i}=s(3440);const{utf8DecodeBytes:A}=s(3168);const{HTTP_TOKEN_CODEPOINTS:c,isomorphicDecode:l}=s(1900);const{isFileLike:u}=s(7114);const{makeEntry:d}=s(5910);const g=s(4589);const{File:h}=s(4573);const f=globalThis.File??h;const E=Buffer.from('form-data; name="');const p=Buffer.from("; filename");const C=Buffer.from("--");const I=Buffer.from("--\r\n");function isAsciiString(t){for(let n=0;n<t.length;++n){if((t.charCodeAt(n)&~127)!==0){return false}}return true}function validateBoundary(t){const n=t.length;if(n<27||n>70){return false}for(let s=0;s<n;++s){const n=t.charCodeAt(s);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95)){return false}}return true}function multipartFormDataParser(t,n){g(n!=="failure"&&n.essence==="multipart/form-data");const s=n.parameters.get("boundary");if(s===undefined){return"failure"}const i=Buffer.from(`--${s}`,"utf8");const c=[];const l={position:0};while(t[l.position]===13&&t[l.position+1]===10){l.position+=2}let h=t.length;while(t[h-1]===10&&t[h-2]===13){h-=2}if(h!==t.length){t=t.subarray(0,h)}while(true){if(t.subarray(l.position,l.position+i.length).equals(i)){l.position+=i.length}else{return"failure"}if(l.position===t.length-2&&bufferStartsWith(t,C,l)||l.position===t.length-4&&bufferStartsWith(t,I,l)){return c}if(t[l.position]!==13||t[l.position+1]!==10){return"failure"}l.position+=2;const n=parseMultipartFormDataHeaders(t,l);if(n==="failure"){return"failure"}let{name:s,filename:h,contentType:E,encoding:p}=n;l.position+=2;let m;{const n=t.indexOf(i.subarray(2),l.position);if(n===-1){return"failure"}m=t.subarray(l.position,n-4);l.position+=m.length;if(p==="base64"){m=Buffer.from(m.toString(),"base64")}}if(t[l.position]!==13||t[l.position+1]!==10){return"failure"}else{l.position+=2}let B;if(h!==null){E??="text/plain";if(!isAsciiString(E)){E=""}B=new f([m],h,{type:E})}else{B=A(Buffer.from(m))}g(o(s));g(typeof B==="string"&&o(B)||u(B));c.push(d(s,B,h))}}function parseMultipartFormDataHeaders(t,n){let s=null;let o=null;let A=null;let u=null;while(true){if(t[n.position]===13&&t[n.position+1]===10){if(s===null){return"failure"}return{name:s,filename:o,contentType:A,encoding:u}}let d=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==58,t,n);d=removeChars(d,true,true,t=>t===9||t===32);if(!c.test(d.toString())){return"failure"}if(t[n.position]!==58){return"failure"}n.position++;collectASequenceOfBytes(t=>t===32||t===9,t,n);switch(i(d)){case"content-disposition":{s=o=null;if(!bufferStartsWith(t,E,n)){return"failure"}n.position+=17;s=parseMultipartFormDataName(t,n);if(s===null){return"failure"}if(bufferStartsWith(t,p,n)){let s=n.position+p.length;if(t[s]===42){n.position+=1;s+=1}if(t[s]!==61||t[s+1]!==34){return"failure"}n.position+=12;o=parseMultipartFormDataName(t,n);if(o===null){return"failure"}}break}case"content-type":{let s=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);s=removeChars(s,false,true,t=>t===9||t===32);A=l(s);break}case"content-transfer-encoding":{let s=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);s=removeChars(s,false,true,t=>t===9||t===32);u=l(s);break}default:{collectASequenceOfBytes(t=>t!==10&&t!==13,t,n)}}if(t[n.position]!==13&&t[n.position+1]!==10){return"failure"}else{n.position+=2}}}function parseMultipartFormDataName(t,n){g(t[n.position-1]===34);let s=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==34,t,n);if(t[n.position]!==34){return null}else{n.position++}s=(new TextDecoder).decode(s).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return s}function collectASequenceOfBytes(t,n,s){let o=s.position;while(o<n.length&&t(n[o])){++o}return n.subarray(s.position,s.position=o)}function removeChars(t,n,s,o){let i=0;let A=t.length-1;if(n){while(i<t.length&&o(t[i]))i++}if(s){while(A>0&&o(t[A]))A--}return i===0&&A===t.length-1?t:t.subarray(i,A+1)}function bufferStartsWith(t,n,s){if(t.length<n.length){return false}for(let o=0;o<n.length;o++){if(n[o]!==t[s.position+o]){return false}}return true}t.exports={multipartFormDataParser:multipartFormDataParser,validateBoundary:validateBoundary}},5910:(t,n,s)=>{"use strict";const{isBlobLike:o,iteratorMixin:i}=s(3168);const{kState:A}=s(3627);const{kEnumerableProperty:c}=s(3440);const{FileLike:l,isFileLike:u}=s(7114);const{webidl:d}=s(5893);const{File:g}=s(4573);const h=s(7975);const f=globalThis.File??g;class FormData{constructor(t){d.util.markAsUncloneable(this);if(t!==undefined){throw d.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[A]=[]}append(t,n,s=undefined){d.brandCheck(this,FormData);const i="FormData.append";d.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(n)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}t=d.converters.USVString(t,i,"name");n=o(n)?d.converters.Blob(n,i,"value",{strict:false}):d.converters.USVString(n,i,"value");s=arguments.length===3?d.converters.USVString(s,i,"filename"):undefined;const c=makeEntry(t,n,s);this[A].push(c)}delete(t){d.brandCheck(this,FormData);const n="FormData.delete";d.argumentLengthCheck(arguments,1,n);t=d.converters.USVString(t,n,"name");this[A]=this[A].filter(n=>n.name!==t)}get(t){d.brandCheck(this,FormData);const n="FormData.get";d.argumentLengthCheck(arguments,1,n);t=d.converters.USVString(t,n,"name");const s=this[A].findIndex(n=>n.name===t);if(s===-1){return null}return this[A][s].value}getAll(t){d.brandCheck(this,FormData);const n="FormData.getAll";d.argumentLengthCheck(arguments,1,n);t=d.converters.USVString(t,n,"name");return this[A].filter(n=>n.name===t).map(t=>t.value)}has(t){d.brandCheck(this,FormData);const n="FormData.has";d.argumentLengthCheck(arguments,1,n);t=d.converters.USVString(t,n,"name");return this[A].findIndex(n=>n.name===t)!==-1}set(t,n,s=undefined){d.brandCheck(this,FormData);const i="FormData.set";d.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(n)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}t=d.converters.USVString(t,i,"name");n=o(n)?d.converters.Blob(n,i,"name",{strict:false}):d.converters.USVString(n,i,"name");s=arguments.length===3?d.converters.USVString(s,i,"name"):undefined;const c=makeEntry(t,n,s);const l=this[A].findIndex(n=>n.name===t);if(l!==-1){this[A]=[...this[A].slice(0,l),c,...this[A].slice(l+1).filter(n=>n.name!==t)]}else{this[A].push(c)}}[h.inspect.custom](t,n){const s=this[A].reduce((t,n)=>{if(t[n.name]){if(Array.isArray(t[n.name])){t[n.name].push(n.value)}else{t[n.name]=[t[n.name],n.value]}}else{t[n.name]=n.value}return t},{__proto__:null});n.depth??=t;n.colors??=true;const o=h.formatWithOptions(n,s);return`FormData ${o.slice(o.indexOf("]")+2)}`}}i("FormData",FormData,A,"name","value");Object.defineProperties(FormData.prototype,{append:c,delete:c,get:c,getAll:c,has:c,set:c,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(t,n,s){if(typeof n==="string"){}else{if(!u(n)){n=n instanceof Blob?new f([n],"blob",{type:n.type}):new l(n,"blob",{type:n.type})}if(s!==undefined){const t={type:n.type,lastModified:n.lastModified};n=n instanceof g?new f([n],s,t):new l(n,s,t)}}return{name:t,value:n}}t.exports={FormData:FormData,makeEntry:makeEntry}},1059:t=>{"use strict";const n=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[n]}function setGlobalOrigin(t){if(t===undefined){Object.defineProperty(globalThis,n,{value:undefined,writable:true,enumerable:false,configurable:false});return}const s=new URL(t);if(s.protocol!=="http:"&&s.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${s.protocol}`)}Object.defineProperty(globalThis,n,{value:s,writable:true,enumerable:false,configurable:false})}t.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(t,n,s)=>{"use strict";const{kConstruct:o}=s(6443);const{kEnumerableProperty:i}=s(3440);const{iteratorMixin:A,isValidHeaderName:c,isValidHeaderValue:l}=s(3168);const{webidl:u}=s(5893);const d=s(4589);const g=s(7975);const h=Symbol("headers map");const f=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(t){return t===10||t===13||t===9||t===32}function headerValueNormalize(t){let n=0;let s=t.length;while(s>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(s-1)))--s;while(s>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(n)))++n;return n===0&&s===t.length?t:t.substring(n,s)}function fill(t,n){if(Array.isArray(n)){for(let s=0;s<n.length;++s){const o=n[s];if(o.length!==2){throw u.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${o.length}.`})}appendHeader(t,o[0],o[1])}}else if(typeof n==="object"&&n!==null){const s=Object.keys(n);for(let o=0;o<s.length;++o){appendHeader(t,s[o],n[s[o]])}}else{throw u.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}}function appendHeader(t,n,s){s=headerValueNormalize(s);if(!c(n)){throw u.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header name"})}else if(!l(s)){throw u.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header value"})}if(E(t)==="immutable"){throw new TypeError("immutable")}return C(t).append(n,s,false)}function compareHeaderName(t,n){return t[0]<n[0]?-1:1}class HeadersList{cookies=null;constructor(t){if(t instanceof HeadersList){this[h]=new Map(t[h]);this[f]=t[f];this.cookies=t.cookies===null?null:[...t.cookies]}else{this[h]=new Map(t);this[f]=null}}contains(t,n){return this[h].has(n?t:t.toLowerCase())}clear(){this[h].clear();this[f]=null;this.cookies=null}append(t,n,s){this[f]=null;const o=s?t:t.toLowerCase();const i=this[h].get(o);if(i){const t=o==="cookie"?"; ":", ";this[h].set(o,{name:i.name,value:`${i.value}${t}${n}`})}else{this[h].set(o,{name:t,value:n})}if(o==="set-cookie"){(this.cookies??=[]).push(n)}}set(t,n,s){this[f]=null;const o=s?t:t.toLowerCase();if(o==="set-cookie"){this.cookies=[n]}this[h].set(o,{name:t,value:n})}delete(t,n){this[f]=null;if(!n)t=t.toLowerCase();if(t==="set-cookie"){this.cookies=null}this[h].delete(t)}get(t,n){return this[h].get(n?t:t.toLowerCase())?.value??null}*[Symbol.iterator](){for(const{0:t,1:{value:n}}of this[h]){yield[t,n]}}get entries(){const t={};if(this[h].size!==0){for(const{name:n,value:s}of this[h].values()){t[n]=s}}return t}rawValues(){return this[h].values()}get entriesList(){const t=[];if(this[h].size!==0){for(const{0:n,1:{name:s,value:o}}of this[h]){if(n==="set-cookie"){for(const n of this.cookies){t.push([s,n])}}else{t.push([s,o])}}}return t}toSortedArray(){const t=this[h].size;const n=new Array(t);if(t<=32){if(t===0){return n}const s=this[h][Symbol.iterator]();const o=s.next().value;n[0]=[o[0],o[1].value];d(o[1].value!==null);for(let o=1,i=0,A=0,c=0,l=0,u,g;o<t;++o){g=s.next().value;u=n[o]=[g[0],g[1].value];d(u[1]!==null);c=0;A=o;while(c<A){l=c+(A-c>>1);if(n[l][0]<=u[0]){c=l+1}else{A=l}}if(o!==l){i=o;while(i>c){n[i]=n[--i]}n[c]=u}}if(!s.next().done){throw new TypeError("Unreachable")}return n}else{let t=0;for(const{0:s,1:{value:o}}of this[h]){n[t++]=[s,o];d(o!==null)}return n.sort(compareHeaderName)}}}class Headers{#J;#q;constructor(t=undefined){u.util.markAsUncloneable(this);if(t===o){return}this.#q=new HeadersList;this.#J="none";if(t!==undefined){t=u.converters.HeadersInit(t,"Headers contructor","init");fill(this,t)}}append(t,n){u.brandCheck(this,Headers);u.argumentLengthCheck(arguments,2,"Headers.append");const s="Headers.append";t=u.converters.ByteString(t,s,"name");n=u.converters.ByteString(n,s,"value");return appendHeader(this,t,n)}delete(t){u.brandCheck(this,Headers);u.argumentLengthCheck(arguments,1,"Headers.delete");const n="Headers.delete";t=u.converters.ByteString(t,n,"name");if(!c(t)){throw u.errors.invalidArgument({prefix:"Headers.delete",value:t,type:"header name"})}if(this.#J==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(t,false)){return}this.#q.delete(t,false)}get(t){u.brandCheck(this,Headers);u.argumentLengthCheck(arguments,1,"Headers.get");const n="Headers.get";t=u.converters.ByteString(t,n,"name");if(!c(t)){throw u.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#q.get(t,false)}has(t){u.brandCheck(this,Headers);u.argumentLengthCheck(arguments,1,"Headers.has");const n="Headers.has";t=u.converters.ByteString(t,n,"name");if(!c(t)){throw u.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#q.contains(t,false)}set(t,n){u.brandCheck(this,Headers);u.argumentLengthCheck(arguments,2,"Headers.set");const s="Headers.set";t=u.converters.ByteString(t,s,"name");n=u.converters.ByteString(n,s,"value");n=headerValueNormalize(n);if(!c(t)){throw u.errors.invalidArgument({prefix:s,value:t,type:"header name"})}else if(!l(n)){throw u.errors.invalidArgument({prefix:s,value:n,type:"header value"})}if(this.#J==="immutable"){throw new TypeError("immutable")}this.#q.set(t,n,false)}getSetCookie(){u.brandCheck(this,Headers);const t=this.#q.cookies;if(t){return[...t]}return[]}get[f](){if(this.#q[f]){return this.#q[f]}const t=[];const n=this.#q.toSortedArray();const s=this.#q.cookies;if(s===null||s.length===1){return this.#q[f]=n}for(let o=0;o<n.length;++o){const{0:i,1:A}=n[o];if(i==="set-cookie"){for(let n=0;n<s.length;++n){t.push([i,s[n]])}}else{t.push([i,A])}}return this.#q[f]=t}[g.inspect.custom](t,n){n.depth??=t;return`Headers ${g.formatWithOptions(n,this.#q.entries)}`}static getHeadersGuard(t){return t.#J}static setHeadersGuard(t,n){t.#J=n}static getHeadersList(t){return t.#q}static setHeadersList(t,n){t.#q=n}}const{getHeadersGuard:E,setHeadersGuard:p,getHeadersList:C,setHeadersList:I}=Headers;Reflect.deleteProperty(Headers,"getHeadersGuard");Reflect.deleteProperty(Headers,"setHeadersGuard");Reflect.deleteProperty(Headers,"getHeadersList");Reflect.deleteProperty(Headers,"setHeadersList");A("Headers",Headers,f,0,1);Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,[Symbol.toStringTag]:{value:"Headers",configurable:true},[g.inspect.custom]:{enumerable:false}});u.converters.HeadersInit=function(t,n,s){if(u.util.Type(t)==="Object"){const o=Reflect.get(t,Symbol.iterator);if(!g.types.isProxy(t)&&o===Headers.prototype.entries){try{return C(t).entriesList}catch{}}if(typeof o==="function"){return u.converters["sequence<sequence<ByteString>>"](t,n,s,o.bind(t))}return u.converters["record<ByteString, ByteString>"](t,n,s)}throw u.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};t.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:E,setHeadersGuard:p,setHeadersList:I,getHeadersList:C}},4398:(t,n,s)=>{"use strict";const{makeNetworkError:o,makeAppropriateNetworkError:i,filterResponse:A,makeResponse:c,fromInnerResponse:l}=s(9051);const{HeadersList:u}=s(660);const{Request:d,cloneRequest:g}=s(9967);const h=s(8522);const{bytesMatch:f,makePolicyContainer:E,clonePolicyContainer:p,requestBadPort:C,TAOCheck:I,appendRequestOriginHeader:m,responseLocationURL:B,requestCurrentURL:Q,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:w,createOpaqueTimingInfo:S,appendFetchMetadata:R,corsCheck:D,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:v,coarsenedSharedCurrentTime:T,createDeferredPromise:N,isBlobLike:F,sameOrigin:x,isCancelled:M,isAborted:U,isErrorLike:L,fullyReadBody:P,readableStreamClose:O,isomorphicEncode:H,urlIsLocal:_,urlIsHttpHttpsScheme:G,urlHasHttpsScheme:V,clampAndCoarsenConnectionTimingInfo:Y,simpleRangeHeaderValue:J,buildContentRange:q,createInflate:W,extractMimeType:z}=s(3168);const{kState:$,kDispatcher:j}=s(3627);const K=s(4589);const{safelyExtractBody:Z,extractBody:X}=s(4492);const{redirectStatusSet:ee,nullBodyStatus:te,safeMethodsSet:ne,requestBodyHeader:re,subresourceSet:se}=s(4495);const oe=s(8474);const{Readable:ie,pipeline:ae,finished:Ae}=s(7075);const{addAbortListener:ce,isErrored:le,isReadable:ue,bufferToLowerCasedHeaderName:de}=s(3440);const{dataURLProcessor:ge,serializeAMimeType:he,minimizeSupportedMimeType:fe}=s(1900);const{getGlobalDispatcher:Ee}=s(2581);const{webidl:pe}=s(5893);const{STATUS_CODES:Ce}=s(7067);const Ie=["GET","HEAD"];const me=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Be;class Fetch extends oe{constructor(t){super();this.dispatcher=t;this.connection=null;this.dump=false;this.state="ongoing"}terminate(t){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(t);this.emit("terminated",t)}abort(t){if(this.state!=="ongoing"){return}this.state="aborted";if(!t){t=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=t;this.connection?.destroy(t);this.emit("terminated",t)}}function handleFetchDone(t){finalizeAndReportTiming(t,"fetch")}function fetch(t,n=undefined){pe.argumentLengthCheck(arguments,1,"globalThis.fetch");let s=N();let o;try{o=new d(t,n)}catch(t){s.reject(t);return s.promise}const i=o[$];if(o.signal.aborted){abortFetch(s,i,null,o.signal.reason);return s.promise}const A=i.client.globalObject;if(A?.constructor?.name==="ServiceWorkerGlobalScope"){i.serviceWorkers="none"}let c=null;let u=false;let g=null;ce(o.signal,()=>{u=true;K(g!=null);g.abort(o.signal.reason);const t=c?.deref();abortFetch(s,i,t,o.signal.reason)});const processResponse=t=>{if(u){return}if(t.aborted){abortFetch(s,i,c,g.serializedAbortReason);return}if(t.type==="error"){s.reject(new TypeError("fetch failed",{cause:t.error}));return}c=new WeakRef(l(t,"immutable"));s.resolve(c.deref());s=null};g=fetching({request:i,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:o[j]});return s.promise}function finalizeAndReportTiming(t,n="other"){if(t.type==="error"&&t.aborted){return}if(!t.urlList?.length){return}const s=t.urlList[0];let o=t.timingInfo;let i=t.cacheState;if(!G(s)){return}if(o===null){return}if(!t.timingAllowPassed){o=S({startTime:o.startTime});i=""}o.endTime=T();t.timingInfo=o;Qe(o,s.href,n,globalThis,i)}const Qe=performance.markResourceTiming;function abortFetch(t,n,s,o){if(t){t.reject(o)}if(n.body!=null&&ue(n.body?.stream)){n.body.stream.cancel(o).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}if(s==null){return}const i=s[$];if(i.body!=null&&ue(i.body?.stream)){i.body.stream.cancel(o).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}}function fetching({request:t,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:o,processResponseEndOfBody:i,processResponseConsumeBody:A,useParallelQueue:c=false,dispatcher:l=Ee()}){K(l);let u=null;let d=false;if(t.client!=null){u=t.client.globalObject;d=t.client.crossOriginIsolatedCapability}const g=T(d);const h=S({startTime:g});const f={controller:new Fetch(l),request:t,timingInfo:h,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:o,processResponseConsumeBody:A,processResponseEndOfBody:i,taskDestination:u,crossOriginIsolatedCapability:d};K(!t.body||t.body.stream);if(t.window==="client"){t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"}if(t.origin==="client"){t.origin=t.client.origin}if(t.policyContainer==="client"){if(t.client!=null){t.policyContainer=p(t.client.policyContainer)}else{t.policyContainer=E()}}if(!t.headersList.contains("accept",true)){const n="*/*";t.headersList.append("accept",n,true)}if(!t.headersList.contains("accept-language",true)){t.headersList.append("accept-language","*",true)}if(t.priority===null){}if(se.has(t.destination)){}mainFetch(f).catch(t=>{f.controller.terminate(t)});return f.controller}async function mainFetch(t,n=false){const s=t.request;let i=null;if(s.localURLsOnly&&!_(Q(s))){i=o("local URLs only")}w(s);if(C(s)==="blocked"){i=o("bad port")}if(s.referrerPolicy===""){s.referrerPolicy=s.policyContainer.referrerPolicy}if(s.referrer!=="no-referrer"){s.referrer=v(s)}if(i===null){i=await(async()=>{const n=Q(s);if(x(n,s.url)&&s.responseTainting==="basic"||n.protocol==="data:"||(s.mode==="navigate"||s.mode==="websocket")){s.responseTainting="basic";return await schemeFetch(t)}if(s.mode==="same-origin"){return o('request mode cannot be "same-origin"')}if(s.mode==="no-cors"){if(s.redirect!=="follow"){return o('redirect mode cannot be "follow" for "no-cors" request')}s.responseTainting="opaque";return await schemeFetch(t)}if(!G(Q(s))){return o("URL scheme must be a HTTP(S) scheme")}s.responseTainting="cors";return await httpFetch(t)})()}if(n){return i}if(i.status!==0&&!i.internalResponse){if(s.responseTainting==="cors"){}if(s.responseTainting==="basic"){i=A(i,"basic")}else if(s.responseTainting==="cors"){i=A(i,"cors")}else if(s.responseTainting==="opaque"){i=A(i,"opaque")}else{K(false)}}let c=i.status===0?i:i.internalResponse;if(c.urlList.length===0){c.urlList.push(...s.urlList)}if(!s.timingAllowFailed){i.timingAllowPassed=true}if(i.type==="opaque"&&c.status===206&&c.rangeRequested&&!s.headers.contains("range",true)){i=c=o()}if(i.status!==0&&(s.method==="HEAD"||s.method==="CONNECT"||te.includes(c.status))){c.body=null;t.controller.dump=true}if(s.integrity){const processBodyError=n=>fetchFinale(t,o(n));if(s.responseTainting==="opaque"||i.body==null){processBodyError(i.error);return}const processBody=n=>{if(!f(n,s.integrity)){processBodyError("integrity mismatch");return}i.body=Z(n)[0];fetchFinale(t,i)};await P(i.body,processBody,processBodyError)}else{fetchFinale(t,i)}}function schemeFetch(t){if(M(t)&&t.request.redirectCount===0){return Promise.resolve(i(t))}const{request:n}=t;const{protocol:A}=Q(n);switch(A){case"about:":{return Promise.resolve(o("about scheme is not supported"))}case"blob:":{if(!Be){Be=s(4573).resolveObjectURL}const t=Q(n);if(t.search.length!==0){return Promise.resolve(o("NetworkError when attempting to fetch resource."))}const i=Be(t.toString());if(n.method!=="GET"||!F(i)){return Promise.resolve(o("invalid method"))}const A=c();const l=i.size;const u=H(`${l}`);const d=i.type;if(!n.headersList.contains("range",true)){const t=X(i);A.statusText="OK";A.body=t[0];A.headersList.set("content-length",u,true);A.headersList.set("content-type",d,true)}else{A.rangeRequested=true;const t=n.headersList.get("range",true);const s=J(t,true);if(s==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}let{rangeStartValue:c,rangeEndValue:u}=s;if(c===null){c=l-u;u=c+u-1}else{if(c>=l){return Promise.resolve(o("Range start is greater than the blob's size."))}if(u===null||u>=l){u=l-1}}const g=i.slice(c,u,d);const h=X(g);A.body=h[0];const f=H(`${g.size}`);const E=q(c,u,l);A.status=206;A.statusText="Partial Content";A.headersList.set("content-length",f,true);A.headersList.set("content-type",d,true);A.headersList.set("content-range",E,true)}return Promise.resolve(A)}case"data:":{const t=Q(n);const s=ge(t);if(s==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}const i=he(s.mimeType);return Promise.resolve(c({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:Z(s.body)[0]}))}case"file:":{return Promise.resolve(o("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(t).catch(t=>o(t))}default:{return Promise.resolve(o("unknown scheme"))}}}function finalizeResponse(t,n){t.request.done=true;if(t.processResponseDone!=null){queueMicrotask(()=>t.processResponseDone(n))}}function fetchFinale(t,n){let s=t.timingInfo;const processResponseEndOfBody=()=>{const o=Date.now();if(t.request.destination==="document"){t.controller.fullTimingInfo=s}t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:"){return}s.endTime=o;let i=n.cacheState;const A=n.bodyInfo;if(!n.timingAllowPassed){s=S(s);i=""}let c=0;if(t.request.mode!=="navigator"||!n.hasCrossOriginRedirects){c=n.status;const t=z(n.headersList);if(t!=="failure"){A.contentType=fe(t)}}if(t.request.initiatorType!=null){Qe(s,t.request.url.href,t.request.initiatorType,globalThis,i,A,c)}};const processResponseEndOfBodyTask=()=>{t.request.done=true;if(t.processResponseEndOfBody!=null){queueMicrotask(()=>t.processResponseEndOfBody(n))}if(t.request.initiatorType!=null){t.controller.reportTimingSteps()}};queueMicrotask(()=>processResponseEndOfBodyTask())};if(t.processResponse!=null){queueMicrotask(()=>{t.processResponse(n);t.processResponse=null})}const o=n.type==="error"?n:n.internalResponse??n;if(o.body==null){processResponseEndOfBody()}else{Ae(o.body.stream,()=>{processResponseEndOfBody()})}}async function httpFetch(t){const n=t.request;let s=null;let i=null;const A=t.timingInfo;if(n.serviceWorkers==="all"){}if(s===null){if(n.redirect==="follow"){n.serviceWorkers="none"}i=s=await httpNetworkOrCacheFetch(t);if(n.responseTainting==="cors"&&D(n,s)==="failure"){return o("cors failure")}if(I(n,s)==="failure"){n.timingAllowFailed=true}}if((n.responseTainting==="opaque"||s.type==="opaque")&&k(n.origin,n.client,n.destination,i)==="blocked"){return o("blocked")}if(ee.has(i.status)){if(n.redirect!=="manual"){t.controller.connection.destroy(undefined,false)}if(n.redirect==="error"){s=o("unexpected redirect")}else if(n.redirect==="manual"){s=i}else if(n.redirect==="follow"){s=await httpRedirectFetch(t,s)}else{K(false)}}s.timingInfo=A;return s}function httpRedirectFetch(t,n){const s=t.request;const i=n.internalResponse?n.internalResponse:n;let A;try{A=B(i,Q(s).hash);if(A==null){return n}}catch(t){return Promise.resolve(o(t))}if(!G(A)){return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"))}if(s.redirectCount===20){return Promise.resolve(o("redirect count exceeded"))}s.redirectCount+=1;if(s.mode==="cors"&&(A.username||A.password)&&!x(s,A)){return Promise.resolve(o('cross origin not allowed for request mode "cors"'))}if(s.responseTainting==="cors"&&(A.username||A.password)){return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'))}if(i.status!==303&&s.body!=null&&s.body.source==null){return Promise.resolve(o())}if([301,302].includes(i.status)&&s.method==="POST"||i.status===303&&!Ie.includes(s.method)){s.method="GET";s.body=null;for(const t of re){s.headersList.delete(t)}}if(!x(Q(s),A)){s.headersList.delete("authorization",true);s.headersList.delete("proxy-authorization",true);s.headersList.delete("cookie",true);s.headersList.delete("host",true)}if(s.body!=null){K(s.body.source!=null);s.body=Z(s.body.source)[0]}const c=t.timingInfo;c.redirectEndTime=c.postRedirectStartTime=T(t.crossOriginIsolatedCapability);if(c.redirectStartTime===0){c.redirectStartTime=c.startTime}s.urlList.push(A);y(s,i);return mainFetch(t,true)}async function httpNetworkOrCacheFetch(t,n=false,s=false){const A=t.request;let c=null;let l=null;let u=null;const d=null;const h=false;if(A.window==="no-window"&&A.redirect==="error"){c=t;l=A}else{l=g(A);c={...t};c.request=l}const f=A.credentials==="include"||A.credentials==="same-origin"&&A.responseTainting==="basic";const E=l.body?l.body.length:null;let p=null;if(l.body==null&&["POST","PUT"].includes(l.method)){p="0"}if(E!=null){p=H(`${E}`)}if(p!=null){l.headersList.append("content-length",p,true)}if(E!=null&&l.keepalive){}if(l.referrer instanceof URL){l.headersList.append("referer",H(l.referrer.href),true)}m(l);R(l);if(!l.headersList.contains("user-agent",true)){l.headersList.append("user-agent",me)}if(l.cache==="default"&&(l.headersList.contains("if-modified-since",true)||l.headersList.contains("if-none-match",true)||l.headersList.contains("if-unmodified-since",true)||l.headersList.contains("if-match",true)||l.headersList.contains("if-range",true))){l.cache="no-store"}if(l.cache==="no-cache"&&!l.preventNoCacheCacheControlHeaderModification&&!l.headersList.contains("cache-control",true)){l.headersList.append("cache-control","max-age=0",true)}if(l.cache==="no-store"||l.cache==="reload"){if(!l.headersList.contains("pragma",true)){l.headersList.append("pragma","no-cache",true)}if(!l.headersList.contains("cache-control",true)){l.headersList.append("cache-control","no-cache",true)}}if(l.headersList.contains("range",true)){l.headersList.append("accept-encoding","identity",true)}if(!l.headersList.contains("accept-encoding",true)){if(V(Q(l))){l.headersList.append("accept-encoding","br, gzip, deflate",true)}else{l.headersList.append("accept-encoding","gzip, deflate",true)}}l.headersList.delete("host",true);if(f){}if(d==null){l.cache="no-store"}if(l.cache!=="no-store"&&l.cache!=="reload"){}if(u==null){if(l.cache==="only-if-cached"){return o("only if cached")}const t=await httpNetworkFetch(c,f,s);if(!ne.has(l.method)&&t.status>=200&&t.status<=399){}if(h&&t.status===304){}if(u==null){u=t}}u.urlList=[...l.urlList];if(l.headersList.contains("range",true)){u.rangeRequested=true}u.requestIncludesCredentials=f;if(u.status===407){if(A.window==="no-window"){return o()}if(M(t)){return i(t)}return o("proxy authentication required")}if(u.status===421&&!s&&(A.body==null||A.body.source!=null)){if(M(t)){return i(t)}t.controller.connection.destroy();u=await httpNetworkOrCacheFetch(t,n,true)}if(n){}return u}async function httpNetworkFetch(t,n=false,s=false){K(!t.controller.connection||t.controller.connection.destroyed);t.controller.connection={abort:null,destroyed:false,destroy(t,n=true){if(!this.destroyed){this.destroyed=true;if(n){this.abort?.(t??new DOMException("The operation was aborted.","AbortError"))}}}};const A=t.request;let l=null;const d=t.timingInfo;const g=null;if(g==null){A.cache="no-store"}const f=s?"yes":"no";if(A.mode==="websocket"){}else{}let E=null;if(A.body==null&&t.processRequestEndOfBody){queueMicrotask(()=>t.processRequestEndOfBody())}else if(A.body!=null){const processBodyChunk=async function*(n){if(M(t)){return}yield n;t.processRequestBodyChunkLength?.(n.byteLength)};const processEndOfBody=()=>{if(M(t)){return}if(t.processRequestEndOfBody){t.processRequestEndOfBody()}};const processBodyError=n=>{if(M(t)){return}if(n.name==="AbortError"){t.controller.abort()}else{t.controller.terminate(n)}};E=async function*(){try{for await(const t of A.body.stream){yield*processBodyChunk(t)}processEndOfBody()}catch(t){processBodyError(t)}}()}try{const{body:n,status:s,statusText:o,headersList:i,socket:A}=await dispatch({body:E});if(A){l=c({status:s,statusText:o,headersList:i,socket:A})}else{const A=n[Symbol.asyncIterator]();t.controller.next=()=>A.next();l=c({status:s,statusText:o,headersList:i})}}catch(n){if(n.name==="AbortError"){t.controller.connection.destroy();return i(t,n)}return o(n)}const pullAlgorithm=async()=>{await t.controller.resume()};const cancelAlgorithm=n=>{if(!M(t)){t.controller.abort(n)}};const p=new ReadableStream({async start(n){t.controller.controller=n},async pull(t){await pullAlgorithm(t)},async cancel(t){await cancelAlgorithm(t)},type:"bytes"});l.body={stream:p,source:null,length:null};if(!t.controller.resume){t.controller.on("terminated",onAborted)}t.controller.resume=async()=>{while(true){let n;let s;try{const{done:s,value:o}=await t.controller.next();if(U(t)){break}n=s?undefined:o}catch(o){if(t.controller.ended&&!d.encodedBodySize){n=undefined}else{n=o;s=true}}if(n===undefined){O(t.controller.controller);finalizeResponse(t,l);return}d.decodedBodySize+=n?.byteLength??0;if(s){t.controller.terminate(n);return}const o=new Uint8Array(n);if(o.byteLength){t.controller.controller.enqueue(o)}if(le(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0){return}}};function onAborted(n){if(U(t)){l.aborted=true;if(ue(p)){t.controller.controller.error(t.controller.serializedAbortReason)}}else{if(ue(p)){t.controller.controller.error(new TypeError("terminated",{cause:L(n)?n:undefined}))}}t.controller.connection.destroy()}return l;function dispatch({body:n}){const s=Q(A);const o=t.controller.dispatcher;return new Promise((i,c)=>o.dispatch({path:s.pathname+s.search,origin:s.origin,method:A.method,body:o.isMockActive?A.body&&(A.body.source||A.body.stream):n,headers:A.headersList.entries,maxRedirections:0,upgrade:A.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(n){const{connection:s}=t.controller;d.finalConnectionTimingInfo=Y(undefined,d.postRedirectStartTime,t.crossOriginIsolatedCapability);if(s.destroyed){n(new DOMException("The operation was aborted.","AbortError"))}else{t.controller.on("terminated",n);this.abort=s.abort=n}d.finalNetworkRequestStartTime=T(t.crossOriginIsolatedCapability)},onResponseStarted(){d.finalNetworkResponseStartTime=T(t.crossOriginIsolatedCapability)},onHeaders(t,n,s,o){if(t<200){return}let c="";const l=new u;for(let t=0;t<n.length;t+=2){l.append(de(n[t]),n[t+1].toString("latin1"),true)}c=l.get("location",true);const d=[];const g=c&&A.redirect==="follow"&&ee.has(t);if(A.method!=="HEAD"&&A.method!=="CONNECT"&&!te.includes(t)&&!g){const t=l.get("content-encoding",true);const n=t?t.toLowerCase().split(","):[];const s=5;if(n.length>s){this.abort(new Error(`too many content-encodings in response: ${n.length}, maximum allowed is ${s}`));return true}for(let t=n.length-1;t>=0;--t){const s=n[t].trim();if(s==="x-gzip"||s==="gzip"){d.push(h.createGunzip({flush:h.constants.Z_SYNC_FLUSH,finishFlush:h.constants.Z_SYNC_FLUSH}))}else if(s==="deflate"){d.push(W({flush:h.constants.Z_SYNC_FLUSH,finishFlush:h.constants.Z_SYNC_FLUSH}))}else if(s==="br"){d.push(h.createBrotliDecompress({flush:h.constants.BROTLI_OPERATION_FLUSH,finishFlush:h.constants.BROTLI_OPERATION_FLUSH}))}else{d.length=0;break}}}this.body=new ie({read:s});const f=this.onError.bind(this);i({status:t,statusText:o,headersList:l,body:d.length?ae(this.body,...d,t=>{if(t){this.onError(t)}}).on("error",f):this.body.on("error",f)});return true},onData(n){if(t.controller.dump){return}const s=n;d.encodedBodySize+=s.byteLength;return this.body.push(s)},onComplete(){if(this.abort){t.controller.off("terminated",this.abort)}t.controller.ended=true;this.body.push(null)},onError(n){if(this.abort){t.controller.off("terminated",this.abort)}this.body?.destroy(n);t.controller.terminate(n);c(n)},onUpgrade(t,n,s){if(t!==101){return}const o=new u;for(let t=0;t<n.length;t+=2){o.append(de(n[t]),n[t+1].toString("latin1"),true)}i({status:t,statusText:Ce[t],headersList:o,socket:s});return true}}))}}t.exports={fetch:fetch,Fetch:Fetch,fetching:fetching,finalizeAndReportTiming:finalizeAndReportTiming}},9967:(t,n,s)=>{"use strict";const{extractBody:o,mixinBody:i,cloneBody:A,bodyUnusable:c}=s(4492);const{Headers:l,fill:u,HeadersList:d,setHeadersGuard:g,getHeadersGuard:h,setHeadersList:f,getHeadersList:E}=s(660);const{FinalizationRegistry:p}=s(6653)();const C=s(3440);const I=s(7975);const{isValidHTTPToken:m,sameOrigin:B,environmentSettingsObject:Q}=s(3168);const{forbiddenMethodsSet:y,corsSafeListedMethodsSet:w,referrerPolicy:S,requestRedirect:R,requestMode:D,requestCredentials:k,requestCache:v,requestDuplex:T}=s(4495);const{kEnumerableProperty:N,normalizedMethodRecordsBase:F,normalizedMethodRecords:x}=C;const{kHeaders:M,kSignal:U,kState:L,kDispatcher:P}=s(3627);const{webidl:O}=s(5893);const{URLSerializer:H}=s(1900);const{kConstruct:_}=s(6443);const G=s(4589);const{getMaxListeners:V,setMaxListeners:Y,getEventListeners:J,defaultMaxListeners:q}=s(8474);const W=Symbol("abortController");const z=new p(({signal:t,abort:n})=>{t.removeEventListener("abort",n)});const $=new WeakMap;function buildAbort(t){return abort;function abort(){const n=t.deref();if(n!==undefined){z.unregister(abort);this.removeEventListener("abort",abort);n.abort(this.reason);const t=$.get(n.signal);if(t!==undefined){if(t.size!==0){for(const n of t){const t=n.deref();if(t!==undefined){t.abort(this.reason)}}t.clear()}$.delete(n.signal)}}}}let j=false;class Request{constructor(t,n={}){O.util.markAsUncloneable(this);if(t===_){return}const s="Request constructor";O.argumentLengthCheck(arguments,1,s);t=O.converters.RequestInfo(t,s,"input");n=O.converters.RequestInit(n,s,"init");let i=null;let A=null;const h=Q.settingsObject.baseUrl;let p=null;if(typeof t==="string"){this[P]=n.dispatcher;let s;try{s=new URL(t,h)}catch(n){throw new TypeError("Failed to parse URL from "+t,{cause:n})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+t)}i=makeRequest({urlList:[s]});A="cors"}else{this[P]=n.dispatcher||t[P];G(t instanceof Request);i=t[L];p=t[U]}const I=Q.settingsObject.origin;let S="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&B(i.window,I)){S=i.window}if(n.window!=null){throw new TypeError(`'window' option '${S}' must be null`)}if("window"in n){S="no-window"}i=makeRequest({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:Q.settingsObject,window:S,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});const R=Object.keys(n).length!==0;if(R){if(i.mode==="navigate"){i.mode="same-origin"}i.reloadNavigation=false;i.historyNavigation=false;i.origin="client";i.referrer="client";i.referrerPolicy="";i.url=i.urlList[i.urlList.length-1];i.urlList=[i.url]}if(n.referrer!==undefined){const t=n.referrer;if(t===""){i.referrer="no-referrer"}else{let n;try{n=new URL(t,h)}catch(n){throw new TypeError(`Referrer "${t}" is not a valid URL.`,{cause:n})}if(n.protocol==="about:"&&n.hostname==="client"||I&&!B(n,Q.settingsObject.baseUrl)){i.referrer="client"}else{i.referrer=n}}}if(n.referrerPolicy!==undefined){i.referrerPolicy=n.referrerPolicy}let D;if(n.mode!==undefined){D=n.mode}else{D=A}if(D==="navigate"){throw O.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(D!=null){i.mode=D}if(n.credentials!==undefined){i.credentials=n.credentials}if(n.cache!==undefined){i.cache=n.cache}if(i.cache==="only-if-cached"&&i.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(n.redirect!==undefined){i.redirect=n.redirect}if(n.integrity!=null){i.integrity=String(n.integrity)}if(n.keepalive!==undefined){i.keepalive=Boolean(n.keepalive)}if(n.method!==undefined){let t=n.method;const s=x[t];if(s!==undefined){i.method=s}else{if(!m(t)){throw new TypeError(`'${t}' is not a valid HTTP method.`)}const n=t.toUpperCase();if(y.has(n)){throw new TypeError(`'${t}' HTTP method is unsupported.`)}t=F[n]??t;i.method=t}if(!j&&i.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});j=true}}if(n.signal!==undefined){p=n.signal}this[L]=i;const k=new AbortController;this[U]=k.signal;if(p!=null){if(!p||typeof p.aborted!=="boolean"||typeof p.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(p.aborted){k.abort(p.reason)}else{this[W]=k;const t=new WeakRef(k);const n=buildAbort(t);try{if(typeof V==="function"&&V(p)===q){Y(1500,p)}else if(J(p,"abort").length>=q){Y(1500,p)}}catch{}C.addAbortListener(p,n);z.register(k,{signal:p,abort:n},n)}}this[M]=new l(_);f(this[M],i.headersList);g(this[M],"request");if(D==="no-cors"){if(!w.has(i.method)){throw new TypeError(`'${i.method} is unsupported in no-cors mode.`)}g(this[M],"request-no-cors")}if(R){const t=E(this[M]);const s=n.headers!==undefined?n.headers:new d(t);t.clear();if(s instanceof d){for(const{name:n,value:o}of s.rawValues()){t.append(n,o,false)}t.cookies=s.cookies}else{u(this[M],s)}}const v=t instanceof Request?t[L].body:null;if((n.body!=null||v!=null)&&(i.method==="GET"||i.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let T=null;if(n.body!=null){const[t,s]=o(n.body,i.keepalive);T=t;if(s&&!E(this[M]).contains("content-type",true)){this[M].append("content-type",s)}}const N=T??v;if(N!=null&&N.source==null){if(T!=null&&n.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(i.mode!=="same-origin"&&i.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}i.useCORSPreflightFlag=true}let H=N;if(T==null&&v!=null){if(c(t)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const n=new TransformStream;v.stream.pipeThrough(n);H={source:v.source,length:v.length,stream:n.readable}}this[L].body=H}get method(){O.brandCheck(this,Request);return this[L].method}get url(){O.brandCheck(this,Request);return H(this[L].url)}get headers(){O.brandCheck(this,Request);return this[M]}get destination(){O.brandCheck(this,Request);return this[L].destination}get referrer(){O.brandCheck(this,Request);if(this[L].referrer==="no-referrer"){return""}if(this[L].referrer==="client"){return"about:client"}return this[L].referrer.toString()}get referrerPolicy(){O.brandCheck(this,Request);return this[L].referrerPolicy}get mode(){O.brandCheck(this,Request);return this[L].mode}get credentials(){return this[L].credentials}get cache(){O.brandCheck(this,Request);return this[L].cache}get redirect(){O.brandCheck(this,Request);return this[L].redirect}get integrity(){O.brandCheck(this,Request);return this[L].integrity}get keepalive(){O.brandCheck(this,Request);return this[L].keepalive}get isReloadNavigation(){O.brandCheck(this,Request);return this[L].reloadNavigation}get isHistoryNavigation(){O.brandCheck(this,Request);return this[L].historyNavigation}get signal(){O.brandCheck(this,Request);return this[U]}get body(){O.brandCheck(this,Request);return this[L].body?this[L].body.stream:null}get bodyUsed(){O.brandCheck(this,Request);return!!this[L].body&&C.isDisturbed(this[L].body.stream)}get duplex(){O.brandCheck(this,Request);return"half"}clone(){O.brandCheck(this,Request);if(c(this)){throw new TypeError("unusable")}const t=cloneRequest(this[L]);const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{let t=$.get(this.signal);if(t===undefined){t=new Set;$.set(this.signal,t)}const s=new WeakRef(n);t.add(s);C.addAbortListener(n.signal,buildAbort(s))}return fromInnerRequest(t,n.signal,h(this[M]))}[I.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${I.formatWithOptions(n,s)}`}}i(Request);function makeRequest(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??false,unsafeRequest:t.unsafeRequest??false,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??false,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??false,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??false,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??false,historyNavigation:t.historyNavigation??false,userActivation:t.userActivation??false,taintedOrigin:t.taintedOrigin??false,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??false,done:t.done??false,timingAllowFailed:t.timingAllowFailed??false,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new d(t.headersList):new d}}function cloneRequest(t){const n=makeRequest({...t,body:null});if(t.body!=null){n.body=A(n,t.body)}return n}function fromInnerRequest(t,n,s){const o=new Request(_);o[L]=t;o[U]=n;o[M]=new l(_);f(o[M],t.headersList);g(o[M],s);return o}Object.defineProperties(Request.prototype,{method:N,url:N,headers:N,redirect:N,clone:N,signal:N,duplex:N,destination:N,body:N,bodyUsed:N,isHistoryNavigation:N,isReloadNavigation:N,keepalive:N,integrity:N,cache:N,credentials:N,attribute:N,referrerPolicy:N,referrer:N,mode:N,[Symbol.toStringTag]:{value:"Request",configurable:true}});O.converters.Request=O.interfaceConverter(Request);O.converters.RequestInfo=function(t,n,s){if(typeof t==="string"){return O.converters.USVString(t,n,s)}if(t instanceof Request){return O.converters.Request(t,n,s)}return O.converters.USVString(t,n,s)};O.converters.AbortSignal=O.interfaceConverter(AbortSignal);O.converters.RequestInit=O.dictionaryConverter([{key:"method",converter:O.converters.ByteString},{key:"headers",converter:O.converters.HeadersInit},{key:"body",converter:O.nullableConverter(O.converters.BodyInit)},{key:"referrer",converter:O.converters.USVString},{key:"referrerPolicy",converter:O.converters.DOMString,allowedValues:S},{key:"mode",converter:O.converters.DOMString,allowedValues:D},{key:"credentials",converter:O.converters.DOMString,allowedValues:k},{key:"cache",converter:O.converters.DOMString,allowedValues:v},{key:"redirect",converter:O.converters.DOMString,allowedValues:R},{key:"integrity",converter:O.converters.DOMString},{key:"keepalive",converter:O.converters.boolean},{key:"signal",converter:O.nullableConverter(t=>O.converters.AbortSignal(t,"RequestInit","signal",{strict:false}))},{key:"window",converter:O.converters.any},{key:"duplex",converter:O.converters.DOMString,allowedValues:T},{key:"dispatcher",converter:O.converters.any}]);t.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(t,n,s)=>{"use strict";const{Headers:o,HeadersList:i,fill:A,getHeadersGuard:c,setHeadersGuard:l,setHeadersList:u}=s(660);const{extractBody:d,cloneBody:g,mixinBody:h,hasFinalizationRegistry:f,streamRegistry:E,bodyUnusable:p}=s(4492);const C=s(3440);const I=s(7975);const{kEnumerableProperty:m}=C;const{isValidReasonPhrase:B,isCancelled:Q,isAborted:y,isBlobLike:w,serializeJavascriptValueToJSONString:S,isErrorLike:R,isomorphicEncode:D,environmentSettingsObject:k}=s(3168);const{redirectStatusSet:v,nullBodyStatus:T}=s(4495);const{kState:N,kHeaders:F}=s(3627);const{webidl:x}=s(5893);const{FormData:M}=s(5910);const{URLSerializer:U}=s(1900);const{kConstruct:L}=s(6443);const P=s(4589);const{types:O}=s(7975);const H=new TextEncoder("utf-8");class Response{static error(){const t=fromInnerResponse(makeNetworkError(),"immutable");return t}static json(t,n={}){x.argumentLengthCheck(arguments,1,"Response.json");if(n!==null){n=x.converters.ResponseInit(n)}const s=H.encode(S(t));const o=d(s);const i=fromInnerResponse(makeResponse({}),"response");initializeResponse(i,n,{body:o[0],type:"application/json"});return i}static redirect(t,n=302){x.argumentLengthCheck(arguments,1,"Response.redirect");t=x.converters.USVString(t);n=x.converters["unsigned short"](n);let s;try{s=new URL(t,k.settingsObject.baseUrl)}catch(n){throw new TypeError(`Failed to parse URL from ${t}`,{cause:n})}if(!v.has(n)){throw new RangeError(`Invalid status code ${n}`)}const o=fromInnerResponse(makeResponse({}),"immutable");o[N].status=n;const i=D(U(s));o[N].headersList.append("location",i,true);return o}constructor(t=null,n={}){x.util.markAsUncloneable(this);if(t===L){return}if(t!==null){t=x.converters.BodyInit(t)}n=x.converters.ResponseInit(n);this[N]=makeResponse({});this[F]=new o(L);l(this[F],"response");u(this[F],this[N].headersList);let s=null;if(t!=null){const[n,o]=d(t);s={body:n,type:o}}initializeResponse(this,n,s)}get type(){x.brandCheck(this,Response);return this[N].type}get url(){x.brandCheck(this,Response);const t=this[N].urlList;const n=t[t.length-1]??null;if(n===null){return""}return U(n,true)}get redirected(){x.brandCheck(this,Response);return this[N].urlList.length>1}get status(){x.brandCheck(this,Response);return this[N].status}get ok(){x.brandCheck(this,Response);return this[N].status>=200&&this[N].status<=299}get statusText(){x.brandCheck(this,Response);return this[N].statusText}get headers(){x.brandCheck(this,Response);return this[F]}get body(){x.brandCheck(this,Response);return this[N].body?this[N].body.stream:null}get bodyUsed(){x.brandCheck(this,Response);return!!this[N].body&&C.isDisturbed(this[N].body.stream)}clone(){x.brandCheck(this,Response);if(p(this)){throw x.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const t=cloneResponse(this[N]);if(f&&this[N].body?.stream){E.register(this,new WeakRef(this[N].body.stream))}return fromInnerResponse(t,c(this[F]))}[I.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${I.formatWithOptions(n,s)}`}}h(Response);Object.defineProperties(Response.prototype,{type:m,url:m,status:m,ok:m,redirected:m,statusText:m,headers:m,clone:m,body:m,bodyUsed:m,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:m,redirect:m,error:m});function cloneResponse(t){if(t.internalResponse){return filterResponse(cloneResponse(t.internalResponse),t.type)}const n=makeResponse({...t,body:null});if(t.body!=null){n.body=g(n,t.body)}return n}function makeResponse(t){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new i(t?.headersList):new i,urlList:t?.urlList?[...t.urlList]:[]}}function makeNetworkError(t){const n=R(t);return makeResponse({type:"error",status:0,error:n?t:new Error(t?String(t):t),aborted:t&&t.name==="AbortError"})}function isNetworkError(t){return t.type==="error"&&t.status===0}function makeFilteredResponse(t,n){n={internalResponse:t,...n};return new Proxy(t,{get(t,s){return s in n?n[s]:t[s]},set(t,s,o){P(!(s in n));t[s]=o;return true}})}function filterResponse(t,n){if(n==="basic"){return makeFilteredResponse(t,{type:"basic",headersList:t.headersList})}else if(n==="cors"){return makeFilteredResponse(t,{type:"cors",headersList:t.headersList})}else if(n==="opaque"){return makeFilteredResponse(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(n==="opaqueredirect"){return makeFilteredResponse(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{P(false)}}function makeAppropriateNetworkError(t,n=null){P(Q(t));return y(t)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:n})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:n}))}function initializeResponse(t,n,s){if(n.status!==null&&(n.status<200||n.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in n&&n.statusText!=null){if(!B(String(n.statusText))){throw new TypeError("Invalid statusText")}}if("status"in n&&n.status!=null){t[N].status=n.status}if("statusText"in n&&n.statusText!=null){t[N].statusText=n.statusText}if("headers"in n&&n.headers!=null){A(t[F],n.headers)}if(s){if(T.includes(t.status)){throw x.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`})}t[N].body=s.body;if(s.type!=null&&!t[N].headersList.contains("content-type",true)){t[N].headersList.append("content-type",s.type,true)}}}function fromInnerResponse(t,n){const s=new Response(L);s[N]=t;s[F]=new o(L);u(s[F],t.headersList);l(s[F],n);if(f&&t.body?.stream){E.register(s,new WeakRef(t.body.stream))}return s}x.converters.ReadableStream=x.interfaceConverter(ReadableStream);x.converters.FormData=x.interfaceConverter(M);x.converters.URLSearchParams=x.interfaceConverter(URLSearchParams);x.converters.XMLHttpRequestBodyInit=function(t,n,s){if(typeof t==="string"){return x.converters.USVString(t,n,s)}if(w(t)){return x.converters.Blob(t,n,s,{strict:false})}if(ArrayBuffer.isView(t)||O.isArrayBuffer(t)){return x.converters.BufferSource(t,n,s)}if(C.isFormDataLike(t)){return x.converters.FormData(t,n,s,{strict:false})}if(t instanceof URLSearchParams){return x.converters.URLSearchParams(t,n,s)}return x.converters.DOMString(t,n,s)};x.converters.BodyInit=function(t,n,s){if(t instanceof ReadableStream){return x.converters.ReadableStream(t,n,s)}if(t?.[Symbol.asyncIterator]){return t}return x.converters.XMLHttpRequestBodyInit(t,n,s)};x.converters.ResponseInit=x.dictionaryConverter([{key:"status",converter:x.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:x.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:x.converters.HeadersInit}]);t.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:t=>{"use strict";t.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(t,n,s)=>{"use strict";const{Transform:o}=s(7075);const i=s(8522);const{redirectStatusSet:A,referrerPolicySet:c,badPortsSet:l}=s(4495);const{getGlobalOrigin:u}=s(1059);const{collectASequenceOfCodePoints:d,collectAnHTTPQuotedString:g,removeChars:h,parseMIMEType:f}=s(1900);const{performance:E}=s(643);const{isBlobLike:p,ReadableStreamFrom:C,isValidHTTPToken:I,normalizedMethodRecordsBase:m}=s(3440);const B=s(4589);const{isUint8Array:Q}=s(3429);const{webidl:y}=s(5893);let w=[];let S;try{S=s(7598);const t=["sha256","sha384","sha512"];w=S.getHashes().filter(n=>t.includes(n))}catch{}function responseURL(t){const n=t.urlList;const s=n.length;return s===0?null:n[s-1].toString()}function responseLocationURL(t,n){if(!A.has(t.status)){return null}let s=t.headersList.get("location",true);if(s!==null&&isValidHeaderValue(s)){if(!isValidEncodedURL(s)){s=normalizeBinaryStringToUtf8(s)}s=new URL(s,responseURL(t))}if(s&&!s.hash){s.hash=n}return s}function isValidEncodedURL(t){for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(s>126||s<32){return false}}return true}function normalizeBinaryStringToUtf8(t){return Buffer.from(t,"binary").toString("utf8")}function requestCurrentURL(t){return t.urlList[t.urlList.length-1]}function requestBadPort(t){const n=requestCurrentURL(t);if(urlIsHttpHttpsScheme(n)&&l.has(n.port)){return"blocked"}return"allowed"}function isErrorLike(t){return t instanceof Error||(t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException")}function isValidReasonPhrase(t){for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(!(s===9||s>=32&&s<=126||s>=128&&s<=255)){return false}}return true}const R=I;function isValidHeaderValue(t){return(t[0]==="\t"||t[0]===" "||t[t.length-1]==="\t"||t[t.length-1]===" "||t.includes("\n")||t.includes("\r")||t.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(t,n){const{headersList:s}=n;const o=(s.get("referrer-policy",true)??"").split(",");let i="";if(o.length>0){for(let t=o.length;t!==0;t--){const n=o[t-1].trim();if(c.has(n)){i=n;break}}}if(i!==""){t.referrerPolicy=i}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(t){let n=null;n=t.mode;t.headersList.set("sec-fetch-mode",n,true)}function appendRequestOriginHeader(t){let n=t.origin;if(n==="client"||n===undefined){return}if(t.responseTainting==="cors"||t.mode==="websocket"){t.headersList.append("origin",n,true)}else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":n=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(t.origin&&urlHasHttpsScheme(t.origin)&&!urlHasHttpsScheme(requestCurrentURL(t))){n=null}break;case"same-origin":if(!sameOrigin(t,requestCurrentURL(t))){n=null}break;default:}t.headersList.append("origin",n,true)}}function coarsenTime(t,n){return t}function clampAndCoarsenConnectionTimingInfo(t,n,s){if(!t?.startTime||t.startTime<n){return{domainLookupStartTime:n,domainLookupEndTime:n,connectionStartTime:n,connectionEndTime:n,secureConnectionStartTime:n,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}}return{domainLookupStartTime:coarsenTime(t.domainLookupStartTime,s),domainLookupEndTime:coarsenTime(t.domainLookupEndTime,s),connectionStartTime:coarsenTime(t.connectionStartTime,s),connectionEndTime:coarsenTime(t.connectionEndTime,s),secureConnectionStartTime:coarsenTime(t.secureConnectionStartTime,s),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function coarsenedSharedCurrentTime(t){return coarsenTime(E.now(),t)}function createOpaqueTimingInfo(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(t){return{referrerPolicy:t.referrerPolicy}}function determineRequestsReferrer(t){const n=t.referrerPolicy;B(n);let s=null;if(t.referrer==="client"){const t=u();if(!t||t.origin==="null"){return"no-referrer"}s=new URL(t)}else if(t.referrer instanceof URL){s=t.referrer}let o=stripURLForReferrer(s);const i=stripURLForReferrer(s,true);if(o.toString().length>4096){o=i}const A=sameOrigin(t,o);const c=isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(t.url);switch(n){case"origin":return i!=null?i:stripURLForReferrer(s,true);case"unsafe-url":return o;case"same-origin":return A?i:"no-referrer";case"origin-when-cross-origin":return A?o:i;case"strict-origin-when-cross-origin":{const n=requestCurrentURL(t);if(sameOrigin(o,n)){return o}if(isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(n)){return"no-referrer"}return i}case"strict-origin":case"no-referrer-when-downgrade":default:return c?"no-referrer":i}}function stripURLForReferrer(t,n){B(t instanceof URL);t=new URL(t);if(t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"){return"no-referrer"}t.username="";t.password="";t.hash="";if(n){t.pathname="";t.search=""}return t}function isURLPotentiallyTrustworthy(t){if(!(t instanceof URL)){return false}if(t.href==="about:blank"||t.href==="about:srcdoc"){return true}if(t.protocol==="data:")return true;if(t.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(t.origin);function isOriginPotentiallyTrustworthy(t){if(t==null||t==="null")return false;const n=new URL(t);if(n.protocol==="https:"||n.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||(n.hostname==="localhost"||n.hostname.includes("localhost."))||n.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(t,n){if(S===undefined){return true}const s=parseMetadata(n);if(s==="no metadata"){return true}if(s.length===0){return true}const o=getStrongestMetadata(s);const i=filterMetadataListByAlgorithm(s,o);for(const n of i){const s=n.algo;const o=n.hash;let i=S.createHash(s).update(t).digest("base64");if(i[i.length-1]==="="){if(i[i.length-2]==="="){i=i.slice(0,-2)}else{i=i.slice(0,-1)}}if(compareBase64Mixed(i,o)){return true}}return false}const D=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(t){const n=[];let s=true;for(const o of t.split(" ")){s=false;const t=D.exec(o);if(t===null||t.groups===undefined||t.groups.algo===undefined){continue}const i=t.groups.algo.toLowerCase();if(w.includes(i)){n.push(t.groups)}}if(s===true){return"no metadata"}return n}function getStrongestMetadata(t){let n=t[0].algo;if(n[3]==="5"){return n}for(let s=1;s<t.length;++s){const o=t[s];if(o.algo[3]==="5"){n="sha512";break}else if(n[3]==="3"){continue}else if(o.algo[3]==="3"){n="sha384"}}return n}function filterMetadataListByAlgorithm(t,n){if(t.length===1){return t}let s=0;for(let o=0;o<t.length;++o){if(t[o].algo===n){t[s++]=t[o]}}t.length=s;return t}function compareBase64Mixed(t,n){if(t.length!==n.length){return false}for(let s=0;s<t.length;++s){if(t[s]!==n[s]){if(t[s]==="+"&&n[s]==="-"||t[s]==="/"&&n[s]==="_"){continue}return false}}return true}function tryUpgradeRequestToAPotentiallyTrustworthyURL(t){}function sameOrigin(t,n){if(t.origin===n.origin&&t.origin==="null"){return true}if(t.protocol===n.protocol&&t.hostname===n.hostname&&t.port===n.port){return true}return false}function createDeferredPromise(){let t;let n;const s=new Promise((s,o)=>{t=s;n=o});return{promise:s,resolve:t,reject:n}}function isAborted(t){return t.controller.state==="aborted"}function isCancelled(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function normalizeMethod(t){return m[t.toLowerCase()]??t}function serializeJavascriptValueToJSONString(t){const n=JSON.stringify(t);if(n===undefined){throw new TypeError("Value is not JSON serializable")}B(typeof n==="string");return n}const k=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(t,n,s=0,o=1){class FastIterableIterator{#W;#z;#$;constructor(t,n){this.#W=t;this.#z=n;this.#$=0}next(){if(typeof this!=="object"||this===null||!(#W in this)){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const i=this.#$;const A=this.#W[n];const c=A.length;if(i>=c){return{value:undefined,done:true}}const{[s]:l,[o]:u}=A[i];this.#$=i+1;let d;switch(this.#z){case"key":d=l;break;case"value":d=u;break;case"key+value":d=[l,u];break}return{value:d,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,k);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${t} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(t,n){return new FastIterableIterator(t,n)}}function iteratorMixin(t,n,s,o=0,i=1){const A=createIterator(t,s,o,i);const c={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){y.brandCheck(this,n);return A(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){y.brandCheck(this,n);return A(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){y.brandCheck(this,n);return A(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(s,o=globalThis){y.brandCheck(this,n);y.argumentLengthCheck(arguments,1,`${t}.forEach`);if(typeof s!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`)}for(const{0:t,1:n}of A(this,"key+value")){s.call(o,n,t,this)}}}};return Object.defineProperties(n.prototype,{...c,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:c.entries.value}})}async function fullyReadBody(t,n,s){const o=n;const i=s;let A;try{A=t.stream.getReader()}catch(t){i(t);return}try{o(await readAllBytes(A))}catch(t){i(t)}}function isReadableStreamLike(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee==="function"}function readableStreamClose(t){try{t.close();t.byobRequest?.respond(0)}catch(t){if(!t.message.includes("Controller is already closed")&&!t.message.includes("ReadableStream is already closed")){throw t}}}const v=/[^\x00-\xFF]/;function isomorphicEncode(t){B(!v.test(t));return t}async function readAllBytes(t){const n=[];let s=0;while(true){const{done:o,value:i}=await t.read();if(o){return Buffer.concat(n,s)}if(!Q(i)){throw new TypeError("Received non-Uint8Array chunk")}n.push(i);s+=i.length}}function urlIsLocal(t){B("protocol"in t);const n=t.protocol;return n==="about:"||n==="blob:"||n==="data:"}function urlHasHttpsScheme(t){return typeof t==="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}function urlIsHttpHttpsScheme(t){B("protocol"in t);const n=t.protocol;return n==="http:"||n==="https:"}function simpleRangeHeaderValue(t,n){const s=t;if(!s.startsWith("bytes")){return"failure"}const o={position:5};if(n){d(t=>t==="\t"||t===" ",s,o)}if(s.charCodeAt(o.position)!==61){return"failure"}o.position++;if(n){d(t=>t==="\t"||t===" ",s,o)}const i=d(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},s,o);const A=i.length?Number(i):null;if(n){d(t=>t==="\t"||t===" ",s,o)}if(s.charCodeAt(o.position)!==45){return"failure"}o.position++;if(n){d(t=>t==="\t"||t===" ",s,o)}const c=d(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},s,o);const l=c.length?Number(c):null;if(o.position<s.length){return"failure"}if(l===null&&A===null){return"failure"}if(A>l){return"failure"}return{rangeStartValue:A,rangeEndValue:l}}function buildContentRange(t,n,s){let o="bytes ";o+=isomorphicEncode(`${t}`);o+="-";o+=isomorphicEncode(`${n}`);o+="/";o+=isomorphicEncode(`${s}`);return o}class InflateStream extends o{#j;constructor(t){super();this.#j=t}_transform(t,n,s){if(!this._inflateStream){if(t.length===0){s();return}this._inflateStream=(t[0]&15)===8?i.createInflate(this.#j):i.createInflateRaw(this.#j);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",()=>this.push(null));this._inflateStream.on("error",t=>this.destroy(t))}this._inflateStream.write(t,n,s)}_final(t){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}t()}}function createInflate(t){return new InflateStream(t)}function extractMimeType(t){let n=null;let s=null;let o=null;const i=getDecodeSplit("content-type",t);if(i===null){return"failure"}for(const t of i){const i=f(t);if(i==="failure"||i.essence==="*/*"){continue}o=i;if(o.essence!==s){n=null;if(o.parameters.has("charset")){n=o.parameters.get("charset")}s=o.essence}else if(!o.parameters.has("charset")&&n!==null){o.parameters.set("charset",n)}}if(o==null){return"failure"}return o}function gettingDecodingSplitting(t){const n=t;const s={position:0};const o=[];let i="";while(s.position<n.length){i+=d(t=>t!=='"'&&t!==",",n,s);if(s.position<n.length){if(n.charCodeAt(s.position)===34){i+=g(n,s);if(s.position<n.length){continue}}else{B(n.charCodeAt(s.position)===44);s.position++}}i=h(i,true,true,t=>t===9||t===32);o.push(i);i=""}return o}function getDecodeSplit(t,n){const s=n.get(t,true);if(s===null){return null}return gettingDecodingSplitting(s)}const T=new TextDecoder;function utf8DecodeBytes(t){if(t.length===0){return""}if(t[0]===239&&t[1]===187&&t[2]===191){t=t.subarray(3)}const n=T.decode(t);return n}class EnvironmentSettingsObjectBase{get baseUrl(){return u()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const N=new EnvironmentSettingsObject;t.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:I,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:p,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:R,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:N}},5893:(t,n,s)=>{"use strict";const{types:o,inspect:i}=s(7975);const{markAsUncloneable:A}=s(5919);const{toUSVString:c}=s(3440);const l={};l.converters={};l.util={};l.errors={};l.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};l.errors.conversionFailed=function(t){const n=t.types.length===1?"":" one of";const s=`${t.argument} could not be converted to`+`${n}: ${t.types.join(", ")}.`;return l.errors.exception({header:t.prefix,message:s})};l.errors.invalidArgument=function(t){return l.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};l.brandCheck=function(t,n,s){if(s?.strict!==false){if(!(t instanceof n)){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}else{if(t?.[Symbol.toStringTag]!==n.prototype[Symbol.toStringTag]){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}};l.argumentLengthCheck=function({length:t},n,s){if(t<n){throw l.errors.exception({message:`${n} argument${n!==1?"s":""} required, `+`but${t?" only":""} ${t} found.`,header:s})}};l.illegalConstructor=function(){throw l.errors.exception({header:"TypeError",message:"Illegal constructor"})};l.util.Type=function(t){switch(typeof t){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":{if(t===null){return"Null"}return"Object"}}};l.util.markAsUncloneable=A||(()=>{});l.util.ConvertToInt=function(t,n,s,o){let i;let A;if(n===64){i=Math.pow(2,53)-1;if(s==="unsigned"){A=0}else{A=Math.pow(-2,53)+1}}else if(s==="unsigned"){A=0;i=Math.pow(2,n)-1}else{A=Math.pow(-2,n)-1;i=Math.pow(2,n-1)-1}let c=Number(t);if(c===0){c=0}if(o?.enforceRange===true){if(Number.isNaN(c)||c===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY){throw l.errors.exception({header:"Integer conversion",message:`Could not convert ${l.util.Stringify(t)} to an integer.`})}c=l.util.IntegerPart(c);if(c<A||c>i){throw l.errors.exception({header:"Integer conversion",message:`Value must be between ${A}-${i}, got ${c}.`})}return c}if(!Number.isNaN(c)&&o?.clamp===true){c=Math.min(Math.max(c,A),i);if(Math.floor(c)%2===0){c=Math.floor(c)}else{c=Math.ceil(c)}return c}if(Number.isNaN(c)||c===0&&Object.is(0,c)||c===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY){return 0}c=l.util.IntegerPart(c);c=c%Math.pow(2,n);if(s==="signed"&&c>=Math.pow(2,n)-1){return c-Math.pow(2,n)}return c};l.util.IntegerPart=function(t){const n=Math.floor(Math.abs(t));if(t<0){return-1*n}return n};l.util.Stringify=function(t){const n=l.util.Type(t);switch(n){case"Symbol":return`Symbol(${t.description})`;case"Object":return i(t);case"String":return`"${t}"`;default:return`${t}`}};l.sequenceConverter=function(t){return(n,s,o,i)=>{if(l.util.Type(n)!=="Object"){throw l.errors.exception({header:s,message:`${o} (${l.util.Stringify(n)}) is not iterable.`})}const A=typeof i==="function"?i():n?.[Symbol.iterator]?.();const c=[];let u=0;if(A===undefined||typeof A.next!=="function"){throw l.errors.exception({header:s,message:`${o} is not iterable.`})}while(true){const{done:n,value:i}=A.next();if(n){break}c.push(t(i,s,`${o}[${u++}]`))}return c}};l.recordConverter=function(t,n){return(s,i,A)=>{if(l.util.Type(s)!=="Object"){throw l.errors.exception({header:i,message:`${A} ("${l.util.Type(s)}") is not an Object.`})}const c={};if(!o.isProxy(s)){const o=[...Object.getOwnPropertyNames(s),...Object.getOwnPropertySymbols(s)];for(const l of o){const o=t(l,i,A);const u=n(s[l],i,A);c[o]=u}return c}const u=Reflect.ownKeys(s);for(const o of u){const l=Reflect.getOwnPropertyDescriptor(s,o);if(l?.enumerable){const l=t(o,i,A);const u=n(s[o],i,A);c[l]=u}}return c}};l.interfaceConverter=function(t){return(n,s,o,i)=>{if(i?.strict!==false&&!(n instanceof t)){throw l.errors.exception({header:s,message:`Expected ${o} ("${l.util.Stringify(n)}") to be an instance of ${t.name}.`})}return n}};l.dictionaryConverter=function(t){return(n,s,o)=>{const i=l.util.Type(n);const A={};if(i==="Null"||i==="Undefined"){return A}else if(i!=="Object"){throw l.errors.exception({header:s,message:`Expected ${n} to be one of: Null, Undefined, Object.`})}for(const i of t){const{key:t,defaultValue:c,required:u,converter:d}=i;if(u===true){if(!Object.hasOwn(n,t)){throw l.errors.exception({header:s,message:`Missing required key "${t}".`})}}let g=n[t];const h=Object.hasOwn(i,"defaultValue");if(h&&g!==null){g??=c()}if(u||h||g!==undefined){g=d(g,s,`${o}.${t}`);if(i.allowedValues&&!i.allowedValues.includes(g)){throw l.errors.exception({header:s,message:`${g} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}A[t]=g}}return A}};l.nullableConverter=function(t){return(n,s,o)=>{if(n===null){return n}return t(n,s,o)}};l.converters.DOMString=function(t,n,s,o){if(t===null&&o?.legacyNullToEmptyString){return""}if(typeof t==="symbol"){throw l.errors.exception({header:n,message:`${s} is a symbol, which cannot be converted to a DOMString.`})}return String(t)};l.converters.ByteString=function(t,n,s){const o=l.converters.DOMString(t,n,s);for(let t=0;t<o.length;t++){if(o.charCodeAt(t)>255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${t} has a value of ${o.charCodeAt(t)} which is greater than 255.`)}}return o};l.converters.USVString=c;l.converters.boolean=function(t){const n=Boolean(t);return n};l.converters.any=function(t){return t};l.converters["long long"]=function(t,n,s){const o=l.util.ConvertToInt(t,64,"signed",undefined,n,s);return o};l.converters["unsigned long long"]=function(t,n,s){const o=l.util.ConvertToInt(t,64,"unsigned",undefined,n,s);return o};l.converters["unsigned long"]=function(t,n,s){const o=l.util.ConvertToInt(t,32,"unsigned",undefined,n,s);return o};l.converters["unsigned short"]=function(t,n,s,o){const i=l.util.ConvertToInt(t,16,"unsigned",o,n,s);return i};l.converters.ArrayBuffer=function(t,n,s,i){if(l.util.Type(t)!=="Object"||!o.isAnyArrayBuffer(t)){throw l.errors.conversionFailed({prefix:n,argument:`${s} ("${l.util.Stringify(t)}")`,types:["ArrayBuffer"]})}if(i?.allowShared===false&&o.isSharedArrayBuffer(t)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.resizable||t.growable){throw l.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};l.converters.TypedArray=function(t,n,s,i,A){if(l.util.Type(t)!=="Object"||!o.isTypedArray(t)||t.constructor.name!==n.name){throw l.errors.conversionFailed({prefix:s,argument:`${i} ("${l.util.Stringify(t)}")`,types:[n.name]})}if(A?.allowShared===false&&o.isSharedArrayBuffer(t.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw l.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};l.converters.DataView=function(t,n,s,i){if(l.util.Type(t)!=="Object"||!o.isDataView(t)){throw l.errors.exception({header:n,message:`${s} is not a DataView.`})}if(i?.allowShared===false&&o.isSharedArrayBuffer(t.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw l.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};l.converters.BufferSource=function(t,n,s,i){if(o.isAnyArrayBuffer(t)){return l.converters.ArrayBuffer(t,n,s,{...i,allowShared:false})}if(o.isTypedArray(t)){return l.converters.TypedArray(t,t.constructor,n,s,{...i,allowShared:false})}if(o.isDataView(t)){return l.converters.DataView(t,n,s,{...i,allowShared:false})}throw l.errors.conversionFailed({prefix:n,argument:`${s} ("${l.util.Stringify(t)}")`,types:["BufferSource"]})};l.converters["sequence<ByteString>"]=l.sequenceConverter(l.converters.ByteString);l.converters["sequence<sequence<ByteString>>"]=l.sequenceConverter(l.converters["sequence<ByteString>"]);l.converters["record<ByteString, ByteString>"]=l.recordConverter(l.converters.ByteString,l.converters.ByteString);t.exports={webidl:l}},2607:t=>{"use strict";function getEncoding(t){if(!t){return"failure"}switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}t.exports={getEncoding:getEncoding}},8355:(t,n,s)=>{"use strict";const{staticPropertyDescriptors:o,readOperation:i,fireAProgressEvent:A}=s(3610);const{kState:c,kError:l,kResult:u,kEvents:d,kAborted:g}=s(961);const{webidl:h}=s(5893);const{kEnumerableProperty:f}=s(3440);class FileReader extends EventTarget{constructor(){super();this[c]="empty";this[u]=null;this[l]=null;this[d]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");t=h.converters.Blob(t,{strict:false});i(this,t,"ArrayBuffer")}readAsBinaryString(t){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");t=h.converters.Blob(t,{strict:false});i(this,t,"BinaryString")}readAsText(t,n=undefined){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,"FileReader.readAsText");t=h.converters.Blob(t,{strict:false});if(n!==undefined){n=h.converters.DOMString(n,"FileReader.readAsText","encoding")}i(this,t,"Text",n)}readAsDataURL(t){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");t=h.converters.Blob(t,{strict:false});i(this,t,"DataURL")}abort(){if(this[c]==="empty"||this[c]==="done"){this[u]=null;return}if(this[c]==="loading"){this[c]="done";this[u]=null}this[g]=true;A("abort",this);if(this[c]!=="loading"){A("loadend",this)}}get readyState(){h.brandCheck(this,FileReader);switch(this[c]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){h.brandCheck(this,FileReader);return this[u]}get error(){h.brandCheck(this,FileReader);return this[l]}get onloadend(){h.brandCheck(this,FileReader);return this[d].loadend}set onloadend(t){h.brandCheck(this,FileReader);if(this[d].loadend){this.removeEventListener("loadend",this[d].loadend)}if(typeof t==="function"){this[d].loadend=t;this.addEventListener("loadend",t)}else{this[d].loadend=null}}get onerror(){h.brandCheck(this,FileReader);return this[d].error}set onerror(t){h.brandCheck(this,FileReader);if(this[d].error){this.removeEventListener("error",this[d].error)}if(typeof t==="function"){this[d].error=t;this.addEventListener("error",t)}else{this[d].error=null}}get onloadstart(){h.brandCheck(this,FileReader);return this[d].loadstart}set onloadstart(t){h.brandCheck(this,FileReader);if(this[d].loadstart){this.removeEventListener("loadstart",this[d].loadstart)}if(typeof t==="function"){this[d].loadstart=t;this.addEventListener("loadstart",t)}else{this[d].loadstart=null}}get onprogress(){h.brandCheck(this,FileReader);return this[d].progress}set onprogress(t){h.brandCheck(this,FileReader);if(this[d].progress){this.removeEventListener("progress",this[d].progress)}if(typeof t==="function"){this[d].progress=t;this.addEventListener("progress",t)}else{this[d].progress=null}}get onload(){h.brandCheck(this,FileReader);return this[d].load}set onload(t){h.brandCheck(this,FileReader);if(this[d].load){this.removeEventListener("load",this[d].load)}if(typeof t==="function"){this[d].load=t;this.addEventListener("load",t)}else{this[d].load=null}}get onabort(){h.brandCheck(this,FileReader);return this[d].abort}set onabort(t){h.brandCheck(this,FileReader);if(this[d].abort){this.removeEventListener("abort",this[d].abort)}if(typeof t==="function"){this[d].abort=t;this.addEventListener("abort",t)}else{this[d].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:o,LOADING:o,DONE:o,readAsArrayBuffer:f,readAsBinaryString:f,readAsText:f,readAsDataURL:f,abort:f,readyState:f,result:f,error:f,onloadstart:f,onprogress:f,onload:f,onabort:f,onerror:f,onloadend:f,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:o,LOADING:o,DONE:o});t.exports={FileReader:FileReader}},8573:(t,n,s)=>{"use strict";const{webidl:o}=s(5893);const i=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(t,n={}){t=o.converters.DOMString(t,"ProgressEvent constructor","type");n=o.converters.ProgressEventInit(n??{});super(t,n);this[i]={lengthComputable:n.lengthComputable,loaded:n.loaded,total:n.total}}get lengthComputable(){o.brandCheck(this,ProgressEvent);return this[i].lengthComputable}get loaded(){o.brandCheck(this,ProgressEvent);return this[i].loaded}get total(){o.brandCheck(this,ProgressEvent);return this[i].total}}o.converters.ProgressEventInit=o.dictionaryConverter([{key:"lengthComputable",converter:o.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}]);t.exports={ProgressEvent:ProgressEvent}},961:t=>{"use strict";t.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(t,n,s)=>{"use strict";const{kState:o,kError:i,kResult:A,kAborted:c,kLastProgressEventFired:l}=s(961);const{ProgressEvent:u}=s(8573);const{getEncoding:d}=s(2607);const{serializeAMimeType:g,parseMIMEType:h}=s(1900);const{types:f}=s(7975);const{StringDecoder:E}=s(3193);const{btoa:p}=s(4573);const C={enumerable:true,writable:false,configurable:false};function readOperation(t,n,s,u){if(t[o]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}t[o]="loading";t[A]=null;t[i]=null;const d=n.stream();const g=d.getReader();const h=[];let E=g.read();let p=true;(async()=>{while(!t[c]){try{const{done:d,value:C}=await E;if(p&&!t[c]){queueMicrotask(()=>{fireAProgressEvent("loadstart",t)})}p=false;if(!d&&f.isUint8Array(C)){h.push(C);if((t[l]===undefined||Date.now()-t[l]>=50)&&!t[c]){t[l]=Date.now();queueMicrotask(()=>{fireAProgressEvent("progress",t)})}E=g.read()}else if(d){queueMicrotask(()=>{t[o]="done";try{const o=packageData(h,s,n.type,u);if(t[c]){return}t[A]=o;fireAProgressEvent("load",t)}catch(n){t[i]=n;fireAProgressEvent("error",t)}if(t[o]!=="loading"){fireAProgressEvent("loadend",t)}});break}}catch(n){if(t[c]){return}queueMicrotask(()=>{t[o]="done";t[i]=n;fireAProgressEvent("error",t);if(t[o]!=="loading"){fireAProgressEvent("loadend",t)}});break}}})()}function fireAProgressEvent(t,n){const s=new u(t,{bubbles:false,cancelable:false});n.dispatchEvent(s)}function packageData(t,n,s,o){switch(n){case"DataURL":{let n="data:";const o=h(s||"application/octet-stream");if(o!=="failure"){n+=g(o)}n+=";base64,";const i=new E("latin1");for(const s of t){n+=p(i.write(s))}n+=p(i.end());return n}case"Text":{let n="failure";if(o){n=d(o)}if(n==="failure"&&s){const t=h(s);if(t!=="failure"){n=d(t.parameters.get("charset"))}}if(n==="failure"){n="UTF-8"}return decode(t,n)}case"ArrayBuffer":{const n=combineByteSequences(t);return n.buffer}case"BinaryString":{let n="";const s=new E("latin1");for(const o of t){n+=s.write(o)}n+=s.end();return n}}}function decode(t,n){const s=combineByteSequences(t);const o=BOMSniffing(s);let i=0;if(o!==null){n=o;i=o==="UTF-8"?3:2}const A=s.slice(i);return new TextDecoder(n).decode(A)}function BOMSniffing(t){const[n,s,o]=t;if(n===239&&s===187&&o===191){return"UTF-8"}else if(n===254&&s===255){return"UTF-16BE"}else if(n===255&&s===254){return"UTF-16LE"}return null}function combineByteSequences(t){const n=t.reduce((t,n)=>t+n.byteLength,0);let s=0;return t.reduce((t,n)=>{t.set(n,s);s+=n.byteLength;return t},new Uint8Array(n))}t.exports={staticPropertyDescriptors:C,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(t,n,s)=>{"use strict";const{uid:o,states:i,sentCloseFrameState:A,emptyBuffer:c,opcodes:l}=s(736);const{kReadyState:u,kSentClose:d,kByteParser:g,kReceivedClose:h,kResponse:f}=s(1216);const{fireEvent:E,failWebsocketConnection:p,isClosing:C,isClosed:I,isEstablished:m,parseExtensions:B}=s(8625);const{channels:Q}=s(2414);const{CloseEvent:y}=s(5188);const{makeRequest:w}=s(9967);const{fetching:S}=s(4398);const{Headers:R,getHeadersList:D}=s(660);const{getDecodeSplit:k}=s(3168);const{WebsocketFrameSend:v}=s(3264);let T;try{T=s(7598)}catch{}function establishWebSocketConnection(t,n,s,i,A,c){const l=t;l.protocol=t.protocol==="ws:"?"http:":"https:";const u=w({urlList:[l],client:s,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(c.headers){const t=D(new R(c.headers));u.headersList=t}const d=T.randomBytes(16).toString("base64");u.headersList.append("sec-websocket-key",d);u.headersList.append("sec-websocket-version","13");for(const t of n){u.headersList.append("sec-websocket-protocol",t)}const g="permessage-deflate; client_max_window_bits";u.headersList.append("sec-websocket-extensions",g);const h=S({request:u,useParallelQueue:true,dispatcher:c.dispatcher,processResponse(t){if(t.type==="error"||t.status!==101){p(i,"Received network error or non-101 status code.");return}if(n.length!==0&&!t.headersList.get("Sec-WebSocket-Protocol")){p(i,"Server did not respond with sent protocols.");return}if(t.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){p(i,'Server did not set Upgrade header to "websocket".');return}if(t.headersList.get("Connection")?.toLowerCase()!=="upgrade"){p(i,'Server did not set Connection header to "upgrade".');return}const s=t.headersList.get("Sec-WebSocket-Accept");const c=T.createHash("sha1").update(d+o).digest("base64");if(s!==c){p(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const l=t.headersList.get("Sec-WebSocket-Extensions");let g;if(l!==null){g=B(l);if(!g.has("permessage-deflate")){p(i,"Sec-WebSocket-Extensions header does not match.");return}}const h=t.headersList.get("Sec-WebSocket-Protocol");if(h!==null){const t=k("sec-websocket-protocol",u.headersList);if(t===null||!t.includes(h)){p(i,"Protocol was not set in the opening handshake.");return}}t.socket.on("data",onSocketData);t.socket.on("close",onSocketClose);t.socket.on("error",onSocketError);if(Q.open.hasSubscribers){Q.open.publish({address:t.socket.address(),protocol:h,extensions:l})}A(t,g)}});return h}function closeWebSocketConnection(t,n,s,o){if(C(t)||I(t)){}else if(!m(t)){p(t,"Connection was closed before it was established.");t[u]=i.CLOSING}else if(t[d]===A.NOT_SENT){t[d]=A.PROCESSING;const g=new v;if(n!==undefined&&s===undefined){g.frameData=Buffer.allocUnsafe(2);g.frameData.writeUInt16BE(n,0)}else if(n!==undefined&&s!==undefined){g.frameData=Buffer.allocUnsafe(2+o);g.frameData.writeUInt16BE(n,0);g.frameData.write(s,2,"utf-8")}else{g.frameData=c}const h=t[f].socket;h.write(g.createFrame(l.CLOSE));t[d]=A.SENT;t[u]=i.CLOSING}else{t[u]=i.CLOSING}}function onSocketData(t){if(!this.ws[g].write(t)){this.pause()}}function onSocketClose(){const{ws:t}=this;const{[f]:n}=t;n.socket.off("data",onSocketData);n.socket.off("close",onSocketClose);n.socket.off("error",onSocketError);const s=t[d]===A.SENT&&t[h];let o=1005;let c="";const l=t[g].closingInfo;if(l&&!l.error){o=l.code??1005;c=l.reason}else if(!t[h]){o=1006}t[u]=i.CLOSED;E("close",t,(t,n)=>new y(t,n),{wasClean:s,code:o,reason:c});if(Q.close.hasSubscribers){Q.close.publish({websocket:t,code:o,reason:c})}}function onSocketError(t){const{ws:n}=this;n[u]=i.CLOSING;if(Q.socketError.hasSubscribers){Q.socketError.publish(t)}this.destroy()}t.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:t=>{"use strict";const n="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const s={enumerable:true,writable:false,configurable:false};const o={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const i={NOT_SENT:0,PROCESSING:1,SENT:2};const A={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const c=2**16-1;const l={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const u=Buffer.allocUnsafe(0);const d={string:1,typedArray:2,arrayBuffer:3,blob:4};t.exports={uid:n,sentCloseFrameState:i,staticPropertyDescriptors:s,states:o,opcodes:A,maxUnsigned16Bit:c,parserStates:l,emptyBuffer:u,sendHints:d}},5188:(t,n,s)=>{"use strict";const{webidl:o}=s(5893);const{kEnumerableProperty:i}=s(3440);const{kConstruct:A}=s(6443);const{MessagePort:c}=s(5919);class MessageEvent extends Event{#K;constructor(t,n={}){if(t===A){super(arguments[1],arguments[2]);o.util.markAsUncloneable(this);return}const s="MessageEvent constructor";o.argumentLengthCheck(arguments,1,s);t=o.converters.DOMString(t,s,"type");n=o.converters.MessageEventInit(n,s,"eventInitDict");super(t,n);this.#K=n;o.util.markAsUncloneable(this)}get data(){o.brandCheck(this,MessageEvent);return this.#K.data}get origin(){o.brandCheck(this,MessageEvent);return this.#K.origin}get lastEventId(){o.brandCheck(this,MessageEvent);return this.#K.lastEventId}get source(){o.brandCheck(this,MessageEvent);return this.#K.source}get ports(){o.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#K.ports)){Object.freeze(this.#K.ports)}return this.#K.ports}initMessageEvent(t,n=false,s=false,i=null,A="",c="",l=null,u=[]){o.brandCheck(this,MessageEvent);o.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(t,{bubbles:n,cancelable:s,data:i,origin:A,lastEventId:c,source:l,ports:u})}static createFastMessageEvent(t,n){const s=new MessageEvent(A,t,n);s.#K=n;s.#K.data??=null;s.#K.origin??="";s.#K.lastEventId??="";s.#K.source??=null;s.#K.ports??=[];return s}}const{createFastMessageEvent:l}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#K;constructor(t,n={}){const s="CloseEvent constructor";o.argumentLengthCheck(arguments,1,s);t=o.converters.DOMString(t,s,"type");n=o.converters.CloseEventInit(n);super(t,n);this.#K=n;o.util.markAsUncloneable(this)}get wasClean(){o.brandCheck(this,CloseEvent);return this.#K.wasClean}get code(){o.brandCheck(this,CloseEvent);return this.#K.code}get reason(){o.brandCheck(this,CloseEvent);return this.#K.reason}}class ErrorEvent extends Event{#K;constructor(t,n){const s="ErrorEvent constructor";o.argumentLengthCheck(arguments,1,s);super(t,n);o.util.markAsUncloneable(this);t=o.converters.DOMString(t,s,"type");n=o.converters.ErrorEventInit(n??{});this.#K=n}get message(){o.brandCheck(this,ErrorEvent);return this.#K.message}get filename(){o.brandCheck(this,ErrorEvent);return this.#K.filename}get lineno(){o.brandCheck(this,ErrorEvent);return this.#K.lineno}get colno(){o.brandCheck(this,ErrorEvent);return this.#K.colno}get error(){o.brandCheck(this,ErrorEvent);return this.#K.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:i,code:i,wasClean:i});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:i,filename:i,lineno:i,colno:i,error:i});o.converters.MessagePort=o.interfaceConverter(c);o.converters["sequence<MessagePort>"]=o.sequenceConverter(o.converters.MessagePort);const u=[{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}];o.converters.MessageEventInit=o.dictionaryConverter([...u,{key:"data",converter:o.converters.any,defaultValue:()=>null},{key:"origin",converter:o.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:o.converters.DOMString,defaultValue:()=>""},{key:"source",converter:o.nullableConverter(o.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:o.converters["sequence<MessagePort>"],defaultValue:()=>new Array(0)}]);o.converters.CloseEventInit=o.dictionaryConverter([...u,{key:"wasClean",converter:o.converters.boolean,defaultValue:()=>false},{key:"code",converter:o.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:o.converters.USVString,defaultValue:()=>""}]);o.converters.ErrorEventInit=o.dictionaryConverter([...u,{key:"message",converter:o.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:o.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:o.converters.any}]);t.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:l}},3264:(t,n,s)=>{"use strict";const{maxUnsigned16Bit:o}=s(736);const i=16386;let A;let c=null;let l=i;try{A=s(7598)}catch{A={randomFillSync:function randomFillSync(t,n,s){for(let n=0;n<t.length;++n){t[n]=Math.random()*255|0}return t}}}function generateMask(){if(l===i){l=0;A.randomFillSync(c??=Buffer.allocUnsafe(i),0,i)}return[c[l++],c[l++],c[l++],c[l++]]}class WebsocketFrameSend{constructor(t){this.frameData=t}createFrame(t){const n=this.frameData;const s=generateMask();const i=n?.byteLength??0;let A=i;let c=6;if(i>o){c+=8;A=127}else if(i>125){c+=2;A=126}const l=Buffer.allocUnsafe(i+c);l[0]=l[1]=0;l[0]|=128;l[0]=(l[0]&240)+t;
|
||
/*! ws. MIT License. Einar Otto Stangvik <[email protected]> */l[c-4]=s[0];l[c-3]=s[1];l[c-2]=s[2];l[c-1]=s[3];l[1]=A;if(A===126){l.writeUInt16BE(i,2)}else if(A===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let t=0;t<i;++t){l[c+t]=n[t]^s[t&3]}return l}}t.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(t,n,s)=>{"use strict";const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=s(8522);const{isValidClientWindowBits:A}=s(8625);const{MessageSizeExceededError:c}=s(8707);const l=Buffer.from([0,0,255,255]);const u=Symbol("kBuffer");const d=Symbol("kLength");class PerMessageDeflate{#Z;#f={};#X=0;constructor(t,n){this.#f.serverNoContextTakeover=t.has("server_no_context_takeover");this.#f.serverMaxWindowBits=t.get("server_max_window_bits");this.#X=n.maxPayloadSize}decompress(t,n,s){if(!this.#Z){let t=i;if(this.#f.serverMaxWindowBits){if(!A(this.#f.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}t=Number.parseInt(this.#f.serverMaxWindowBits)}try{this.#Z=o({windowBits:t})}catch(t){s(t);return}this.#Z[u]=[];this.#Z[d]=0;this.#Z.on("data",t=>{this.#Z[d]+=t.length;if(this.#X>0&&this.#Z[d]>this.#X){s(new c);this.#Z.removeAllListeners();this.#Z.destroy();this.#Z=null;return}this.#Z[u].push(t)});this.#Z.on("error",t=>{this.#Z=null;s(t)})}this.#Z.write(t);if(n){this.#Z.write(l)}this.#Z.flush(()=>{if(!this.#Z){return}const t=Buffer.concat(this.#Z[u],this.#Z[d]);this.#Z[u].length=0;this.#Z[d]=0;s(null,t)})}}t.exports={PerMessageDeflate:PerMessageDeflate}},1652:(t,n,s)=>{"use strict";const{Writable:o}=s(7075);const i=s(4589);const{parserStates:A,opcodes:c,states:l,emptyBuffer:u,sentCloseFrameState:d}=s(736);const{kReadyState:g,kSentClose:h,kResponse:f,kReceivedClose:E}=s(1216);const{channels:p}=s(2414);const{isValidStatusCode:C,isValidOpcode:I,failWebsocketConnection:m,websocketMessageReceived:B,utf8Decode:Q,isControlFrame:y,isTextBinaryFrame:w,isContinuationFrame:S}=s(8625);const{WebsocketFrameSend:R}=s(3264);const{closeWebSocketConnection:D}=s(6897);const{PerMessageDeflate:k}=s(9469);const{MessageSizeExceededError:v}=s(8707);function failWebsocketConnectionWithCode(t,n,s){D(t,n,s,Buffer.byteLength(s));m(t,s)}class ByteParser extends o{#ee=[];#te=0;#ne=0;#re=false;#Q=A.INFO;#se={};#oe=[];#ie;#ae;#X;constructor(t,n,s={}){super();this.ws=t;this.#ie=n==null?new Map:n;this.#ae=s.maxFragments??0;this.#X=s.maxPayloadSize??0;if(this.#ie.has("permessage-deflate")){this.#ie.set("permessage-deflate",new k(n,s))}}_write(t,n,s){this.#ee.push(t);this.#ne+=t.length;this.#re=true;this.run(s)}#Ae(){if(this.#X>0&&!y(this.#se.opcode)&&this.#se.payloadLength+this.#te>this.#X){failWebsocketConnectionWithCode(this.ws,1009,"Payload size exceeds maximum allowed size");return false}return true}run(t){while(this.#re){if(this.#Q===A.INFO){if(this.#ne<2){return t()}const n=this.consume(2);const s=(n[0]&128)!==0;const o=n[0]&15;const i=(n[1]&128)===128;const l=!s&&o!==c.CONTINUATION;const u=n[1]&127;const d=n[0]&64;const g=n[0]&32;const h=n[0]&16;if(!I(o)){m(this.ws,"Invalid opcode received");return t()}if(i){m(this.ws,"Frame cannot be masked");return t()}if(d!==0&&!this.#ie.has("permessage-deflate")){m(this.ws,"Expected RSV1 to be clear.");return}if(g!==0||h!==0){m(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(l&&!w(o)){m(this.ws,"Invalid frame type was fragmented.");return}if(w(o)&&this.#oe.length>0){m(this.ws,"Expected continuation frame");return}if(this.#se.fragmented&&l){m(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((u>125||l)&&y(o)){m(this.ws,"Control frame either too large or fragmented");return}if(S(o)&&this.#oe.length===0&&!this.#se.compressed){m(this.ws,"Unexpected continuation frame");return}if(u<=125){this.#se.payloadLength=u;this.#Q=A.READ_DATA;if(!this.#Ae()){return}}else if(u===126){this.#Q=A.PAYLOADLENGTH_16}else if(u===127){this.#Q=A.PAYLOADLENGTH_64}if(w(o)){this.#se.binaryType=o;this.#se.compressed=d!==0}this.#se.opcode=o;this.#se.masked=i;this.#se.fin=s;this.#se.fragmented=l}else if(this.#Q===A.PAYLOADLENGTH_16){if(this.#ne<2){return t()}const n=this.consume(2);this.#se.payloadLength=n.readUInt16BE(0);this.#Q=A.READ_DATA;if(!this.#Ae()){return}}else if(this.#Q===A.PAYLOADLENGTH_64){if(this.#ne<8){return t()}const n=this.consume(8);const s=n.readUInt32BE(0);const o=n.readUInt32BE(4);if(s!==0||o>2**31-1){m(this.ws,"Received payload length > 2^31 bytes.");return}this.#se.payloadLength=o;this.#Q=A.READ_DATA;if(!this.#Ae()){return}}else if(this.#Q===A.READ_DATA){if(this.#ne<this.#se.payloadLength){return t()}const n=this.consume(this.#se.payloadLength);if(y(this.#se.opcode)){this.#re=this.parseControlFrame(n);this.#Q=A.INFO;const s=this.ws[f].socket;if(this.#re&&s.writableNeedDrain){this.#re=false;s.once("drain",()=>{if(this.destroyed)return;this.#re=true;this.run(t)});return}}else{if(!this.#se.compressed){if(!this.writeFragments(n)){return}if(this.#X>0&&this.#te>this.#X){failWebsocketConnectionWithCode(this.ws,1009,(new v).message);return}if(!this.#se.fragmented&&this.#se.fin){B(this.ws,this.#se.binaryType,this.consumeFragments())}this.#Q=A.INFO}else{this.#ie.get("permessage-deflate").decompress(n,this.#se.fin,(n,s)=>{if(n){const t=n instanceof v?1009:1007;failWebsocketConnectionWithCode(this.ws,t,n.message);return}if(!this.writeFragments(s)){return}if(this.#X>0&&this.#te>this.#X){failWebsocketConnectionWithCode(this.ws,1009,(new v).message);return}if(!this.#se.fin){this.#Q=A.INFO;this.#re=true;this.run(t);return}B(this.ws,this.#se.binaryType,this.consumeFragments());this.#re=true;this.#Q=A.INFO;this.run(t)});this.#re=false;break}}}}}consume(t){if(t>this.#ne){throw new Error("Called consume() before buffers satiated.")}else if(t===0){return u}if(this.#ee[0].length===t){this.#ne-=this.#ee[0].length;return this.#ee.shift()}const n=Buffer.allocUnsafe(t);let s=0;while(s!==t){const o=this.#ee[0];const{length:i}=o;if(i+s===t){n.set(this.#ee.shift(),s);break}else if(i+s>t){n.set(o.subarray(0,t-s),s);this.#ee[0]=o.subarray(t-s);break}else{n.set(this.#ee.shift(),s);s+=o.length}}this.#ne-=t;return n}writeFragments(t){if(this.#ae>0&&this.#oe.length===this.#ae){failWebsocketConnectionWithCode(this.ws,1008,"Too many message fragments");return false}this.#te+=t.length;this.#oe.push(t);return true}consumeFragments(){const t=this.#oe;if(t.length===1){this.#te=0;return t.shift()}const n=Buffer.concat(t,this.#te);this.#oe=[];this.#te=0;return n}parseCloseBody(t){i(t.length!==1);let n;if(t.length>=2){n=t.readUInt16BE(0)}if(n!==undefined&&!C(n)){return{code:1002,reason:"Invalid status code",error:true}}let s=t.subarray(2);if(s[0]===239&&s[1]===187&&s[2]===191){s=s.subarray(3)}try{s=Q(s)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:n,reason:s,error:false}}parseControlFrame(t){const{opcode:n,payloadLength:s}=this.#se;if(n===c.CLOSE){if(s===1){m(this.ws,"Received close frame with a 1-byte body.");return false}this.#se.closeInfo=this.parseCloseBody(t);if(this.#se.closeInfo.error){const{code:t,reason:n}=this.#se.closeInfo;D(this.ws,t,n,n.length);m(this.ws,n);return false}if(this.ws[h]!==d.SENT){let t=u;if(this.#se.closeInfo.code){t=Buffer.allocUnsafe(2);t.writeUInt16BE(this.#se.closeInfo.code,0)}const n=new R(t);this.ws[f].socket.write(n.createFrame(c.CLOSE),t=>{if(!t){this.ws[h]=d.SENT}})}this.ws[g]=l.CLOSING;this.ws[E]=true;return false}else if(n===c.PING){if(!this.ws[E]){const n=new R(t);this.ws[f].socket.write(n.createFrame(c.PONG));if(p.ping.hasSubscribers){p.ping.publish({payload:t})}}}else if(n===c.PONG){if(p.pong.hasSubscribers){p.pong.publish({payload:t})}}return true}get closingInfo(){return this.#se.closeInfo}}t.exports={ByteParser:ByteParser}},3900:(t,n,s)=>{"use strict";const{WebsocketFrameSend:o}=s(3264);const{opcodes:i,sendHints:A}=s(736);const c=s(4660);const l=Buffer[Symbol.species];class SendQueue{#ce=new c;#le=false;#ue;constructor(t){this.#ue=t}add(t,n,s){if(s!==A.blob){const o=createFrame(t,s);if(!this.#le){this.#ue.write(o,n)}else{const t={promise:null,callback:n,frame:o};this.#ce.push(t)}return}const o={promise:t.arrayBuffer().then(t=>{o.promise=null;o.frame=createFrame(t,s)}),callback:n,frame:null};this.#ce.push(o);if(!this.#le){this.#de()}}async#de(){this.#le=true;const t=this.#ce;while(!t.isEmpty()){const n=t.shift();if(n.promise!==null){await n.promise}this.#ue.write(n.frame,n.callback);n.callback=n.frame=null}this.#le=false}}function createFrame(t,n){return new o(toBuffer(t,n)).createFrame(n===A.string?i.TEXT:i.BINARY)}function toBuffer(t,n){switch(n){case A.string:return Buffer.from(t);case A.arrayBuffer:case A.blob:return new l(t);case A.typedArray:return new l(t.buffer,t.byteOffset,t.byteLength)}}t.exports={SendQueue:SendQueue}},1216:t=>{"use strict";t.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(t,n,s)=>{"use strict";const{kReadyState:o,kController:i,kResponse:A,kBinaryType:c,kWebSocketURL:l}=s(1216);const{states:u,opcodes:d}=s(736);const{ErrorEvent:g,createFastMessageEvent:h}=s(5188);const{isUtf8:f}=s(4573);const{collectASequenceOfCodePointsFast:E,removeHTTPWhitespace:p}=s(1900);function isConnecting(t){return t[o]===u.CONNECTING}function isEstablished(t){return t[o]===u.OPEN}function isClosing(t){return t[o]===u.CLOSING}function isClosed(t){return t[o]===u.CLOSED}function fireEvent(t,n,s=(t,n)=>new Event(t,n),o={}){const i=s(t,o);n.dispatchEvent(i)}function websocketMessageReceived(t,n,s){if(t[o]!==u.OPEN){return}let i;if(n===d.TEXT){try{i=m(s)}catch{failWebsocketConnection(t,"Received invalid UTF-8 in text frame.");return}}else if(n===d.BINARY){if(t[c]==="blob"){i=new Blob([s])}else{i=toArrayBuffer(s)}}fireEvent("message",t,h,{origin:t[l].origin,data:i})}function toArrayBuffer(t){if(t.byteLength===t.buffer.byteLength){return t.buffer}return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function isValidSubprotocol(t){if(t.length===0){return false}for(let n=0;n<t.length;++n){const s=t.charCodeAt(n);if(s<33||s>126||s===34||s===40||s===41||s===44||s===47||s===58||s===59||s===60||s===61||s===62||s===63||s===64||s===91||s===92||s===93||s===123||s===125){return false}}return true}function isValidStatusCode(t){if(t>=1e3&&t<1015){return t!==1004&&t!==1005&&t!==1006}return t>=3e3&&t<=4999}function failWebsocketConnection(t,n){const{[i]:s,[A]:o}=t;s.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(n){fireEvent("error",t,(t,n)=>new g(t,n),{error:new Error(n),message:n})}}function isControlFrame(t){return t===d.CLOSE||t===d.PING||t===d.PONG}function isContinuationFrame(t){return t===d.CONTINUATION}function isTextBinaryFrame(t){return t===d.TEXT||t===d.BINARY}function isValidOpcode(t){return isTextBinaryFrame(t)||isContinuationFrame(t)||isControlFrame(t)}function parseExtensions(t){const n={position:0};const s=new Map;while(n.position<t.length){const o=E(";",t,n);const[i,A=""]=o.split("=");s.set(p(i,true,false),p(A,false,true));n.position++}return s}function isValidClientWindowBits(t){if(t.length===0){return false}for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s<48||s>57){return false}}const n=Number.parseInt(t,10);return n>=8&&n<=15}const C=typeof process.versions.icu==="string";const I=C?new TextDecoder("utf-8",{fatal:true}):undefined;const m=C?I.decode.bind(I):function(t){if(f(t)){return t.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};t.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:m,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(t,n,s)=>{"use strict";const{webidl:o}=s(5893);const{URLSerializer:i}=s(1900);const{environmentSettingsObject:A}=s(3168);const{staticPropertyDescriptors:c,states:l,sentCloseFrameState:u,sendHints:d}=s(736);const{kWebSocketURL:g,kReadyState:h,kController:f,kBinaryType:E,kResponse:p,kSentClose:C,kByteParser:I}=s(1216);const{isConnecting:m,isEstablished:B,isClosing:Q,isValidSubprotocol:y,fireEvent:w}=s(8625);const{establishWebSocketConnection:S,closeWebSocketConnection:R}=s(6897);const{ByteParser:D}=s(1652);const{kEnumerableProperty:k,isBlobLike:v}=s(3440);const{getGlobalDispatcher:T}=s(2581);const{types:N}=s(7975);const{ErrorEvent:F,CloseEvent:x}=s(5188);const{SendQueue:M}=s(3900);class WebSocket extends EventTarget{#L={open:null,error:null,close:null,message:null};#ge=0;#he="";#ie="";#fe;constructor(t,n=[]){super();o.util.markAsUncloneable(this);const s="WebSocket constructor";o.argumentLengthCheck(arguments,1,s);const i=o.converters["DOMString or sequence<DOMString> or WebSocketInit"](n,s,"options");t=o.converters.USVString(t,s,"url");n=i.protocols;const c=A.settingsObject.baseUrl;let l;try{l=new URL(t,c)}catch(t){throw new DOMException(t,"SyntaxError")}if(l.protocol==="http:"){l.protocol="ws:"}else if(l.protocol==="https:"){l.protocol="wss:"}if(l.protocol!=="ws:"&&l.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${l.protocol}`,"SyntaxError")}if(l.hash||l.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof n==="string"){n=[n]}if(n.length!==new Set(n.map(t=>t.toLowerCase())).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(n.length>0&&!n.every(t=>y(t))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(l.href);const d=A.settingsObject;this[f]=S(l,n,d,this,(t,n)=>this.#Ee(t,n),i);this[h]=WebSocket.CONNECTING;this[C]=u.NOT_SENT;this[E]="blob"}close(t=undefined,n=undefined){o.brandCheck(this,WebSocket);const s="WebSocket.close";if(t!==undefined){t=o.converters["unsigned short"](t,s,"code",{clamp:true})}if(n!==undefined){n=o.converters.USVString(n,s,"reason")}if(t!==undefined){if(t!==1e3&&(t<3e3||t>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let i=0;if(n!==undefined){i=Buffer.byteLength(n);if(i>123){throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}R(this,t,n,i)}send(t){o.brandCheck(this,WebSocket);const n="WebSocket.send";o.argumentLengthCheck(arguments,1,n);t=o.converters.WebSocketSendData(t,n,"data");if(m(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!B(this)||Q(this)){return}if(typeof t==="string"){const n=Buffer.byteLength(t);this.#ge+=n;this.#fe.add(t,()=>{this.#ge-=n},d.string)}else if(N.isArrayBuffer(t)){this.#ge+=t.byteLength;this.#fe.add(t,()=>{this.#ge-=t.byteLength},d.arrayBuffer)}else if(ArrayBuffer.isView(t)){this.#ge+=t.byteLength;this.#fe.add(t,()=>{this.#ge-=t.byteLength},d.typedArray)}else if(v(t)){this.#ge+=t.size;this.#fe.add(t,()=>{this.#ge-=t.size},d.blob)}}get readyState(){o.brandCheck(this,WebSocket);return this[h]}get bufferedAmount(){o.brandCheck(this,WebSocket);return this.#ge}get url(){o.brandCheck(this,WebSocket);return i(this[g])}get extensions(){o.brandCheck(this,WebSocket);return this.#ie}get protocol(){o.brandCheck(this,WebSocket);return this.#he}get onopen(){o.brandCheck(this,WebSocket);return this.#L.open}set onopen(t){o.brandCheck(this,WebSocket);if(this.#L.open){this.removeEventListener("open",this.#L.open)}if(typeof t==="function"){this.#L.open=t;this.addEventListener("open",t)}else{this.#L.open=null}}get onerror(){o.brandCheck(this,WebSocket);return this.#L.error}set onerror(t){o.brandCheck(this,WebSocket);if(this.#L.error){this.removeEventListener("error",this.#L.error)}if(typeof t==="function"){this.#L.error=t;this.addEventListener("error",t)}else{this.#L.error=null}}get onclose(){o.brandCheck(this,WebSocket);return this.#L.close}set onclose(t){o.brandCheck(this,WebSocket);if(this.#L.close){this.removeEventListener("close",this.#L.close)}if(typeof t==="function"){this.#L.close=t;this.addEventListener("close",t)}else{this.#L.close=null}}get onmessage(){o.brandCheck(this,WebSocket);return this.#L.message}set onmessage(t){o.brandCheck(this,WebSocket);if(this.#L.message){this.removeEventListener("message",this.#L.message)}if(typeof t==="function"){this.#L.message=t;this.addEventListener("message",t)}else{this.#L.message=null}}get binaryType(){o.brandCheck(this,WebSocket);return this[E]}set binaryType(t){o.brandCheck(this,WebSocket);if(t!=="blob"&&t!=="arraybuffer"){this[E]="blob"}else{this[E]=t}}#Ee(t,n){this[p]=t;const s=this[f]?.dispatcher?.webSocketOptions;const o=s?.maxFragments;const i=s?.maxPayloadSize;const A=new D(this,n,{maxFragments:o,maxPayloadSize:i});A.on("drain",onParserDrain);A.on("error",onParserError.bind(this));t.socket.ws=this;this[I]=A;this.#fe=new M(t.socket);this[h]=l.OPEN;const c=t.headersList.get("sec-websocket-extensions");if(c!==null){this.#ie=c}const u=t.headersList.get("sec-websocket-protocol");if(u!==null){this.#he=u}w("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=l.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=l.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=l.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=l.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:c,OPEN:c,CLOSING:c,CLOSED:c,url:k,readyState:k,bufferedAmount:k,onopen:k,onerror:k,onclose:k,close:k,onmessage:k,binaryType:k,send:k,extensions:k,protocol:k,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:c,OPEN:c,CLOSING:c,CLOSED:c});o.converters["sequence<DOMString>"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence<DOMString>"]=function(t,n,s){if(o.util.Type(t)==="Object"&&Symbol.iterator in t){return o.converters["sequence<DOMString>"](t)}return o.converters.DOMString(t,n,s)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence<DOMString>"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:o.converters.any,defaultValue:()=>T()},{key:"headers",converter:o.nullableConverter(o.converters.HeadersInit)}]);o.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){if(o.util.Type(t)==="Object"&&!(Symbol.iterator in t)){return o.converters.WebSocketInit(t)}return{protocols:o.converters["DOMString or sequence<DOMString>"](t)}};o.converters.WebSocketSendData=function(t){if(o.util.Type(t)==="Object"){if(v(t)){return o.converters.Blob(t,{strict:false})}if(ArrayBuffer.isView(t)||N.isArrayBuffer(t)){return o.converters.BufferSource(t)}}return o.converters.USVString(t)};function onParserDrain(){this.ws[p].socket.resume()}function onParserError(t){let n;let s;if(t instanceof x){n=t.reason;s=t.code}else{n=t.message}w("error",this,()=>new F("error",{error:t,message:n}));R(this,s)}t.exports={WebSocket:WebSocket}},2613:t=>{"use strict";t.exports=require("assert")},4434:t=>{"use strict";t.exports=require("events")},8611:t=>{"use strict";t.exports=require("http")},5692:t=>{"use strict";t.exports=require("https")},9278:t=>{"use strict";t.exports=require("net")},4589:t=>{"use strict";t.exports=require("node:assert")},6698:t=>{"use strict";t.exports=require("node:async_hooks")},4573:t=>{"use strict";t.exports=require("node:buffer")},1421:t=>{"use strict";t.exports=require("node:child_process")},7540:t=>{"use strict";t.exports=require("node:console")},7598:t=>{"use strict";t.exports=require("node:crypto")},3053:t=>{"use strict";t.exports=require("node:diagnostics_channel")},610:t=>{"use strict";t.exports=require("node:dns")},8474:t=>{"use strict";t.exports=require("node:events")},3024:t=>{"use strict";t.exports=require("node:fs")},1455:t=>{"use strict";t.exports=require("node:fs/promises")},7067:t=>{"use strict";t.exports=require("node:http")},2467:t=>{"use strict";t.exports=require("node:http2")},4708:t=>{"use strict";t.exports=require("node:https")},7030:t=>{"use strict";t.exports=require("node:net")},8161:t=>{"use strict";t.exports=require("node:os")},6760:t=>{"use strict";t.exports=require("node:path")},643:t=>{"use strict";t.exports=require("node:perf_hooks")},1708:t=>{"use strict";t.exports=require("node:process")},1792:t=>{"use strict";t.exports=require("node:querystring")},7075:t=>{"use strict";t.exports=require("node:stream")},1692:t=>{"use strict";t.exports=require("node:tls")},3136:t=>{"use strict";t.exports=require("node:url")},7975:t=>{"use strict";t.exports=require("node:util")},3429:t=>{"use strict";t.exports=require("node:util/types")},5919:t=>{"use strict";t.exports=require("node:worker_threads")},8522:t=>{"use strict";t.exports=require("node:zlib")},3193:t=>{"use strict";t.exports=require("string_decoder")},4756:t=>{"use strict";t.exports=require("tls")},9023:t=>{"use strict";t.exports=require("util")}};var n={};function __nccwpck_require__(s){var o=n[s];if(o!==undefined){return o.exports}var i=n[s]={exports:{}};var A=true;try{t[s].call(i.exports,i,i.exports,__nccwpck_require__);A=false}finally{if(A)delete n[s]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var t=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;var n;__nccwpck_require__.t=function(s,o){if(o&1)s=this(s);if(o&8)return s;if(typeof s==="object"&&s){if(o&4&&s.__esModule)return s;if(o&16&&typeof s.then==="function")return s}var i=Object.create(null);__nccwpck_require__.r(i);var A={};n=n||[null,t({}),t([]),t(t)];for(var c=o&2&&s;typeof c=="object"&&!~n.indexOf(c);c=t(c)){Object.getOwnPropertyNames(c).forEach(t=>A[t]=()=>s[t])}A["default"]=()=>s;__nccwpck_require__.d(i,A);return i}})();(()=>{__nccwpck_require__.d=(t,n)=>{for(var s in n){if(__nccwpck_require__.o(n,s)&&!__nccwpck_require__.o(t,s)){Object.defineProperty(t,s,{enumerable:true,get:n[s]})}}}})();(()=>{__nccwpck_require__.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();var s={};(()=>{"use strict";const t=require("os");function utils_toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}function utils_toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}function command_issueCommand(n,s,o){const i=new Command(n,s,o);process.stdout.write(i.toString()+t.EOL)}function command_issue(t,n=""){command_issueCommand(t,{},n)}const n="::";class Command{constructor(t,n,s){if(!t){t="missing.command"}this.command=t;this.properties=n;this.message=s}toString(){let t=n+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let n=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const o=this.properties[s];if(o){if(n){n=false}else{t+=","}t+=`${s}=${escapeProperty(o)}`}}}}t+=`${n}${escapeData(this.message)}`;return t}}function escapeData(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}const s=require("crypto");const o=require("fs");function file_command_issueFileCommand(n,s){const i=process.env[`GITHUB_${n}`];if(!i){throw new Error(`Unable to find environment variable for file command ${n}`)}if(!o.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}o.appendFileSync(i,`${utils_toCommandValue(s)}${t.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(n,o){const i=`ghadelimiter_${s.randomUUID()}`;const A=utils_toCommandValue(o);if(n.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(A.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${n}<<${i}${t.EOL}${A}${t.EOL}${i}`}const i=require("path");var A=__nccwpck_require__(8611);var c=__nccwpck_require__(5692);function getProxyUrl(t){const n=t.protocol==="https:";if(checkBypass(t)){return undefined}const s=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(t){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}function checkBypass(t){if(!t.hostname){return false}const n=t.hostname;if(isLoopbackAddress(n)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let o;if(t.port){o=Number(t.port)}else if(t.protocol==="http:"){o=80}else if(t.protocol==="https:"){o=443}const i=[t.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const t of s.split(",").map(t=>t.trim().toUpperCase()).filter(t=>t)){if(t==="*"||i.some(n=>n===t||n.endsWith(`.${t}`)||t.startsWith(".")&&n.endsWith(`${t}`))){return true}}return false}function isLoopbackAddress(t){const n=t.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(t,n){super(t,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var l=__nccwpck_require__(770);var u=__nccwpck_require__(6752);var d=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};var g;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(g||(g={}));var h;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(h||(h={}));var f;(function(t){t["ApplicationJson"]="application/json"})(f||(f={}));function lib_getProxyUrl(t){const n=pm.getProxyUrl(new URL(t));return n?n.href:""}const E=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const p=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=null&&["OPTIONS","GET","DELETE","HEAD"];const I=10;const m=5;class HttpClientError extends Error{constructor(t,n){super(t);this.name="HttpClientError";this.statusCode=n;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(t){this.message=t}readBody(){return d(this,void 0,void 0,function*(){return new Promise(t=>d(this,void 0,void 0,function*(){let n=Buffer.alloc(0);this.message.on("data",t=>{n=Buffer.concat([n,t])});this.message.on("end",()=>{t(n.toString())})}))})}readBodyBuffer(){return d(this,void 0,void 0,function*(){return new Promise(t=>d(this,void 0,void 0,function*(){const n=[];this.message.on("data",t=>{n.push(t)});this.message.on("end",()=>{t(Buffer.concat(n))})}))})}}function isHttps(t){const n=new URL(t);return n.protocol==="https:"}class lib_HttpClient{constructor(t,n,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(t);this.handlers=n||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(t,n){return d(this,void 0,void 0,function*(){return this.request("OPTIONS",t,null,n||{})})}get(t,n){return d(this,void 0,void 0,function*(){return this.request("GET",t,null,n||{})})}del(t,n){return d(this,void 0,void 0,function*(){return this.request("DELETE",t,null,n||{})})}post(t,n,s){return d(this,void 0,void 0,function*(){return this.request("POST",t,n,s||{})})}patch(t,n,s){return d(this,void 0,void 0,function*(){return this.request("PATCH",t,n,s||{})})}put(t,n,s){return d(this,void 0,void 0,function*(){return this.request("PUT",t,n,s||{})})}head(t,n){return d(this,void 0,void 0,function*(){return this.request("HEAD",t,null,n||{})})}sendStream(t,n,s,o){return d(this,void 0,void 0,function*(){return this.request(t,n,s,o)})}getJson(t){return d(this,arguments,void 0,function*(t,n={}){n[h.Accept]=this._getExistingOrDefaultHeader(n,h.Accept,f.ApplicationJson);const s=yield this.get(t,n);return this._processResponse(s,this.requestOptions)})}postJson(t,n){return d(this,arguments,void 0,function*(t,n,s={}){const o=JSON.stringify(n,null,2);s[h.Accept]=this._getExistingOrDefaultHeader(s,h.Accept,f.ApplicationJson);s[h.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,f.ApplicationJson);const i=yield this.post(t,o,s);return this._processResponse(i,this.requestOptions)})}putJson(t,n){return d(this,arguments,void 0,function*(t,n,s={}){const o=JSON.stringify(n,null,2);s[h.Accept]=this._getExistingOrDefaultHeader(s,h.Accept,f.ApplicationJson);s[h.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,f.ApplicationJson);const i=yield this.put(t,o,s);return this._processResponse(i,this.requestOptions)})}patchJson(t,n){return d(this,arguments,void 0,function*(t,n,s={}){const o=JSON.stringify(n,null,2);s[h.Accept]=this._getExistingOrDefaultHeader(s,h.Accept,f.ApplicationJson);s[h.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,f.ApplicationJson);const i=yield this.patch(t,o,s);return this._processResponse(i,this.requestOptions)})}request(t,n,s,o){return d(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(n);let A=this._prepareRequest(t,i,o);const c=this._allowRetries&&C.includes(t)?this._maxRetries+1:1;let l=0;let u;do{u=yield this.requestRaw(A,s);if(u&&u.message&&u.message.statusCode===g.Unauthorized){let t;for(const n of this.handlers){if(n.canHandleAuthentication(u)){t=n;break}}if(t){return t.handleAuthentication(this,A,s)}else{return u}}let n=this._maxRedirects;while(u.message.statusCode&&E.includes(u.message.statusCode)&&this._allowRedirects&&n>0){const c=u.message.headers["location"];if(!c){break}const l=new URL(c);if(i.protocol==="https:"&&i.protocol!==l.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(l.hostname!==i.hostname){for(const t in o){if(t.toLowerCase()==="authorization"){delete o[t]}}}A=this._prepareRequest(t,l,o);u=yield this.requestRaw(A,s);n--}if(!u.message.statusCode||!p.includes(u.message.statusCode)){return u}l+=1;if(l<c){yield u.readBody();yield this._performExponentialBackoff(l)}}while(l<c);return u})}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(t,n){return d(this,void 0,void 0,function*(){return new Promise((s,o)=>{function callbackForResult(t,n){if(t){o(t)}else if(!n){o(new Error("Unknown error"))}else{s(n)}}this.requestRawWithCallback(t,n,callbackForResult)})})}requestRawWithCallback(t,n,s){if(typeof n==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let o=false;function handleResult(t,n){if(!o){o=true;s(t,n)}}const i=t.httpModule.request(t.options,t=>{const n=new HttpClientResponse(t);handleResult(undefined,n)});let A;i.on("socket",t=>{A=t});i.setTimeout(this._socketTimeout||3*6e4,()=>{if(A){A.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))});i.on("error",function(t){handleResult(t)});if(n&&typeof n==="string"){i.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",function(){i.end()});n.pipe(i)}else{i.end()}}getAgent(t){const n=new URL(t);return this._getAgent(n)}getAgentDispatcher(t){const n=new URL(t);const s=pm.getProxyUrl(n);const o=s&&s.hostname;if(!o){return}return this._getProxyAgentDispatcher(n,s)}_prepareRequest(t,n,s){const o={};o.parsedUrl=n;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?https:http;const A=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):A;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=t;o.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(o.options)}}return o}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,n,s){let o;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[n];if(t){o=typeof t==="number"?t.toString():t}}const i=t[n];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return s}_getExistingOrDefaultContentTypeHeader(t,n){let s;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[h.ContentType];if(t){if(typeof t==="number"){s=String(t)}else if(Array.isArray(t)){s=t.join(", ")}else{s=t}}}const o=t[h.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(s!==undefined){return s}return n}_getAgent(t){let n;const s=pm.getProxyUrl(t);const o=s&&s.hostname;if(this._keepAlive&&o){n=this._proxyAgent}if(!o){n=this._agent}if(n){return n}const i=t.protocol==="https:";let A=100;if(this.requestOptions){A=this.requestOptions.maxSockets||http.globalAgent.maxSockets}if(s&&s.hostname){const t={maxSockets:A,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let o;const c=s.protocol==="https:";if(i){o=c?tunnel.httpsOverHttps:tunnel.httpsOverHttp}else{o=c?tunnel.httpOverHttps:tunnel.httpOverHttp}n=o(t);this._proxyAgent=n}if(!n){const t={keepAlive:this._keepAlive,maxSockets:A};n=i?new https.Agent(t):new http.Agent(t);this._agent=n}if(i&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(t,n){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const o=t.protocol==="https:";s=new ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(o&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_getUserAgentWithOrchestrationId(t){const n=t||"actions/http-client";const s=process.env["ACTIONS_ORCHESTRATION_ID"];if(s){const t=s.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${t}`}return n}_performExponentialBackoff(t){return d(this,void 0,void 0,function*(){t=Math.min(I,t);const n=m*Math.pow(2,t);return new Promise(t=>setTimeout(()=>t(),n))})}_processResponse(t,n){return d(this,void 0,void 0,function*(){return new Promise((s,o)=>d(this,void 0,void 0,function*(){const i=t.message.statusCode||0;const A={statusCode:i,result:null,headers:{}};if(i===g.NotFound){s(A)}function dateTimeDeserializer(t,n){if(typeof n==="string"){const t=new Date(n);if(!isNaN(t.valueOf())){return t}}return n}let c;let l;try{l=yield t.readBody();if(l&&l.length>0){if(n&&n.deserializeDates){c=JSON.parse(l,dateTimeDeserializer)}else{c=JSON.parse(l)}A.result=c}A.headers=t.message.headers}catch(t){}if(i>299){let t;if(c&&c.message){t=c.message}else if(l&&l.length>0){t=l}else{t=`Failed request: (${i})`}const n=new HttpClientError(t,i);n.result=A.result;o(n)}else{s(A)}}))})}}const lowercaseKeys=t=>Object.keys(t).reduce((n,s)=>(n[s.toLowerCase()]=t[s],n),{});var B=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};class BasicCredentialHandler{constructor(t,n){this.username=t;this.password=n}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return B(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class auth_BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return B(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return B(this,void 0,void 0,function*(){throw new Error("not implemented")})}}var Q=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};class oidc_utils_OidcClient{static createHttpClient(t=true,n=10){const s={allowRetries:t,maxRetries:n};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],s)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){return Q(this,void 0,void 0,function*(){var n;const s=oidc_utils_OidcClient.createHttpClient();const o=yield s.getJson(t).catch(t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.message}`)});const i=(n=o.result)===null||n===void 0?void 0:n.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i})}static getIDToken(t){return Q(this,void 0,void 0,function*(){try{let n=oidc_utils_OidcClient.getIDTokenUrl();if(t){const s=encodeURIComponent(t);n=`${n}&audience=${s}`}debug(`ID token url is ${n}`);const s=yield oidc_utils_OidcClient.getCall(n);setSecret(s);return s}catch(t){throw new Error(`Error message: ${t.message}`)}})}}var y=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};const{access:w,appendFile:S,writeFile:R}=o.promises;const D="GITHUB_STEP_SUMMARY";const k="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return y(this,void 0,void 0,function*(){if(this._filePath){return this._filePath}const t=process.env[D];if(!t){throw new Error(`Unable to find environment variable for $${D}. Check if your runtime environment supports job summaries.`)}try{yield w(t,o.constants.R_OK|o.constants.W_OK)}catch(n){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath})}wrap(t,n,s={}){const o=Object.entries(s).map(([t,n])=>` ${t}="${n}"`).join("");if(!n){return`<${t}${o}>`}return`<${t}${o}>${n}</${t}>`}write(t){return y(this,void 0,void 0,function*(){const n=!!(t===null||t===void 0?void 0:t.overwrite);const s=yield this.filePath();const o=n?R:S;yield o(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()})}clear(){return y(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:true})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(t,n=false){this._buffer+=t;return n?this.addEOL():this}addEOL(){return this.addRaw(t.EOL)}addCodeBlock(t,n){const s=Object.assign({},n&&{lang:n});const o=this.wrap("pre",this.wrap("code",t),s);return this.addRaw(o).addEOL()}addList(t,n=false){const s=n?"ol":"ul";const o=t.map(t=>this.wrap("li",t)).join("");const i=this.wrap(s,o);return this.addRaw(i).addEOL()}addTable(t){const n=t.map(t=>{const n=t.map(t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:n,data:s,colspan:o,rowspan:i}=t;const A=n?"th":"td";const c=Object.assign(Object.assign({},o&&{colspan:o}),i&&{rowspan:i});return this.wrap(A,s,c)}).join("");return this.wrap("tr",n)}).join("");const s=this.wrap("table",n);return this.addRaw(s).addEOL()}addDetails(t,n){const s=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(s).addEOL()}addImage(t,n,s){const{width:o,height:i}=s||{};const A=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i});const c=this.wrap("img",null,Object.assign({src:t,alt:n},A));return this.addRaw(c).addEOL()}addHeading(t,n){const s=`h${n}`;const o=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const i=this.wrap(o,t);return this.addRaw(i).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){const s=Object.assign({},n&&{cite:n});const o=this.wrap("blockquote",t,s);return this.addRaw(o).addEOL()}addLink(t,n){const s=this.wrap("a",t,{href:n});return this.addRaw(s).addEOL()}}const v=new Summary;const T=null&&v;const N=null&&v;function toPosixPath(t){return t.replace(/[\\]/g,"/")}function toWin32Path(t){return t.replace(/[/]/g,"\\")}function toPlatformPath(t){return t.replace(/[/\\]/g,path.sep)}var F=__nccwpck_require__(3193);var x=__nccwpck_require__(4434);const M=require("child_process");var U=__nccwpck_require__(2613);var L=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};const{chmod:P,copyFile:O,lstat:H,mkdir:_,open:G,readdir:V,rename:Y,rm:J,rmdir:q,stat:W,symlink:z,unlink:$}=o.promises;const j=process.platform==="win32";function readlink(t){return L(this,void 0,void 0,function*(){const n=yield fs.promises.readlink(t);if(j&&!n.endsWith("\\")){return`${n}\\`}return n})}const K=268435456;const Z=o.constants.O_RDONLY;function exists(t){return L(this,void 0,void 0,function*(){try{yield W(t)}catch(t){if(t.code==="ENOENT"){return false}throw t}return true})}function isDirectory(t){return L(this,arguments,void 0,function*(t,n=false){const s=n?yield W(t):yield H(t);return s.isDirectory()})}function isRooted(t){t=normalizeSeparators(t);if(!t){throw new Error('isRooted() parameter "p" cannot be empty')}if(j){return t.startsWith("\\")||/^[A-Z]:/i.test(t)}return t.startsWith("/")}function tryGetExecutablePath(t,n){return L(this,void 0,void 0,function*(){let s=undefined;try{s=yield W(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(s&&s.isFile()){if(j){const s=i.extname(t).toUpperCase();if(n.some(t=>t.toUpperCase()===s)){return t}}else{if(isUnixExecutable(s)){return t}}}const o=t;for(const A of n){t=o+A;s=undefined;try{s=yield W(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(s&&s.isFile()){if(j){try{const n=i.dirname(t);const s=i.basename(t).toUpperCase();for(const o of yield V(n)){if(s===o.toUpperCase()){t=i.join(n,o);break}}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else{if(isUnixExecutable(s)){return t}}}}return""})}function normalizeSeparators(t){t=t||"";if(j){t=t.replace(/\//g,"\\");return t.replace(/\\\\+/g,"\\")}return t.replace(/\/\/+/g,"/")}function isUnixExecutable(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==undefined&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==undefined&&t.uid===process.getuid()}function getCmdPath(){var t;return(t=process.env["COMSPEC"])!==null&&t!==void 0?t:`cmd.exe`}var X=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};function cp(t,n){return X(this,arguments,void 0,function*(t,n,s={}){const{force:o,recursive:i,copySourceDirectory:A}=readCopyOptions(s);const c=(yield ioUtil.exists(n))?yield ioUtil.stat(n):null;if(c&&c.isFile()&&!o){return}const l=c&&c.isDirectory()&&A?path.join(n,path.basename(t)):n;if(!(yield ioUtil.exists(t))){throw new Error(`no such file or directory: ${t}`)}const u=yield ioUtil.stat(t);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(t,l,0,o)}}else{if(path.relative(t,l)===""){throw new Error(`'${l}' and '${t}' are the same file`)}yield io_copyFile(t,l,o)}})}function mv(t,n){return X(this,arguments,void 0,function*(t,n,s={}){if(yield ioUtil.exists(n)){let o=true;if(yield ioUtil.isDirectory(n)){n=path.join(n,path.basename(t));o=yield ioUtil.exists(n)}if(o){if(s.force==null||s.force){yield rmRF(n)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(n));yield ioUtil.rename(t,n)})}function rmRF(t){return X(this,void 0,void 0,function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(t)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(t,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(t){throw new Error(`File was unable to be removed ${t}`)}})}function mkdirP(t){return X(this,void 0,void 0,function*(){ok(t,"a path argument must be provided");yield ioUtil.mkdir(t,{recursive:true})})}function which(t,n){return X(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}if(n){const n=yield which(t,false);if(!n){if(j){throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return n}const s=yield findInPath(t);if(s&&s.length>0){return s[0]}return""})}function findInPath(t){return X(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}const n=[];if(j&&process.env["PATHEXT"]){for(const t of process.env["PATHEXT"].split(i.delimiter)){if(t){n.push(t)}}}if(isRooted(t)){const s=yield tryGetExecutablePath(t,n);if(s){return[s]}return[]}if(t.includes(i.sep)){return[]}const s=[];if(process.env.PATH){for(const t of process.env.PATH.split(i.delimiter)){if(t){s.push(t)}}}const o=[];for(const A of s){const s=yield tryGetExecutablePath(i.join(A,t),n);if(s){o.push(s)}}return o})}function readCopyOptions(t){const n=t.force==null?true:t.force;const s=Boolean(t.recursive);const o=t.copySourceDirectory==null?true:Boolean(t.copySourceDirectory);return{force:n,recursive:s,copySourceDirectory:o}}function cpDirRecursive(t,n,s,o){return X(this,void 0,void 0,function*(){if(s>=255)return;s++;yield mkdirP(n);const i=yield ioUtil.readdir(t);for(const A of i){const i=`${t}/${A}`;const c=`${n}/${A}`;const l=yield ioUtil.lstat(i);if(l.isDirectory()){yield cpDirRecursive(i,c,s,o)}else{yield io_copyFile(i,c,o)}}yield ioUtil.chmod(n,(yield ioUtil.stat(t)).mode)})}function io_copyFile(t,n,s){return X(this,void 0,void 0,function*(){if((yield ioUtil.lstat(t)).isSymbolicLink()){try{yield ioUtil.lstat(n);yield ioUtil.unlink(n)}catch(t){if(t.code==="EPERM"){yield ioUtil.chmod(n,"0666");yield ioUtil.unlink(n)}}const s=yield ioUtil.readlink(t);yield ioUtil.symlink(s,n,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(n))||s){yield ioUtil.copyFile(t,n)}})}const ee=require("timers");var te=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};const ne=process.platform==="win32";class ToolRunner extends x.EventEmitter{constructor(t,n,s){super();if(!t){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=t;this.args=n||[];this.options=s||{}}_debug(t){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(t)}}_getCommandString(t,n){const s=this._getSpawnFileName();const o=this._getSpawnArgs(t);let i=n?"":"[command]";if(ne){if(this._isCmdFile()){i+=s;for(const t of o){i+=` ${t}`}}else if(t.windowsVerbatimArguments){i+=`"${s}"`;for(const t of o){i+=` ${t}`}}else{i+=this._windowsQuoteCmdArg(s);for(const t of o){i+=` ${this._windowsQuoteCmdArg(t)}`}}}else{i+=s;for(const t of o){i+=` ${t}`}}return i}_processLineBuffer(n,s,o){try{let i=s+n.toString();let A=i.indexOf(t.EOL);while(A>-1){const n=i.substring(0,A);o(n);i=i.substring(A+t.EOL.length);A=i.indexOf(t.EOL)}return i}catch(t){this._debug(`error processing line. Failed with error ${t}`);return""}}_getSpawnFileName(){if(ne){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(t){if(ne){if(this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){n+=" ";n+=t.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}n+='"';return[n]}}return this.args}_endsWith(t,n){return t.endsWith(n)}_isCmdFile(){const t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile()){return this._uvQuoteCmdArg(t)}if(!t){return'""'}const n=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const o of t){if(n.some(t=>t===o)){s=true;break}}if(!s){return t}let o='"';let i=true;for(let n=t.length;n>0;n--){o+=t[n-1];if(i&&t[n-1]==="\\"){o+="\\"}else if(t[n-1]==='"'){i=true;o+='"'}else{i=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t){return'""'}if(!t.includes(" ")&&!t.includes("\t")&&!t.includes('"')){return t}if(!t.includes('"')&&!t.includes("\\")){return`"${t}"`}let n='"';let s=true;for(let o=t.length;o>0;o--){n+=t[o-1];if(s&&t[o-1]==="\\"){n+="\\"}else if(t[o-1]==='"'){s=true;n+="\\"}else{s=false}}n+='"';return n.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};const n={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||false,windowsVerbatimArguments:t.windowsVerbatimArguments||false,failOnStdErr:t.failOnStdErr||false,ignoreReturnCode:t.ignoreReturnCode||false,delay:t.delay||1e4};n.outStream=t.outStream||process.stdout;n.errStream=t.errStream||process.stderr;return n}_getSpawnOptions(t,n){t=t||{};const s={};s.cwd=t.cwd;s.env=t.env;s["windowsVerbatimArguments"]=t.windowsVerbatimArguments||this._isCmdFile();if(t.windowsVerbatimArguments){s.argv0=`"${n}"`}return s}exec(){return te(this,void 0,void 0,function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||ne&&this.toolPath.includes("\\"))){this.toolPath=i.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise((n,s)=>te(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const t of this.args){this._debug(` ${t}`)}const o=this._cloneExecOptions(this.options);if(!o.silent&&o.outStream){o.outStream.write(this._getCommandString(o)+t.EOL)}const i=new ExecState(o,this.toolPath);i.on("debug",t=>{this._debug(t)});if(this.options.cwd&&!(yield exists(this.options.cwd))){return s(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const A=this._getSpawnFileName();const c=M.spawn(A,this._getSpawnArgs(o),this._getSpawnOptions(this.options,A));let l="";if(c.stdout){c.stdout.on("data",t=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(t)}if(!o.silent&&o.outStream){o.outStream.write(t)}l=this._processLineBuffer(t,l,t=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(t)}})})}let u="";if(c.stderr){c.stderr.on("data",t=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(t)}if(!o.silent&&o.errStream&&o.outStream){const n=o.failOnStdErr?o.errStream:o.outStream;n.write(t)}u=this._processLineBuffer(t,u,t=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(t)}})})}c.on("error",t=>{i.processError=t.message;i.processExited=true;i.processClosed=true;i.CheckComplete()});c.on("exit",t=>{i.processExitCode=t;i.processExited=true;this._debug(`Exit code ${t} received from tool '${this.toolPath}'`);i.CheckComplete()});c.on("close",t=>{i.processExitCode=t;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()});i.on("done",(t,o)=>{if(l.length>0){this.emit("stdline",l)}if(u.length>0){this.emit("errline",u)}c.removeAllListeners();if(t){s(t)}else{n(o)}});if(this.options.input){if(!c.stdin){throw new Error("child process missing stdin")}c.stdin.end(this.options.input)}}))})}}function argStringToArray(t){const n=[];let s=false;let o=false;let i="";function append(t){if(o&&t!=='"'){i+="\\"}i+=t;o=false}for(let A=0;A<t.length;A++){const c=t.charAt(A);if(c==='"'){if(!o){s=!s}else{append(c)}continue}if(c==="\\"&&o){append(c);continue}if(c==="\\"&&s){o=true;continue}if(c===" "&&!s){if(i.length>0){n.push(i);i=""}continue}append(c)}if(i.length>0){n.push(i.trim())}return n}class ExecState extends x.EventEmitter{constructor(t,n){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!n){throw new Error("toolPath must not be empty")}this.options=t;this.toolPath=n;if(t.delay){this.delay=t.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,ee.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(t){this.emit("debug",t)}_setResult(){let t;if(this.processExited){if(this.processError){t=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(t.done){return}if(!t.processClosed&&t.processExited){const n=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(n)}t._setResult()}}var re=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};function exec_exec(t,n,s){return re(this,void 0,void 0,function*(){const o=argStringToArray(t);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=o[0];n=o.slice(1).concat(n||[]);const A=new ToolRunner(i,n,s);return A.exec()})}function getExecOutput(t,n,s){return re(this,void 0,void 0,function*(){var o,i;let A="";let c="";const l=new StringDecoder("utf8");const u=new StringDecoder("utf8");const d=(o=s===null||s===void 0?void 0:s.listeners)===null||o===void 0?void 0:o.stdout;const g=(i=s===null||s===void 0?void 0:s.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=t=>{c+=u.write(t);if(g){g(t)}};const stdOutListener=t=>{A+=l.write(t);if(d){d(t)}};const h=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const f=yield exec_exec(t,n,Object.assign(Object.assign({},s),{listeners:h}));A+=l.end();c+=u.end();return{exitCode:f,stdout:A,stderr:c}})}var se=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};const getWindowsInfo=()=>se(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:n}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:n.trim(),version:t.trim()}});const getMacOsInfo=()=>se(void 0,void 0,void 0,function*(){var t,n,s,o;const{stdout:i}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const A=(n=(t=i.match(/ProductVersion:\s*(.+)/))===null||t===void 0?void 0:t[1])!==null&&n!==void 0?n:"";const c=(o=(s=i.match(/ProductName:\s*(.+)/))===null||s===void 0?void 0:s[1])!==null&&o!==void 0?o:"";return{name:c,version:A}});const getLinuxInfo=()=>se(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[n,s]=t.trim().split("\n");return{name:n,version:s}});const oe=t.platform();const ie=t.arch();const ae=oe==="win32";const Ae=oe==="darwin";const ce=oe==="linux";function getDetails(){return se(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield ae?getWindowsInfo():Ae?getMacOsInfo():getLinuxInfo()),{platform:oe,arch:ie,isWindows:ae,isMacOS:Ae,isLinux:ce})})}var le=undefined&&undefined.__awaiter||function(t,n,s,o){function adopt(t){return t instanceof s?t:new s(function(n){n(t)})}return new(s||(s=Promise))(function(s,i){function fulfilled(t){try{step(o.next(t))}catch(t){i(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){i(t)}}function step(t){t.done?s(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})};var ue;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(ue||(ue={}));function exportVariable(t,n){const s=utils_toCommandValue(n);process.env[t]=s;const o=process.env["GITHUB_ENV"]||"";if(o){return file_command_issueFileCommand("ENV",file_command_prepareKeyValueMessage(t,n))}command_issueCommand("set-env",{name:t},s)}function core_setSecret(t){command_issueCommand("add-mask",{},t)}function addPath(t){const n=process.env["GITHUB_PATH"]||"";if(n){issueFileCommand("PATH",t)}else{issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${path.delimiter}${process.env["PATH"]}`}function getInput(t,n){const s=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!s){throw new Error(`Input required and not supplied: ${t}`)}if(n&&n.trimWhitespace===false){return s}return s.trim()}function getMultilineInput(t,n){const s=getInput(t,n).split("\n").filter(t=>t!=="");if(n&&n.trimWhitespace===false){return s}return s.map(t=>t.trim())}function getBooleanInput(t,n){const s=["true","True","TRUE"];const o=["false","False","FALSE"];const i=getInput(t,n);if(s.includes(i))return true;if(o.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(t,n){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return issueFileCommand("OUTPUT",prepareKeyValueMessage(t,n))}process.stdout.write(os.EOL);issueCommand("set-output",{name:t},toCommandValue(n))}function setCommandEcho(t){issue("echo",t?"on":"off")}function setFailed(t){process.exitCode=ue.Failure;error(t)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(t){issueCommand("debug",{},t)}function error(t,n={}){command_issueCommand("error",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function warning(t,n={}){command_issueCommand("warning",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function notice(t,n={}){issueCommand("notice",toCommandProperties(n),t instanceof Error?t.toString():t)}function info(n){process.stdout.write(n+t.EOL)}function startGroup(t){command_issue("group",t)}function endGroup(){command_issue("endgroup")}function group(t,n){return le(this,void 0,void 0,function*(){startGroup(t);let s;try{s=yield n()}finally{endGroup()}return s})}function saveState(t,n){const s=process.env["GITHUB_STATE"]||"";if(s){return file_command_issueFileCommand("STATE",file_command_prepareKeyValueMessage(t,n))}command_issueCommand("save-state",{name:t},utils_toCommandValue(n))}function getState(t){return process.env[`STATE_${t}`]||""}function getIDToken(t){return le(this,void 0,void 0,function*(){return yield OidcClient.getIDToken(t)})}var de=__nccwpck_require__(8249);const ge=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;function isECR(t){return ge.test(t)}function getRegion(t){const n=t.match(ge);if(!n){return""}return n[3]}function getAccountID(t){const n=t.match(ge);if(!n){return""}return n[2]}async function getECRToken(t,n,s){const o=process.env.AWS_SESSION_TOKEN;const i={accessKeyId:n,secretAccessKey:s};if(o){i.sessionToken=o;info("Using AWS session token from environment for ECR authentication")}const A=new de.Tjd({credentials:i,region:getRegion(t)});const c=await A.getAuthorizationToken({registryIds:[getAccountID(t)]});if(!Array.isArray(c.authorizationData)||c.authorizationData.length===0){throw new Error("Unable to fetch ECR credentials from AWS!")}const l=Buffer.from(c.authorizationData[0].authorizationToken||"","base64").toString("utf-8");const u=l.split(":",2);core_setSecret(u[1]);return{username:u[0],password:u[1]}}async function execute(t,n,s={}){let o="";let A="";const c={...s};c.ignoreReturnCode=true;c.listeners={stdline:t=>{o+=`${t}\n`},errline:t=>{A+=`${t}\n`}};if(s.group){const s=[t,...n].join(" ");startGroup(s)}try{const l=await exec_exec(t,n,c);if(s.ignoreReturnCode!==true&&l!==0){let n=`${i.basename(t)} exited with code ${l}`;if(A){n+=`\n${A}`}throw new Error(n)}return{exitCode:l,stdout:o,stderr:A}}finally{if(s.group){endGroup()}}}async function getDockerConfigJson(){const n=i.join(t.homedir(),".docker","config.json");return o.promises.readFile(n,"utf-8").catch(t=>{if(t.code==="ENOENT"){return`{"auths":{}}`}throw t})}const he=!!process.env.STATE_isPost;const fe=process.env.STATE_registry||"";const Ee=/true/i.test(process.env.STATE_logout||"");function setRegistry(t){saveState("registry",t)}function setLogout(t){saveState("logout",t)}if(!he){saveState("isPost","true")}var pe;(function(t){t["AUTH_FILE_PATH"]="auth_file_path";t["LOGOUT"]="logout";t["PASSWORD"]="password";t["REGISTRY"]="registry";t["TLS_VERIFY"]="tls_verify";t["USERNAME"]="username"})(pe||(pe={}));var Ce;(function(t){})(Ce||(Ce={}));let Ie;let me;const Be=i.join(t.homedir(),".docker");const Qe=i.join(Be,"config.json");async function getPodmanPath(){if(Ie==null){Ie=await which("podman",true);await execute(Ie,["version"],{group:true})}return Ie}async function run(){if(t.platform()!=="linux"){throw new Error("❌ Only supported on linux platform")}me=getInput(pe.REGISTRY,{required:true}).toLowerCase();let n=getInput(pe.USERNAME,{required:true});let s=getInput(pe.PASSWORD,{required:true});const A=getInput(pe.LOGOUT)||"true";const c=getInput(pe.AUTH_FILE_PATH);if(isECR(me)){info(`💡 Detected ${me} as an ECR repository`);const t=await getECRToken(me,n,s);n=t.username;s=t.password}setRegistry(me);setLogout(A);const l=["login",me,"-u",n,"-p",s];l.push("--verbose");const u=getInput(pe.TLS_VERIFY);if(u==="false"){l.push("--tls-verify=false")}if(c){l.push(`--authfile=${c}`)}const d=await execute(await getPodmanPath(),l);info(`✅ Successfully logged in to ${me} as ${n}`);let g;if(c){g=c}else{const t=d.stdout.match(/Used:\s+(.+)/);if(t){g=t[1].trim();info(`Detected auth file from podman output: ${g}`)}else{let t=i.join("/","tmp",`podman-run-${process.getuid?process.getuid():0}`);if(process.env.XDG_RUNTIME_DIR){t=process.env.XDG_RUNTIME_DIR}g=i.join(t,"containers","auth.json");warning(`Could not detect auth file path from podman output, using fallback: ${g}`)}}const h="REGISTRY_AUTH_FILE";info(`Exporting ${h}=${g}`);exportVariable(h,g);const f=await o.promises.readFile(g,"utf-8");const E=JSON.parse(f);const p=E.auths[me];info(`✍️ Writing registry credentials to "${Qe}"`);const C=JSON.parse(await getDockerConfigJson());C.auths[me]=p;await o.promises.mkdir(Be,{recursive:true});await o.promises.writeFile(Qe,JSON.stringify(C,undefined,8),"utf-8")}async function registryLogout(){if(!Ee){return}await execute(await getPodmanPath(),["logout",fe]);const t=JSON.parse(await getDockerConfigJson());info(`Removing registry credentials from "${Qe}"`);delete t.auths[fe];await o.promises.writeFile(Qe,JSON.stringify(t,undefined,8),"utf-8")}if(!he){run().catch(setFailed)}else{registryLogout().catch(setFailed)}})();module.exports=s})();
|
||
//# sourceMappingURL=index.js.map |