@agentlang/lstudio 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/assets/{AwsJson1_1Protocol-Bs-KOF3u.js → AwsJson1_1Protocol-wsbyAvre.js} +1 -1
  2. package/assets/_commonjs-dynamic-modules-B7n8ZNar.js +1 -0
  3. package/assets/index-3_2F9LQx.js +1 -0
  4. package/assets/{index-2WvsM2Rj.js → index-BHDiPh0o.js} +6 -6
  5. package/assets/{index-R10cjt6U.js → index-BfWs6B7Z.js} +2 -2
  6. package/assets/index-Bzac4yPb.js +1 -0
  7. package/assets/index-CJzDmIha.js +1 -0
  8. package/assets/{index-CMyUHiQc.js → index-CPpeTRZB.js} +1 -1
  9. package/assets/{index-D_-sPexk.css → index-CUrde35K.css} +1 -1
  10. package/assets/{index-D4z_hbl0-BL_vRy6b.js → index-D4z_hbl0-DMpNs09k.js} +2 -2
  11. package/assets/{index-yIpMibae.js → index-DcfSUfKC.js} +300 -295
  12. package/assets/index.browser-CSfSj68l.js +6 -0
  13. package/assets/loadCognitoIdentity-yMbT3vM8.js +1 -0
  14. package/assets/{loadSts-C2Q5qCT1.js → loadSts-D2KuE3Wg.js} +1 -1
  15. package/assets/{replService-BOpSWnUZ.js → replService-BCjABThC.js} +1 -1
  16. package/assets/util-Cb5ErRuM.js +10 -0
  17. package/assets/{winston-1qzyIKCb-BdlBoF8R.js → winston-1qzyIKCb-CLvI85k0.js} +1 -1
  18. package/assets/{winston-DDcfL10c.js → winston-CfAk0yN1.js} +2 -2
  19. package/assets/winston-CtxF18qc-1uz0_uFI.js +1 -0
  20. package/assets/{winston-C4UOaon2.js → winston-DgHuUfbR.js} +1 -1
  21. package/index.html +3 -6
  22. package/package.json +1 -1
  23. package/assets/_commonjs-dynamic-modules-TDtrdbi3.js +0 -1
  24. package/assets/index-BLr5FjlG.js +0 -1
  25. package/assets/index-BOSgoMcw.js +0 -1
  26. package/assets/index-DVmya6p1.js +0 -1
  27. package/assets/index-DzJU27LV.js +0 -1
  28. package/assets/index-rEhqCN8O.js +0 -6
  29. package/assets/index.browser-BYRWACjF.js +0 -6
  30. package/assets/inherits_browser-5Fj3Mjxs.js +0 -1
  31. package/assets/loadCognitoIdentity-BtOy6bnr.js +0 -1
  32. package/assets/util-qaS8mbUT.js +0 -10
  33. package/assets/winston-CtxF18qc-Cn1Quo2c.js +0 -1
@@ -0,0 +1,6 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-yMbT3vM8.js","assets/index-CPpeTRZB.js","assets/normalizeProvider-EC8cbfMc.js","assets/preload-helper-BlTxHScW.js","assets/index-DcfSUfKC.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DLjrMatA.js","assets/inherits_browser-nmOknR35-Bp0mvRSL.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/index-DsIu-45t-Bejjlpz4.js","assets/index-DSosZ5sh-Ceejs_jv.js","assets/index-69shuAsh-DF18H7zf.js","assets/index-BJBOx-Z---hbiLl7B.js","assets/index.browser-BHPvGrwi-6Mh8eUw-.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/_commonjs-dynamic-modules-B7n8ZNar.js","assets/index-CUrde35K.css","assets/AwsJson1_1Protocol-wsbyAvre.js","assets/loadSts-D2KuE3Wg.js","assets/index-CJzDmIha.js"])))=>i.map(i=>d[i]);
2
+ import{_ as I}from"./preload-helper-BlTxHScW.js";import{d as O,g as N,t as x,s as D,H as K,h as H,F as j,n as q}from"./normalizeProvider-EC8cbfMc.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-yMbT3vM8.js");return{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),n=c=>e.clientConfig?.[c]??e.parentClientConfig?.[c]??t?.callerClientConfig?.[c],{Credentials:{AccessKeyId:s=L(e.logger),Expiration:i,SecretKey:d=M(e.logger),SessionToken:u}=$(e.logger)}=await(e.client??new r(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new o({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await _(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:d,sessionToken:u,expiration:i}}}function L(e){throw new l("Response from Amazon Cognito contained no access key ID",{logger:e})}function $(e){throw new l("Response from Amazon Cognito contained no credentials",{logger:e})}function M(e){throw new l("Response from Amazon Cognito contained no secret key",{logger:e})}const b="IdentityIds";class B{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",o=>{const r=o.get(t);return new Promise(n=>{r.onerror=()=>n(null),r.onsuccess=()=>n(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",o=>{const r=o.delete(t);return new Promise((n,s)=>{r.onerror=()=>s(r.error),r.onsuccess=()=>n()})})}setItem(t,o){return this.withObjectStore("readwrite",r=>{const n=r.put({id:t,value:o});return new Promise((s,i)=>{n.onerror=()=>i(n.error),n.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{t.onsuccess=()=>{o(t.result)},t.onerror=()=>{r(t.error)},t.onblocked=()=>{r(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const n=t.result;n.onerror=()=>{r(new Error("Failed to create object store"))},n.createObjectStore(b,{keyPath:"id"})}})}withObjectStore(t,o){return this.getDb().then(r=>{const n=r.transaction(b,t);return n.oncomplete=()=>r.close(),new Promise((s,i)=>{n.onerror=()=>i(n.error),s(o(n.objectStore(b)))}).catch(s=>{throw r.close(),s})})}}class W{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,o){this.store[t]=o}}const U=new W;function F(){return typeof self=="object"&&self.indexedDB?new B:typeof window=="object"&&window.localStorage?window.localStorage:U}function z({accountId:e,cache:t=F(),client:o,clientConfig:r,customRoleArn:n,identityPoolId:s,logins:i,userIdentifier:d=!i||Object.keys(i).length===0?"ANONYMOUS":void 0,logger:u,parentClientConfig:c}){u?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const f=d?`aws:cognito-identity-credentials:${s}:${d}`:void 0;let a=async w=>{const{GetIdCommand:m,CognitoIdentityClient:y}=await I(async()=>{const{GetIdCommand:g,CognitoIdentityClient:P}=await import("./loadCognitoIdentity-yMbT3vM8.js");return{GetIdCommand:g,CognitoIdentityClient:P}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),h=g=>r?.[g]??c?.[g]??w?.callerClientConfig?.[g],C=o??new y(Object.assign({},r??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")}));let p=f&&await t.getItem(f);if(!p){const{IdentityId:g=G(u)}=await C.send(new m({AccountId:e,IdentityPoolId:s,Logins:i?await _(i):void 0}));p=g,f&&Promise.resolve(t.setItem(f,p)).catch(()=>{})}return a=k({client:C,customRoleArn:n,logins:i,identityId:p}),a(w)};return w=>a(w).catch(async m=>{throw f&&Promise.resolve(t.removeItem(f)).catch(()=>{}),m})}function G(e){throw new l("Response from Amazon Cognito contained no identity ID",{logger:e})}const ie=e=>k({...e}),ae=e=>z({...e}),V="169.254.170.2",J="169.254.170.23",Y="[fd00:ec2::23]",Q=(e,t)=>{if(e.protocol!=="https:"&&!(e.hostname===V||e.hostname===J||e.hostname===Y)){if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const o=e.hostname.split("."),r=n=>{const s=parseInt(n,10);return 0<=s&&s<=255};if(o[0]==="127"&&r(o[1])&&r(o[2])&&r(o[3])&&o.length===4)return}throw new l(`URL not accepted. It must either be HTTPS or match one of the following:
3
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
4
+ - ECS container host 169.254.170.2
5
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}},T=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),R="The stream has already been transformed.",X=e=>{if(!E(e)&&!T(e)){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1;const o=async()=>{if(t)throw new Error(R);return t=!0,await D(e)},r=n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
6
+ 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 n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-D2KuE3Wg.js").then(y=>y.l);return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));if(!r){const w=typeof t=="function"?t():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void s?.credentials,s?.credentialDefaultProvider?.(),w];let y="STS client default credentials";if(m[0])y="options.masterCredentials";else if(m[1])y="options.clientConfig.credentials";else{if(m[2])throw y="caller client's credentials",new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");m[3]?y="caller client's credentialDefaultProvider":m[4]&&(y="AWS SDK default credentials")}const h=[e.clientConfig?.region,s?.region,await o?.({profile:i}),ne];let C="default partition's default region";h[0]?C="options.clientConfig.region":h[1]?C="caller client's region":h[2]&&(C="file or env region");const p=[v(e.clientConfig?.requestHandler),v(s?.requestHandler)];let g="STS default requestHandler";p[0]?g="options.clientConfig.requestHandler":p[1]&&(g="caller client's requestHandler"),d?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${C}=${await q(S(h))()}, ${y}, ${g}.`),r=new f({userAgentAppId:s?.userAgentAppId,...e.clientConfig,credentials:S(m),logger:d,profile:i,region:S(h),requestHandler:S(p)})}if(e.clientPlugins)for(const w of e.clientPlugins)r.middlewareStack.use(w);const{Credentials:a}=await r.send(new c(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new l(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`,{logger:d});return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},v=e=>e?.metadata?.handlerProtocol==="h2"?void 0:e,S=e=>{for(const t of e)if(t!==void 0)return t},re=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:s,policyArns:i,policy:d,durationSeconds:u}=e;let{roleAssumerWithWebIdentity:c}=e;if(!c){const{getDefaultRoleAssumerWithWebIdentity:f}=await I(async()=>{const{getDefaultRoleAssumerWithWebIdentity:a}=await import("./index-CJzDmIha.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([21,20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));c=f({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:d,DurationSeconds:u})},de=e=>re({...e});export{ie as fromCognitoIdentity,ae as fromCognitoIdentityPool,ce as fromHttp,le as fromTemporaryCredentials,de as fromWebToken};
@@ -0,0 +1 @@
1
+ import{r as ge,n as T,i as me,E as Ee,j as he,k as ye,l as fe,p as Ie,m as xe,A as ve,o as Pe,q as Se,t as Ce,D as Ae,u as Re,w as _e,x as we,y as be,z as De,B as Fe,F as ke,G as Oe,H as $e,I as Ue,J as Ge,K as Me,M as Te,a as He,O as Le,Q as Ne,U as je,V as ze,W as qe,X as Ke,Y as Be,Z as Ve,_ as We,$ as Je,a0 as Qe,a1 as Xe,a2 as Ye,a3 as Ze,a4 as et,a5 as tt,T as d,C as H,g as L}from"./index-CPpeTRZB.js";import{t as ot,f as nt,d as rt,a as it,s as st,F as at}from"./normalizeProvider-EC8cbfMc.js";import{A as ct}from"./AwsJson1_1Protocol-wsbyAvre.js";import"./preload-helper-BlTxHScW.js";import"./index-DcfSUfKC.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";const dt=async(e,t,n)=>({operation:me(t).operation,region:await T(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function S(e){return{schemeId:"smithy.api#noAuth"}}const ut=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":{t.push(S());break}case"GetId":{t.push(S());break}case"GetOpenIdToken":{t.push(S());break}case"UnlinkIdentity":{t.push(S());break}default:t.push(pt(e))}return t},lt=e=>{const t=ge(e);return Object.assign(t,{authSchemePreference:T(e.authSchemePreference??[])})},gt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),N={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mt="3.948.0",Et={version:mt},j="required",i="fn",s="argv",f="ref",w=!0,b="isSet",v="booleanEquals",y="error",g="endpoint",h="tree",A="PartitionResult",R="getAttr",I="stringEquals",D={[j]:!1,type:"string"},F={[j]:!0,default:!1,type:"boolean"},k={[f]:"Endpoint"},z={[i]:v,[s]:[{[f]:"UseFIPS"},!0]},q={[i]:v,[s]:[{[f]:"UseDualStack"},!0]},r={},x={[f]:"Region"},O={[i]:R,[s]:[{[f]:A},"supportsFIPS"]},K={[f]:A},$={[i]:v,[s]:[!0,{[i]:R,[s]:[K,"supportsDualStack"]}]},U=[z],G=[q],M=[x],ht={parameters:{Region:D,UseDualStack:F,UseFIPS:F,Endpoint:D},rules:[{conditions:[{[i]:b,[s]:[k]}],rules:[{conditions:U,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:y},{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:y},{endpoint:{url:k,properties:r,headers:r},type:g}],type:h},{conditions:[{[i]:b,[s]:M}],rules:[{conditions:[{[i]:"aws.partition",[s]:M,assign:A}],rules:[{conditions:[z,q],rules:[{conditions:[{[i]:v,[s]:[w,O]},$],rules:[{conditions:[{[i]:I,[s]:[x,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:y}],type:h},{conditions:U,rules:[{conditions:[{[i]:v,[s]:[O,w]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:y}],type:h},{conditions:G,rules:[{conditions:[$],rules:[{conditions:[{[i]:I,[s]:["aws",{[i]:R,[s]:[K,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:y}],type:h},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:y}]},yt=ht,ft=new Ee({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>ft.get(e,()=>he(yt,{endpointParams:e,logger:t.logger}));fe.aws=ye;const xt=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ut,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pe}],logger:e?.logger??new xe,protocol:e?.protocol??new ct({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Ie,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??ot}),vt=e=>{const t=Se(e),n=()=>t().then(ke),a=xt(e);return{...a,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??be,credentialDefaultProvider:e?.credentialDefaultProvider??(c=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??we({serviceId:a.serviceId,clientVersion:Et.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:at.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ae),sha256:e?.sha256??Ce,streamCollector:e?.streamCollector??st,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Fe)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},Pt=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,a=e.credentials;return{setHttpAuthScheme(c){const P=t.findIndex(C=>C.schemeId===c.schemeId);P===-1?t.push(c):t.splice(P,1,c)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(c){n=c},httpAuthSchemeProvider(){return n},setCredentials(c){a=c},credentials(){return a}}},St=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ct=(e,t)=>{const n=Object.assign(Oe(e),$e(e),Ue(e),Pt(e));return t.forEach(a=>a.configure(n)),Object.assign(e,Ge(n),Me(n),Te(n),St(n))};class Qo extends He{config;constructor(...[t]){const n=vt(t||{});super(n),this.initConfig=n;const a=gt(n),c=Le(a),P=Ne(c),C=je(P),ce=Ze(C),de=ze(ce),pe=lt(de),ue=Ct(pe,t?.extensions||[]);this.config=ue,this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(Ve(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Je(this.config)),this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Xe(this.config,{httpAuthSchemeParametersProvider:dt,identityProviderConfigProvider:async le=>new et({"aws.auth#sigv4":le.credentials})})),this.middlewareStack.use(Ye(this.config))}destroy(){super.destroy()}}let p=class B extends tt{constructor(t){super(t),Object.setPrototypeOf(this,B.prototype)}},At=class V extends p{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,V.prototype)}},Rt=class W extends p{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,W.prototype)}},_t=class J extends p{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}},wt=class Q extends p{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,Q.prototype)}},bt=class X extends p{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,X.prototype)}},Dt=class Y extends p{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,Y.prototype)}},Ft=class Z extends p{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Z.prototype)}},kt=class ee extends p{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,ee.prototype)}},Ot=class te extends p{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,te.prototype)}},$t=class oe extends p{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,oe.prototype)}},Ut=class ne extends p{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,ne.prototype)}};const Gt="AccountId",Mt="AccessKeyId",re="Credentials",Tt="ConcurrentModificationException",Ht="CustomRoleArn",Lt="DeveloperUserAlreadyRegisteredException",Nt="Expiration",jt="ExternalServiceException",zt="GetCredentialsForIdentity",qt="GetCredentialsForIdentityInput",Kt="GetCredentialsForIdentityResponse",Bt="GetId",Vt="GetIdInput",Wt="GetIdResponse",Jt="InternalErrorException",_="IdentityId",Qt="InvalidIdentityPoolConfigurationException",Xt="InvalidParameterException",Yt="IdentityPoolId",Zt="IdentityProviderToken",ie="Logins",eo="LimitExceededException",to="LoginsMap",oo="NotAuthorizedException",no="ResourceConflictException",ro="ResourceNotFoundException",io="SecretKey",so="SecretKeyString",ao="SessionToken",co="TooManyRequestsException",m="client",u="error",E="httpError",l="message",po="server",se="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",o="com.amazonaws.cognitoidentity";var uo=[0,o,Zt,8,0],lo=[0,o,so,8,0],go=[-3,o,Tt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(go,Ut);var mo=[3,o,re,0,[Mt,io,ao,Nt],[0,[()=>lo,0],0,4]],Eo=[-3,o,Lt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Eo,$t);var ho=[-3,o,jt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(ho,kt);var yo=[3,o,qt,0,[_,ie,Ht],[0,[()=>ae,0],0]],fo=[3,o,Kt,0,[_,re],[0,[()=>mo,0]]],Io=[3,o,Vt,0,[Gt,Yt,ie],[0,0,[()=>ae,0]]],xo=[3,o,Wt,0,[_],[0]],vo=[-3,o,Jt,{[u]:po},[l],[0]];d.for(o).registerError(vo,At);var Po=[-3,o,Qt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Po,Ot);var So=[-3,o,Xt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(So,Rt);var Co=[-3,o,eo,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Co,_t);var Ao=[-3,o,oo,{[u]:m,[E]:403},[l],[0]];d.for(o).registerError(Ao,wt);var Ro=[-3,o,no,{[u]:m,[E]:409},[l],[0]];d.for(o).registerError(Ro,bt);var _o=[-3,o,ro,{[u]:m,[E]:404},[l],[0]];d.for(o).registerError(_o,Ft);var wo=[-3,o,co,{[u]:m,[E]:429},[l],[0]];d.for(o).registerError(wo,Dt);var bo=[-3,se,"CognitoIdentityServiceException",0,[],[]];d.for(se).registerError(bo,p);var ae=[2,o,to,0,[0,0],[()=>uo,0]],Do=[9,o,zt,0,()=>yo,()=>fo],Fo=[9,o,Bt,0,()=>Io,()=>xo];class Xo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Do).build(){}class Yo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Fo).build(){}export{Qo as CognitoIdentityClient,Xo as GetCredentialsForIdentityCommand,Yo as GetIdCommand};
@@ -1 +1 @@
1
- import{a6 as Ge,b as F,e as ue,L as Je,N as me,S as pe,v as Xe,f as Ze,R as Ye,P as et,h as tt,c as Z,T as A,r as st,n as he,i as rt,E as nt,j as ot,k as it,l as at,p as ct,m as dt,A as lt,o as ut,q as mt,t as pt,D as ht,u as ft,w as gt,x as yt,y as St,z as Et,B as Pt,F as bt,G as Tt,H as wt,I as xt,J as At,K as Ct,M as Rt,a as It,O as Dt,Q as _t,U as Nt,V as kt,W as vt,X as $t,Y as Mt,Z as Ft,_ as Ot,$ as Ut,a0 as zt,a1 as Lt,a2 as jt,a3 as Wt,a4 as Kt,a5 as Ht,C as Vt,g as Bt}from"./index-CMyUHiQc.js";import{a as j,t as W,d as fe,e as Qt,f as qt,s as Gt,F as Jt}from"./normalizeProvider-EC8cbfMc.js";function Y(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}const K="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",H="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",V="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ge="(\\d?\\d)",ye="(\\d{4})",Xt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zt=new RegExp(`^${K}, ${ge} ${H} ${ye} ${V} GMT$`),Yt=new RegExp(`^${K}, ${ge}-${H}-(\\d\\d) ${V} GMT$`),es=new RegExp(`^${K} ${H} ( [1-9]|\\d\\d) ${V} ${ye}$`),ts=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ss=r=>{if(r==null)return;let e=NaN;if(typeof r=="number")e=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(e=r.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},rs=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");const e=Xt.exec(r);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);const[,t,s,n,o,i,a,,c,l]=e;x(s,1,12),x(n,1,31),x(o,0,23),x(i,0,59),x(a,0,60);const u=new Date(Date.UTC(Number(t),Number(s)-1,Number(n),Number(o),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(t)),l.toUpperCase()!="Z"){const[,f,T,b]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],C=f==="-"?1:-1;u.setTime(u.getTime()+C*(Number(T)*60*60*1e3+Number(b)*60*1e3))}return u},ns=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,t,s,n,o,i,a,c;if((c=Zt.exec(r))?[,e,t,s,n,o,i,a]=c:(c=Yt.exec(r))?([,e,t,s,n,o,i,a]=c,s=(Number(s)+1900).toString()):(c=es.exec(r))&&([,t,e,n,o,i,a,s]=c),s&&i){const l=Date.UTC(Number(s),ts.indexOf(t),Number(e),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);x(e,1,31),x(n,0,23),x(o,0,59),x(i,0,60);const u=new Date(l);return u.setUTCFullYear(Number(s)),u}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function x(r,e,t){const s=Number(r);if(s<e||s>t)throw new Error(`Value ${s} out of range [${e}, ${t}]`)}const os=r=>{const e=r.length,t=[];let s=!1,n,o=0;for(let i=0;i<e;++i){const a=r[i];switch(a){case'"':n!=="\\"&&(s=!s);break;case",":s||(t.push(r.slice(o,i)),o=i+1);break}n=a}return t.push(r.slice(o)),t.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class is extends Ge{settings;constructor(e){super(),this.settings=e}read(e,t){const s=F.of(e);if(s.isListSchema())return os(t).map(n=>this.read(s.getValueSchema(),n));if(s.isBlobSchema())return(this.serdeContext?.base64Decoder??j)(t);if(s.isTimestampSchema())switch(ue(s,this.settings)){case 5:return rs(t);case 6:return ns(t);case 7:return ss(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isStringSchema()){const n=s.getMergedTraits().mediaType;let o=t;if(n)return s.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=Je.from(o)),o}return s.isNumericSchema()?Number(t):s.isBigIntegerSchema()?BigInt(t):s.isBigDecimalSchema()?new me(t,"bigDecimal"):s.isBooleanSchema()?String(t).toLowerCase()==="true":t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??W)((this.serdeContext?.base64Decoder??j)(e))}}const Se=r=>{const e="#text";for(const t in r)r.hasOwnProperty(t)&&r[t][e]!==void 0?r[t]=r[t][e]:typeof r[t]=="object"&&r[t]!==null&&(r[t]=Se(r[t]));return r};let U;function as(r){U||(U=new DOMParser);const e=U.parseFromString(r,"application/xml");if(e.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const t=s=>{if(s.nodeType===Node.TEXT_NODE&&s.textContent?.trim())return s.textContent;if(s.nodeType===Node.ELEMENT_NODE){const n=s;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const c of i)o[`${c.name}`]=c.value;const a=Array.from(n.childNodes);for(const c of a){const l=t(c);if(l!=null){const u=c.nodeName;if(a.length===1&&i.length===0&&u==="#text")return l;o[u]?Array.isArray(o[u])?o[u].push(l):o[u]=[o[u],l]:o[u]=l}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[e.documentElement.nodeName]:t(e.documentElement)}}class cs extends pe{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new is(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,s){const n=F.of(e),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){const l={},u=Object.keys(o)[0];return o[u].isBlobSchema()?l[u]=t:l[u]=this.read(o[u],t),l}const a=(this.serdeContext?.utf8Encoder??W)(t),c=this.parseXml(a);return this.readSchema(e,s?c[s]:c)}readSchema(e,t){const s=F.of(e);if(s.isUnitSchema())return;const n=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(t))return this.readSchema(s,[t]);if(t==null)return t;if(typeof t=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(s.isListSchema()){const c=s.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",f=i?t:(t[0]??t)[u],T=Array.isArray(f)?f:[f];for(const b of T)(b!=null||o)&&l.push(this.readSchema(c,b));return l}const a={};if(s.isMapSchema()){const c=s.getKeySchema(),l=s.getValueSchema();let u;i?u=Array.isArray(t)?t:[t]:u=Array.isArray(t.entry)?t.entry:[t.entry];const f=c.getMergedTraits().xmlName??"key",T=l.getMergedTraits().xmlName??"value";for(const b of u){const C=b[f],O=b[T];(O!=null||o)&&(a[C]=this.readSchema(l,O))}return a}if(s.isStructSchema()){for(const[c,l]of s.structIterator()){const u=l.getMergedTraits(),f=u.httpPayload?u.xmlName??l.getName():l.getMemberTraits().xmlName??c;t[f]!=null&&(a[c]=this.readSchema(l,t[f]))}return a}if(s.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(!0)}`)}return s.isListSchema()?[]:s.isMapSchema()||s.isStructSchema()?{}:this.stringDeserializer.read(s,t)}parseXml(e){if(e.length){let t;try{t=as(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}const s="#text",n=Object.keys(t)[0],o=t[n];return o[s]&&(o[n]=o[s],delete o[s]),Se(o)}return{}}}class ds extends pe{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,s=""){this.buffer===void 0&&(this.buffer="");const n=F.of(e);if(s&&!s.endsWith(".")&&(s+="."),n.isBlobSchema())(typeof t=="string"||t instanceof Uint8Array)&&(this.writeKey(s),this.writeValue((this.serdeContext?.base64Encoder??fe)(t)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())t!=null?(this.writeKey(s),this.writeValue(String(t))):n.isIdempotencyToken()&&(this.writeKey(s),this.writeValue(Xe()));else if(n.isBigIntegerSchema())t!=null&&(this.writeKey(s),this.writeValue(String(t)));else if(n.isBigDecimalSchema())t!=null&&(this.writeKey(s),this.writeValue(t instanceof me?t.string:String(t)));else if(n.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(s),ue(n,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Qt(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(s),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const c of t){if(c==null)continue;const l=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${s}${a}`:`${s}${l}.${a}`;this.write(o,c,u),++a}}}else if(n.isMapSchema()){if(t&&typeof t=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let c=1;for(const[l,u]of Object.entries(t)){if(u==null)continue;const f=this.getKey("key",o.getMergedTraits().xmlName),T=a?`${s}${c}.${f}`:`${s}entry.${c}.${f}`,b=this.getKey("value",i.getMergedTraits().xmlName),C=a?`${s}${c}.${b}`:`${s}entry.${c}.${b}`;this.write(o,l,T),this.write(i,u,C),++c}}}else if(n.isStructSchema()){if(t&&typeof t=="object")for(const[o,i]of Ze(n,t)){if(t[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),c=`${s}${a}`;this.write(i,t[o],c)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const e=this.buffer;return delete this.buffer,e}getKey(e,t){const s=t??e;return this.settings.capitalizeKeys?s[0].toUpperCase()+s.slice(1):s}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Y(e)}=`}writeValue(e){this.buffer+=Y(e)}}class ls extends Ye{options;serializer;deserializer;mixin=new et;constructor(e){super({defaultNamespace:e.defaultNamespace}),this.options=e;const t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ds(t),this.deserializer=new cs(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,s){const n=await super.serializeRequest(e,t,s);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(tt(e.input)==="unit"||!n.body)&&(n.body="");const o=e.name.split("#")[1]??e.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(e,t,s){const n=this.deserializer,o=F.of(e.output),i={};if(s.statusCode>=300){const f=await Z(s.body,t);f.byteLength>0&&Object.assign(i,await n.read(15,f)),await this.handleError(e,t,s,i,this.deserializeMetadata(s))}for(const f in s.headers){const T=s.headers[f];delete s.headers[f],s.headers[f.toLowerCase()]=T}const a=e.name.split("#")[1]??e.name,c=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,l=await Z(s.body,t);return l.byteLength>0&&Object.assign(i,await n.read(o,l,c)),{$metadata:this.deserializeMetadata(s),...i}}useNestedResult(){return!0}async handleError(e,t,s,n,o){const i=this.loadQueryErrorCode(s,n)??"Unknown",a=this.loadQueryError(n),c=this.loadQueryErrorMessage(n);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,a,o,this.mixin.findQueryCompatibleError),f=F.of(l),T=A.for(l[1]).getErrorCtor(l)??Error,b=new T(c),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(const[O,J]of f.structIterator()){const X=J.getMergedTraits().xmlName??O,qe=a[X]??n[X];C[O]=this.deserializer.readSchema(J,qe)}throw this.mixin.decorateServiceException(Object.assign(b,u,{$fault:f.getMergedTraits().error,message:c},C),n)}loadQueryErrorCode(e,t){const s=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(s!==void 0)return s;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const us=async(r,e,t)=>({operation:rt(e).operation,region:await he(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ms(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ps(r){return{schemeId:"smithy.api#noAuth"}}const hs=r=>{const e=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{e.push(ps());break}default:e.push(ms(r))}return e},fs=r=>Object.assign(r,{stsClientCtor:De}),gs=r=>{const e=fs(r),t=st(e);return Object.assign(t,{authSchemePreference:he(r.authSchemePreference??[])})},ys=r=>Object.assign(r,{useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ss={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"}},Es="3.948.0",Ps={version:Es},Ee="required",d="type",m="fn",p="argv",I="ref",ee=!1,z=!0,R="booleanEquals",y="stringEquals",Pe="sigv4",be="sts",Te="us-east-1",g="endpoint",te="https://sts.{Region}.{PartitionResult#dnsSuffix}",w="tree",M="error",B="getAttr",se={[Ee]:!1,[d]:"string"},L={[Ee]:!0,default:!1,[d]:"boolean"},we={[I]:"Endpoint"},re={[m]:"isSet",[p]:[{[I]:"Region"}]},S={[I]:"Region"},ne={[m]:"aws.partition",[p]:[S],assign:"PartitionResult"},xe={[I]:"UseFIPS"},Ae={[I]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:Te}]},headers:{}},P={},oe={conditions:[{[m]:y,[p]:[S,"aws-global"]}],[g]:E,[d]:g},Ce={[m]:R,[p]:[xe,!0]},Re={[m]:R,[p]:[Ae,!0]},ie={[m]:B,[p]:[{[I]:"PartitionResult"},"supportsFIPS"]},Ie={[I]:"PartitionResult"},ae={[m]:R,[p]:[!0,{[m]:B,[p]:[Ie,"supportsDualStack"]}]},ce=[{[m]:"isSet",[p]:[we]}],de=[Ce],le=[Re],bs={parameters:{Region:se,UseDualStack:L,UseFIPS:L,Endpoint:se,UseGlobalEndpoint:L},rules:[{conditions:[{[m]:R,[p]:[{[I]:"UseGlobalEndpoint"},z]},{[m]:"not",[p]:ce},re,ne,{[m]:R,[p]:[xe,ee]},{[m]:R,[p]:[Ae,ee]}],rules:[{conditions:[{[m]:y,[p]:[S,"ap-northeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-south-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-2"]}],endpoint:E,[d]:g},oe,{conditions:[{[m]:y,[p]:[S,"ca-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-north-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-3"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"sa-east-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,Te]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-east-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-2"]}],endpoint:E,[d]:g},{endpoint:{url:te,properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:"{Region}"}]},headers:P},[d]:g}],[d]:w},{conditions:ce,rules:[{conditions:de,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[d]:M},{conditions:le,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[d]:M},{endpoint:{url:we,properties:P,headers:P},[d]:g}],[d]:w},{conditions:[re],rules:[{conditions:[ne],rules:[{conditions:[Ce,Re],rules:[{conditions:[{[m]:R,[p]:[z,ie]},ae],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[d]:M}],[d]:w},{conditions:de,rules:[{conditions:[{[m]:R,[p]:[ie,z]}],rules:[{conditions:[{[m]:y,[p]:[{[m]:B,[p]:[Ie,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[d]:g},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS is enabled but this partition does not support FIPS",[d]:M}],[d]:w},{conditions:le,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"DualStack is enabled but this partition does not support DualStack",[d]:M}],[d]:w},oe,{endpoint:{url:te,properties:P,headers:P},[d]:g}],[d]:w}],[d]:w},{error:"Invalid Configuration: Missing Region",[d]:M}]},Ts=bs,ws=new nt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),xs=(r,e={})=>ws.get(r,()=>ot(Ts,{endpointParams:r,logger:e.logger}));at.aws=it;const As=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??j,base64Encoder:r?.base64Encoder??fe,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??xs,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??hs,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new lt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ut}],logger:r?.logger??new dt,protocol:r?.protocol??new ls({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ct,utf8Decoder:r?.utf8Decoder??qt,utf8Encoder:r?.utf8Encoder??W}),Cs=r=>{const e=mt(r),t=()=>e().then(bt),s=As(r);return{...s,...r,runtime:"browser",defaultsMode:e,bodyLengthChecker:r?.bodyLengthChecker??St,credentialDefaultProvider:r?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??yt({serviceId:s.serviceId,clientVersion:Ps.version}),maxAttempts:r?.maxAttempts??gt,region:r?.region??ft("Region is missing"),requestHandler:Jt.create(r?.requestHandler??t),retryMode:r?.retryMode??(async()=>(await t()).retryMode||ht),sha256:r?.sha256??pt,streamCollector:r?.streamCollector??Gt,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(Pt)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Et))}},Rs=r=>{const e=r.httpAuthSchemes;let t=r.httpAuthSchemeProvider,s=r.credentials;return{setHttpAuthScheme(n){const o=e.findIndex(i=>i.schemeId===n.schemeId);o===-1?e.push(n):e.splice(o,1,n)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(n){t=n},httpAuthSchemeProvider(){return t},setCredentials(n){s=n},credentials(){return s}}},Is=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}),Ds=(r,e)=>{const t=Object.assign(Tt(r),wt(r),xt(r),Rs(r));return e.forEach(s=>s.configure(t)),Object.assign(r,At(t),Ct(t),Rt(t),Is(t))};class De extends It{config;constructor(...[e]){const t=Cs(e||{});super(t),this.initConfig=t;const s=ys(t),n=Dt(s),o=_t(n),i=Nt(o),a=Wt(i),c=kt(a),l=gs(c),u=Ds(l,e?.extensions||[]);this.config=u,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(Ft(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Lt(this.config,{httpAuthSchemeParametersProvider:us,identityProviderConfigProvider:async f=>new Kt({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(jt(this.config))}destroy(){super.destroy()}}let D=class _e extends Ht{constructor(e){super(e),Object.setPrototypeOf(this,_e.prototype)}},_s=class Ne extends D{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Ns=class ke extends D{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},ks=class ve extends D{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},vs=class $e extends D{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,$e.prototype)}},$s=class Me extends D{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Ms=class Fe extends D{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Fe.prototype)}},Fs=class Oe extends D{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}};const Os="Arn",Us="AccessKeyId",zs="AssumeRole",Ls="AssumedRoleId",js="AssumeRoleRequest",Ws="AssumeRoleResponse",Q="AssumedRoleUser",Ks="AssumeRoleWithWebIdentity",Hs="AssumeRoleWithWebIdentityRequest",Vs="AssumeRoleWithWebIdentityResponse",Bs="Audience",q="Credentials",Qs="ContextAssertion",Ue="DurationSeconds",qs="Expiration",Gs="ExternalId",Js="ExpiredTokenException",Xs="IDPCommunicationErrorException",Zs="IDPRejectedClaimException",Ys="InvalidIdentityTokenException",er="Key",tr="MalformedPolicyDocumentException",ze="Policy",Le="PolicyArns",sr="ProviderArn",rr="ProvidedContexts",nr="ProvidedContextsListType",or="ProvidedContext",ir="PolicyDescriptorType",ar="ProviderId",je="PackedPolicySize",cr="PackedPolicyTooLargeException",dr="Provider",We="RoleArn",lr="RegionDisabledException",Ke="RoleSessionName",ur="SecretAccessKey",mr="SubjectFromWebIdentityToken",G="SourceIdentity",pr="SerialNumber",hr="SessionToken",fr="Tags",gr="TokenCode",yr="TransitiveTagKeys",Sr="Tag",Er="Value",Pr="WebIdentityToken",br="arn",Tr="accessKeySecretType",_="awsQueryError",N="client",wr="clientTokenType",k="error",v="httpError",$="message",xr="policyDescriptorListType",He="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ar="tagListType",h="com.amazonaws.sts";var Cr=[0,h,Tr,8,0],Rr=[0,h,wr,8,0],Ve=[3,h,Q,0,[Ls,Os],[0,0]],Ir=[3,h,js,0,[We,Ke,Le,ze,Ue,fr,yr,Gs,pr,gr,G,rr],[0,0,()=>Qe,0,1,()=>Hr,64,0,0,0,0,()=>Kr]],Dr=[3,h,Ws,0,[q,Q,je,G],[[()=>Be,0],()=>Ve,1,0]],_r=[3,h,Hs,0,[We,Ke,Pr,ar,Le,ze,Ue],[0,0,[()=>Rr,0],0,()=>Qe,0,1]],Nr=[3,h,Vs,0,[q,mr,Q,je,dr,Bs,G],[[()=>Be,0],0,()=>Ve,1,0,0,0]],Be=[3,h,q,0,[Us,ur,hr,qs],[0,[()=>Cr,0],0,4]],kr=[-3,h,Js,{[k]:N,[v]:400,[_]:["ExpiredTokenException",400]},[$],[0]];A.for(h).registerError(kr,_s);var vr=[-3,h,Xs,{[k]:N,[v]:400,[_]:["IDPCommunicationError",400]},[$],[0]];A.for(h).registerError(vr,Fs);var $r=[-3,h,Zs,{[k]:N,[v]:403,[_]:["IDPRejectedClaim",403]},[$],[0]];A.for(h).registerError($r,$s);var Mr=[-3,h,Ys,{[k]:N,[v]:400,[_]:["InvalidIdentityToken",400]},[$],[0]];A.for(h).registerError(Mr,Ms);var Fr=[-3,h,tr,{[k]:N,[v]:400,[_]:["MalformedPolicyDocument",400]},[$],[0]];A.for(h).registerError(Fr,Ns);var Or=[-3,h,cr,{[k]:N,[v]:400,[_]:["PackedPolicyTooLarge",400]},[$],[0]];A.for(h).registerError(Or,ks);var Ur=[3,h,ir,0,[br],[0]],zr=[3,h,or,0,[sr,Qs],[0,0]],Lr=[-3,h,lr,{[k]:N,[v]:403,[_]:["RegionDisabledException",403]},[$],[0]];A.for(h).registerError(Lr,vs);var jr=[3,h,Sr,0,[er,Er],[0,0]],Wr=[-3,He,"STSServiceException",0,[],[]];A.for(He).registerError(Wr,D);var Qe=[1,h,xr,0,()=>Ur],Kr=[1,h,nr,0,()=>zr],Hr=[1,h,Ar,0,()=>jr],Vr=[9,h,zs,0,()=>Ir,()=>Dr],Gr=[9,h,Ks,0,()=>_r,()=>Nr];class Br extends Vt.classBuilder().ep(Ss).m(function(e,t,s,n){return[Bt(s,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Vr).build(){}const Jr=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Br,STSClient:De},Symbol.toStringTag,{value:"Module"}));export{Gr as A,_s as E,$s as I,Ns as M,ks as P,vs as R,De as S,D as a,Br as b,Ss as c,Ms as d,Fs as e,Jr as l};
1
+ import{a6 as Ge,b as F,e as ue,L as Je,N as me,S as pe,v as Xe,f as Ze,R as Ye,P as et,h as tt,c as Z,T as A,r as st,n as he,i as rt,E as nt,j as ot,k as it,l as at,p as ct,m as dt,A as lt,o as ut,q as mt,t as pt,D as ht,u as ft,w as gt,x as yt,y as St,z as Et,B as Pt,F as bt,G as Tt,H as wt,I as xt,J as At,K as Ct,M as Rt,a as It,O as Dt,Q as _t,U as Nt,V as kt,W as vt,X as $t,Y as Mt,Z as Ft,_ as Ot,$ as Ut,a0 as zt,a1 as Lt,a2 as jt,a3 as Wt,a4 as Kt,a5 as Ht,C as Vt,g as Bt}from"./index-CPpeTRZB.js";import{a as j,t as W,d as fe,e as Qt,f as qt,s as Gt,F as Jt}from"./normalizeProvider-EC8cbfMc.js";function Y(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}const K="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",H="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",V="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ge="(\\d?\\d)",ye="(\\d{4})",Xt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zt=new RegExp(`^${K}, ${ge} ${H} ${ye} ${V} GMT$`),Yt=new RegExp(`^${K}, ${ge}-${H}-(\\d\\d) ${V} GMT$`),es=new RegExp(`^${K} ${H} ( [1-9]|\\d\\d) ${V} ${ye}$`),ts=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ss=r=>{if(r==null)return;let e=NaN;if(typeof r=="number")e=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(e=r.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},rs=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");const e=Xt.exec(r);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);const[,t,s,n,o,i,a,,c,l]=e;x(s,1,12),x(n,1,31),x(o,0,23),x(i,0,59),x(a,0,60);const u=new Date(Date.UTC(Number(t),Number(s)-1,Number(n),Number(o),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(t)),l.toUpperCase()!="Z"){const[,f,T,b]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],C=f==="-"?1:-1;u.setTime(u.getTime()+C*(Number(T)*60*60*1e3+Number(b)*60*1e3))}return u},ns=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,t,s,n,o,i,a,c;if((c=Zt.exec(r))?[,e,t,s,n,o,i,a]=c:(c=Yt.exec(r))?([,e,t,s,n,o,i,a]=c,s=(Number(s)+1900).toString()):(c=es.exec(r))&&([,t,e,n,o,i,a,s]=c),s&&i){const l=Date.UTC(Number(s),ts.indexOf(t),Number(e),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);x(e,1,31),x(n,0,23),x(o,0,59),x(i,0,60);const u=new Date(l);return u.setUTCFullYear(Number(s)),u}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function x(r,e,t){const s=Number(r);if(s<e||s>t)throw new Error(`Value ${s} out of range [${e}, ${t}]`)}const os=r=>{const e=r.length,t=[];let s=!1,n,o=0;for(let i=0;i<e;++i){const a=r[i];switch(a){case'"':n!=="\\"&&(s=!s);break;case",":s||(t.push(r.slice(o,i)),o=i+1);break}n=a}return t.push(r.slice(o)),t.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class is extends Ge{settings;constructor(e){super(),this.settings=e}read(e,t){const s=F.of(e);if(s.isListSchema())return os(t).map(n=>this.read(s.getValueSchema(),n));if(s.isBlobSchema())return(this.serdeContext?.base64Decoder??j)(t);if(s.isTimestampSchema())switch(ue(s,this.settings)){case 5:return rs(t);case 6:return ns(t);case 7:return ss(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isStringSchema()){const n=s.getMergedTraits().mediaType;let o=t;if(n)return s.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=Je.from(o)),o}return s.isNumericSchema()?Number(t):s.isBigIntegerSchema()?BigInt(t):s.isBigDecimalSchema()?new me(t,"bigDecimal"):s.isBooleanSchema()?String(t).toLowerCase()==="true":t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??W)((this.serdeContext?.base64Decoder??j)(e))}}const Se=r=>{const e="#text";for(const t in r)r.hasOwnProperty(t)&&r[t][e]!==void 0?r[t]=r[t][e]:typeof r[t]=="object"&&r[t]!==null&&(r[t]=Se(r[t]));return r};let U;function as(r){U||(U=new DOMParser);const e=U.parseFromString(r,"application/xml");if(e.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const t=s=>{if(s.nodeType===Node.TEXT_NODE&&s.textContent?.trim())return s.textContent;if(s.nodeType===Node.ELEMENT_NODE){const n=s;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const c of i)o[`${c.name}`]=c.value;const a=Array.from(n.childNodes);for(const c of a){const l=t(c);if(l!=null){const u=c.nodeName;if(a.length===1&&i.length===0&&u==="#text")return l;o[u]?Array.isArray(o[u])?o[u].push(l):o[u]=[o[u],l]:o[u]=l}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[e.documentElement.nodeName]:t(e.documentElement)}}class cs extends pe{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new is(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,s){const n=F.of(e),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){const l={},u=Object.keys(o)[0];return o[u].isBlobSchema()?l[u]=t:l[u]=this.read(o[u],t),l}const a=(this.serdeContext?.utf8Encoder??W)(t),c=this.parseXml(a);return this.readSchema(e,s?c[s]:c)}readSchema(e,t){const s=F.of(e);if(s.isUnitSchema())return;const n=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(t))return this.readSchema(s,[t]);if(t==null)return t;if(typeof t=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(s.isListSchema()){const c=s.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",f=i?t:(t[0]??t)[u],T=Array.isArray(f)?f:[f];for(const b of T)(b!=null||o)&&l.push(this.readSchema(c,b));return l}const a={};if(s.isMapSchema()){const c=s.getKeySchema(),l=s.getValueSchema();let u;i?u=Array.isArray(t)?t:[t]:u=Array.isArray(t.entry)?t.entry:[t.entry];const f=c.getMergedTraits().xmlName??"key",T=l.getMergedTraits().xmlName??"value";for(const b of u){const C=b[f],O=b[T];(O!=null||o)&&(a[C]=this.readSchema(l,O))}return a}if(s.isStructSchema()){for(const[c,l]of s.structIterator()){const u=l.getMergedTraits(),f=u.httpPayload?u.xmlName??l.getName():l.getMemberTraits().xmlName??c;t[f]!=null&&(a[c]=this.readSchema(l,t[f]))}return a}if(s.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(!0)}`)}return s.isListSchema()?[]:s.isMapSchema()||s.isStructSchema()?{}:this.stringDeserializer.read(s,t)}parseXml(e){if(e.length){let t;try{t=as(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}const s="#text",n=Object.keys(t)[0],o=t[n];return o[s]&&(o[n]=o[s],delete o[s]),Se(o)}return{}}}class ds extends pe{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,s=""){this.buffer===void 0&&(this.buffer="");const n=F.of(e);if(s&&!s.endsWith(".")&&(s+="."),n.isBlobSchema())(typeof t=="string"||t instanceof Uint8Array)&&(this.writeKey(s),this.writeValue((this.serdeContext?.base64Encoder??fe)(t)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())t!=null?(this.writeKey(s),this.writeValue(String(t))):n.isIdempotencyToken()&&(this.writeKey(s),this.writeValue(Xe()));else if(n.isBigIntegerSchema())t!=null&&(this.writeKey(s),this.writeValue(String(t)));else if(n.isBigDecimalSchema())t!=null&&(this.writeKey(s),this.writeValue(t instanceof me?t.string:String(t)));else if(n.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(s),ue(n,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Qt(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(s),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const c of t){if(c==null)continue;const l=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${s}${a}`:`${s}${l}.${a}`;this.write(o,c,u),++a}}}else if(n.isMapSchema()){if(t&&typeof t=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let c=1;for(const[l,u]of Object.entries(t)){if(u==null)continue;const f=this.getKey("key",o.getMergedTraits().xmlName),T=a?`${s}${c}.${f}`:`${s}entry.${c}.${f}`,b=this.getKey("value",i.getMergedTraits().xmlName),C=a?`${s}${c}.${b}`:`${s}entry.${c}.${b}`;this.write(o,l,T),this.write(i,u,C),++c}}}else if(n.isStructSchema()){if(t&&typeof t=="object")for(const[o,i]of Ze(n,t)){if(t[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),c=`${s}${a}`;this.write(i,t[o],c)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const e=this.buffer;return delete this.buffer,e}getKey(e,t){const s=t??e;return this.settings.capitalizeKeys?s[0].toUpperCase()+s.slice(1):s}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Y(e)}=`}writeValue(e){this.buffer+=Y(e)}}class ls extends Ye{options;serializer;deserializer;mixin=new et;constructor(e){super({defaultNamespace:e.defaultNamespace}),this.options=e;const t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ds(t),this.deserializer=new cs(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,s){const n=await super.serializeRequest(e,t,s);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(tt(e.input)==="unit"||!n.body)&&(n.body="");const o=e.name.split("#")[1]??e.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(e,t,s){const n=this.deserializer,o=F.of(e.output),i={};if(s.statusCode>=300){const f=await Z(s.body,t);f.byteLength>0&&Object.assign(i,await n.read(15,f)),await this.handleError(e,t,s,i,this.deserializeMetadata(s))}for(const f in s.headers){const T=s.headers[f];delete s.headers[f],s.headers[f.toLowerCase()]=T}const a=e.name.split("#")[1]??e.name,c=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,l=await Z(s.body,t);return l.byteLength>0&&Object.assign(i,await n.read(o,l,c)),{$metadata:this.deserializeMetadata(s),...i}}useNestedResult(){return!0}async handleError(e,t,s,n,o){const i=this.loadQueryErrorCode(s,n)??"Unknown",a=this.loadQueryError(n),c=this.loadQueryErrorMessage(n);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,a,o,this.mixin.findQueryCompatibleError),f=F.of(l),T=A.for(l[1]).getErrorCtor(l)??Error,b=new T(c),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(const[O,J]of f.structIterator()){const X=J.getMergedTraits().xmlName??O,qe=a[X]??n[X];C[O]=this.deserializer.readSchema(J,qe)}throw this.mixin.decorateServiceException(Object.assign(b,u,{$fault:f.getMergedTraits().error,message:c},C),n)}loadQueryErrorCode(e,t){const s=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(s!==void 0)return s;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const us=async(r,e,t)=>({operation:rt(e).operation,region:await he(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ms(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ps(r){return{schemeId:"smithy.api#noAuth"}}const hs=r=>{const e=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{e.push(ps());break}default:e.push(ms(r))}return e},fs=r=>Object.assign(r,{stsClientCtor:De}),gs=r=>{const e=fs(r),t=st(e);return Object.assign(t,{authSchemePreference:he(r.authSchemePreference??[])})},ys=r=>Object.assign(r,{useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ss={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"}},Es="3.948.0",Ps={version:Es},Ee="required",d="type",m="fn",p="argv",I="ref",ee=!1,z=!0,R="booleanEquals",y="stringEquals",Pe="sigv4",be="sts",Te="us-east-1",g="endpoint",te="https://sts.{Region}.{PartitionResult#dnsSuffix}",w="tree",M="error",B="getAttr",se={[Ee]:!1,[d]:"string"},L={[Ee]:!0,default:!1,[d]:"boolean"},we={[I]:"Endpoint"},re={[m]:"isSet",[p]:[{[I]:"Region"}]},S={[I]:"Region"},ne={[m]:"aws.partition",[p]:[S],assign:"PartitionResult"},xe={[I]:"UseFIPS"},Ae={[I]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:Te}]},headers:{}},P={},oe={conditions:[{[m]:y,[p]:[S,"aws-global"]}],[g]:E,[d]:g},Ce={[m]:R,[p]:[xe,!0]},Re={[m]:R,[p]:[Ae,!0]},ie={[m]:B,[p]:[{[I]:"PartitionResult"},"supportsFIPS"]},Ie={[I]:"PartitionResult"},ae={[m]:R,[p]:[!0,{[m]:B,[p]:[Ie,"supportsDualStack"]}]},ce=[{[m]:"isSet",[p]:[we]}],de=[Ce],le=[Re],bs={parameters:{Region:se,UseDualStack:L,UseFIPS:L,Endpoint:se,UseGlobalEndpoint:L},rules:[{conditions:[{[m]:R,[p]:[{[I]:"UseGlobalEndpoint"},z]},{[m]:"not",[p]:ce},re,ne,{[m]:R,[p]:[xe,ee]},{[m]:R,[p]:[Ae,ee]}],rules:[{conditions:[{[m]:y,[p]:[S,"ap-northeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-south-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-2"]}],endpoint:E,[d]:g},oe,{conditions:[{[m]:y,[p]:[S,"ca-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-north-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-3"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"sa-east-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,Te]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-east-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-2"]}],endpoint:E,[d]:g},{endpoint:{url:te,properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:"{Region}"}]},headers:P},[d]:g}],[d]:w},{conditions:ce,rules:[{conditions:de,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[d]:M},{conditions:le,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[d]:M},{endpoint:{url:we,properties:P,headers:P},[d]:g}],[d]:w},{conditions:[re],rules:[{conditions:[ne],rules:[{conditions:[Ce,Re],rules:[{conditions:[{[m]:R,[p]:[z,ie]},ae],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[d]:M}],[d]:w},{conditions:de,rules:[{conditions:[{[m]:R,[p]:[ie,z]}],rules:[{conditions:[{[m]:y,[p]:[{[m]:B,[p]:[Ie,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[d]:g},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS is enabled but this partition does not support FIPS",[d]:M}],[d]:w},{conditions:le,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"DualStack is enabled but this partition does not support DualStack",[d]:M}],[d]:w},oe,{endpoint:{url:te,properties:P,headers:P},[d]:g}],[d]:w}],[d]:w},{error:"Invalid Configuration: Missing Region",[d]:M}]},Ts=bs,ws=new nt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),xs=(r,e={})=>ws.get(r,()=>ot(Ts,{endpointParams:r,logger:e.logger}));at.aws=it;const As=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??j,base64Encoder:r?.base64Encoder??fe,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??xs,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??hs,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new lt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ut}],logger:r?.logger??new dt,protocol:r?.protocol??new ls({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ct,utf8Decoder:r?.utf8Decoder??qt,utf8Encoder:r?.utf8Encoder??W}),Cs=r=>{const e=mt(r),t=()=>e().then(bt),s=As(r);return{...s,...r,runtime:"browser",defaultsMode:e,bodyLengthChecker:r?.bodyLengthChecker??St,credentialDefaultProvider:r?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??yt({serviceId:s.serviceId,clientVersion:Ps.version}),maxAttempts:r?.maxAttempts??gt,region:r?.region??ft("Region is missing"),requestHandler:Jt.create(r?.requestHandler??t),retryMode:r?.retryMode??(async()=>(await t()).retryMode||ht),sha256:r?.sha256??pt,streamCollector:r?.streamCollector??Gt,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(Pt)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Et))}},Rs=r=>{const e=r.httpAuthSchemes;let t=r.httpAuthSchemeProvider,s=r.credentials;return{setHttpAuthScheme(n){const o=e.findIndex(i=>i.schemeId===n.schemeId);o===-1?e.push(n):e.splice(o,1,n)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(n){t=n},httpAuthSchemeProvider(){return t},setCredentials(n){s=n},credentials(){return s}}},Is=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}),Ds=(r,e)=>{const t=Object.assign(Tt(r),wt(r),xt(r),Rs(r));return e.forEach(s=>s.configure(t)),Object.assign(r,At(t),Ct(t),Rt(t),Is(t))};class De extends It{config;constructor(...[e]){const t=Cs(e||{});super(t),this.initConfig=t;const s=ys(t),n=Dt(s),o=_t(n),i=Nt(o),a=Wt(i),c=kt(a),l=gs(c),u=Ds(l,e?.extensions||[]);this.config=u,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(Ft(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Lt(this.config,{httpAuthSchemeParametersProvider:us,identityProviderConfigProvider:async f=>new Kt({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(jt(this.config))}destroy(){super.destroy()}}let D=class _e extends Ht{constructor(e){super(e),Object.setPrototypeOf(this,_e.prototype)}},_s=class Ne extends D{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Ns=class ke extends D{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},ks=class ve extends D{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},vs=class $e extends D{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,$e.prototype)}},$s=class Me extends D{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Ms=class Fe extends D{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Fe.prototype)}},Fs=class Oe extends D{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}};const Os="Arn",Us="AccessKeyId",zs="AssumeRole",Ls="AssumedRoleId",js="AssumeRoleRequest",Ws="AssumeRoleResponse",Q="AssumedRoleUser",Ks="AssumeRoleWithWebIdentity",Hs="AssumeRoleWithWebIdentityRequest",Vs="AssumeRoleWithWebIdentityResponse",Bs="Audience",q="Credentials",Qs="ContextAssertion",Ue="DurationSeconds",qs="Expiration",Gs="ExternalId",Js="ExpiredTokenException",Xs="IDPCommunicationErrorException",Zs="IDPRejectedClaimException",Ys="InvalidIdentityTokenException",er="Key",tr="MalformedPolicyDocumentException",ze="Policy",Le="PolicyArns",sr="ProviderArn",rr="ProvidedContexts",nr="ProvidedContextsListType",or="ProvidedContext",ir="PolicyDescriptorType",ar="ProviderId",je="PackedPolicySize",cr="PackedPolicyTooLargeException",dr="Provider",We="RoleArn",lr="RegionDisabledException",Ke="RoleSessionName",ur="SecretAccessKey",mr="SubjectFromWebIdentityToken",G="SourceIdentity",pr="SerialNumber",hr="SessionToken",fr="Tags",gr="TokenCode",yr="TransitiveTagKeys",Sr="Tag",Er="Value",Pr="WebIdentityToken",br="arn",Tr="accessKeySecretType",_="awsQueryError",N="client",wr="clientTokenType",k="error",v="httpError",$="message",xr="policyDescriptorListType",He="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ar="tagListType",h="com.amazonaws.sts";var Cr=[0,h,Tr,8,0],Rr=[0,h,wr,8,0],Ve=[3,h,Q,0,[Ls,Os],[0,0]],Ir=[3,h,js,0,[We,Ke,Le,ze,Ue,fr,yr,Gs,pr,gr,G,rr],[0,0,()=>Qe,0,1,()=>Hr,64,0,0,0,0,()=>Kr]],Dr=[3,h,Ws,0,[q,Q,je,G],[[()=>Be,0],()=>Ve,1,0]],_r=[3,h,Hs,0,[We,Ke,Pr,ar,Le,ze,Ue],[0,0,[()=>Rr,0],0,()=>Qe,0,1]],Nr=[3,h,Vs,0,[q,mr,Q,je,dr,Bs,G],[[()=>Be,0],0,()=>Ve,1,0,0,0]],Be=[3,h,q,0,[Us,ur,hr,qs],[0,[()=>Cr,0],0,4]],kr=[-3,h,Js,{[k]:N,[v]:400,[_]:["ExpiredTokenException",400]},[$],[0]];A.for(h).registerError(kr,_s);var vr=[-3,h,Xs,{[k]:N,[v]:400,[_]:["IDPCommunicationError",400]},[$],[0]];A.for(h).registerError(vr,Fs);var $r=[-3,h,Zs,{[k]:N,[v]:403,[_]:["IDPRejectedClaim",403]},[$],[0]];A.for(h).registerError($r,$s);var Mr=[-3,h,Ys,{[k]:N,[v]:400,[_]:["InvalidIdentityToken",400]},[$],[0]];A.for(h).registerError(Mr,Ms);var Fr=[-3,h,tr,{[k]:N,[v]:400,[_]:["MalformedPolicyDocument",400]},[$],[0]];A.for(h).registerError(Fr,Ns);var Or=[-3,h,cr,{[k]:N,[v]:400,[_]:["PackedPolicyTooLarge",400]},[$],[0]];A.for(h).registerError(Or,ks);var Ur=[3,h,ir,0,[br],[0]],zr=[3,h,or,0,[sr,Qs],[0,0]],Lr=[-3,h,lr,{[k]:N,[v]:403,[_]:["RegionDisabledException",403]},[$],[0]];A.for(h).registerError(Lr,vs);var jr=[3,h,Sr,0,[er,Er],[0,0]],Wr=[-3,He,"STSServiceException",0,[],[]];A.for(He).registerError(Wr,D);var Qe=[1,h,xr,0,()=>Ur],Kr=[1,h,nr,0,()=>zr],Hr=[1,h,Ar,0,()=>jr],Vr=[9,h,zs,0,()=>Ir,()=>Dr],Gr=[9,h,Ks,0,()=>_r,()=>Nr];class Br extends Vt.classBuilder().ep(Ss).m(function(e,t,s,n){return[Bt(s,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Vr).build(){}const Jr=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Br,STSClient:De},Symbol.toStringTag,{value:"Module"}));export{Gr as A,_s as E,$s as I,Ns as M,ks as P,vs as R,De as S,D as a,Br as b,Ss as c,Ms as d,Fs as e,Jr as l};
@@ -1 +1 @@
1
- import{r as o}from"./index-yIpMibae.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./index-BLr5FjlG.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-rEhqCN8O.js";import"./inherits_browser-5Fj3Mjxs.js";export{o as default};
1
+ import{r as o}from"./index-DcfSUfKC.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";export{o as default};
@@ -0,0 +1,10 @@
1
+ import{a as sr,b as X,c as wr,d as jr,e as Or,f as vr,g as Br,h as Tr,i as Ir}from"./index-DcfSUfKC.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function Er(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=jr(),l=wr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),k="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===k}}return ir=g,ir}var or,lr;function kr(){if(lr)return or;lr=1;var i=X(),p=Er(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=kr(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var k=d(O);return k==="[object GeneratorFunction]"}if(!g)return!1;var j=u();return j&&g(O)===j.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),k=d(String.prototype.valueOf),j=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function E(n){return m(n)==="[object WeakMap]"}E.working=typeof WeakMap<"u"&&E(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:E.working?E(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function w(n){return m(n)==="[object ArrayBuffer]"}w.working=typeof ArrayBuffer<"u"&&w(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:w.working?w(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,k)}i.isStringObject=D;function K(n){return B(n,j)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),j(t,r,t.depth)}i.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function k(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function j(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=j(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=k(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=j(r,y.value,null):a=j(r,y.value,t-1),a.indexOf(`
2
+ `)>-1&&(c?a=a.split(`
3
+ `).map(function(b){return" "+b}).join(`
4
+ `).slice(2):a=`
5
+ `+a.split(`
6
+ `).map(function(b){return" "+b}).join(`
7
+ `))):a=r.stylize("[Circular]","special")),T(f)){if(c&&s.match(/^\d+$/))return a;f=JSON.stringify(""+s),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=r.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=r.stylize(f,"string"))}return f+": "+a}function Y(r,e,t){var o=r.reduce(function(s,c){return c.indexOf(`
8
+ `)>=0,s+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?t[0]+(e===""?"":e+`
9
+ `)+" "+r.join(`,
10
+ `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}i.types=Dr();function H(r){return Array.isArray(r)}i.isArray=H;function C(r){return typeof r=="boolean"}i.isBoolean=C;function U(r){return r===null}i.isNull=U;function x(r){return r==null}i.isNullOrUndefined=x;function J(r){return typeof r=="number"}i.isNumber=J;function q(r){return typeof r=="string"}i.isString=q;function $(r){return typeof r=="symbol"}i.isSymbol=$;function T(r){return r===void 0}i.isUndefined=T;function R(r){return P(r)&&V(r)==="[object RegExp]"}i.isRegExp=R,i.types.isRegExp=R;function P(r){return typeof r=="object"&&r!==null}i.isObject=P;function M(r){return P(r)&&V(r)==="[object Date]"}i.isDate=M,i.types.isDate=M;function v(r){return P(r)&&(V(r)==="[object Error]"||r instanceof Error)}i.isError=v,i.types.isNativeError=v;function z(r){return typeof r=="function"}i.isFunction=z;function G(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}i.isPrimitive=G,i.isBuffer=Ur();function V(r){return Object.prototype.toString.call(r)}function E(r){return r<10?"0"+r.toString(10):r.toString(10)}var rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var r=new Date,e=[E(r.getHours()),E(r.getMinutes()),E(r.getSeconds())].join(":");return[r.getDate(),rr[r.getMonth()],e].join(" ")}i.log=function(){console.log("%s - %s",_(),i.format.apply(i,arguments))},i.inherits=Ir(),i._extend=function(r,e){if(!e||!P(e))return r;for(var t=Object.keys(e),o=t.length;o--;)r[t[o]]=e[t[o]];return r};function L(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var w=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;i.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t=e[w];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var o,s,c=new Promise(function(y,b){o=y,s=b}),f=[],a=0;a<arguments.length;a++)f.push(arguments[a]);f.push(function(y,b){y?s(y):o(b)});try{e.apply(this,f)}catch(y){s(y)}return c}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),w&&Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,h(e))},i.promisify.custom=w;function Z(r,e){if(!r){var t=new Error("Promise was rejected with a falsy value");t.reason=r,r=t}return e(r)}function N(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o]);var s=t.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var c=this,f=function(){return s.apply(c,arguments)};r.apply(this,t).then(function(a){process.nextTick(f.bind(null,null,a))},function(a){process.nextTick(Z.bind(null,a,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,h(r)),e}i.callbackify=N})(er)),er}export{zr as r};
@@ -1,4 +1,4 @@
1
- import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-qaS8mbUT.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-Cb5ErRuM.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(l.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(s,a),s}return d(a,S),i(a)})(u(Error));return Ue=function(S){if(S.length>2)throw new w(S);function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=s}a.prototype.transform=S;function l(s){return new a(s)}return l.Format=a,l},Ue}var ke={exports:{}},Gr={exports:{}},Hr={exports:{}},Vr={exports:{}},Ur;function xa(){return Ur||(Ur=1,(function(t){var i={};t.exports=i;var v={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(v).forEach(function(O){var m=v[O],h=i[O]=[];h.open="\x1B["+m[0]+"m",h.close="\x1B["+m[1]+"m"})})(Vr)),Vr.exports}var Jr,Kr;function Ea(){return Kr||(Kr=1,Jr=function(t,i){i=i||U.argv||[];var v=i.indexOf("--"),O=/^-{1,2}/.test(t)?"":"--",m=i.indexOf(O+t);return m!==-1&&(v===-1?!0:m<v)}),Jr}var Je,Zr;function Ma(){if(Zr)return Je;Zr=1;var t=ae,i=Ea(),v=U.env,O=void 0;i("no-color")||i("no-colors")||i("color=false")?O=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(O=!0),"FORCE_COLOR"in v&&(O=v.FORCE_COLOR.length===0||parseInt(v.FORCE_COLOR,10)!==0);function m(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function h(u){if(O===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(u&&!u.isTTY&&O!==!0)return 0;var o=O?1:0;if(U.platform==="win32"){var g=t.release().split(".");return Number(U.versions.node.split(".")[0])>=8&&Number(g[0])>=10&&Number(g[2])>=10586?Number(g[2])>=14931?3:2:1}if("CI"in v)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(R){return R in v})||v.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in v)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(v.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in v){var P=parseInt((v.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(v.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(v.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(v.TERM)||"COLORTERM"in v?1:(v.TERM,o)}function d(u){var o=h(u);return m(o)}return Je={supportsColor:d,stdout:d(U.stdout),stderr:d(U.stderr)},Je}var Qr={exports:{}},Xr;function Oa(){return Xr||(Xr=1,(function(t){t.exports=function(i,v){var O="";i=i||"Run the trap, drop the bass",i=i.split("");var m={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return i.forEach(function(h){h=h.toLowerCase();var d=m[h]||[" "],u=Math.floor(Math.random()*d.length);typeof m[h]<"u"?O+=m[h][u]:O+=h}),O}})(Qr)),Qr.exports}var en={exports:{}},tn;function Pa(){return tn||(tn=1,(function(t){t.exports=function(i,v){i=i||" he is here ";var O={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},m=[].concat(O.up,O.down,O.mid);function h(o){var g=Math.floor(Math.random()*o);return g}function d(o){var g=!1;return m.filter(function(P){g=P===o}),g}function u(o,g){var P="",R,_;g=g||{},g.up=typeof g.up<"u"?g.up:!0,g.mid=typeof g.mid<"u"?g.mid:!0,g.down=typeof g.down<"u"?g.down:!0,g.size=typeof g.size<"u"?g.size:"maxi",o=o.split("");for(_ in o)if(!d(_)){switch(P=P+o[_],R={up:0,down:0,mid:0},g.size){case"mini":R.up=h(8),R.mid=h(2),R.down=h(8);break;case"maxi":R.up=h(16)+3,R.mid=h(4)+1,R.down=h(64)+3;break;default:R.up=h(8)+1,R.mid=h(6)/2,R.down=h(8)+1;break}var w=["up","mid","down"];for(var S in w)for(var a=w[S],l=0;l<=R[a];l++)g[a]&&(P=P+O[a][h(O[a].length)])}return P}return u(i,v)}})(en)),en.exports}var rn={exports:{}},nn;function ka(){return nn||(nn=1,(function(t){t.exports=function(i){return function(v,O,m){if(v===" ")return v;switch(O%3){case 0:return i.red(v);case 1:return i.white(v);case 2:return i.blue(v)}}}})(rn)),rn.exports}var on={exports:{}},an;function Ra(){return an||(an=1,(function(t){t.exports=function(i){return function(v,O,m){return O%2===0?v:i.inverse(v)}}})(on)),on.exports}var sn={exports:{}},un;function Ta(){return un||(un=1,(function(t){t.exports=function(i){var v=["red","yellow","green","blue","magenta"];return function(O,m,h){return O===" "?O:i[v[m++%v.length]](O)}}})(sn)),sn.exports}var ln={exports:{}},cn;function La(){return cn||(cn=1,(function(t){t.exports=function(i){var v=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(O,m,h){return O===" "?O:i[v[Math.round(Math.random()*(v.length-2))]](O)}}})(ln)),ln.exports}var fn;function Ca(){return fn||(fn=1,(function(t){var i={};t.exports=i,i.themes={};var v=se,O=i.styles=xa(),m=Object.defineProperties,h=new RegExp(/[\r\n]+/g);i.supportsColor=Ma().supportsColor,typeof i.enabled>"u"&&(i.enabled=i.supportsColor()!==!1),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(a){return(""+a).replace(/\x1B\[\d+m/g,"")},i.stylize=function(a,l){if(!i.enabled)return a+"";var s=O[l];return!s&&l in i?i[l](a):s.open+a+s.close};var d=/[|\\{}()[\]^$+*?.]/g,u=function(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(d,"\\$&")};function o(a){var l=function s(){return R.apply(s,arguments)};return l._styles=a,l.__proto__=P,l}var g=(function(){var a={};return O.grey=O.gray,Object.keys(O).forEach(function(l){O[l].closeRe=new RegExp(u(O[l].close),"g"),a[l]={get:function(){return o(this._styles.concat(l))}}}),a})(),P=m(function(){},g);function R(){var a=Array.prototype.slice.call(arguments),l=a.map(function(x){return x!=null&&x.constructor===String?x:v.inspect(x)}).join(" ");if(!i.enabled||!l)return l;for(var s=l.indexOf(`
@@ -1,4 +1,4 @@
1
- import{r as ve}from"./util-qaS8mbUT.js";import{r as Qo,a as Se,b as Xo}from"./index-rEhqCN8O.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{r as re}from"./index-BLr5FjlG.js";import{h as ye}from"./inherits_browser-5Fj3Mjxs.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{r as ve}from"./util-Cb5ErRuM.js";import{k as Qo,l as Se,m as Xo,i as ye}from"./index-DcfSUfKC.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{r as re}from"./_commonjs-dynamic-modules-B7n8ZNar.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(f.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(o,s),o}return p(s,h),u(s)})(a(Error));return mt=function(h){if(h.length>2)throw new E(h);function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=o}s.prototype.transform=h;function f(o){return new s(o)}return f.Format=s,f},mt}var je={exports:{}},bt={exports:{}},_t={exports:{}},wt={exports:{}},rn;function ta(){return rn||(rn=1,(function(e){var u={};e.exports=u;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach(function(R){var g=m[R],c=u[R]=[];c.open="\x1B["+g[0]+"m",c.close="\x1B["+g[1]+"m"})})(wt)),wt.exports}var St,nn;function ra(){return nn||(nn=1,St=function(e,u){u=u||process.argv||[];var m=u.indexOf("--"),R=/^-{1,2}/.test(e)?"":"--",g=u.indexOf(R+e);return g!==-1&&(m===-1?!0:g<m)}),St}var Et,on;function na(){if(on)return Et;on=1;var e={},u=ra(),m=e,R=void 0;u("no-color")||u("no-colors")||u("color=false")?R=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(R=!0),"FORCE_COLOR"in m&&(R=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0);function g(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function c(a){if(R===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(a&&!a.isTTY&&R!==!0)return 0;var i=R?1:0;if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(b){return b in m})||m.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var v=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return v>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:(m.TERM==="dumb",i)}function p(a){var i=c(a);return g(i)}return Et={supportsColor:p,stdout:p(process.stdout),stderr:p(process.stderr)},Et}var Rt={exports:{}},an;function ia(){return an||(an=1,(function(e){e.exports=function(m,R){var g="";m=m||"Run the trap, drop the bass",m=m.split("");var c={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return m.forEach(function(p){p=p.toLowerCase();var a=c[p]||[" "],i=Math.floor(Math.random()*a.length);typeof c[p]<"u"?g+=c[p][i]:g+=p}),g}})(Rt)),Rt.exports}var Ot={exports:{}},un;function oa(){return un||(un=1,(function(e){e.exports=function(m,R){m=m||" he is here ";var g={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},c=[].concat(g.up,g.down,g.mid);function p(v){var b=Math.floor(Math.random()*v);return b}function a(v){var b=!1;return c.filter(function(O){b=O===v}),b}function i(v,b){var O="",y,E;b=b||{},b.up=typeof b.up<"u"?b.up:!0,b.mid=typeof b.mid<"u"?b.mid:!0,b.down=typeof b.down<"u"?b.down:!0,b.size=typeof b.size<"u"?b.size:"maxi",v=v.split("");for(E in v)if(!a(E)){switch(O=O+v[E],y={up:0,down:0,mid:0},b.size){case"mini":y.up=p(8),y.mid=p(2),y.down=p(8);break;case"maxi":y.up=p(16)+3,y.mid=p(4)+1,y.down=p(64)+3;break;default:y.up=p(8)+1,y.mid=p(6)/2,y.down=p(8)+1;break}var h=["up","mid","down"];for(var s in h)for(var f=h[s],o=0;o<=y[f];o++)b[f]&&(O=O+g[f][p(g[f].length)])}return O}return i(m,R)}})(Ot)),Ot.exports}var Pt={exports:{}},sn;function aa(){return sn||(sn=1,(function(e){e.exports=function(u){return function(m,R,g){if(m===" ")return m;switch(R%3){case 0:return u.red(m);case 1:return u.white(m);case 2:return u.blue(m)}}}})(Pt)),Pt.exports}var Tt={exports:{}},fn;function ua(){return fn||(fn=1,(function(e){e.exports=function(u){return function(m,R,g){return R%2===0?m:u.inverse(m)}}})(Tt)),Tt.exports}var jt={exports:{}},ln;function sa(){return ln||(ln=1,(function(e){e.exports=function(u){var m=["red","yellow","green","blue","magenta"];return function(R,g,c){return R===" "?R:u[m[g++%m.length]](R)}}})(jt)),jt.exports}var Mt={exports:{}},cn;function fa(){return cn||(cn=1,(function(e){e.exports=function(u){var m=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(R,g,c){return R===" "?R:u[m[Math.round(Math.random()*(m.length-2))]](R)}}})(Mt)),Mt.exports}var dn;function la(){return dn||(dn=1,(function(e){var u={};e.exports=u,u.themes={};var m=ve(),R=u.styles=ta(),g=Object.defineProperties,c=new RegExp(/[\r\n]+/g);u.supportsColor=na().supportsColor,typeof u.enabled>"u"&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(s){return(""+s).replace(/\x1B\[\d+m/g,"")},u.stylize=function(f,o){if(!u.enabled)return f+"";var n=R[o];return!n&&o in u?u[o](f):n.open+f+n.close};var p=/[|\\{}()[\]^$+*?.]/g,a=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(p,"\\$&")};function i(s){var f=function o(){return O.apply(o,arguments)};return f._styles=s,f.__proto__=b,f}var v=(function(){var s={};return R.grey=R.gray,Object.keys(R).forEach(function(f){R[f].closeRe=new RegExp(a(R[f].close),"g"),s[f]={get:function(){return i(this._styles.concat(f))}}}),s})(),b=g(function(){},v);function O(){var s=Array.prototype.slice.call(arguments),f=s.map(function(_){return _!=null&&_.constructor===String?_:m.inspect(_)}).join(" ");if(!u.enabled||!f)return f;for(var o=f.indexOf(`
@@ -34,4 +34,4 @@ Found: ${m.toString().split(`
34
34
  `)[0]}
35
35
  `),Error.captureStackTrace(this,e)}}return Wr=u=>{if(u.length>2)throw new e(u);function m(g={}){this.options=g}m.prototype.transform=u;function R(g){return new m(g)}return R.Format=m,R},Wr}var Hr,po;function Pu(){if(po)return Hr;po=1;const e=Ou(),{MESSAGE:u}=ee(),m=qe();function R(g,c){return typeof c=="bigint"?c.toString():c}return Hr=e((g,c)=>{const p=m.configure(c);return g[u]=p(g,c.replacer||R,c.space),g}),Hr}var Ur,vo;function en(){if(vo)return Ur;vo=1;function e(L,N,B){return(N=c(N))in L?Object.defineProperty(L,N,{value:B,enumerable:!0,configurable:!0,writable:!0}):L[N]=B,L}function u(L){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},u(L)}function m(L,N){if(!(L instanceof N))throw new TypeError("Cannot call a class as a function")}function R(L,N){for(var B=0;B<N.length;B++){var D=N[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,c(D.key),D)}}function g(L,N,B){return N&&R(L.prototype,N),Object.defineProperty(L,"prototype",{writable:!1}),L}function c(L){var N=p(L,"string");return u(N)=="symbol"?N:N+""}function p(L,N){if(u(L)!="object"||!L)return L;var B=L[Symbol.toPrimitive];if(B!==void 0){var D=B.call(L,N);if(u(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}function a(L,N,B){return N=O(N),i(L,b()?Reflect.construct(N,B||[],O(L).constructor):N.apply(L,B))}function i(L,N){if(N&&(u(N)=="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(L)}function v(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function b(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b=function(){return!!L})()}function O(L){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},O(L)}function y(L,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(N&&N.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),N&&E(L,N)}function E(L,N){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,D){return B.__proto__=D,B},E(L,N)}var h=Oe(),s=h.Stream,f=h.Transform,o=Xr(),n=ee(),l=n.LEVEL,d=n.SPLAT,_=$o(),P=Ko(),M=Jo(),j=Eu(),T=Ru(),q=xo(),W=q.warn,k=Qr(),A=/%[scdjifoO%]/g,G=(function(L){function N(B){var D;return m(this,N),D=a(this,N,[{objectMode:!0}]),D.configure(B),D}return y(N,L),g(N,[{key:"child",value:function(D){var F=this;return Object.create(F,{write:{value:function(Y){var J=Object.assign({},D,Y);Y instanceof Error&&(J.stack=Y.stack,J.message=Y.message,J.cause=Y.cause),F.write(J)}}})}},{key:"configure",value:function(){var D=this,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=F.silent,Y=F.format,J=F.defaultMeta,U=F.levels,Z=F.level,S=Z===void 0?"info":Z,w=F.exitOnError,C=w===void 0?!0:w,H=F.transports,V=F.colors,t=F.emitErrs,r=F.formatters,x=F.padLevels,I=F.rewriters,X=F.stripColors,K=F.exceptionHandlers,Q=F.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=z,this.format=Y||this.format||Pu()(),this.defaultMeta=J||null,this.levels=U||this.levels||k.npm.levels,this.level=S,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new P(this),this.rejections=new M(this),this.profilers={},this.exitOnError=C,H&&(H=Array.isArray(H)?H:[H],H.forEach(function(te){return D.add(te)})),V||t||r||x||I||X)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
36
36
  `));K&&this.exceptions.handle(K),Q&&this.rejections.handle(Q)}},{key:"getHighestLogLevel",value:function(){var D=this,F=$(this.levels,this.level);return!this.transports||this.transports.length===0?F:this.transports.reduce(function(z,Y){var J=$(D.levels,Y.level);return J!==null&&J>z?J:z},F)}},{key:"isLevelEnabled",value:function(D){var F=this,z=$(this.levels,D);if(z===null)return!1;var Y=$(this.levels,this.level);if(Y===null)return!1;if(!this.transports||this.transports.length===0)return Y>=z;var J=this.transports.findIndex(function(U){var Z=$(F.levels,U.level);return Z===null&&(Z=Y),Z>=z});return J!==-1}},{key:"log",value:function(D,F){for(var z=arguments.length,Y=new Array(z>2?z-2:0),J=2;J<z;J++)Y[J-2]=arguments[J];if(arguments.length===1)return D[l]=D.level,this._addDefaultMeta(D),this.write(D),this;if(arguments.length===2)return F&&u(F)==="object"?(F[l]=F.level=D,this._addDefaultMeta(F),this.write(F),this):(F=e(e(e({},l,D),"level",D),"message",F),this._addDefaultMeta(F),this.write(F),this);var U=Y[0];if(u(U)==="object"&&U!==null){var Z=F&&F.match&&F.match(A);if(!Z){var S=Object.assign({},this.defaultMeta,U,e(e(e(e({},l,D),d,Y),"level",D),"message",F));return U.message&&(S.message="".concat(S.message," ").concat(U.message)),U.stack&&(S.stack=U.stack),U.cause&&(S.cause=U.cause),this.write(S),this}}return this.write(Object.assign({},this.defaultMeta,e(e(e(e({},l,D),d,Y),"level",D),"message",F))),this}},{key:"_transform",value:function(D,F,z){if(this.silent)return z();D[l]||(D[l]=D.level),!this.levels[D[l]]&&this.levels[D[l]]!==0&&console.error("[winston] Unknown logger level: %s",D[l]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",D);try{this.push(this.format.transform(D,this.format.options))}finally{this._writableState.sync=!1,z()}}},{key:"_final",value:function(D){var F=this.transports.slice();o(F,function(z,Y){if(!z||z.finished)return setImmediate(Y);z.once("finish",Y),z.end()},D)}},{key:"add",value:function(D){var F=!_(D)||D.log.length>2?new j({transport:D}):D;if(!F._writableState||!F._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",F),this._onEvent("warn",F),this.pipe(F),D.handleExceptions&&this.exceptions.handle(),D.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(D){if(!D)return this;var F=D;return(!_(D)||D.log.length>2)&&(F=this.transports.filter(function(z){return z.transport===D})[0]),F&&this.unpipe(F),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){W.deprecated("setLevels")}},{key:"query",value:function(D,F){typeof D=="function"&&(F=D,D={}),D=D||{};var z={},Y=Object.assign({},D.query||{});function J(Z,S){D.query&&typeof Z.formatQuery=="function"&&(D.query=Z.formatQuery(Y)),Z.query(D,function(w,C){if(w)return S(w);typeof Z.formatResults=="function"&&(C=Z.formatResults(C,D.format)),S(null,C)})}function U(Z,S){J(Z,function(w,C){S&&(C=w||C,C&&(z[Z.name]=C),S()),S=null})}o(this.transports.filter(function(Z){return!!Z.query}),U,function(){return F(null,z)})}},{key:"stream",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=new s,z=[];return F._streams=z,F.destroy=function(){for(var Y=z.length;Y--;)z[Y].destroy()},this.transports.filter(function(Y){return!!Y.stream}).forEach(function(Y){var J=Y.stream(D);J&&(z.push(J),J.on("log",function(U){U.transport=U.transport||[],U.transport.push(Y.name),F.emit("log",U)}),J.on("error",function(U){U.transport=U.transport||[],U.transport.push(Y.name),F.emit("error",U)}))}),F}},{key:"startTimer",value:function(){return new T(this)}},{key:"profile",value:function(D){var F=Date.now();if(this.profilers[D]){var z=this.profilers[D];delete this.profilers[D];for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),U=1;U<Y;U++)J[U-1]=arguments[U];typeof J[J.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),J.pop());var Z=u(J[J.length-1])==="object"?J.pop():{};return Z.level=Z.level||"info",Z.durationMs=F-z,Z.message=Z.message||D,this.write(Z)}return this.profilers[D]=F,this}},{key:"handleExceptions",value:function(){var D;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(D=this.exceptions).handle.apply(D,arguments)}},{key:"unhandleExceptions",value:function(){var D;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(D=this.exceptions).unhandle.apply(D,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
37
- `))}},{key:"_onEvent",value:function(D,F){function z(Y){D==="error"&&!this.transports.includes(F)&&this.add(F),this.emit(D,Y,F)}F["__winston"+D]||(F["__winston"+D]=z.bind(this),F.on(D,F["__winston"+D]))}},{key:"_addDefaultMeta",value:function(D){this.defaultMeta&&Object.assign(D,this.defaultMeta)}}])})(f);function $(L,N){var B=L[N];return!B&&B!==0?null:B}return Object.defineProperty(G.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var N=this._readableState.pipes;return Array.isArray(N)?N:[N].filter(Boolean)}}),Ur=G,Ur}var Gr,yo;function Zo(){if(yo)return Gr;yo=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(f)}function u(f,o,n){return Object.defineProperty(f,"prototype",{writable:!1}),f}function m(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function R(f,o,n){return o=a(o),g(f,p()?Reflect.construct(o,n||[],a(f).constructor):o.apply(f,n))}function g(f,o){if(o&&(e(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(f)}function c(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function p(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p=function(){return!!f})()}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},a(f)}function i(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),o&&v(f,o)}function v(f,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},v(f,o)}var b=ee(),O=b.LEVEL,y=Qr(),E=en(),h=vt()("winston:create-logger");function s(f){return"is"+f.charAt(0).toUpperCase()+f.slice(1)+"Enabled"}return Gr=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.levels=f.levels||y.npm.levels;var o=(function(l){function d(_){return m(this,d),R(this,d,[_])}return i(d,l),u(d)})(E),n=new o(f);return Object.keys(f.levels).forEach(function(l){if(h('Define prototype method for "%s"',l),l==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}o.prototype[l]=function(){for(var d=this||n,_=arguments.length,P=new Array(_),M=0;M<_;M++)P[M]=arguments[M];if(P.length===1){var j=P[0],T=j&&j.message&&j||{message:j};return T.level=T[O]=l,d._addDefaultMeta(T),d.write(T),this||n}return P.length===0?(d.log(l,""),d):d.log.apply(d,[l].concat(P))},o.prototype[s(l)]=function(){return(this||n).isLevelEnabled(l)}}),n},Gr}var zr,go;function Tu(){if(go)return zr;go=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e(a)}function u(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function m(a,i){for(var v=0;v<i.length;v++){var b=i[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,g(b.key),b)}}function R(a,i,v){return i&&m(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function g(a){var i=c(a,"string");return e(i)=="symbol"?i:i+""}function c(a,i){if(e(a)!="object"||!a)return a;var v=a[Symbol.toPrimitive];if(v!==void 0){var b=v.call(a,i);if(e(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}var p=Zo();return zr=(function(){function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,a),this.loggers=new Map,this.options=i}return R(a,[{key:"add",value:function(v,b){var O=this;if(!this.loggers.has(v)){b=Object.assign({},b||this.options);var y=b.transports||this.options.transports;y?b.transports=Array.isArray(y)?y.slice():[y]:b.transports=[];var E=p(b);E.on("close",function(){return O._delete(v)}),this.loggers.set(v,E)}return this.loggers.get(v)}},{key:"get",value:function(v,b){return this.add(v,b)}},{key:"has",value:function(v){return!!this.loggers.has(v)}},{key:"close",value:function(v){var b=this;if(v)return this._removeLogger(v);this.loggers.forEach(function(O,y){return b._removeLogger(y)})}},{key:"_removeLogger",value:function(v){if(this.loggers.has(v)){var b=this.loggers.get(v);b.close(),this._delete(v)}}},{key:"_delete",value:function(v){this.loggers.delete(v)}}])})(),zr}var mo;function qu(){return mo||(mo=1,(function(e){var u=Lo(),m=xo(),R=m.warn;e.version=Wa.version,e.transports=yu(),e.config=Qr(),e.addColors=u.levels,e.format=u.format,e.createLogger=Zo(),e.Logger=en(),e.ExceptionHandler=Ko(),e.RejectionHandler=Jo(),e.Container=Tu(),e.Transport=Ae(),e.loggers=new e.Container;var g=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(c){return e[c]=function(){return g[c].apply(g,arguments)}}),Object.defineProperty(e,"level",{get:function(){return g.level},set:function(p){g.level=p}}),Object.defineProperty(e,"exceptions",{get:function(){return g.exceptions}}),Object.defineProperty(e,"rejections",{get:function(){return g.rejections}}),["exitOnError"].forEach(function(c){Object.defineProperty(e,c,{get:function(){return g[c]},set:function(a){g[c]=a}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:g.exceptionHandlers,rejectionHandlers:g.rejectionHandlers,transports:g.transports}}}),R.deprecated(e,"setLevels"),R.forFunctions(e,"useFormat",["cli"]),R.forProperties(e,"useFormat",["padLevels","stripColors"]),R.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),R.forProperties(e,"deprecated",["emitErrs","levelLength"])})(gt)),gt}export{ht as a,ee as b,Ae as c,qu as r};
37
+ `))}},{key:"_onEvent",value:function(D,F){function z(Y){D==="error"&&!this.transports.includes(F)&&this.add(F),this.emit(D,Y,F)}F["__winston"+D]||(F["__winston"+D]=z.bind(this),F.on(D,F["__winston"+D]))}},{key:"_addDefaultMeta",value:function(D){this.defaultMeta&&Object.assign(D,this.defaultMeta)}}])})(f);function $(L,N){var B=L[N];return!B&&B!==0?null:B}return Object.defineProperty(G.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var N=this._readableState.pipes;return Array.isArray(N)?N:[N].filter(Boolean)}}),Ur=G,Ur}var Gr,yo;function Zo(){if(yo)return Gr;yo=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(f)}function u(f,o,n){return Object.defineProperty(f,"prototype",{writable:!1}),f}function m(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function R(f,o,n){return o=a(o),g(f,p()?Reflect.construct(o,n||[],a(f).constructor):o.apply(f,n))}function g(f,o){if(o&&(e(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(f)}function c(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function p(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p=function(){return!!f})()}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},a(f)}function i(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),o&&v(f,o)}function v(f,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},v(f,o)}var b=ee(),O=b.LEVEL,y=Qr(),E=en(),h=vt()("winston:create-logger");function s(f){return"is"+f.charAt(0).toUpperCase()+f.slice(1)+"Enabled"}return Gr=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.levels=f.levels||y.npm.levels;var o=(function(l){function d(_){return m(this,d),R(this,d,[_])}return i(d,l),u(d)})(E),n=new o(f);return Object.keys(f.levels).forEach(function(l){if(h('Define prototype method for "%s"',l),l==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}o.prototype[l]=function(){for(var d=this||n,_=arguments.length,P=new Array(_),M=0;M<_;M++)P[M]=arguments[M];if(P.length===1){var j=P[0],T=j&&j.message&&j||{message:j};return T.level=T[O]=l,d._addDefaultMeta(T),d.write(T),this||n}return P.length===0?(d.log(l,""),d):d.log.apply(d,[l].concat(P))},o.prototype[s(l)]=function(){return(this||n).isLevelEnabled(l)}}),n},Gr}var zr,go;function Tu(){if(go)return zr;go=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e(a)}function u(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function m(a,i){for(var v=0;v<i.length;v++){var b=i[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,g(b.key),b)}}function R(a,i,v){return i&&m(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function g(a){var i=c(a,"string");return e(i)=="symbol"?i:i+""}function c(a,i){if(e(a)!="object"||!a)return a;var v=a[Symbol.toPrimitive];if(v!==void 0){var b=v.call(a,i);if(e(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}var p=Zo();return zr=(function(){function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,a),this.loggers=new Map,this.options=i}return R(a,[{key:"add",value:function(v,b){var O=this;if(!this.loggers.has(v)){b=Object.assign({},b||this.options);var y=b.transports||this.options.transports;y?b.transports=Array.isArray(y)?y.slice():[y]:b.transports=[];var E=p(b);E.on("close",function(){return O._delete(v)}),this.loggers.set(v,E)}return this.loggers.get(v)}},{key:"get",value:function(v,b){return this.add(v,b)}},{key:"has",value:function(v){return!!this.loggers.has(v)}},{key:"close",value:function(v){var b=this;if(v)return this._removeLogger(v);this.loggers.forEach(function(O,y){return b._removeLogger(y)})}},{key:"_removeLogger",value:function(v){if(this.loggers.has(v)){var b=this.loggers.get(v);b.close(),this._delete(v)}}},{key:"_delete",value:function(v){this.loggers.delete(v)}}])})(),zr}var mo;function Cu(){return mo||(mo=1,(function(e){var u=Lo(),m=xo(),R=m.warn;e.version=Wa.version,e.transports=yu(),e.config=Qr(),e.addColors=u.levels,e.format=u.format,e.createLogger=Zo(),e.Logger=en(),e.ExceptionHandler=Ko(),e.RejectionHandler=Jo(),e.Container=Tu(),e.Transport=Ae(),e.loggers=new e.Container;var g=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(c){return e[c]=function(){return g[c].apply(g,arguments)}}),Object.defineProperty(e,"level",{get:function(){return g.level},set:function(p){g.level=p}}),Object.defineProperty(e,"exceptions",{get:function(){return g.exceptions}}),Object.defineProperty(e,"rejections",{get:function(){return g.rejections}}),["exitOnError"].forEach(function(c){Object.defineProperty(e,c,{get:function(){return g[c]},set:function(a){g[c]=a}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:g.exceptionHandlers,rejectionHandlers:g.rejectionHandlers,transports:g.transports}}}),R.deprecated(e,"setLevels"),R.forFunctions(e,"useFormat",["cli"]),R.forProperties(e,"useFormat",["padLevels","stripColors"]),R.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),R.forProperties(e,"deprecated",["emitErrs","levelLength"])})(gt)),gt}export{ht as a,ee as b,Ae as c,Cu as r};
@@ -0,0 +1 @@
1
+ import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-CLvI85k0.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-Cb5ErRuM.js";import"./index-DcfSUfKC.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};
@@ -1 +1 @@
1
- import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{r as f}from"./winston-DDcfL10c.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
1
+ import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{r as f}from"./winston-CfAk0yN1.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
package/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  <link rel="preconnect" href="https://fonts.googleapis.com">
11
11
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
12
  <link href="https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap" rel="stylesheet">
13
- <script type="module" crossorigin src="/assets/index-yIpMibae.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-DcfSUfKC.js"></script>
14
14
  <link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-D6-XlEtG.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/index-ChvoNxcO.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
@@ -24,11 +24,8 @@
24
24
  <link rel="modulepreload" crossorigin href="/assets/index-BJBOx-Z---hbiLl7B.js">
25
25
  <link rel="modulepreload" crossorigin href="/assets/index.browser-BHPvGrwi-6Mh8eUw-.js">
26
26
  <link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js">
27
- <link rel="modulepreload" crossorigin href="/assets/index-BLr5FjlG.js">
28
- <link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-TDtrdbi3.js">
29
- <link rel="modulepreload" crossorigin href="/assets/index-rEhqCN8O.js">
30
- <link rel="modulepreload" crossorigin href="/assets/inherits_browser-5Fj3Mjxs.js">
31
- <link rel="stylesheet" crossorigin href="/assets/index-D_-sPexk.css">
27
+ <link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-B7n8ZNar.js">
28
+ <link rel="stylesheet" crossorigin href="/assets/index-CUrde35K.css">
32
29
  </head>
33
30
  <body>
34
31
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlang/lstudio",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1 +0,0 @@
1
- function r(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{r as c};
@@ -1 +0,0 @@
1
- import{d as q}from"./__vite-browser-external-DLjrMatA.js";import{a as I}from"./_commonjsHelpers-D6-XlEtG.js";const J=I(q);var l={},B;function L(){if(B)return l;B=1,l.byteLength=d,l.toByteArray=y,l.fromByteArray=C;for(var n=[],a=[],M=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,s=A.length;h<s;++h)n[h]=A[h],a[A.charCodeAt(h)]=h;a[45]=62,a[95]=63;function t(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=r.indexOf("=");o===-1&&(o=e);var c=o===e?0:4-o%4;return[o,c]}function d(r){var e=t(r),o=e[0],c=e[1];return(o+c)*3/4-c}function u(r,e,o){return(e+o)*3/4-o}function y(r){var e,o=t(r),c=o[0],p=o[1],v=new M(u(r,c,p)),F=0,g=p>0?c-4:c,x;for(x=0;x<g;x+=4)e=a[r.charCodeAt(x)]<<18|a[r.charCodeAt(x+1)]<<12|a[r.charCodeAt(x+2)]<<6|a[r.charCodeAt(x+3)],v[F++]=e>>16&255,v[F++]=e>>8&255,v[F++]=e&255;return p===2&&(e=a[r.charCodeAt(x)]<<2|a[r.charCodeAt(x+1)]>>4,v[F++]=e&255),p===1&&(e=a[r.charCodeAt(x)]<<10|a[r.charCodeAt(x+1)]<<4|a[r.charCodeAt(x+2)]>>2,v[F++]=e>>8&255,v[F++]=e&255),v}function i(r){return n[r>>18&63]+n[r>>12&63]+n[r>>6&63]+n[r&63]}function f(r,e,o){for(var c,p=[],v=e;v<o;v+=3)c=(r[v]<<16&16711680)+(r[v+1]<<8&65280)+(r[v+2]&255),p.push(i(c));return p.join("")}function C(r){for(var e,o=r.length,c=o%3,p=[],v=16383,F=0,g=o-c;F<g;F+=v)p.push(f(r,F,F+v>g?g:F+v));return c===1?(e=r[o-1],p.push(n[e>>2]+n[e<<4&63]+"==")):c===2&&(e=(r[o-2]<<8)+r[o-1],p.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),p.join("")}return l}var w={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var N;function j(){return N||(N=1,w.read=function(n,a,M,A,h){var s,t,d=h*8-A-1,u=(1<<d)-1,y=u>>1,i=-7,f=M?h-1:0,C=M?-1:1,r=n[a+f];for(f+=C,s=r&(1<<-i)-1,r>>=-i,i+=d;i>0;s=s*256+n[a+f],f+=C,i-=8);for(t=s&(1<<-i)-1,s>>=-i,i+=A;i>0;t=t*256+n[a+f],f+=C,i-=8);if(s===0)s=1-y;else{if(s===u)return t?NaN:(r?-1:1)*(1/0);t=t+Math.pow(2,A),s=s-y}return(r?-1:1)*t*Math.pow(2,s-A)},w.write=function(n,a,M,A,h,s){var t,d,u,y=s*8-h-1,i=(1<<y)-1,f=i>>1,C=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,r=A?0:s-1,e=A?1:-1,o=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,t=i):(t=Math.floor(Math.log(a)/Math.LN2),a*(u=Math.pow(2,-t))<1&&(t--,u*=2),t+f>=1?a+=C/u:a+=C*Math.pow(2,1-f),a*u>=2&&(t++,u/=2),t+f>=i?(d=0,t=i):t+f>=1?(d=(a*u-1)*Math.pow(2,h),t=t+f):(d=a*Math.pow(2,f-1)*Math.pow(2,h),t=0));h>=8;n[M+r]=d&255,r+=e,d/=256,h-=8);for(t=t<<h|d,y+=h;y>0;n[M+r]=t&255,r+=e,t/=256,y-=8);n[M+r-e]|=o*128}),w}export{j as a,L as b,J as r};