@agentlang/lstudio 0.4.5 → 0.4.6

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 (35) hide show
  1. package/assets/{_commonjs-dynamic-modules-B7n8ZNar.js → _commonjs-dynamic-modules-DkOKMH7F.js} +1 -1
  2. package/assets/{fs-DYaxY4Sz.js → fs-Dc1AXE1h.js} +1 -1
  3. package/assets/index-B5cYUcHg.js +1 -0
  4. package/assets/{index-BHDiPh0o.js → index-BFv-M3PX.js} +1 -1
  5. package/assets/index-BXMy9UIl.js +1 -0
  6. package/assets/index-BitrXVkV.js +1 -0
  7. package/assets/{index-uTG5pVBd.js → index-BsMGh1HZ.js} +1 -1
  8. package/assets/{index-D4z_hbl0-D1eATIsj.js → index-D4z_hbl0-Bi2lyYpC.js} +1 -1
  9. package/assets/index-D5i6vPoY.js +1 -0
  10. package/assets/{index-LKjSxjRA-C7aA0iuy.js → index-DTNuphFO-Bf5Ad1xs.js} +8 -8
  11. package/assets/index-DYeSZrx6.css +1 -0
  12. package/assets/index-DYmn2gQ6-CnjFa625.js +1 -0
  13. package/assets/{index-CbD4puMb.js → index-DbVrN0uV.js} +1 -1
  14. package/assets/{index-M-eK85m4.js → index-IWX-nwYi.js} +573 -271
  15. package/assets/index.browser-D5Xow_MQ.js +6 -0
  16. package/assets/{loadCognitoIdentity-BJ3ICUdg.js → loadCognitoIdentity-DytZoWyS.js} +1 -1
  17. package/assets/loadSts-C6zXLlvL.js +1 -0
  18. package/assets/{normalizeProvider-BrOPyH3l.js → normalizeProvider-CtDY37Q6.js} +1 -1
  19. package/assets/{replService-BVipLO-C.js → replService-jI2rdTkj.js} +1 -1
  20. package/assets/resolveDefaultsModeConfig-Bx7XDpng.js +15 -0
  21. package/assets/{util-Dh4hNn-t.js → util-BYzfkJTL.js} +2 -2
  22. package/assets/{winston-1qzyIKCb-ykc8NNA5.js → winston-1qzyIKCb-DGNx4OWn.js} +1 -1
  23. package/assets/{winston-B2bq7MC_.js → winston-BpiA2JJl.js} +1 -1
  24. package/assets/{winston-CtxF18qc-Cc2bHbg0.js → winston-CtxF18qc-itw4XSal.js} +1 -1
  25. package/assets/{winston-DnehID6b.js → winston-D4mJsFB6.js} +2 -2
  26. package/index.html +3 -3
  27. package/package.json +1 -1
  28. package/assets/index-3_2F9LQx.js +0 -1
  29. package/assets/index-B3OWE_qa.js +0 -1
  30. package/assets/index-BVSKv1jw-BvgeZRdK.js +0 -1
  31. package/assets/index-CuvfCO6A.js +0 -1
  32. package/assets/index-OdGGJiBD.css +0 -1
  33. package/assets/index.browser-TboFGWa2.js +0 -6
  34. package/assets/loadSts-C9RMC24n.js +0 -1
  35. package/assets/resolveDefaultsModeConfig-zrZwbAGx.js +0 -15
@@ -1,4 +1,4 @@
1
- import{f as Er,l as Nr}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as Or,t as Lr,N as Ar,L as Cn,v as Fr}from"./winston-1qzyIKCb-ykc8NNA5.js";import{c as We}from"./__vite-browser-external-DLjrMatA.js";import{r as it}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{E as Rt}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{Y as Ir}from"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-Dh4hNn-t.js";import"./index-M-eK85m4.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function Cr(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(r,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kn={exports:{}},Yn;function Ur(){return Yn||(Yn=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,s,u){function y(C,P){if(!s[C]){if(!r[C]){var ee=typeof it=="function"&&it;if(!P&&ee)return ee(C,!0);if(E)return E(C,!0);throw new Error("Cannot find module '"+C+"'")}P=s[C]={exports:{}},r[C][0].call(P.exports,function(M){var Q=r[C][1][M];return y(Q||M)},P,P.exports,n,r,s,u)}return s[C].exports}for(var E=typeof it=="function"&&it,F=0;F<u.length;F++)y(u[F]);return y})({1:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("crypto");function g(d,_){_=v(d,_);var o;return(o=_.algorithm!=="passthrough"?k.createHash(_.algorithm):new D).write===void 0&&(o.write=o.update,o.end=o.update),b(_,o).dispatch(d),o.update||o.end(""),o.digest?o.digest(_.encoding==="buffer"?void 0:_.encoding):(d=o.read(),_.encoding!=="buffer"?d.toString(_.encoding):d)}(s=r.exports=g).sha1=function(d){return g(d)},s.keys=function(d){return g(d,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(d){return g(d,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(d){return g(d,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=k.getHashes?k.getHashes().slice():["sha1","md5"],p=(c.push("passthrough"),["buffer","hex","binary","base64"]);function v(d,_){var o={};if(o.algorithm=(_=_||{}).algorithm||"sha1",o.encoding=_.encoding||"hex",o.excludeValues=!!_.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=_.ignoreUnknown===!0,o.respectType=_.respectType!==!1,o.respectFunctionNames=_.respectFunctionNames!==!1,o.respectFunctionProperties=_.respectFunctionProperties!==!1,o.unorderedArrays=_.unorderedArrays===!0,o.unorderedSets=_.unorderedSets!==!1,o.unorderedObjects=_.unorderedObjects!==!1,o.replacer=_.replacer||void 0,o.excludeKeys=_.excludeKeys||void 0,d===void 0)throw new Error("Object argument required.");for(var f=0;f<c.length;++f)c[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=c[f]);if(c.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+c.join(", "));if(p.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+p.join(", "));return o}function S(d){if(typeof d=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(d))!=null}function b(d,_,o){o=o||[];function f(a){return _.update?_.update(a,"utf8"):_.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=d.replacer?d.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var m,w=Object.prototype.toString.call(a),W=/\[object (.*)\]/i.exec(w);if(W=(W=W?W[1]:"unknown:["+w+"]").toLowerCase(),0<=(w=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+w+"]");if(o.push(a),E!==void 0&&E.isBuffer&&E.isBuffer(a))return f("buffer:"),f(a);if(W==="object"||W==="function"||W==="asyncfunction")return w=Object.keys(a),d.unorderedObjects&&(w=w.sort()),d.respectType===!1||S(a)||w.splice(0,0,"prototype","__proto__","constructor"),d.excludeKeys&&(w=w.filter(function(R){return!d.excludeKeys(R)})),f("object:"+w.length+":"),m=this,w.forEach(function(R){m.dispatch(R),f(":"),d.excludeValues||m.dispatch(a[R]),f(",")});if(!this["_"+W]){if(d.ignoreUnknown)return f("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](a)},_array:function(a,R){R=R!==void 0?R:d.unorderedArrays!==!1;var w=this;if(f("array:"+a.length+":"),!R||a.length<=1)return a.forEach(function(j){return w.dispatch(j)});var W=[],R=a.map(function(j){var I=new D,B=o.slice();return b(d,I,B).dispatch(j),W=W.concat(B.slice(o.length)),I.read().toString()});return o=o.concat(W),R.sort(),this._array(R,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),d.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),d.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(d.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
1
+ import{f as Er,l as Nr}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as Or,t as Lr,N as Ar,L as Cn,v as Fr}from"./winston-1qzyIKCb-DGNx4OWn.js";import{c as We}from"./__vite-browser-external-DLjrMatA.js";import{r as it}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{E as Rt}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{Y as Ir}from"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-BYzfkJTL.js";import"./index-IWX-nwYi.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";function Cr(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(r,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kn={exports:{}},Yn;function Ur(){return Yn||(Yn=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,s,u){function y(C,P){if(!s[C]){if(!r[C]){var ee=typeof it=="function"&&it;if(!P&&ee)return ee(C,!0);if(E)return E(C,!0);throw new Error("Cannot find module '"+C+"'")}P=s[C]={exports:{}},r[C][0].call(P.exports,function(M){var Q=r[C][1][M];return y(Q||M)},P,P.exports,n,r,s,u)}return s[C].exports}for(var E=typeof it=="function"&&it,F=0;F<u.length;F++)y(u[F]);return y})({1:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("crypto");function g(d,_){_=v(d,_);var o;return(o=_.algorithm!=="passthrough"?k.createHash(_.algorithm):new D).write===void 0&&(o.write=o.update,o.end=o.update),b(_,o).dispatch(d),o.update||o.end(""),o.digest?o.digest(_.encoding==="buffer"?void 0:_.encoding):(d=o.read(),_.encoding!=="buffer"?d.toString(_.encoding):d)}(s=r.exports=g).sha1=function(d){return g(d)},s.keys=function(d){return g(d,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(d){return g(d,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(d){return g(d,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=k.getHashes?k.getHashes().slice():["sha1","md5"],p=(c.push("passthrough"),["buffer","hex","binary","base64"]);function v(d,_){var o={};if(o.algorithm=(_=_||{}).algorithm||"sha1",o.encoding=_.encoding||"hex",o.excludeValues=!!_.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=_.ignoreUnknown===!0,o.respectType=_.respectType!==!1,o.respectFunctionNames=_.respectFunctionNames!==!1,o.respectFunctionProperties=_.respectFunctionProperties!==!1,o.unorderedArrays=_.unorderedArrays===!0,o.unorderedSets=_.unorderedSets!==!1,o.unorderedObjects=_.unorderedObjects!==!1,o.replacer=_.replacer||void 0,o.excludeKeys=_.excludeKeys||void 0,d===void 0)throw new Error("Object argument required.");for(var f=0;f<c.length;++f)c[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=c[f]);if(c.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+c.join(", "));if(p.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+p.join(", "));return o}function S(d){if(typeof d=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(d))!=null}function b(d,_,o){o=o||[];function f(a){return _.update?_.update(a,"utf8"):_.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=d.replacer?d.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var m,w=Object.prototype.toString.call(a),W=/\[object (.*)\]/i.exec(w);if(W=(W=W?W[1]:"unknown:["+w+"]").toLowerCase(),0<=(w=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+w+"]");if(o.push(a),E!==void 0&&E.isBuffer&&E.isBuffer(a))return f("buffer:"),f(a);if(W==="object"||W==="function"||W==="asyncfunction")return w=Object.keys(a),d.unorderedObjects&&(w=w.sort()),d.respectType===!1||S(a)||w.splice(0,0,"prototype","__proto__","constructor"),d.excludeKeys&&(w=w.filter(function(R){return!d.excludeKeys(R)})),f("object:"+w.length+":"),m=this,w.forEach(function(R){m.dispatch(R),f(":"),d.excludeValues||m.dispatch(a[R]),f(",")});if(!this["_"+W]){if(d.ignoreUnknown)return f("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](a)},_array:function(a,R){R=R!==void 0?R:d.unorderedArrays!==!1;var w=this;if(f("array:"+a.length+":"),!R||a.length<=1)return a.forEach(function(j){return w.dispatch(j)});var W=[],R=a.map(function(j){var I=new D,B=o.slice();return b(d,I,B).dispatch(j),W=W.concat(B.slice(o.length)),I.read().toString()});return o=o.concat(W),R.sort(),this._array(R,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),d.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),d.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(d.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
2
2
  (see https://github.com/puleos/object-hash/issues/26)
3
3
  Use "options.replacer" or "options.ignoreUnknown"
4
4
  `)},_domwindow:function(){return f("domwindow")},_bigint:function(a){return f("bigint:"+a.toString())},_process:function(){return f("process")},_timer:function(){return f("timer")},_pipe:function(){return f("pipe")},_tcp:function(){return f("tcp")},_udp:function(){return f("udp")},_tty:function(){return f("tty")},_statwatcher:function(){return f("statwatcher")},_securecontext:function(){return f("securecontext")},_connection:function(){return f("connection")},_zlib:function(){return f("zlib")},_context:function(){return f("context")},_nodescript:function(){return f("nodescript")},_httpparser:function(){return f("httpparser")},_dataview:function(){return f("dataview")},_signal:function(){return f("signal")},_fsevent:function(){return f("fsevent")},_tlswrap:function(){return f("tlswrap")}}}function D(){return{buf:"",write:function(d){this.buf+=d},end:function(d){this.buf+=d},read:function(){return this.buf}}}s.writeToStream=function(d,_,o){return o===void 0&&(o=_,_={}),b(_=v(d,_),o).dispatch(d)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){(function(k){var g=typeof Uint8Array<"u"?Uint8Array:Array,c=43,p=47,v=48,S=97,b=65,D=45,d=95;function _(o){return o=o.charCodeAt(0),o===c||o===D?62:o===p||o===d?63:o<v?-1:o<v+10?o-v+26+26:o<b+26?o-b:o<S+26?o-S+26:void 0}k.toByteArray=function(o){var f,a;if(0<o.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.length,m=o.charAt(m-2)==="="?2:o.charAt(m-1)==="="?1:0,w=new g(3*o.length/4-m),W=0<m?o.length-4:o.length,R=0;function j(I){w[R++]=I}for(f=0;f<W;f+=4,0)j((16711680&(a=_(o.charAt(f))<<18|_(o.charAt(f+1))<<12|_(o.charAt(f+2))<<6|_(o.charAt(f+3))))>>16),j((65280&a)>>8),j(255&a);return m==2?j(255&(a=_(o.charAt(f))<<2|_(o.charAt(f+1))>>4)):m==1&&(j((a=_(o.charAt(f))<<10|_(o.charAt(f+1))<<4|_(o.charAt(f+2))>>2)>>8&255),j(255&a)),w},k.fromByteArray=function(o){var f,a,m,w,W=o.length%3,R="";function j(I){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(I)}for(f=0,m=o.length-W;f<m;f+=3)a=(o[f]<<16)+(o[f+1]<<8)+o[f+2],R+=j((w=a)>>18&63)+j(w>>12&63)+j(w>>6&63)+j(63&w);switch(W){case 1:R=(R+=j((a=o[o.length-1])>>2))+j(a<<4&63)+"==";break;case 2:R=(R=(R+=j((a=(o[o.length-2]<<8)+o[o.length-1])>>10))+j(a>>4&63))+j(a<<2&63)+"="}return R}})(s===void 0?this.base64js={}:s)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,s){(function(u,y,c,F,C,P,ee,M,Q){var k=n("base64-js"),g=n("ieee754");function c(i,l,h){if(!(this instanceof c))return new c(i,l,h);var T,Y,L,$,se=typeof i;if(l==="base64"&&se=="string")for(i=($=i).trim?$.trim():$.replace(/^\s+|\s+$/g,"");i.length%4!=0;)i+="=";if(se=="number")T=z(i);else if(se=="string")T=c.byteLength(i,l);else{if(se!="object")throw new Error("First argument needs to be a number, array or string.");T=z(i.length)}if(c._useTypedArrays?Y=c._augment(new Uint8Array(T)):((Y=this).length=T,Y._isBuffer=!0),c._useTypedArrays&&typeof i.byteLength=="number")Y._set(i);else if(X($=i)||c.isBuffer($)||$&&typeof $=="object"&&typeof $.length=="number")for(L=0;L<T;L++)c.isBuffer(i)?Y[L]=i.readUInt8(L):Y[L]=i[L];else if(se=="string")Y.write(i,0,l);else if(se=="number"&&!c._useTypedArrays&&!h)for(L=0;L<T;L++)Y[L]=0;return Y}function p(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L=[],$=0;$<Y.length;$++)L.push(255&Y.charCodeAt($));return L})(l),i,h,T)}function v(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L,$,se=[],ue=0;ue<Y.length;ue++)$=Y.charCodeAt(ue),L=$>>8,$=$%256,se.push($),se.push(L);return se})(l),i,h,T)}function S(i,l,h){var T="";h=Math.min(i.length,h);for(var Y=l;Y<h;Y++)T+=String.fromCharCode(i[Y]);return T}function b(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(Y=i[l],l+1<L&&(Y|=i[l+1]<<8)):(Y=i[l]<<8,l+1<L&&(Y|=i[l+1])),Y}function D(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(l+2<L&&(Y=i[l+2]<<16),l+1<L&&(Y|=i[l+1]<<8),Y|=i[l],l+3<L&&(Y+=i[l+3]<<24>>>0)):(l+1<L&&(Y=i[l+1]<<16),l+2<L&&(Y|=i[l+2]<<8),l+3<L&&(Y|=i[l+3]),Y+=i[l]<<24>>>0),Y}function d(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=b(i,l,h,!0),32768&T?-1*(65535-T+1):T}function _(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=D(i,l,h,!0),2147483648&T?-1*(4294967295-T+1):T}function o(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+3<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,23,4)}function f(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+7<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,52,8)}function a(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"trying to write beyond buffer length"),Ct(l,65535)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,2);L<$;L++)i[h+L]=(l&255<<8*(T?L:1-L))>>>8*(T?L:1-L)}function m(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"trying to write beyond buffer length"),Ct(l,4294967295)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,4);L<$;L++)i[h+L]=l>>>8*(T?L:3-L)&255}function w(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"Trying to write beyond buffer length"),Ut(l,32767,-32768)),i.length<=h||a(i,0<=l?l:65535+l+1,h,T,Y)}function W(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Ut(l,2147483647,-2147483648)),i.length<=h||m(i,0<=l?l:4294967295+l+1,h,T,Y)}function R(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Mn(l,34028234663852886e22,-34028234663852886e22)),i.length<=h||g.write(i,l,h,T,23,4)}function j(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+7<i.length,"Trying to write beyond buffer length"),Mn(l,17976931348623157e292,-17976931348623157e292)),i.length<=h||g.write(i,l,h,T,52,8)}s.Buffer=c,s.SlowBuffer=c,s.INSPECT_MAX_BYTES=50,c.poolSize=8192,c._useTypedArrays=(function(){try{var i=new ArrayBuffer(0),l=new Uint8Array(i);return l.foo=function(){return 42},l.foo()===42&&typeof l.subarray=="function"}catch{return!1}})(),c.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.isBuffer=function(i){return!(i==null||!i._isBuffer)},c.byteLength=function(i,l){var h;switch(i+="",l||"utf8"){case"hex":h=i.length/2;break;case"utf8":case"utf-8":h=ce(i).length;break;case"ascii":case"binary":case"raw":h=i.length;break;case"base64":h=Ee(i).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=2*i.length;break;default:throw new Error("Unknown encoding")}return h},c.concat=function(i,l){if(N(X(i),`Usage: Buffer.concat(list, [totalLength])
@@ -0,0 +1 @@
1
+ import{r as Pe,a as ye,A as Ae,b as ve,c as Ie,g as Re,d as Ce,e as xe,k as De,f as be,h as _e,i as Te,j as ke,s as N}from"./index-B5cYUcHg.js";import{n as ee,k as we,E as We,r as $e,c as Ue,p as He,l as Fe,o as Oe,q as Le,s as je,D as Me,t as Ne,u as Ke,w as qe,x as ze,y as Ge,z as Ve,A as Be,B as Qe,C as Je,F as Xe,G as Ye,H as Ze,I as et,J as tt,K as nt,M as ot,O as st,P as it,U as rt,Q as at,V as ct,T as P,W as dt,X as lt}from"./resolveDefaultsModeConfig-Bx7XDpng.js";import{b as ut,i as pt,t as mt,f as gt,s as ht,F as ft}from"./normalizeProvider-CtDY37Q6.js";import"./preload-helper-BlTxHScW.js";import"./index-IWX-nwYi.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";function St(){return async()=>"us-east-1"}const Et=async(e,t,i)=>({operation:we(t).operation,region:await ee(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,i)=>({signingProperties:{config:t,context:i}})}}function yt(e){return{schemeId:"smithy.api#noAuth"}}const At=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(yt());break}default:t.push(Pt(e))}return t},vt=e=>Object.assign(e,{stsClientCtor:ue}),It=e=>{const t=vt(e),i=Pe(t);return Object.assign(i,{authSchemePreference:ee(e.authSchemePreference??[])})},Rt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ct={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"}},xt="3.974.0",Dt={version:xt},te="required",n="type",o="fn",s="argv",y="ref",K=!1,w=!0,E="booleanEquals",l="stringEquals",ne="sigv4",oe="sts",se="us-east-1",a="endpoint",q="https://sts.{Region}.{PartitionResult#dnsSuffix}",h="tree",D="error",$="getAttr",z={[te]:!1,[n]:"string"},W={[te]:!0,default:!1,[n]:"boolean"},ie={[y]:"Endpoint"},G={[o]:"isSet",[s]:[{[y]:"Region"}]},u={[y]:"Region"},V={[o]:"aws.partition",[s]:[u],assign:"PartitionResult"},re={[y]:"UseFIPS"},ae={[y]:"UseDualStack"},p={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:ne,signingName:oe,signingRegion:se}]},headers:{}},m={},B={conditions:[{[o]:l,[s]:[u,"aws-global"]}],[a]:p,[n]:a},ce={[o]:E,[s]:[re,!0]},de={[o]:E,[s]:[ae,!0]},Q={[o]:$,[s]:[{[y]:"PartitionResult"},"supportsFIPS"]},le={[y]:"PartitionResult"},J={[o]:E,[s]:[!0,{[o]:$,[s]:[le,"supportsDualStack"]}]},X=[{[o]:"isSet",[s]:[ie]}],Y=[ce],Z=[de],bt={parameters:{Region:z,UseDualStack:W,UseFIPS:W,Endpoint:z,UseGlobalEndpoint:W},rules:[{conditions:[{[o]:E,[s]:[{[y]:"UseGlobalEndpoint"},w]},{[o]:"not",[s]:X},G,V,{[o]:E,[s]:[re,K]},{[o]:E,[s]:[ae,K]}],rules:[{conditions:[{[o]:l,[s]:[u,"ap-northeast-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-south-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-southeast-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-southeast-2"]}],endpoint:p,[n]:a},B,{conditions:[{[o]:l,[s]:[u,"ca-central-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-central-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-north-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-2"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-3"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"sa-east-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,se]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-east-2"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-west-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-west-2"]}],endpoint:p,[n]:a},{endpoint:{url:q,properties:{authSchemes:[{name:ne,signingName:oe,signingRegion:"{Region}"}]},headers:m},[n]:a}],[n]:h},{conditions:X,rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[n]:D},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[n]:D},{endpoint:{url:ie,properties:m,headers:m},[n]:a}],[n]:h},{conditions:[G],rules:[{conditions:[V],rules:[{conditions:[ce,de],rules:[{conditions:[{[o]:E,[s]:[w,Q]},J],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[n]:D}],[n]:h},{conditions:Y,rules:[{conditions:[{[o]:E,[s]:[Q,w]}],rules:[{conditions:[{[o]:l,[s]:[{[o]:$,[s]:[le,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:m,headers:m},[n]:a},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"FIPS is enabled but this partition does not support FIPS",[n]:D}],[n]:h},{conditions:Z,rules:[{conditions:[J],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"DualStack is enabled but this partition does not support DualStack",[n]:D}],[n]:h},B,{endpoint:{url:q,properties:m,headers:m},[n]:a}],[n]:h}],[n]:h},{error:"Invalid Configuration: Missing Region",[n]:D}]},_t=bt,Tt=new We({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),kt=(e,t={})=>Tt.get(e,()=>$e(_t,{endpointParams:e,logger:t.logger}));Ue.aws=ye;const wt=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??mt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??kt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??At,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Oe}],logger:e?.logger??new Fe,protocol:e?.protocol??Ae,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??He,utf8Decoder:e?.utf8Decoder??pt,utf8Encoder:e?.utf8Encoder??ut}),Wt=e=>{const t=Le(e),i=()=>t().then(Ve),d=wt(e);return{...d,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qe,credentialDefaultProvider:e?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ie({serviceId:d.serviceId,clientVersion:Dt.version}),maxAttempts:e?.maxAttempts??Ke,region:e?.region??Ne("Region is missing"),requestHandler:ft.create(e?.requestHandler??i),retryMode:e?.retryMode??(async()=>(await i()).retryMode||Me),sha256:e?.sha256??je,streamCollector:e?.streamCollector??ht,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Ge)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ze))}},$t=e=>{const t=e.httpAuthSchemes;let i=e.httpAuthSchemeProvider,d=e.credentials;return{setHttpAuthScheme(r){const S=t.findIndex(g=>g.schemeId===r.schemeId);S===-1?t.push(r):t.splice(S,1,r)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){d=r},credentials(){return d}}},Ut=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ht=(e,t)=>{const i=Object.assign(Re(e),Be(e),Qe(e),$t(e));return t.forEach(d=>d.configure(i)),Object.assign(e,Ce(i),Je(i),Xe(i),Ut(i))};class ue extends Ye{config;constructor(...[t]){const i=Wt(t||{});super(i),this.initConfig=i;const d=Rt(i),r=xe(d),S=Ze(r),g=et(S),A=De(g),_=tt(A),T=It(_),k=Ht(T,t?.extensions||[]);this.config=k,this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(ke(this.config)),this.middlewareStack.use(it(this.config,{httpAuthSchemeParametersProvider:Et,identityProviderConfigProvider:async b=>new rt({"aws.auth#sigv4":b.credentials})})),this.middlewareStack.use(at(this.config))}destroy(){super.destroy()}}class f extends ct{constructor(t){super(t),Object.setPrototypeOf(this,f.prototype)}}class U extends f{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class H extends f{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class F extends f{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,F.prototype)}}class O extends f{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,O.prototype)}}class L extends f{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class j extends f{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class M extends f{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,M.prototype)}}const Ft="Arn",Ot="AccessKeyId",Lt="AssumedRoleId",pe="AssumedRoleUser",jt="AssumeRoleWithWebIdentity",Mt="AssumeRoleWithWebIdentityRequest",Nt="AssumeRoleWithWebIdentityResponse",Kt="Audience",me="Credentials",qt="DurationSeconds",zt="Expiration",Gt="ExpiredTokenException",Vt="IDPCommunicationErrorException",Bt="IDPRejectedClaimException",Qt="InvalidIdentityTokenException",Jt="MalformedPolicyDocumentException",Xt="Policy",Yt="PolicyArns",Zt="PolicyDescriptorType",en="ProviderId",tn="PackedPolicySize",nn="PackedPolicyTooLargeException",on="Provider",sn="RoleArn",rn="RegionDisabledException",an="RoleSessionName",cn="SecretAccessKey",dn="SubjectFromWebIdentityToken",ln="SourceIdentity",un="SessionToken",pn="WebIdentityToken",mn="arn",gn="accessKeySecretType",v="awsQueryError",I="client",hn="clientTokenType",R="error",C="httpError",x="message",fn="policyDescriptorListType",ge="smithy.ts.sdk.synthetic.com.amazonaws.sts",c="com.amazonaws.sts";var Sn=[0,c,gn,8,0],En=[0,c,hn,8,0],Pn=[3,c,pe,0,[Lt,Ft],[0,0],2],yn=[3,c,Mt,0,[sn,an,pn,en,Yt,Xt,qt],[0,0,[()=>En,0],0,()=>wn,0,1],3],An=[3,c,Nt,0,[me,dn,pe,tn,on,Kt,ln],[[()=>vn,0],0,()=>Pn,1,0,0,0]],vn=[3,c,me,0,[Ot,cn,un,zt],[0,[()=>Sn,0],0,4],4],In=[-3,c,Gt,{[v]:["ExpiredTokenException",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(In,U);var Rn=[-3,c,Vt,{[v]:["IDPCommunicationError",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(Rn,M);var Cn=[-3,c,Bt,{[v]:["IDPRejectedClaim",403],[R]:I,[C]:403},[x],[0]];P.for(c).registerError(Cn,L);var xn=[-3,c,Qt,{[v]:["InvalidIdentityToken",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(xn,j);var Dn=[-3,c,Jt,{[v]:["MalformedPolicyDocument",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(Dn,H);var bn=[-3,c,nn,{[v]:["PackedPolicyTooLarge",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(bn,F);var _n=[3,c,Zt,0,[mn],[0]],Tn=[-3,c,rn,{[v]:["RegionDisabledException",403],[R]:I,[C]:403},[x],[0]];P.for(c).registerError(Tn,O);var kn=[-3,ge,"STSServiceException",0,[],[]];P.for(ge).registerError(kn,f);var wn=[1,c,fn,0,()=>_n],Wn=[9,c,jt,0,()=>yn,()=>An];class $n extends dt.classBuilder().ep(Ct).m(function(t,i,d,r){return[lt(d,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Wn).build(){}const Un=e=>{if(typeof e?.Arn=="string"){const t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},Hn=async(e,t,i,d={})=>{const r=typeof e=="function"?await e():e,S=typeof t=="function"?await t():t;let g="";const A=r??S??(g=await St()());return i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${r} (credential provider clientConfig)`,`${S} (contextual client)`,`${g} (STS default: AWS_REGION, profile region, or us-east-1)`),A},Fn=(e,t)=>{let i;return async d=>{if(!i){const{logger:_=e?.parentClientConfig?.logger,profile:T=e?.parentClientConfig?.profile,region:k,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:he,userAgentAppId:fe=e?.parentClientConfig?.userAgentAppId}=e,Se=await Hn(k,e?.parentClientConfig?.region,he,{}),Ee=!On(b);i=new t({...e,userAgentAppId:fe,profile:T,region:Se,requestHandler:Ee?b:void 0,logger:_})}const{Credentials:r,AssumedRoleUser:S}=await i.send(new $n(d));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${d.RoleArn}`);const g=Un(S),A={accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...g&&{accountId:g}};return g&&N(A,"RESOLVED_ACCOUNT_ID","T"),N(A,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),A}},On=e=>e?.metadata?.handlerProtocol==="h2",Ln=(e,t)=>t?class extends e{constructor(d){super(d);for(const r of t)this.middlewareStack.use(r)}}:e,io=(e={},t)=>Fn(e,Ln(ue,t));export{dt as $Command,Wn as AssumeRoleWithWebIdentity$,$n as AssumeRoleWithWebIdentityCommand,yn as AssumeRoleWithWebIdentityRequest$,An as AssumeRoleWithWebIdentityResponse$,Pn as AssumedRoleUser$,vn as Credentials$,U as ExpiredTokenException,In as ExpiredTokenException$,M as IDPCommunicationErrorException,Rn as IDPCommunicationErrorException$,L as IDPRejectedClaimException,Cn as IDPRejectedClaimException$,j as InvalidIdentityTokenException,xn as InvalidIdentityTokenException$,H as MalformedPolicyDocumentException,Dn as MalformedPolicyDocumentException$,F as PackedPolicyTooLargeException,bn as PackedPolicyTooLargeException$,_n as PolicyDescriptorType$,O as RegionDisabledException,Tn as RegionDisabledException$,ue as STSClient,f as STSServiceException,kn as STSServiceException$,Ye as __Client,io as getDefaultRoleAssumerWithWebIdentity};