@agentlang/lstudio 0.0.1

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 (65) hide show
  1. package/assets/__vite-browser-external-BDMct_Gn-FmFgRqLi.js +1 -0
  2. package/assets/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +1 -0
  3. package/assets/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +1 -0
  4. package/assets/__vite-browser-external-DJy8wZt7.js +1 -0
  5. package/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js +1 -0
  6. package/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  7. package/assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +1 -0
  8. package/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +1 -0
  9. package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +1 -0
  10. package/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
  11. package/assets/artificial-intelligence.png +0 -0
  12. package/assets/auth.png +0 -0
  13. package/assets/bg-gradient.png +0 -0
  14. package/assets/favicon.ico +0 -0
  15. package/assets/fractl-logo-small.png +0 -0
  16. package/assets/index-69shuAsh-DF18H7zf.js +1 -0
  17. package/assets/index-6mKfgpcs-DsgiI2lM.js +6 -0
  18. package/assets/index-BJBOx-Z---hbiLl7B.js +5 -0
  19. package/assets/index-BOLaQ9_Z.js +58 -0
  20. package/assets/index-BfpeqTCw.js +20 -0
  21. package/assets/index-BoNKy6Ic.js +1 -0
  22. package/assets/index-C2ka9ALg.js +1 -0
  23. package/assets/index-CNLtnwcG-CT9Tl0QI.js +20 -0
  24. package/assets/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +20 -0
  25. package/assets/index-CUtIwvTY-Dla_hTy0.js +58 -0
  26. package/assets/index-CXX5Wl6h.js +15 -0
  27. package/assets/index-CZyH7rAI-yNipxqK_.js +20 -0
  28. package/assets/index-ChvoNxcO.js +5 -0
  29. package/assets/index-D1jV2j2Y.js +1 -0
  30. package/assets/index-D5v913EJ-CsbEilVn.js +1 -0
  31. package/assets/index-DGQM-tVy-4NRC-u1U.js +1 -0
  32. package/assets/index-DIt05veo.js +6 -0
  33. package/assets/index-DSosZ5sh-Ceejs_jv.js +1 -0
  34. package/assets/index-DdrtU5Ny-B6H3P3T_.js +1 -0
  35. package/assets/index-DsIu-45t-Bejjlpz4.js +6 -0
  36. package/assets/index-Dy4QD7s1-DSfoLCzX.js +17 -0
  37. package/assets/index-EboTSEmN.js +35656 -0
  38. package/assets/index-VamKv2HZ--hbiLl7B.js +5 -0
  39. package/assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js +5 -0
  40. package/assets/index-Ynim4IDh.js +1 -0
  41. package/assets/index-ZXlevk9Z.js +1 -0
  42. package/assets/index-ddRsp7-o.css +1 -0
  43. package/assets/index-xuotMAFm-B-PTrwYx.js +1 -0
  44. package/assets/index.browser-CRa8kZEZ.js +6 -0
  45. package/assets/inherits_browser-5Fj3Mjxs.js +1 -0
  46. package/assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js +1 -0
  47. package/assets/loadCognitoIdentity-BLrW2K3k.js +1 -0
  48. package/assets/loadSts-9Q8afg2C.js +1 -0
  49. package/assets/normalizeProvider-BrOPyH3l.js +3 -0
  50. package/assets/preload-helper-BlTxHScW.js +1 -0
  51. package/assets/replService-DgQy0gOO.js +1 -0
  52. package/assets/util-ByC4ZISM-BeKX2g97.js +1 -0
  53. package/assets/util-Di1GNq-L-D-kgTTr0.js +10 -0
  54. package/assets/util-qaS8mbUT.js +10 -0
  55. package/assets/winston-Bb5ONwX_-B86ttl8E.js +1 -0
  56. package/assets/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +1 -0
  57. package/assets/winston-BvKfy0iJ-CwnGwJ9X.js +51 -0
  58. package/assets/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +51 -0
  59. package/assets/winston-CLh__iui-Dz2dJhwh.js +1 -0
  60. package/assets/winston-CtcDki1r-tmxR7nDg.js +37 -0
  61. package/assets/winston-D8lBg2T-.js +1 -0
  62. package/assets/winston-DaXMbKRs.js +37 -0
  63. package/fonts/red-hat.tff +0 -0
  64. package/index.html +49 -0
  65. package/package.json +19 -0
@@ -0,0 +1 @@
1
+ function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m={exports:{}},e=m.exports={},r,n;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=f}catch{r=f}try{typeof clearTimeout=="function"?n=clearTimeout:n=h}catch{n=h}})();function p(t){if(r===setTimeout)return setTimeout(t,0);if((r===f||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch{try{return r.call(null,t,0)}catch{return r.call(this,t,0)}}}function y(t){if(n===clearTimeout)return clearTimeout(t);if((n===h||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch{try{return n.call(null,t)}catch{return n.call(this,t)}}}var o=[],s=!1,c,l=-1;function w(){!s||!c||(s=!1,c.length?o=c.concat(o):l=-1,o.length&&d())}function d(){if(!s){var t=p(w);s=!0;for(var i=o.length;i;){for(c=o,o=[];++l<i;)c&&c[l].run();l=-1,i=o.length}c=null,s=!1,y(t)}}e.nextTick=function(t){var i=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)i[a-1]=arguments[a];o.push(new T(t,i)),o.length===1&&!s&&p(d)};function T(t,i){this.fun=t,this.array=i}T.prototype.run=function(){this.fun.apply(null,this.array)};e.title="browser";e.browser=!0;e.env={};e.argv=[];e.version="";e.versions={};function u(){}e.on=u;e.addListener=u;e.once=u;e.off=u;e.removeListener=u;e.removeAllListeners=u;e.emit=u;e.prependListener=u;e.prependOnceListener=u;e.listeners=function(t){return[]};e.binding=function(t){throw new Error("process.binding is not supported")};e.cwd=function(){return"/"};e.chdir=function(t){throw new Error("process.chdir is not supported")};e.umask=function(){return 0};var v=m.exports;const b=g(v);export{b};
@@ -0,0 +1,6 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-BLrW2K3k.js","assets/index-CXX5Wl6h.js","assets/normalizeProvider-BrOPyH3l.js","assets/preload-helper-BlTxHScW.js","assets/index-EboTSEmN.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js","assets/index-VamKv2HZ--hbiLl7B.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DJy8wZt7.js","assets/index-xuotMAFm-B-PTrwYx.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/inherits_browser-BPb0V7-q-C7Z2MfVc.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-D5v913EJ-CsbEilVn.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js","assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js","assets/index-D1jV2j2Y.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/index-DIt05veo.js","assets/inherits_browser-5Fj3Mjxs.js","assets/index-ddRsp7-o.css","assets/loadSts-9Q8afg2C.js","assets/index-C2ka9ALg.js"])))=>i.map(i=>d[i]);
2
+ import{_ as I}from"./preload-helper-BlTxHScW.js";import{a as O,b as N,t as x,s as D,H as K,p as H,F as j,n as q}from"./normalizeProvider-BrOPyH3l.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-BLrW2K3k.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,20,21,22,23,24,25,26])),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-BLrW2K3k.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,20,21,22,23,24,25,26])),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-9Q8afg2C.js").then(y=>y.l);return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]));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-C2ka9ALg.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([28,27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]));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{c as ke}from"./_commonjsHelpers-D6-XlEtG.js";var Q,Kr;function He(){return Kr||(Kr=1,Q=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var f=42;e[t]=f;for(var c in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==f||a.enumerable!==!0)return!1}return!0}),Q}var X,Qr;function pt(){if(Qr)return X;Qr=1;var r=He();return X=function(){return r()&&!!Symbol.toStringTag},X}var Z,Xr;function Je(){return Xr||(Xr=1,Z=Object),Z}var rr,Zr;function ct(){return Zr||(Zr=1,rr=Error),rr}var er,re;function st(){return re||(re=1,er=EvalError),er}var tr,ee;function vt(){return ee||(ee=1,tr=RangeError),tr}var nr,te;function dt(){return te||(te=1,nr=ReferenceError),nr}var or,ne;function Ve(){return ne||(ne=1,or=SyntaxError),or}var ar,oe;function V(){return oe||(oe=1,ar=TypeError),ar}var ir,ae;function ht(){return ae||(ae=1,ir=URIError),ir}var ur,ie;function gt(){return ie||(ie=1,ur=Math.abs),ur}var fr,ue;function bt(){return ue||(ue=1,fr=Math.floor),fr}var yr,fe;function At(){return fe||(fe=1,yr=Math.max),yr}var lr,ye;function mt(){return ye||(ye=1,lr=Math.min),lr}var pr,le;function Pt(){return le||(le=1,pr=Math.pow),pr}var cr,pe;function St(){return pe||(pe=1,cr=Math.round),cr}var sr,ce;function Rt(){return ce||(ce=1,sr=Number.isNaN||function(e){return e!==e}),sr}var vr,se;function Ot(){if(se)return vr;se=1;var r=Rt();return vr=function(t){return r(t)||t===0?t:t<0?-1:1},vr}var dr,ve;function qt(){return ve||(ve=1,dr=Object.getOwnPropertyDescriptor),dr}var hr,de;function U(){if(de)return hr;de=1;var r=qt();if(r)try{r([],"length")}catch{r=null}return hr=r,hr}var gr,he;function z(){if(he)return gr;he=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return gr=r,gr}var br,ge;function Et(){if(ge)return br;ge=1;var r=typeof Symbol<"u"&&Symbol,e=He();return br=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},br}var Ar,be;function ze(){return be||(be=1,Ar=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ar}var mr,Ae;function Ye(){if(Ae)return mr;Ae=1;var r=Je();return mr=r.getPrototypeOf||null,mr}var Pr,me;function wt(){if(me)return Pr;me=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",f=function(n,u){for(var y=[],o=0;o<n.length;o+=1)y[o]=n[o];for(var s=0;s<u.length;s+=1)y[s+n.length]=u[s];return y},c=function(n,u){for(var y=[],o=u,s=0;o<n.length;o+=1,s+=1)y[s]=n[o];return y},l=function(a,n){for(var u="",y=0;y<a.length;y+=1)u+=a[y],y+1<a.length&&(u+=n);return u};return Pr=function(n){var u=this;if(typeof u!="function"||e.apply(u)!==i)throw new TypeError(r+u);for(var y=c(arguments,1),o,s=function(){if(this instanceof o){var v=u.apply(this,f(y,arguments));return Object(v)===v?v:this}return u.apply(n,f(y,arguments))},I=t(0,u.length-y.length),F=[],m=0;m<I;m++)F[m]="$"+m;if(o=Function("binder","return function ("+l(F,",")+"){ return binder.apply(this,arguments); }")(s),u.prototype){var d=function(){};d.prototype=u.prototype,o.prototype=new d,d.prototype=null}return o},Pr}var Sr,Pe;function C(){if(Pe)return Sr;Pe=1;var r=wt();return Sr=Function.prototype.bind||r,Sr}var Rr,Se;function kr(){return Se||(Se=1,Rr=Function.prototype.call),Rr}var Or,Re;function Hr(){return Re||(Re=1,Or=Function.prototype.apply),Or}var qr,Oe;function Ft(){return Oe||(Oe=1,qr=typeof Reflect<"u"&&Reflect&&Reflect.apply),qr}var Er,qe;function Ke(){if(qe)return Er;qe=1;var r=C(),e=Hr(),t=kr(),i=Ft();return Er=i||r.call(t,e),Er}var wr,Ee;function Jr(){if(Ee)return wr;Ee=1;var r=C(),e=V(),t=kr(),i=Ke();return wr=function(c){if(c.length<1||typeof c[0]!="function")throw new e("a function is required");return i(r,t,c)},wr}var Fr,we;function It(){if(we)return Fr;we=1;var r=Jr(),e=U(),t;try{t=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var i=!!t&&e&&e(Object.prototype,"__proto__"),f=Object,c=f.getPrototypeOf;return Fr=i&&typeof i.get=="function"?r([i.get]):typeof c=="function"?function(a){return c(a==null?a:f(a))}:!1,Fr}var Ir,Fe;function Qe(){if(Fe)return Ir;Fe=1;var r=ze(),e=Ye(),t=It();return Ir=r?function(f){return r(f)}:e?function(f){if(!f||typeof f!="object"&&typeof f!="function")throw new TypeError("getProto: not an object");return e(f)}:t?function(f){return t(f)}:null,Ir}var jr,Ie;function jt(){if(Ie)return jr;Ie=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=C();return jr=t.call(r,e),jr}var Tr,je;function Xe(){if(je)return Tr;je=1;var r,e=Je(),t=ct(),i=st(),f=vt(),c=dt(),l=Ve(),a=V(),n=ht(),u=gt(),y=bt(),o=At(),s=mt(),I=Pt(),F=St(),m=Ot(),d=Function,v=function(q){try{return d('"use strict"; return ('+q+").constructor;")()}catch{}},h=U(),p=z(),A=function(){throw new a},Y=h?(function(){try{return arguments.callee,A}catch{try{return h(arguments,"callee").get}catch{return A}}})():A,T=Et()(),P=Qe(),Ze=Ye(),rt=ze(),Vr=Hr(),_=kr(),B={},et=typeof Uint8Array>"u"||!P?r:P(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":f,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":Y,"%TypedArray%":et,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":n,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":Vr,"%Object.defineProperty%":p,"%Object.getPrototypeOf%":Ze,"%Math.abs%":u,"%Math.floor%":y,"%Math.max%":o,"%Math.min%":s,"%Math.pow%":I,"%Math.round%":F,"%Math.sign%":m,"%Reflect.getPrototypeOf%":rt};if(P)try{null.error}catch(q){var tt=P(P(q));j["%Error.prototype%"]=tt}var nt=function q(g){var S;if(g==="%AsyncFunction%")S=v("async function () {}");else if(g==="%GeneratorFunction%")S=v("function* () {}");else if(g==="%AsyncGeneratorFunction%")S=v("async function* () {}");else if(g==="%AsyncGenerator%"){var b=q("%AsyncGeneratorFunction%");b&&(S=b.prototype)}else if(g==="%AsyncIteratorPrototype%"){var R=q("%AsyncGenerator%");R&&P&&(S=P(R.prototype))}return j[g]=S,S},zr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=C(),N=jt(),ot=x.call(_,Array.prototype.concat),at=x.call(Vr,Array.prototype.splice),Yr=x.call(_,String.prototype.replace),M=x.call(_,String.prototype.slice),it=x.call(_,RegExp.prototype.exec),ut=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ft=/\\(\\)?/g,yt=function(g){var S=M(g,0,1),b=M(g,-1);if(S==="%"&&b!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(b==="%"&&S!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var R=[];return Yr(g,ut,function(E,$,O,G){R[R.length]=O?Yr(G,ft,"$1"):$||E}),R},lt=function(g,S){var b=g,R;if(N(zr,b)&&(R=zr[b],b="%"+R[0]+"%"),N(j,b)){var E=j[b];if(E===B&&(E=nt(b)),typeof E>"u"&&!S)throw new a("intrinsic "+g+" exists, but is not available. Please file an issue!");return{alias:R,name:b,value:E}}throw new l("intrinsic "+g+" does not exist!")};return Tr=function(g,S){if(typeof g!="string"||g.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof S!="boolean")throw new a('"allowMissing" argument must be a boolean');if(it(/^%?[^%]*%?$/,g)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var b=yt(g),R=b.length>0?b[0]:"",E=lt("%"+R+"%",S),$=E.name,O=E.value,G=!1,K=E.alias;K&&(R=K[0],at(b,ot([0,1],K)));for(var W=1,D=!0;W<b.length;W+=1){var w=b[W],L=M(w,0,1),k=M(w,-1);if((L==='"'||L==="'"||L==="`"||k==='"'||k==="'"||k==="`")&&L!==k)throw new l("property names with quotes must have matching quotes");if((w==="constructor"||!D)&&(G=!0),R+="."+w,$="%"+R+"%",N(j,$))O=j[$];else if(O!=null){if(!(w in O)){if(!S)throw new a("base intrinsic for "+g+" exists, but the property is not available.");return}if(h&&W+1>=b.length){var H=h(O,w);D=!!H,D&&"get"in H&&!("originalValue"in H.get)?O=H.get:O=O[w]}else D=N(O,w),O=O[w];D&&!G&&(j[$]=O)}}return O},Tr}var Br,Te;function Tt(){if(Te)return Br;Te=1;var r=Xe(),e=Jr(),t=e([r("%String.prototype.indexOf%")]);return Br=function(f,c){var l=r(f,!!c);return typeof l=="function"&&t(f,".prototype.")>-1?e([l]):l},Br}var $r,Be;function Bt(){if(Be)return $r;Be=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,i;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw i}}),i={},e(function(){throw 42},null,t)}catch(h){h!==i&&(e=null)}else e=null;var f=/^\s*class\b/,c=function(p){try{var A=r.call(p);return f.test(A)}catch{return!1}},l=function(p){try{return c(p)?!1:(r.call(p),!0)}catch{return!1}},a=Object.prototype.toString,n="[object Object]",u="[object Function]",y="[object GeneratorFunction]",o="[object HTMLAllCollection]",s="[object HTML document.all class]",I="[object HTMLCollection]",F=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),d=function(){return!1};if(typeof document=="object"){var v=document.all;a.call(v)===a.call(document.all)&&(d=function(p){if((m||!p)&&(typeof p>"u"||typeof p=="object"))try{var A=a.call(p);return(A===o||A===s||A===I||A===n)&&p("")==null}catch{}return!1})}return $r=e?function(p){if(d(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;try{e(p,null,t)}catch(A){if(A!==i)return!1}return!c(p)&&l(p)}:function(p){if(d(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;if(F)return l(p);if(c(p))return!1;var A=a.call(p);return A!==u&&A!==y&&!/^\[object HTML/.test(A)?!1:l(p)},$r}var _r,$e;function $t(){if($e)return _r;$e=1;var r=Bt(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,i=function(n,u,y){for(var o=0,s=n.length;o<s;o++)t.call(n,o)&&(y==null?u(n[o],o,n):u.call(y,n[o],o,n))},f=function(n,u,y){for(var o=0,s=n.length;o<s;o++)y==null?u(n.charAt(o),o,n):u.call(y,n.charAt(o),o,n)},c=function(n,u,y){for(var o in n)t.call(n,o)&&(y==null?u(n[o],o,n):u.call(y,n[o],o,n))};function l(a){return e.call(a)==="[object Array]"}return _r=function(n,u,y){if(!r(u))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=y),l(n)?i(n,u,o):typeof n=="string"?f(n,u,o):c(n,u,o)},_r}var xr,_e;function _t(){return _e||(_e=1,xr=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xr}var Dr,xe;function xt(){if(xe)return Dr;xe=1;var r=_t(),e=typeof globalThis>"u"?ke:globalThis;return Dr=function(){for(var i=[],f=0;f<r.length;f++)typeof e[r[f]]=="function"&&(i[i.length]=r[f]);return i},Dr}var Ur={exports:{}},Cr,De;function Dt(){if(De)return Cr;De=1;var r=z(),e=Ve(),t=V(),i=U();return Cr=function(c,l,a){if(!c||typeof c!="object"&&typeof c!="function")throw new t("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,s=!!i&&i(c,l);if(r)r(c,l,{configurable:y===null&&s?s.configurable:!y,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:u===null&&s?s.writable:!u});else if(o||!n&&!u&&!y)c[l]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Cr}var Nr,Ue;function Ut(){if(Ue)return Nr;Ue=1;var r=z(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},Nr=e,Nr}var Mr,Ce;function Ct(){if(Ce)return Mr;Ce=1;var r=Xe(),e=Dt(),t=Ut()(),i=U(),f=V(),c=r("%Math.floor%");return Mr=function(a,n){if(typeof a!="function")throw new f("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||c(n)!==n)throw new f("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],y=!0,o=!0;if("length"in a&&i){var s=i(a,"length");s&&!s.configurable&&(y=!1),s&&!s.writable&&(o=!1)}return(y||o||!u)&&(t?e(a,"length",n,!0,!0):e(a,"length",n)),a},Mr}var Gr,Ne;function Nt(){if(Ne)return Gr;Ne=1;var r=C(),e=Hr(),t=Ke();return Gr=function(){return t(r,e,arguments)},Gr}var Me;function Mt(){return Me||(Me=1,(function(r){var e=Ct(),t=z(),i=Jr(),f=Nt();r.exports=function(l){var a=i(arguments),n=l.length-(arguments.length-1);return e(a,1+(n>0?n:0),!0)},t?t(r.exports,"apply",{value:f}):r.exports.apply=f})(Ur)),Ur.exports}var Wr,Ge;function Gt(){if(Ge)return Wr;Ge=1;var r=$t(),e=xt(),t=Mt(),i=Tt(),f=U(),c=Qe(),l=i("Object.prototype.toString"),a=pt()(),n=typeof globalThis>"u"?ke:globalThis,u=e(),y=i("String.prototype.slice"),o=i("Array.prototype.indexOf",!0)||function(d,v){for(var h=0;h<d.length;h+=1)if(d[h]===v)return h;return-1},s={__proto__:null};a&&f&&c?r(u,function(m){var d=new n[m];if(Symbol.toStringTag in d&&c){var v=c(d),h=f(v,Symbol.toStringTag);if(!h&&v){var p=c(v);h=f(p,Symbol.toStringTag)}s["$"+m]=t(h.get)}}):r(u,function(m){var d=new n[m],v=d.slice||d.set;v&&(s["$"+m]=t(v))});var I=function(d){var v=!1;return r(s,function(h,p){if(!v)try{"$"+h(d)===p&&(v=y(p,1))}catch{}}),v},F=function(d){var v=!1;return r(s,function(h,p){if(!v)try{h(d),v=y(p,1)}catch{}}),v};return Wr=function(d){if(!d||typeof d!="object")return!1;if(!a){var v=y(l(d),8,-1);return o(u,v)>-1?v:v!=="Object"?!1:F(d)}return f?I(d):null},Wr}var Lr,We;function Lt(){if(We)return Lr;We=1;var r=Gt();return Lr=function(t){return!!r(t)},Lr}var J={exports:{}},Le;function kt(){return Le||(Le=1,typeof Object.create=="function"?J.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:J.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}),J.exports}export{Tt as a,U as b,jt as c,V as d,Qe as e,Lt as f,Gt as g,kt as h,pt as r};
@@ -0,0 +1 @@
1
+ var e={exports:{}},p;function n(){return p||(p=1,typeof Object.create=="function"?e.exports=function(t,o){o&&(t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,o){if(o){t.super_=o;var r=function(){};r.prototype=o.prototype,t.prototype=new r,t.prototype.constructor=t}}),e.exports}export{n as s};
@@ -0,0 +1 @@
1
+ import{S as V,m as Le,d as Ge,i as qe,T as y,b as J,N as b,c as R,e as Be,L as ue,f as pe,v as Ve,R as Je,h as Ke,n as le,j as Qe,E as We,r as Xe,k as Ye,l as Ze,p as et,o as tt,q as nt,s as st,t as rt,D as it,u as ot,w as at,x as ct,y as dt,z as ut,A as pt,B as lt,F as gt,G as mt,H as ft,I as ht,J as yt,K as Et,a as St,M as Ct,O as It,P as xt,Q as _t,U as wt,V as At,W as Pt,X as Rt,Y as bt,Z as vt,_ as kt,$ as Tt,a0 as Dt,a1 as Ot,C as ge,g as me}from"./index-CXX5Wl6h.js";import{n as N,c as Nt,H as fe,t as he,d as ye,e as Mt,g as Ut,h as $t,a as Ee,i as Ft,f as zt,s as jt,F as Ht}from"./normalizeProvider-BrOPyH3l.js";import"./preload-helper-BlTxHScW.js";import"./index-EboTSEmN.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.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-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";const Lt=void 0;function Gt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function qt(t){const e=N(t.userAgentAppId??Lt),{customUserAgent:n}=t;return Object.assign(t,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const s=await e();if(!Gt(s)){const r=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof s!="string"?r?.warn("userAgentAppId must be a string or undefined."):s.length>50&&r?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}function Bt(t,e,n){return t.$source||(t.$source={}),t.$source[e]=n,t}function x(t,e,n){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=n}const K=t=>Nt.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,Se=t=>new Date(Date.now()+t),Vt=(t,e)=>Math.abs(Se(e).getTime()-t)>=3e5,Q=(t,e)=>{const n=Date.parse(t);return Vt(n,e)?n-Date.now():e},M=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},Jt=async t=>{const e=M("context",t.context),n=M("config",t.config),s=e.endpointV2?.properties?.authSchemes?.[0],o=await M("signer",n.signer)(s),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:n,signer:o,signingRegion:i,signingRegionSet:a,signingName:c}};class Kt{async sign(e,n,s){if(!fe.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const r=await Jt(s),{config:o,signer:i}=r;let{signingRegion:a,signingName:c}=r;const d=s.context;if(d?.authSchemes?.length??!1){const[l,m]=d.authSchemes;l?.name==="sigv4a"&&m?.name==="sigv4"&&(a=m?.signingRegion??a,c=m?.signingName??c)}return await i.sign(e,{signingDate:Se(o.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return n=>{const s=n.ServerTime??K(n.$response);if(s){const r=M("config",e.config),o=r.systemClockOffset;r.systemClockOffset=Q(s,r.systemClockOffset),r.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(e,n){const s=K(e);if(s){const r=M("config",n.config);r.systemClockOffset=Q(s,r.systemClockOffset)}}}const Qt=t=>{let e=t.credentials,n=!!t.credentials,s;Object.defineProperty(t,"credentials",{set(d){d&&d!==e&&d!==s&&(n=!0),e=d;const p=Wt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),l=Xt(t,p);n&&!l.attributed?(s=async m=>l(m).then(E=>Bt(E,"CREDENTIALS_CODE","e")),s.memoized=l.memoized,s.configBound=l.configBound,s.attributed=!0):s=l},get(){return s},enumerable:!0,configurable:!0}),t.credentials=e;const{signingEscapePath:r=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:i}=t;let a;return t.signer?a=N(t.signer):t.regionInfoProvider?a=()=>N(t.region)().then(async d=>[await t.regionInfoProvider(d,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},d]).then(([d,p])=>{const{signingRegion:l,signingService:m}=d;t.signingRegion=t.signingRegion||l||p,t.signingName=t.signingName||m||t.serviceId;const E={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},v=t.signerConstructor||V;return new v(E)}):a=async d=>{d=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await N(t.region)(),properties:{}},d);const p=d.signingRegion,l=d.signingName;t.signingRegion=t.signingRegion||p,t.signingName=t.signingName||l||t.serviceId;const m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},E=t.signerConstructor||V;return new E(m)},Object.assign(t,{systemClockOffset:o,signingEscapePath:r,signer:a})};function Wt(t,{credentials:e,credentialDefaultProvider:n}){let s;return e?e?.memoized?s=e:s=Le(e,qe,Ge):n?s=N(n(Object.assign({},t,{parentClientConfig:t}))):s=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},s.memoized=!0,s}function Xt(t,e){if(e.configBound)return e;const n=async s=>e({...s,callerClientConfig:t});return n.memoized=e.memoized,n.configBound=!0,n}class Yt{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,n){const s=n.getMemberSchemas(),r=Object.values(s).find(o=>!!o.getMergedTraits().httpPayload);if(r){const o=r.getMergedTraits().mediaType;return o||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}else if(!n.isUnitSchema()&&Object.values(s).find(i=>{const{httpQuery:a,httpQueryParams:c,httpHeader:d,httpLabel:p,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!c&&!d&&!p&&l===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,n,s,r,o,i){let a=n,c=e;e.includes("#")&&([a,c]=e.split("#"));const d={$metadata:o,$fault:s.statusCode<500?"client":"server"},p=y.for(a);try{return{errorSchema:i?.(p,c)??p.getSchema(e),errorMetadata:d}}catch{r.message=r.message??r.Message??"UnknownError";const m=y.for("smithy.ts.sdk.synthetic."+a),E=m.getBaseException();if(E){const v=m.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new v({name:c}),d),r)}throw this.decorateServiceException(Object.assign(new Error(c),d),r)}}decorateServiceException(e,n={}){if(this.queryCompat){const s=e.Message??n.Message,r=J(e,n);return s&&(r.Message=s,r.message=s),r}return J(e,n)}setQueryCompatError(e,n){const s=n.headers?.["x-amzn-query-error"];if(e!==void 0&&s!=null){const[r,o]=s.split(";"),i=Object.entries(e),a={Code:r,Type:o};Object.assign(e,a);for(const[c,d]of i)a[c]=d;delete a.__type,e.Error=a}}queryCompatOutput(e,n){e.Error&&(n.Error=e.Error),e.Type&&(n.Type=e.Type),e.Code&&(n.Code=e.Code)}}class H{serdeContext;setSerdeContext(e){this.serdeContext=e}}function*Zt(t,e){if(t.isUnitSchema())return;const n=t.getSchema();for(let s=0;s<n[4].length;++s){const r=n[4][s],o=new b([n[5][s],0],r);!(r in e)&&!o.isIdempotencyToken()||(yield[r,o])}}function*en(t,e,n){if(t.isUnitSchema())return;const s=t.getSchema();let r=Object.keys(e).length;for(let o=0;o<s[4].length&&r!==0;++o){const i=s[4][o],a=new b([s[5][o],0],i);let c=i;n&&(c=a.getMergedTraits()[n]??i),c in e&&(yield[i,a],r-=1)}}function tn(t,e,n){if(n?.source){const s=n.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER||s!==String(e)))return s.includes(".")?new R(s,"bigDecimal"):BigInt(s)}return e}const nn=(t,e)=>Be(t,e).then(n=>(e?.utf8Encoder??he)(n)),sn=(t,e)=>nn(t,e).then(n=>{if(n.length)try{return JSON.parse(n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:n}),s}return{}}),rn=(t,e)=>{const n=(o,i)=>Object.keys(o).find(a=>a.toLowerCase()===i.toLowerCase()),s=o=>{let i=o;return typeof i=="number"&&(i=i.toString()),i.indexOf(",")>=0&&(i=i.split(",")[0]),i.indexOf(":")>=0&&(i=i.split(":")[0]),i.indexOf("#")>=0&&(i=i.split("#")[1]),i},r=n(t.headers,"x-amzn-errortype");if(r!==void 0)return s(t.headers[r]);if(e&&typeof e=="object"){const o=n(e,"code");if(o&&e[o]!==void 0)return s(e[o]);if(e.__type!==void 0)return s(e.__type)}};class on extends H{settings;constructor(e){super(),this.settings=e}async read(e,n){return this._read(e,typeof n=="string"?JSON.parse(n,tn):await sn(n,this.serdeContext))}readObject(e,n){return this._read(e,n)}_read(e,n){const s=n!==null&&typeof n=="object",r=b.of(e);if(r.isListSchema()&&Array.isArray(n)){const i=r.getValueSchema(),a=[],c=!!r.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._read(i,d));return a}else if(r.isMapSchema()&&s){const i=r.getValueSchema(),a={},c=!!r.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._read(i,p));return a}else if(r.isStructSchema()&&s){const i={};for(const[a,c]of en(r,n,this.settings.jsonName?"jsonName":!1)){const d=this.settings.jsonName?c.getMergedTraits().jsonName??a:a,p=this._read(c,n[d]);p!=null&&(i[a]=p)}return i}if(r.isBlobSchema()&&typeof n=="string")return ye(n);const o=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof n=="string"&&o&&(o==="application/json"||o.endsWith("+json")))return ue.from(n);if(r.isTimestampSchema()&&n!=null)switch(pe(r,this.settings)){case 5:return $t(n);case 6:return Ut(n);case 7:return Mt(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isBigIntegerSchema()&&(typeof n=="number"||typeof n=="string"))return BigInt(n);if(r.isBigDecimalSchema()&&n!=null){if(n instanceof R)return n;const i=n;return i.type==="bigDecimal"&&"string"in i?new R(i.string,i.type):new R(String(n),"bigDecimal")}if(r.isNumericSchema()&&typeof n=="string")switch(n){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(r.isDocumentSchema())if(s){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._read(r,c);return i}else return structuredClone(n);return n}}const W="Ν";class an{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,n)=>{if(n instanceof R){const s=`${W+"nv"+this.counter++}_`+n.string;return this.values.set(`"${s}"`,n.string),s}if(typeof n=="bigint"){const s=n.toString(),r=`${W+"b"+this.counter++}_`+s;return this.values.set(`"${r}"`,s),r}return n}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(const[n,s]of this.values)e=e.replace(n,s);return e}}class cn extends H{settings;buffer;rootSchema;constructor(e){super(),this.settings=e}write(e,n){this.rootSchema=b.of(e),this.buffer=this._write(this.rootSchema,n)}writeDiscriminatedDocument(e,n){this.write(e,n),typeof this.buffer=="object"&&(this.buffer.__type=b.of(e).getName(!0))}flush(){const{rootSchema:e}=this;if(this.rootSchema=void 0,e?.isStructSchema()||e?.isDocumentSchema()){const n=new an;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}_write(e,n,s){const r=n!==null&&typeof n=="object",o=b.of(e);if(o.isListSchema()&&Array.isArray(n)){const i=o.getValueSchema(),a=[],c=!!o.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._write(i,d));return a}else if(o.isMapSchema()&&r){const i=o.getValueSchema(),a={},c=!!o.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._write(i,p));return a}else if(o.isStructSchema()&&r){const i={};for(const[a,c]of Zt(o,n)){const d=this._write(c,n[a],o);if(d!==void 0){const p=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;i[p]=d}}return i}if(!(n===null&&s?.isStructSchema())){if(o.isBlobSchema()&&(n instanceof Uint8Array||typeof n=="string")||o.isDocumentSchema()&&n instanceof Uint8Array)return o===this.rootSchema?n:(this.serdeContext?.base64Encoder??Ee)(n);if((o.isTimestampSchema()||o.isDocumentSchema())&&n instanceof Date)switch(pe(o,this.settings)){case 5:return n.toISOString().replace(".000Z","Z");case 6:return Ft(n);case 7:return n.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",n),n.getTime()/1e3}if(o.isNumericSchema()&&typeof n=="number"&&(Math.abs(n)===1/0||isNaN(n)))return String(n);if(o.isStringSchema()){if(typeof n>"u"&&o.isIdempotencyToken())return Ve();const i=o.getMergedTraits().mediaType;if(n!=null&&i&&(i==="application/json"||i.endsWith("+json")))return ue.from(n)}if(o.isDocumentSchema())if(r){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._write(o,c);return i}else return structuredClone(n);return n}}}class dn extends H{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new cn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new on(this.settings);return e.setSerdeContext(this.serdeContext),e}}class un extends Je{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e}),this.serviceTarget=n,this.codec=new dn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Yt(this.awsQueryCompatible)}async serializeRequest(e,n,s){const r=await super.serializeRequest(e,n,s);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(Ke(e.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,n,s,r,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,s);const i=rn(s,r)??"Unknown",{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,r,o),d=b.of(a),p=r.message??r.Message??"Unknown",l=y.for(a[1]).getErrorCtor(a)??Error,m=new l(p),E={};for(const[v,B]of d.structIterator()){const He=B.getMergedTraits().jsonName??v;E[v]=this.codec.createDeserializer().readObject(B,r[He])}throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,E),this.mixin.decorateServiceException(Object.assign(m,c,{$fault:d.getMergedTraits().error,message:p},E),r)}}class pn extends un{constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ln=/\d{12}\.ddb/;async function gn(t,e,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&x(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){const o=await e.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?x(t,"RETRY_MODE_ADAPTIVE","F"):x(t,"RETRY_MODE_STANDARD","E"):x(t,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){const o=t.endpointV2;switch(String(o?.url?.hostname).match(ln)&&x(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":x(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":x(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":x(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const r=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){const o=r;o.accountId&&x(t,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))x(t,i,a)}}const X="user-agent",z="x-amz-user-agent",Y=" ",j="/",mn=/[^!$%&'*+\-.^_`|~\w]/g,fn=/[^!$%&'*+\-.^_`|~\w#]/g,Z="-",hn=1024;function yn(t){let e="";for(const n in t){const s=t[n];if(e.length+s.length+1<=hn){e.length?e+=","+s:e+=s;continue}break}return e}const En=t=>(e,n)=>async s=>{const{request:r}=s;if(!fe.isInstance(r))return e(s);const{headers:o}=r,i=n?.userAgent?.map($)||[],a=(await t.defaultUserAgentProvider()).map($);await gn(n,t,s);const c=n;a.push(`m/${yn(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const d=t?.customUserAgent?.map($)||[],p=await t.userAgentAppId();p&&a.push($(["app",`${p}`]));const l=[].concat([...a,...i,...d]).join(Y),m=[...a.filter(E=>E.startsWith("aws-sdk-")),...d].join(Y);return t.runtime!=="browser"?(m&&(o[z]=o[z]?`${o[X]} ${m}`:m),o[X]=l):o[z]=l,e({...s,request:r})},$=t=>{const e=t[0].split(j).map(i=>i.replace(mn,Z)).join(j),n=t[1]?.replace(fn,Z),s=e.indexOf(j),r=e.substring(0,s);let o=e.substring(s+1);return r==="api"&&(o=o.toLowerCase()),[r,o,n].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Sn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Cn=t=>({applyToStack:e=>{e.add(En(t),Sn)}}),In=async(t,e,n)=>({operation:Qe(e).operation,region:await le(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function xn(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:t.region},propertiesExtractor:(e,n)=>({signingProperties:{config:e,context:n}})}}function F(t){return{schemeId:"smithy.api#noAuth"}}const _n=t=>{const e=[];switch(t.operation){case"GetCredentialsForIdentity":{e.push(F());break}case"GetId":{e.push(F());break}case"GetOpenIdToken":{e.push(F());break}case"UnlinkIdentity":{e.push(F());break}default:e.push(xn(t))}return e},wn=t=>{const e=Qt(t);return Object.assign(e,{authSchemePreference:le(t.authSchemePreference??[])})},An=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Pn="3.940.0",Rn={version:Pn},Ie="required",f="fn",h="argv",T="ref",ee=!0,te="isSet",U="booleanEquals",k="error",_="endpoint",P="tree",L="PartitionResult",G="getAttr",D="stringEquals",ne={[Ie]:!1,type:"string"},se={[Ie]:!0,default:!1,type:"boolean"},re={[T]:"Endpoint"},xe={[f]:U,[h]:[{[T]:"UseFIPS"},!0]},_e={[f]:U,[h]:[{[T]:"UseDualStack"},!0]},g={},O={[T]:"Region"},ie={[f]:G,[h]:[{[T]:L},"supportsFIPS"]},we={[T]:L},oe={[f]:U,[h]:[!0,{[f]:G,[h]:[we,"supportsDualStack"]}]},ae=[xe],ce=[_e],de=[O],bn={parameters:{Region:ne,UseDualStack:se,UseFIPS:se,Endpoint:ne},rules:[{conditions:[{[f]:te,[h]:[re]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:k},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:k},{endpoint:{url:re,properties:g,headers:g},type:_}],type:P},{conditions:[{[f]:te,[h]:de}],rules:[{conditions:[{[f]:"aws.partition",[h]:de,assign:L}],rules:[{conditions:[xe,_e],rules:[{conditions:[{[f]:U,[h]:[ee,ie]},oe],rules:[{conditions:[{[f]:D,[h]:[O,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:k}],type:P},{conditions:ae,rules:[{conditions:[{[f]:U,[h]:[ie,ee]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:k}],type:P},{conditions:ce,rules:[{conditions:[oe],rules:[{conditions:[{[f]:D,[h]:["aws",{[f]:G,[h]:[we,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:k}],type:P},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:k}]},vn=bn,kn=new We({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Tn=(t,e={})=>kn.get(t,()=>Xe(vn,{endpointParams:t,logger:e.logger}));Ze.aws=Ye;const Dn=t=>({apiVersion:"2014-06-30",base64Decoder:t?.base64Decoder??ye,base64Encoder:t?.base64Encoder??Ee,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Tn,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??_n,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Kt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new nt}],logger:t?.logger??new tt,protocol:t?.protocol??new pn({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:t?.serviceId??"Cognito Identity",urlParser:t?.urlParser??et,utf8Decoder:t?.utf8Decoder??zt,utf8Encoder:t?.utf8Encoder??he}),On=t=>{const e=st(t),n=()=>e().then(lt),s=Dn(t);return{...s,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??dt,credentialDefaultProvider:t?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:t?.defaultUserAgentProvider??ct({serviceId:s.serviceId,clientVersion:Rn.version}),maxAttempts:t?.maxAttempts??at,region:t?.region??ot("Region is missing"),requestHandler:Ht.create(t?.requestHandler??n),retryMode:t?.retryMode??(async()=>(await n()).retryMode||it),sha256:t?.sha256??rt,streamCollector:t?.streamCollector??jt,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(pt)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(ut))}},Nn=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(r){const o=e.findIndex(i=>i.schemeId===r.schemeId);o===-1?e.push(r):e.splice(o,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){n=r},httpAuthSchemeProvider(){return n},setCredentials(r){s=r},credentials(){return s}}},Mn=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Un=(t,e)=>{const n=Object.assign(gt(t),mt(t),ft(t),Nn(t));return e.forEach(s=>s.configure(n)),Object.assign(t,ht(n),yt(n),Et(n),Mn(n))};class mr extends St{config;constructor(...[e]){const n=On(e||{});super(n),this.initConfig=n;const s=An(n),r=qt(s),o=Ct(r),i=It(o),a=Tt(i),c=xt(a),d=wn(c),p=Un(d,e?.extensions||[]);this.config=p,this.middlewareStack.use(_t(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(At(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(Rt(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(vt(this.config,{httpAuthSchemeParametersProvider:In,identityProviderConfigProvider:async l=>new Dt({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}let S=class Ae extends Ot{constructor(e){super(e),Object.setPrototypeOf(this,Ae.prototype)}},$n=class Pe extends S{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,Pe.prototype)}},Fn=class Re extends S{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,Re.prototype)}},zn=class be extends S{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,be.prototype)}},jn=class ve extends S{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},Hn=class ke extends S{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},Ln=class Te extends S{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Te.prototype)}},Gn=class De extends S{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,De.prototype)}},qn=class Oe extends S{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}},Bn=class Ne extends S{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Vn=class Me extends S{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Jn=class Ue extends S{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ue.prototype)}};const Kn="AccountId",Qn="AccessKeyId",$e="Credentials",Wn="ConcurrentModificationException",Xn="CustomRoleArn",Yn="DeveloperUserAlreadyRegisteredException",Zn="Expiration",es="ExternalServiceException",ts="GetCredentialsForIdentity",ns="GetCredentialsForIdentityInput",ss="GetCredentialsForIdentityResponse",rs="GetId",is="GetIdInput",os="GetIdResponse",as="InternalErrorException",q="IdentityId",cs="InvalidIdentityPoolConfigurationException",ds="InvalidParameterException",us="IdentityPoolId",ps="IdentityProviderToken",Fe="Logins",ls="LimitExceededException",gs="LoginsMap",ms="NotAuthorizedException",fs="ResourceConflictException",hs="ResourceNotFoundException",ys="SecretKey",Es="SecretKeyString",Ss="SessionToken",Cs="TooManyRequestsException",w="client",C="error",A="httpError",I="message",Is="server",ze="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",u="com.amazonaws.cognitoidentity";var xs=[0,u,ps,8,0],_s=[0,u,Es,8,0],ws=[-3,u,Wn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(ws,Jn);var As=[3,u,$e,0,[Qn,ys,Ss,Zn],[0,[()=>_s,0],0,4]],Ps=[-3,u,Yn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ps,Vn);var Rs=[-3,u,es,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Rs,qn);var bs=[3,u,ns,0,[q,Fe,Xn],[0,[()=>je,0],0]],vs=[3,u,ss,0,[q,$e],[0,[()=>As,0]]],ks=[3,u,is,0,[Kn,us,Fe],[0,0,[()=>je,0]]],Ts=[3,u,os,0,[q],[0]],Ds=[-3,u,as,{[C]:Is},[I],[0]];y.for(u).registerError(Ds,$n);var Os=[-3,u,cs,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Os,Bn);var Ns=[-3,u,ds,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ns,Fn);var Ms=[-3,u,ls,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ms,zn);var Us=[-3,u,ms,{[C]:w,[A]:403},[I],[0]];y.for(u).registerError(Us,jn);var $s=[-3,u,fs,{[C]:w,[A]:409},[I],[0]];y.for(u).registerError($s,Hn);var Fs=[-3,u,hs,{[C]:w,[A]:404},[I],[0]];y.for(u).registerError(Fs,Gn);var zs=[-3,u,Cs,{[C]:w,[A]:429},[I],[0]];y.for(u).registerError(zs,Ln);var js=[-3,ze,"CognitoIdentityServiceException",0,[],[]];y.for(ze).registerError(js,S);var je=[2,u,gs,0,[0,0],[()=>xs,0]],Hs=[9,u,ts,0,()=>bs,()=>vs],Ls=[9,u,rs,0,()=>ks,()=>Ts];class fr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Hs).build(){}class hr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Ls).build(){}export{mr as CognitoIdentityClient,fr as GetCredentialsForIdentityCommand,hr as GetIdCommand};
@@ -0,0 +1 @@
1
+ import{a2 as ut,N as D,f as Ce,L as lt,c as _e,S as oe,m as mt,d as pt,i as gt,T as A,b as ie,v as ht,R as ft,h as yt,e as ae,n as Re,j as Et,E as St,r as wt,k as bt,l as Tt,p as Pt,o as At,q as Ct,s as _t,t as Rt,D as xt,u as It,w as Dt,x as kt,y as vt,z as Nt,A as Mt,B as $t,F as Ot,G as Ut,H as Ft,I as zt,J as Lt,K as jt,a as Ht,M as Vt,O as Wt,P as Kt,Q as Bt,U as qt,V as Qt,W as Gt,X as Xt,Y as Jt,Z as Yt,_ as Zt,$ as es,a0 as ts,a1 as ss,C as rs,g as ns}from"./index-CXX5Wl6h.js";import{d as X,t as J,n as L,c as os,H as xe,a as Ie,i as is,f as as,s as cs,F as ds}from"./normalizeProvider-BrOPyH3l.js";function ce(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Y="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Z="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",ee="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",De="(\\d?\\d)",ke="(\\d{4})",us=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),ls=new RegExp(`^${Y}, ${De} ${Z} ${ke} ${ee} GMT$`),ms=new RegExp(`^${Y}, ${De}-${Z}-(\\d\\d) ${ee} GMT$`),ps=new RegExp(`^${Y} ${Z} ( [1-9]|\\d\\d) ${ee} ${ke}$`),gs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hs=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},fs=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=us.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,s,r,n,o,i,a,,d,c]=t;R(r,1,12),R(n,1,31),R(o,0,23),R(i,0,59),R(a,0,60);const u=new Date(Date.UTC(Number(s),Number(r)-1,Number(n),Number(o),Number(i),Number(a),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(u.setUTCFullYear(Number(s)),c.toUpperCase()!="Z"){const[,l,f,E]=/([+-])(\d\d):(\d\d)/.exec(c)||[void 0,"+",0,0],P=l==="-"?1:-1;u.setTime(u.getTime()+P*(Number(f)*60*60*1e3+Number(E)*60*1e3))}return u},ys=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,s,r,n,o,i,a,d;if((d=ls.exec(e))?[,t,s,r,n,o,i,a]=d:(d=ms.exec(e))?([,t,s,r,n,o,i,a]=d,r=(Number(r)+1900).toString()):(d=ps.exec(e))&&([,s,t,n,o,i,a,r]=d),r&&i){const c=Date.UTC(Number(r),gs.indexOf(s),Number(t),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);R(t,1,31),R(n,0,23),R(o,0,59),R(i,0,60);const u=new Date(c);return u.setUTCFullYear(Number(r)),u}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function R(e,t,s){const r=Number(e);if(r<t||r>s)throw new Error(`Value ${r} out of range [${t}, ${s}]`)}const Es=e=>{const t=e.length,s=[];let r=!1,n,o=0;for(let i=0;i<t;++i){const a=e[i];switch(a){case'"':n!=="\\"&&(r=!r);break;case",":r||(s.push(e.slice(o,i)),o=i+1);break}n=a}return s.push(e.slice(o)),s.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 Ss extends ut{settings;constructor(t){super(),this.settings=t}read(t,s){const r=D.of(t);if(r.isListSchema())return Es(s).map(n=>this.read(r.getValueSchema(),n));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??X)(s);if(r.isTimestampSchema())switch(Ce(r,this.settings)){case 5:return fs(s);case 6:return ys(s);case 7:return hs(s);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",s),new Date(s)}if(r.isStringSchema()){const n=r.getMergedTraits().mediaType;let o=s;if(n)return r.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=lt.from(o)),o}return r.isNumericSchema()?Number(s):r.isBigIntegerSchema()?BigInt(s):r.isBigDecimalSchema()?new _e(s,"bigDecimal"):r.isBooleanSchema()?String(s).toLowerCase()==="true":s}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??J)((this.serdeContext?.base64Decoder??X)(t))}}const ve=e=>{const t="#text";for(const s in e)e.hasOwnProperty(s)&&e[s][t]!==void 0?e[s]=e[s][t]:typeof e[s]=="object"&&e[s]!==null&&(e[s]=ve(e[s]));return e};let K;function ws(e){K||(K=new DOMParser);const t=K.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const s=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const n=r;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const d of i)o[`${d.name}`]=d.value;const a=Array.from(n.childNodes);for(const d of a){const c=s(d);if(c!=null){const u=d.nodeName;if(a.length===1&&i.length===0&&u==="#text")return c;o[u]?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[t.documentElement.nodeName]:s(t.documentElement)}}const bs=void 0;function Ts(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function Ps(e){const t=L(e.userAgentAppId??bs),{customUserAgent:s}=e;return Object.assign(e,{customUserAgent:typeof s=="string"?[[s]]:s,userAgentAppId:async()=>{const r=await t();if(!Ts(r)){const n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?n?.warn("userAgentAppId must be a string or undefined."):r.length>50&&n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}function As(e,t,s){return e.$source||(e.$source={}),e.$source[t]=s,e}function C(e,t,s){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=s}const de=e=>os.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ne=e=>new Date(Date.now()+e),Cs=(e,t)=>Math.abs(Ne(t).getTime()-e)>=3e5,ue=(e,t)=>{const s=Date.parse(e);return Cs(s,t)?s-Date.now():t},j=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},_s=async e=>{const t=j("context",e.context),s=j("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],o=await j("signer",s.signer)(r),i=e?.signingRegion,a=e?.signingRegionSet,d=e?.signingName;return{config:s,signer:o,signingRegion:i,signingRegionSet:a,signingName:d}};class Rs{async sign(t,s,r){if(!xe.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const n=await _s(r),{config:o,signer:i}=n;let{signingRegion:a,signingName:d}=n;const c=r.context;if(c?.authSchemes?.length??!1){const[l,f]=c.authSchemes;l?.name==="sigv4a"&&f?.name==="sigv4"&&(a=f?.signingRegion??a,d=f?.signingName??d)}return await i.sign(t,{signingDate:Ne(o.systemClockOffset),signingRegion:a,signingService:d})}errorHandler(t){return s=>{const r=s.ServerTime??de(s.$response);if(r){const n=j("config",t.config),o=n.systemClockOffset;n.systemClockOffset=ue(r,n.systemClockOffset),n.systemClockOffset!==o&&s.$metadata&&(s.$metadata.clockSkewCorrected=!0)}throw s}}successHandler(t,s){const r=de(t);if(r){const n=j("config",s.config);n.systemClockOffset=ue(r,n.systemClockOffset)}}}const xs=e=>{let t=e.credentials,s=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(c){c&&c!==t&&c!==r&&(s=!0),t=c;const u=Is(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),l=Ds(e,u);s&&!l.attributed?(r=async f=>l(f).then(E=>As(E,"CREDENTIALS_CODE","e")),r.memoized=l.memoized,r.configBound=l.configBound,r.attributed=!0):r=l},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:n=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let a;return e.signer?a=L(e.signer):e.regionInfoProvider?a=()=>L(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,u])=>{const{signingRegion:l,signingService:f}=c;e.signingRegion=e.signingRegion||l||u,e.signingName=e.signingName||f||e.serviceId;const E={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},P=e.signerConstructor||oe;return new P(E)}):a=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await L(e.region)(),properties:{}},c);const u=c.signingRegion,l=c.signingName;e.signingRegion=e.signingRegion||u,e.signingName=e.signingName||l||e.serviceId;const f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},E=e.signerConstructor||oe;return new E(f)},Object.assign(e,{systemClockOffset:o,signingEscapePath:n,signer:a})};function Is(e,{credentials:t,credentialDefaultProvider:s}){let r;return t?t?.memoized?r=t:r=mt(t,gt,pt):s?r=L(s(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ds(e,t){if(t.configBound)return t;const s=async r=>t({...r,callerClientConfig:e});return s.memoized=t.memoized,s.configBound=!0,s}class ks{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,s){const r=s.getMemberSchemas(),n=Object.values(r).find(o=>!!o.getMergedTraits().httpPayload);if(n){const o=n.getMergedTraits().mediaType;return o||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":t)}else if(!s.isUnitSchema()&&Object.values(r).find(i=>{const{httpQuery:a,httpQueryParams:d,httpHeader:c,httpLabel:u,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!d&&!c&&!u&&l===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,s,r,n,o,i){let a=s,d=t;t.includes("#")&&([a,d]=t.split("#"));const c={$metadata:o,$fault:r.statusCode<500?"client":"server"},u=A.for(a);try{return{errorSchema:i?.(u,d)??u.getSchema(t),errorMetadata:c}}catch{n.message=n.message??n.Message??"UnknownError";const f=A.for("smithy.ts.sdk.synthetic."+a),E=f.getBaseException();if(E){const P=f.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new P({name:d}),c),n)}throw this.decorateServiceException(Object.assign(new Error(d),c),n)}}decorateServiceException(t,s={}){if(this.queryCompat){const r=t.Message??s.Message,n=ie(t,s);return r&&(n.Message=r,n.message=r),n}return ie(t,s)}setQueryCompatError(t,s){const r=s.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[n,o]=r.split(";"),i=Object.entries(t),a={Code:n,Type:o};Object.assign(t,a);for(const[d,c]of i)a[d]=c;delete a.__type,t.Error=a}}queryCompatOutput(t,s){t.Error&&(s.Error=t.Error),t.Type&&(s.Type=t.Type),t.Code&&(s.Code=t.Code)}}class Me{serdeContext;setSerdeContext(t){this.serdeContext=t}}function*vs(e,t){if(e.isUnitSchema())return;const s=e.getSchema();for(let r=0;r<s[4].length;++r){const n=s[4][r],o=new D([s[5][r],0],n);!(n in t)&&!o.isIdempotencyToken()||(yield[n,o])}}class Ns extends Me{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new Ss(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,s,r){const n=D.of(t),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(c=>!!c.getMemberTraits().eventPayload)){const c={},u=Object.keys(o)[0];return o[u].isBlobSchema()?c[u]=s:c[u]=this.read(o[u],s),c}const a=(this.serdeContext?.utf8Encoder??J)(s),d=this.parseXml(a);return this.readSchema(t,r?d[r]:d)}readSchema(t,s){const r=D.of(t);if(r.isUnitSchema())return;const n=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(s))return this.readSchema(r,[s]);if(s==null)return s;if(typeof s=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),c=[],u=d.getMergedTraits().xmlName??"member",l=i?s:(s[0]??s)[u],f=Array.isArray(l)?l:[l];for(const E of f)(E!=null||o)&&c.push(this.readSchema(d,E));return c}const a={};if(r.isMapSchema()){const d=r.getKeySchema(),c=r.getValueSchema();let u;i?u=Array.isArray(s)?s:[s]:u=Array.isArray(s.entry)?s.entry:[s.entry];const l=d.getMergedTraits().xmlName??"key",f=c.getMergedTraits().xmlName??"value";for(const E of u){const P=E[l],x=E[f];(x!=null||o)&&(a[P]=this.readSchema(c,x))}return a}if(r.isStructSchema()){for(const[d,c]of r.structIterator()){const u=c.getMergedTraits(),l=u.httpPayload?u.xmlName??c.getName():c.getMemberTraits().xmlName??d;s[l]!=null&&(a[d]=this.readSchema(c,s[l]))}return a}if(r.isDocumentSchema())return s;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,s)}parseXml(t){if(t.length){let s;try{s=ws(t)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:t}),i}const r="#text",n=Object.keys(s)[0],o=s[n];return o[r]&&(o[n]=o[r],delete o[r]),ve(o)}return{}}}class Ms extends Me{settings;buffer;constructor(t){super(),this.settings=t}write(t,s,r=""){this.buffer===void 0&&(this.buffer="");const n=D.of(t);if(r&&!r.endsWith(".")&&(r+="."),n.isBlobSchema())(typeof s=="string"||s instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??Ie)(s)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())s!=null?(this.writeKey(r),this.writeValue(String(s))):n.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(ht()));else if(n.isBigIntegerSchema())s!=null&&(this.writeKey(r),this.writeValue(String(s)));else if(n.isBigDecimalSchema())s!=null&&(this.writeKey(r),this.writeValue(s instanceof _e?s.string:String(s)));else if(n.isTimestampSchema()){if(s instanceof Date)switch(this.writeKey(r),Ce(n,this.settings)){case 5:this.writeValue(s.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(is(s));break;case 7:this.writeValue(String(s.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(s))if(s.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const d of s){if(d==null)continue;const c=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${r}${a}`:`${r}${c}.${a}`;this.write(o,d,u),++a}}}else if(n.isMapSchema()){if(s&&typeof s=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let d=1;for(const[c,u]of Object.entries(s)){if(u==null)continue;const l=this.getKey("key",o.getMergedTraits().xmlName),f=a?`${r}${d}.${l}`:`${r}entry.${d}.${l}`,E=this.getKey("value",i.getMergedTraits().xmlName),P=a?`${r}${d}.${E}`:`${r}entry.${d}.${E}`;this.write(o,c,f),this.write(i,u,P),++d}}}else if(n.isStructSchema()){if(s&&typeof s=="object")for(const[o,i]of vs(n,s)){if(s[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),d=`${r}${a}`;this.write(i,s[o],d)}}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 t=this.buffer;return delete this.buffer,t}getKey(t,s){const r=s??t;return this.settings.capitalizeKeys?r[0].toUpperCase()+r.slice(1):r}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${ce(t)}=`}writeValue(t){this.buffer+=ce(t)}}class $s extends ft{options;serializer;deserializer;mixin=new ks;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const s={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Ms(s),this.deserializer=new Ns(s)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,s,r){const n=await super.serializeRequest(t,s,r);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(yt(t.input)==="unit"||!n.body)&&(n.body="");const o=t.name.split("#")[1]??t.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(t,s,r){const n=this.deserializer,o=D.of(t.output),i={};if(r.statusCode>=300){const l=await ae(r.body,s);l.byteLength>0&&Object.assign(i,await n.read(15,l)),await this.handleError(t,s,r,i,this.deserializeMetadata(r))}for(const l in r.headers){const f=r.headers[l];delete r.headers[l],r.headers[l.toLowerCase()]=f}const a=t.name.split("#")[1]??t.name,d=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,c=await ae(r.body,s);return c.byteLength>0&&Object.assign(i,await n.read(o,c,d)),{$metadata:this.deserializeMetadata(r),...i}}useNestedResult(){return!0}async handleError(t,s,r,n,o){const i=this.loadQueryErrorCode(r,n)??"Unknown",a=this.loadQueryError(n),d=this.loadQueryErrorMessage(n);a.message=d,a.Error={Type:a.Type,Code:a.Code,Message:d};const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,r,a,o,(x,z)=>{try{return x.getSchema(z)}catch{return x.find(W=>D.of(W).getMergedTraits().awsQueryError?.[0]===z)}}),l=D.of(c),f=A.for(c[1]).getErrorCtor(c)??Error,E=new f(d),P={Error:a.Error};for(const[x,z]of l.structIterator()){const V=z.getMergedTraits().xmlName??x,W=a[V]??n[V];P[x]=this.deserializer.readSchema(z,W)}throw this.mixin.decorateServiceException(Object.assign(E,u,{$fault:l.getMergedTraits().error,message:d},P),n)}loadQueryErrorCode(t,s){const r=(s.Errors?.[0]?.Error??s.Errors?.Error??s.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const s=this.loadQueryError(t);return s?.message??s?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const Os=/\d{12}\.ddb/;async function Us(e,t,s){if(s.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&C(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const o=await t.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?C(e,"RETRY_MODE_ADAPTIVE","F"):C(e,"RETRY_MODE_STANDARD","E"):C(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const o=e.endpointV2;switch(String(o?.url?.hostname).match(Os)&&C(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":C(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":C(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":C(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){const o=n;o.accountId&&C(e,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))C(e,i,a)}}const le="user-agent",B="x-amz-user-agent",me=" ",q="/",Fs=/[^!$%&'*+\-.^_`|~\w]/g,zs=/[^!$%&'*+\-.^_`|~\w#]/g,pe="-",Ls=1024;function js(e){let t="";for(const s in e){const r=e[s];if(t.length+r.length+1<=Ls){t.length?t+=","+r:t+=r;continue}break}return t}const Hs=e=>(t,s)=>async r=>{const{request:n}=r;if(!xe.isInstance(n))return t(r);const{headers:o}=n,i=s?.userAgent?.map(H)||[],a=(await e.defaultUserAgentProvider()).map(H);await Us(s,e,r);const d=s;a.push(`m/${js(Object.assign({},s.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const c=e?.customUserAgent?.map(H)||[],u=await e.userAgentAppId();u&&a.push(H(["app",`${u}`]));const l=[].concat([...a,...i,...c]).join(me),f=[...a.filter(E=>E.startsWith("aws-sdk-")),...c].join(me);return e.runtime!=="browser"?(f&&(o[B]=o[B]?`${o[le]} ${f}`:f),o[le]=l):o[B]=l,t({...r,request:n})},H=e=>{const t=e[0].split(q).map(i=>i.replace(Fs,pe)).join(q),s=e[1]?.replace(zs,pe),r=t.indexOf(q),n=t.substring(0,r);let o=t.substring(r+1);return n==="api"&&(o=o.toLowerCase()),[n,o,s].filter(i=>i&&i.length>0).reduce((i,a,d)=>{switch(d){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Vs={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ws=e=>({applyToStack:t=>{t.add(Hs(e),Vs)}}),Ks=async(e,t,s)=>({operation:Et(t).operation,region:await Re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Bs(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function qs(e){return{schemeId:"smithy.api#noAuth"}}const Qs=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(qs());break}default:t.push(Bs(e))}return t},Gs=e=>Object.assign(e,{stsClientCtor:Ke}),Xs=e=>{const t=Gs(e),s=xs(t);return Object.assign(s,{authSchemePreference:Re(e.authSchemePreference??[])})},Js=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ys={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"}},Zs="3.940.0",er={version:Zs},$e="required",m="type",p="fn",g="argv",k="ref",ge=!1,Q=!0,I="booleanEquals",S="stringEquals",Oe="sigv4",Ue="sts",Fe="us-east-1",y="endpoint",he="https://sts.{Region}.{PartitionResult#dnsSuffix}",_="tree",F="error",te="getAttr",fe={[$e]:!1,[m]:"string"},G={[$e]:!0,default:!1,[m]:"boolean"},ze={[k]:"Endpoint"},ye={[p]:"isSet",[g]:[{[k]:"Region"}]},w={[k]:"Region"},Ee={[p]:"aws.partition",[g]:[w],assign:"PartitionResult"},Le={[k]:"UseFIPS"},je={[k]:"UseDualStack"},b={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:Fe}]},headers:{}},T={},Se={conditions:[{[p]:S,[g]:[w,"aws-global"]}],[y]:b,[m]:y},He={[p]:I,[g]:[Le,!0]},Ve={[p]:I,[g]:[je,!0]},we={[p]:te,[g]:[{[k]:"PartitionResult"},"supportsFIPS"]},We={[k]:"PartitionResult"},be={[p]:I,[g]:[!0,{[p]:te,[g]:[We,"supportsDualStack"]}]},Te=[{[p]:"isSet",[g]:[ze]}],Pe=[He],Ae=[Ve],tr={parameters:{Region:fe,UseDualStack:G,UseFIPS:G,Endpoint:fe,UseGlobalEndpoint:G},rules:[{conditions:[{[p]:I,[g]:[{[k]:"UseGlobalEndpoint"},Q]},{[p]:"not",[g]:Te},ye,Ee,{[p]:I,[g]:[Le,ge]},{[p]:I,[g]:[je,ge]}],rules:[{conditions:[{[p]:S,[g]:[w,"ap-northeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-south-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-2"]}],endpoint:b,[m]:y},Se,{conditions:[{[p]:S,[g]:[w,"ca-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-north-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-3"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"sa-east-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,Fe]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-east-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-2"]}],endpoint:b,[m]:y},{endpoint:{url:he,properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:"{Region}"}]},headers:T},[m]:y}],[m]:_},{conditions:Te,rules:[{conditions:Pe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[m]:F},{conditions:Ae,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[m]:F},{endpoint:{url:ze,properties:T,headers:T},[m]:y}],[m]:_},{conditions:[ye],rules:[{conditions:[Ee],rules:[{conditions:[He,Ve],rules:[{conditions:[{[p]:I,[g]:[Q,we]},be],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[m]:F}],[m]:_},{conditions:Pe,rules:[{conditions:[{[p]:I,[g]:[we,Q]}],rules:[{conditions:[{[p]:S,[g]:[{[p]:te,[g]:[We,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:T,headers:T},[m]:y},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS is enabled but this partition does not support FIPS",[m]:F}],[m]:_},{conditions:Ae,rules:[{conditions:[be],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"DualStack is enabled but this partition does not support DualStack",[m]:F}],[m]:_},Se,{endpoint:{url:he,properties:T,headers:T},[m]:y}],[m]:_}],[m]:_},{error:"Invalid Configuration: Missing Region",[m]:F}]},sr=tr,rr=new St({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),nr=(e,t={})=>rr.get(e,()=>wt(sr,{endpointParams:e,logger:t.logger}));Tt.aws=bt;const or=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??X,base64Encoder:e?.base64Encoder??Ie,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??nr,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Rs},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ct}],logger:e?.logger??new At,protocol:e?.protocol??new $s({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Pt,utf8Decoder:e?.utf8Decoder??as,utf8Encoder:e?.utf8Encoder??J}),ir=e=>{const t=_t(e),s=()=>t().then($t),r=or(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vt,credentialDefaultProvider:e?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??kt({serviceId:r.serviceId,clientVersion:er.version}),maxAttempts:e?.maxAttempts??Dt,region:e?.region??It("Region is missing"),requestHandler:ds.create(e?.requestHandler??s),retryMode:e?.retryMode??(async()=>(await s()).retryMode||xt),sha256:e?.sha256??Rt,streamCollector:e?.streamCollector??cs,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Mt)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Nt))}},ar=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(n){const o=t.findIndex(i=>i.schemeId===n.schemeId);o===-1?t.push(n):t.splice(o,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){r=n},credentials(){return r}}},cr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dr=(e,t)=>{const s=Object.assign(Ot(e),Ut(e),Ft(e),ar(e));return t.forEach(r=>r.configure(s)),Object.assign(e,zt(s),Lt(s),jt(s),cr(s))};class Ke extends Ht{config;constructor(...[t]){const s=ir(t||{});super(s),this.initConfig=s;const r=Js(s),n=Ps(r),o=Vt(n),i=Wt(o),a=es(i),d=Kt(a),c=Xs(d),u=dr(c,t?.extensions||[]);this.config=u,this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(qt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(Jt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Ks,identityProviderConfigProvider:async l=>new ts({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(Zt(this.config))}destroy(){super.destroy()}}let v=class Be extends ss{constructor(t){super(t),Object.setPrototypeOf(this,Be.prototype)}},ur=class qe extends v{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,qe.prototype)}},lr=class Qe extends v{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,Qe.prototype)}},mr=class Ge extends v{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,Ge.prototype)}},pr=class Xe extends v{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Xe.prototype)}},gr=class Je extends v{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,Je.prototype)}},hr=class Ye extends v{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,Ye.prototype)}},fr=class Ze extends v{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,Ze.prototype)}};const yr="Arn",Er="AccessKeyId",Sr="AssumeRole",wr="AssumedRoleId",br="AssumeRoleRequest",Tr="AssumeRoleResponse",se="AssumedRoleUser",Pr="AssumeRoleWithWebIdentity",Ar="AssumeRoleWithWebIdentityRequest",Cr="AssumeRoleWithWebIdentityResponse",_r="Audience",re="Credentials",Rr="ContextAssertion",et="DurationSeconds",xr="Expiration",Ir="ExternalId",Dr="ExpiredTokenException",kr="IDPCommunicationErrorException",vr="IDPRejectedClaimException",Nr="InvalidIdentityTokenException",Mr="Key",$r="MalformedPolicyDocumentException",tt="Policy",st="PolicyArns",Or="ProviderArn",Ur="ProvidedContexts",Fr="ProvidedContextsListType",zr="ProvidedContext",Lr="PolicyDescriptorType",jr="ProviderId",rt="PackedPolicySize",Hr="PackedPolicyTooLargeException",Vr="Provider",nt="RoleArn",Wr="RegionDisabledException",ot="RoleSessionName",Kr="SecretAccessKey",Br="SubjectFromWebIdentityToken",ne="SourceIdentity",qr="SerialNumber",Qr="SessionToken",Gr="Tags",Xr="TokenCode",Jr="TransitiveTagKeys",Yr="Tag",Zr="Value",en="WebIdentityToken",tn="arn",sn="accessKeySecretType",N="awsQueryError",M="client",rn="clientTokenType",$="error",O="httpError",U="message",nn="policyDescriptorListType",it="smithy.ts.sdk.synthetic.com.amazonaws.sts",on="tagListType",h="com.amazonaws.sts";var an=[0,h,sn,8,0],cn=[0,h,rn,8,0],at=[3,h,se,0,[wr,yr],[0,0]],dn=[3,h,br,0,[nt,ot,st,tt,et,Gr,Jr,Ir,qr,Xr,ne,Ur],[0,0,()=>dt,0,1,()=>Cn,64,0,0,0,0,()=>An]],un=[3,h,Tr,0,[re,se,rt,ne],[[()=>ct,0],()=>at,1,0]],ln=[3,h,Ar,0,[nt,ot,en,jr,st,tt,et],[0,0,[()=>cn,0],0,()=>dt,0,1]],mn=[3,h,Cr,0,[re,Br,se,rt,Vr,_r,ne],[[()=>ct,0],0,()=>at,1,0,0,0]],ct=[3,h,re,0,[Er,Kr,Qr,xr],[0,[()=>an,0],0,4]],pn=[-3,h,Dr,{[$]:M,[O]:400,[N]:["ExpiredTokenException",400]},[U],[0]];A.for(h).registerError(pn,ur);var gn=[-3,h,kr,{[$]:M,[O]:400,[N]:["IDPCommunicationError",400]},[U],[0]];A.for(h).registerError(gn,fr);var hn=[-3,h,vr,{[$]:M,[O]:403,[N]:["IDPRejectedClaim",403]},[U],[0]];A.for(h).registerError(hn,gr);var fn=[-3,h,Nr,{[$]:M,[O]:400,[N]:["InvalidIdentityToken",400]},[U],[0]];A.for(h).registerError(fn,hr);var yn=[-3,h,$r,{[$]:M,[O]:400,[N]:["MalformedPolicyDocument",400]},[U],[0]];A.for(h).registerError(yn,lr);var En=[-3,h,Hr,{[$]:M,[O]:400,[N]:["PackedPolicyTooLarge",400]},[U],[0]];A.for(h).registerError(En,mr);var Sn=[3,h,Lr,0,[tn],[0]],wn=[3,h,zr,0,[Or,Rr],[0,0]],bn=[-3,h,Wr,{[$]:M,[O]:403,[N]:["RegionDisabledException",403]},[U],[0]];A.for(h).registerError(bn,pr);var Tn=[3,h,Yr,0,[Mr,Zr],[0,0]],Pn=[-3,it,"STSServiceException",0,[],[]];A.for(it).registerError(Pn,v);var dt=[1,h,nn,0,()=>Sn],An=[1,h,Fr,0,()=>wn],Cn=[1,h,on,0,()=>Tn],_n=[9,h,Sr,0,()=>dn,()=>un],Dn=[9,h,Pr,0,()=>ln,()=>mn];class Rn extends rs.classBuilder().ep(Ys).m(function(t,s,r,n){return[ns(r,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(_n).build(){}const kn=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Rn,STSClient:Ke},Symbol.toStringTag,{value:"Module"}));export{Dn as A,ur as E,gr as I,lr as M,mr as P,pr as R,Ke as S,v as a,Rn as b,Ys as c,hr as d,fr as e,kn as l,As as s};
@@ -0,0 +1,3 @@
1
+ class U{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const r=new U({...t,headers:{...t.headers}});return r.query&&(r.query=V(r.query)),r}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return U.clone(this)}}function V(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class B{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const M=e=>encodeURIComponent(e).replace(/[!'()*]/g,X),X=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function z(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=M(r),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)t.push(`${r}=${M(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${M(n)}`),t.push(o)}}return t.join("&")}function P(e,t){return new Request(e,t)}function Z(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",r(n)},e)})}const I={supported:void 0};class J{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new J(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),I.supported===void 0&&(I.supported=typeof Request<"u"&&"keepalive"in P("https://[::1]"))}destroy(){}async handle(t,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);const o=n??this.config.requestTimeout,i=this.config.keepAlive===!0,c=this.config.credentials;if(r?.aborted){const u=new Error("Request aborted");return u.name="AbortError",Promise.reject(u)}let a=t.path;const d=z(t.query||{});d&&(a+=`?${d}`),t.fragment&&(a+=`#${t.fragment}`);let s="";if(t.username!=null||t.password!=null){const u=t.username??"",T=t.password??"";s=`${u}:${T}@`}const{port:f,method:y}=t,w=`${t.protocol}//${s}${t.hostname}${f?`:${f}`:""}${a}`,C=y==="GET"||y==="HEAD"?void 0:t.body,h={body:C,headers:new Headers(t.headers),method:y,credentials:c};this.config?.cache&&(h.cache=this.config.cache),C&&(h.duplex="half"),typeof AbortController<"u"&&(h.signal=r),I.supported&&(h.keepalive=i),typeof this.config.requestInit=="function"&&Object.assign(h,this.config.requestInit(t));let O=()=>{};const G=P(w,h),L=[fetch(G).then(u=>{const T=u.headers,g={};for(const x of T.entries())g[x[0]]=x[1];return u.body!=null?{response:new B({headers:g,reason:u.statusText,statusCode:u.status,body:u.body})}:u.blob().then(x=>({response:new B({headers:g,reason:u.statusText,statusCode:u.status,body:x})}))}),Z(o)];return r&&L.push(new Promise((u,T)=>{const g=()=>{const m=new Error("Request aborted");m.name="AbortError",T(m)};if(typeof r.addEventListener=="function"){const m=r;m.addEventListener("abort",g,{once:!0}),O=()=>m.removeEventListener("abort",g)}else r.onabort=g})),Promise.race(L).finally(O)}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[t]=r,n))}httpHandlerConfigs(){return this.config??{}}}const Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=Object.entries(Y).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),Q=Y.split(""),p=6,E=8,K=63,v=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let o=0;o<e.length;o+=4){let i=0,c=0;for(let s=o,f=o+3;s<=f;s++)if(e[s]!=="="){if(!(e[s]in k))throw new TypeError(`Invalid character ${e[s]} in base64 string.`);i|=k[e[s]]<<(f-s)*p,c+=p}else i>>=p;const a=o/4*3;i>>=c%E;const d=Math.floor(c/E);for(let s=0;s<d;s++){const f=(d-s-1)*E;n.setUint8(a+s,(i&255<<f)>>f)}}return new Uint8Array(r)},ee=e=>new TextEncoder().encode(e),Me=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function Ie(e){let t;typeof e=="string"?t=ee(e):t=e;const r=typeof t=="object"&&typeof t.length=="number",n=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let i=0;i<t.length;i+=3){let c=0,a=0;for(let s=i,f=Math.min(i+3,t.length);s<f;s++)c|=t[s]<<(f-s-1)*E,a+=E;const d=Math.ceil(a/p);c<<=d*p-a;for(let s=1;s<=d;s++){const f=(d-s)*p;o+=Q[(c&K<<f)>>f]}o+="==".slice(0,4-d)}return o}const Re=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):te(e):re(e);async function te(e){const t=await ne(e),r=v(t);return new Uint8Array(r)}async function re(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:a,value:d}=await r.read();d&&(t.push(d),o+=d.length),n=a}const i=new Uint8Array(o);let c=0;for(const a of t)i.set(a,c),c+=a.length;return i}function ne(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",i=o.indexOf(","),c=i>-1?i+1:o.length;t(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}const W={},D={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),W[e]=t,D[t]=e}function Ue(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(n in D)t[r/2]=D[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function De(e){let t="";for(let r=0;r<e.byteLength;r++)t+=W[e[r]];return t}const F=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&he.warn(ue(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},oe=Math.ceil(2**127*(2-2**-23)),H=e=>{const t=F(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>oe)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},se=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},j=e=>q(e,16),_=e=>q(e,8),q=(e,t)=>{const r=se(e);if(r!==void 0&&ie(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},ie=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},ce=e=>F(typeof e=="string"?A(e):e),ae=e=>H(typeof e=="string"?A(e):e),de=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,A=e=>{const t=e.match(de);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},$=e=>j(typeof e=="string"?A(e):e),fe=e=>_(typeof e=="string"?A(e):e),ue=e=>String(new TypeError(e).stack||e).split(`
2
+ `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
3
+ `),he={warn:console.warn},le=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Fe(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),i=e.getUTCHours(),c=e.getUTCMinutes(),a=e.getUTCSeconds(),d=o<10?`0${o}`:`${o}`,s=i<10?`0${i}`:`${i}`,f=c<10?`0${c}`:`${c}`,y=a<10?`0${a}`:`${a}`;return`${le[n]}, ${d} ${N[r]} ${t} ${s}:${f}:${y} GMT`}const ye=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ne=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ye.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s]=t,f=$(b(n)),y=l(o,"month",1,12),w=l(i,"day",1,31);return S(f,y,w,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})},ge=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Oe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ge.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s,f]=t,y=$(b(n)),w=l(o,"month",1,12),C=l(i,"day",1,31),h=S(y,w,C,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s});return f.toUpperCase()!="Z"&&h.setTime(h.getTime()-Ae(f)),h},me=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),pe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),be=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Le=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=me.exec(e);if(t){const[r,n,o,i,c,a,d,s]=t;return S($(b(i)),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})}if(t=pe.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return Ee(S(we(i),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s}))}if(t=be.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return S($(b(s)),R(n),l(o.trimLeft(),"day",1,31),{hours:i,minutes:c,seconds:a,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},Be=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ce(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},S=(e,t,r,n)=>{const o=t-1;return $e(e,o,r),new Date(Date.UTC(e,o,r,l(n.hours,"hour",0,23),l(n.minutes,"minute",0,59),l(n.seconds,"seconds",0,60),xe(n.fractionalMilliseconds)))},we=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+$(b(e));return r<t?r+100:r},Te=50*365*24*60*60*1e3,Ee=e=>e.getTime()-new Date().getTime()>Te?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,R=e=>{const t=N.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Se=[31,28,31,30,31,30,31,31,30,31,30,31],$e=(e,t,r)=>{let n=Se[t];if(t===1&&Ce(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${N[t]} in ${e}: ${r}`)},Ce=e=>e%4===0&&(e%100!==0||e%400===0),l=(e,t,r,n)=>{const o=fe(b(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},xe=e=>e==null?0:ae("0."+e)*1e3,Ae=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},b=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},Pe=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t};export{J as F,U as H,Ie as a,De as b,B as c,v as d,Be as e,ee as f,Le as g,Oe as h,Fe as i,Ue as j,M as k,Pe as n,Ne as p,Re as s,Me as t};
@@ -0,0 +1 @@
1
+ const p="modulepreload",v=function(l){return"/"+l},d={},y=function(f,c,E){let i=Promise.resolve();if(c&&c.length>0){let r=function(e){return Promise.all(e.map(o=>Promise.resolve(o).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))};document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),u=t?.nonce||t?.getAttribute("nonce");i=r(c.map(e=>{if(e=v(e),e in d)return;d[e]=!0;const o=e.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${s}`))return;const n=document.createElement("link");if(n.rel=o?"stylesheet":p,o||(n.as="script"),n.crossOrigin="",n.href=e,u&&n.setAttribute("nonce",u),document.head.appendChild(n),o)return new Promise((m,h)=>{n.addEventListener("load",m),n.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${e}`)))})}))}function a(r){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=r,window.dispatchEvent(t),!t.defaultPrevented)throw r}return i.then(r=>{for(const t of r||[])t.status==="rejected"&&a(t.reason);return f().catch(a)})};export{y as _};
@@ -0,0 +1 @@
1
+ import{r as o}from"./index-EboTSEmN.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./preload-helper-BlTxHScW.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.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-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";export{o as default};
@@ -0,0 +1 @@
1
+ import{W as f}from"./util-Di1GNq-L-D-kgTTr0.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./index-69shuAsh-DF18H7zf.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";function p(t,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const i=Object.getOwnPropertyDescriptor(r,e);i&&Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=f();const g=p({__proto__:null},[c]);export{g as u};
@@ -0,0 +1,10 @@
1
+ import{b as O}from"./index-xuotMAFm-B-PTrwYx.js";import{G as St,U as it,Y as Ot,F as q,N as At,J as xt,D as Bt,w as kt}from"./index-69shuAsh-DF18H7zf.js";import{s as Et}from"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";var at={},ct={},et,st;function Dt(){if(st)return et;st=1;var n=it()(),v=q(),m=v("Object.prototype.toString"),p=function(f){return n&&f&&typeof f=="object"&&Symbol.toStringTag in f?!1:m(f)==="[object Arguments]"},g=function(f){return p(f)?!0:f!==null&&typeof f=="object"&&"length"in f&&typeof f.length=="number"&&f.length>=0&&m(f)!=="[object Array]"&&"callee"in f&&m(f.callee)==="[object Function]"},b=(function(){return p(arguments)})();return p.isLegacyArguments=g,et=b?p:g,et}var rt,pt;function Pt(){if(pt)return rt;pt=1;var n=q(),v=it()(),m=kt(),p=Bt(),g;if(v){var b=n("RegExp.prototype.exec"),f={},j=function(){throw f},y={toString:j,valueOf:j};typeof Symbol.toPrimitive=="symbol"&&(y[Symbol.toPrimitive]=j),g=function(d){if(!d||typeof d!="object")return!1;var k=p(d,"lastIndex"),G=k&&m(k,"value");if(!G)return!1;try{b(d,y)}catch(h){return h===f}}}else{var P=n("Object.prototype.toString"),w="[object RegExp]";g=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:P(d)===w}}return rt=g,rt}var nt,lt;function Ut(){if(lt)return nt;lt=1;var n=q(),v=Pt(),m=n("RegExp.prototype.exec"),p=xt();return nt=function(g){if(!v(g))throw new p("`regex` must be a RegExp");return function(b){return m(g,b)!==null}},nt}var ot,yt;function Ft(){if(yt)return ot;yt=1;const n=function*(){}.constructor;return ot=()=>n,ot}var ut,gt;function Mt(){if(gt)return ut;gt=1;var n=q(),v=Ut(),m=v(/^\s*(?:function)?\*/),p=it()(),g=Ot(),b=n("Object.prototype.toString"),f=n("Function.prototype.toString"),j=Ft();return ut=function(y){if(typeof y!="function")return!1;if(m(f(y)))return!0;if(!p){var P=b(y);return P==="[object GeneratorFunction]"}if(!g)return!1;var w=j();return w&&g(y)===w.prototype},ut}var bt;function zt(){return bt||(bt=1,(function(n){var v=Dt(),m=Mt(),p=At(),g=St();function b(r){return r.call.bind(r)}var f=typeof BigInt<"u",j=typeof Symbol<"u",y=b(Object.prototype.toString),P=b(Number.prototype.valueOf),w=b(String.prototype.valueOf),d=b(Boolean.prototype.valueOf);if(f)var k=b(BigInt.prototype.valueOf);if(j)var G=b(Symbol.prototype.valueOf);function h(r,jt){if(typeof r!="object")return!1;try{return jt(r),!0}catch{return!1}}n.isArgumentsObject=v,n.isGeneratorFunction=m,n.isTypedArray=g;function L(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}n.isPromise=L;function J(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):g(r)||e(r)}n.isArrayBufferView=J;function V(r){return p(r)==="Uint8Array"}n.isUint8Array=V;function z(r){return p(r)==="Uint8ClampedArray"}n.isUint8ClampedArray=z;function K(r){return p(r)==="Uint16Array"}n.isUint16Array=K;function _(r){return p(r)==="Uint32Array"}n.isUint32Array=_;function I(r){return p(r)==="Int8Array"}n.isInt8Array=I;function Q(r){return p(r)==="Int16Array"}n.isInt16Array=Q;function A(r){return p(r)==="Int32Array"}n.isInt32Array=A;function U(r){return p(r)==="Float32Array"}n.isFloat32Array=U;function E(r){return p(r)==="Float64Array"}n.isFloat64Array=E;function N(r){return p(r)==="BigInt64Array"}n.isBigInt64Array=N;function F(r){return p(r)==="BigUint64Array"}n.isBigUint64Array=F;function x(r){return y(r)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function X(r){return typeof Map>"u"?!1:x.working?x(r):r instanceof Map}n.isMap=X;function D(r){return y(r)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function C(r){return typeof Set>"u"?!1:D.working?D(r):r instanceof Set}n.isSet=C;function W(r){return y(r)==="[object WeakMap]"}W.working=typeof WeakMap<"u"&&W(new WeakMap);function tt(r){return typeof WeakMap>"u"?!1:W.working?W(r):r instanceof WeakMap}n.isWeakMap=tt;function T(r){return y(r)==="[object WeakSet]"}T.working=typeof WeakSet<"u"&&T(new WeakSet);function B(r){return T(r)}n.isWeakSet=B;function R(r){return y(r)==="[object ArrayBuffer]"}R.working=typeof ArrayBuffer<"u"&&R(new ArrayBuffer);function H(r){return typeof ArrayBuffer>"u"?!1:R.working?R(r):r instanceof ArrayBuffer}n.isArrayBuffer=H;function t(r){return y(r)==="[object DataView]"}t.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&t(new DataView(new ArrayBuffer(1),0,1));function e(r){return typeof DataView>"u"?!1:t.working?t(r):r instanceof DataView}n.isDataView=e;var o=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function u(r){return y(r)==="[object SharedArrayBuffer]"}function l(r){return typeof o>"u"?!1:(typeof u.working>"u"&&(u.working=u(new o)),u.working?u(r):r instanceof o)}n.isSharedArrayBuffer=l;function a(r){return y(r)==="[object AsyncFunction]"}n.isAsyncFunction=a;function i(r){return y(r)==="[object Map Iterator]"}n.isMapIterator=i;function c(r){return y(r)==="[object Set Iterator]"}n.isSetIterator=c;function s(r){return y(r)==="[object Generator]"}n.isGeneratorObject=s;function S(r){return y(r)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=S;function M(r){return h(r,P)}n.isNumberObject=M;function Y(r){return h(r,w)}n.isStringObject=Y;function $(r){return h(r,d)}n.isBooleanObject=$;function Z(r){return f&&h(r,k)}n.isBigIntObject=Z;function ft(r){return j&&h(r,G)}n.isSymbolObject=ft;function wt(r){return M(r)||Y(r)||$(r)||Z(r)||ft(r)}n.isBoxedPrimitive=wt;function ht(r){return typeof Uint8Array<"u"&&(H(r)||l(r))}n.isAnyArrayBuffer=ht,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(n,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})})(ct)),ct}var mt,dt;function It(){return dt||(dt=1,mt=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),mt}var vt;function Rt(){return vt||(vt=1,(function(n){var v=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),o={},u=0;u<e.length;u++)o[e[u]]=Object.getOwnPropertyDescriptor(t,e[u]);return o},m=/%[sdj%]/g;n.format=function(t){if(!I(t)){for(var e=[],o=0;o<arguments.length;o++)e.push(f(arguments[o]));return e.join(" ")}for(var o=1,u=arguments,l=u.length,a=String(t).replace(m,function(s){if(s==="%%")return"%";if(o>=l)return s;switch(s){case"%s":return String(u[o++]);case"%d":return Number(u[o++]);case"%j":try{return JSON.stringify(u[o++])}catch{return"[Circular]"}default:return s}}),i=u[o];o<l;i=u[++o])z(i)||!E(i)?a+=" "+i:a+=" "+f(i);return a},n.deprecate=function(t,e){if(typeof O<"u"&&O.noDeprecation===!0)return t;if(typeof O>"u")return function(){return n.deprecate(t,e).apply(this,arguments)};var o=!1;function u(){if(!o){if(O.throwDeprecation)throw new Error(e);O.traceDeprecation?console.trace(e):console.error(e),o=!0}return t.apply(this,arguments)}return u};var p={},g=/^$/;if(O.env.NODE_DEBUG){var b=O.env.NODE_DEBUG;b=b.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),g=new RegExp("^"+b+"$","i")}n.debuglog=function(t){if(t=t.toUpperCase(),!p[t])if(g.test(t)){var e=O.pid;p[t]=function(){var o=n.format.apply(n,arguments);console.error("%s %d: %s",t,e,o)}}else p[t]=function(){};return p[t]};function f(t,e){var o={seen:[],stylize:y};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),V(e)?o.showHidden=e:e&&n._extend(o,e),A(o.showHidden)&&(o.showHidden=!1),A(o.depth)&&(o.depth=2),A(o.colors)&&(o.colors=!1),A(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=j),w(o,t,o.depth)}n.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(t,e){var o=f.styles[e];return o?"\x1B["+f.colors[o][0]+"m"+t+"\x1B["+f.colors[o][1]+"m":t}function y(t,e){return t}function P(t){var e={};return t.forEach(function(o,u){e[o]=!0}),e}function w(t,e,o){if(t.customInspect&&e&&x(e.inspect)&&e.inspect!==n.inspect&&!(e.constructor&&e.constructor.prototype===e)){var u=e.inspect(o,t);return I(u)||(u=w(t,u,o)),u}var l=d(t,e);if(l)return l;var a=Object.keys(e),i=P(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),F(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return k(e);if(a.length===0){if(x(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(U(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(N(e))return t.stylize(Date.prototype.toString.call(e),"date");if(F(e))return k(e)}var s="",S=!1,M=["{","}"];if(J(e)&&(S=!0,M=["[","]"]),x(e)){var Y=e.name?": "+e.name:"";s=" [Function"+Y+"]"}if(U(e)&&(s=" "+RegExp.prototype.toString.call(e)),N(e)&&(s=" "+Date.prototype.toUTCString.call(e)),F(e)&&(s=" "+k(e)),a.length===0&&(!S||e.length==0))return M[0]+s+M[1];if(o<0)return U(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var $;return S?$=G(t,e,o,i,a):$=a.map(function(Z){return h(t,e,o,i,Z,S)}),t.seen.pop(),L($,s,M)}function d(t,e){if(A(e))return t.stylize("undefined","undefined");if(I(e)){var o="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(o,"string")}if(_(e))return t.stylize(""+e,"number");if(V(e))return t.stylize(""+e,"boolean");if(z(e))return t.stylize("null","null")}function k(t){return"["+Error.prototype.toString.call(t)+"]"}function G(t,e,o,u,l){for(var a=[],i=0,c=e.length;i<c;++i)T(e,String(i))?a.push(h(t,e,o,u,String(i),!0)):a.push("");return l.forEach(function(s){s.match(/^\d+$/)||a.push(h(t,e,o,u,s,!0))}),a}function h(t,e,o,u,l,a){var i,c,s;if(s=Object.getOwnPropertyDescriptor(e,l)||{value:e[l]},s.get?s.set?c=t.stylize("[Getter/Setter]","special"):c=t.stylize("[Getter]","special"):s.set&&(c=t.stylize("[Setter]","special")),T(u,l)||(i="["+l+"]"),c||(t.seen.indexOf(s.value)<0?(z(o)?c=w(t,s.value,null):c=w(t,s.value,o-1),c.indexOf(`
2
+ `)>-1&&(a?c=c.split(`
3
+ `).map(function(S){return" "+S}).join(`
4
+ `).slice(2):c=`
5
+ `+c.split(`
6
+ `).map(function(S){return" "+S}).join(`
7
+ `))):c=t.stylize("[Circular]","special")),A(i)){if(a&&l.match(/^\d+$/))return c;i=JSON.stringify(""+l),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+c}function L(t,e,o){var u=t.reduce(function(l,a){return a.indexOf(`
8
+ `)>=0,l+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?o[0]+(e===""?"":e+`
9
+ `)+" "+t.join(`,
10
+ `)+" "+o[1]:o[0]+e+" "+t.join(", ")+" "+o[1]}n.types=zt();function J(t){return Array.isArray(t)}n.isArray=J;function V(t){return typeof t=="boolean"}n.isBoolean=V;function z(t){return t===null}n.isNull=z;function K(t){return t==null}n.isNullOrUndefined=K;function _(t){return typeof t=="number"}n.isNumber=_;function I(t){return typeof t=="string"}n.isString=I;function Q(t){return typeof t=="symbol"}n.isSymbol=Q;function A(t){return t===void 0}n.isUndefined=A;function U(t){return E(t)&&D(t)==="[object RegExp]"}n.isRegExp=U,n.types.isRegExp=U;function E(t){return typeof t=="object"&&t!==null}n.isObject=E;function N(t){return E(t)&&D(t)==="[object Date]"}n.isDate=N,n.types.isDate=N;function F(t){return E(t)&&(D(t)==="[object Error]"||t instanceof Error)}n.isError=F,n.types.isNativeError=F;function x(t){return typeof t=="function"}n.isFunction=x;function X(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}n.isPrimitive=X,n.isBuffer=It();function D(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tt(){var t=new Date,e=[C(t.getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":");return[t.getDate(),W[t.getMonth()],e].join(" ")}n.log=function(){console.log("%s - %s",tt(),n.format.apply(n,arguments))},n.inherits=Et(),n._extend=function(t,e){if(!e||!E(e))return t;for(var o=Object.keys(e),u=o.length;u--;)t[o[u]]=e[o[u]];return t};function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&t[B]){var e=t[B];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var o,u,l=new Promise(function(c,s){o=c,u=s}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(c,s){c?u(c):o(s)});try{t.apply(this,a)}catch(c){u(c)}return l}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),B&&Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,v(t))},n.promisify.custom=B;function R(t,e){if(!t){var o=new Error("Promise was rejected with a falsy value");o.reason=t,t=o}return e(t)}function H(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);var l=o.pop();if(typeof l!="function")throw new TypeError("The last argument must be of type Function");var a=this,i=function(){return l.apply(a,arguments)};t.apply(this,o).then(function(c){O.nextTick(i.bind(null,null,c))},function(c){O.nextTick(R.bind(null,c,i))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,v(t)),e}n.callbackify=H})(at)),at}export{Rt as W};
@@ -0,0 +1,10 @@
1
+ import{r as sr,a as X,b as wr,c as jr,d as Or,e as vr,f as Br,g as Tr,h as Ir}from"./inherits_browser-5Fj3Mjxs.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};
@@ -0,0 +1 @@
1
+ import{f as c}from"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import{T as a}from"./winston-BvKfy0iJ-CwnGwJ9X.js";import"./__vite-browser-external-CoxO8HJt-D7Ct-6yo.js";function p(r,i){for(var o=0;o<i.length;o++){const e=i[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 f=a();const l=c(f),m=p({__proto__:null,default:l},[f]);export{m as w};
@@ -0,0 +1 @@
1
+ import{p as a}from"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import{P as f}from"./winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js";import"./index-D5v913EJ-CsbEilVn.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js";function c(r,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in r)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var p=f();const s=a(p),d=c({__proto__:null,default:s},[p]);export{d as w};