@thunderclient/cli 1.22.2 → 1.23.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thunderclient/cli",
3
- "version": "1.22.2",
3
+ "version": "1.23.0",
4
4
  "description": "Thunder Client CLI",
5
5
  "author": "Ranga Vadhineni",
6
6
  "homepage": "https://www.thunderclient.com",
package/dist/717.index.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";exports.id=717,exports.ids=[717],exports.modules={916:(t,e,n)=>{n.d(e,{getDefaultRoleAssumer:()=>Hi,getDefaultRoleAssumerWithWebIdentity:()=>Xi});var i=n(39),o=n(126),r=n(125),s=n(124);const a={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var c=n(115),u=n(114);class l extends u.T{constructor(t){super(t),Object.setPrototypeOf(this,l.prototype)}}const d=t=>({...t,...t.SecretAccessKey&&{SecretAccessKey:c.$}}),f=t=>({...t,...t.Credentials&&{Credentials:d(t.Credentials)}});class h extends l{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,h.prototype)}}class p extends l{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,p.prototype)}}class m extends l{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,m.prototype)}}class g extends l{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,g.prototype)}}class w extends l{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,w.prototype)}}class v extends l{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,v.prototype)}}const x=t=>({...t,...t.WebIdentityToken&&{WebIdentityToken:c.$}}),E=t=>({...t,...t.Credentials&&{Credentials:d(t.Credentials)}});class y extends l{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,y.prototype)}}const b={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t},captureMetaData:!1},I=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",S=new RegExp("^"+("["+I+"]["+(I+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*")+"$");function P(t,e){const n=[];let i=e.exec(t);for(;i;){const o=[];o.startIndex=e.lastIndex-i[0].length;const r=i.length;for(let t=0;t<r;t++)o.push(i[t]);n.push(o),i=e.exec(t)}return n}const A=function(t){const e=S.exec(t);return!(null==e)};let T;T="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class D{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t,e){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),void 0!==e&&(this.child[this.child.length-1][T]={startIndex:e})}static getMetaDataSymbol(){return T}}function C(t,e){const n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let i=1,o=!1,r=!1,s="";for(;e<t.length;e++)if("<"!==t[e]||r)if(">"===t[e]){if(r?"-"===t[e-1]&&"-"===t[e-2]&&(r=!1,i--):i--,0===i)break}else"["===t[e]?o=!0:s+=t[e];else{if(o&&j(t,"!ENTITY",e)){let i,o;e+=7,[i,o,e]=R(t,e+1),-1===o.indexOf("&")&&(n[i]={regx:RegExp(`&${i};`,"g"),val:o})}else if(o&&j(t,"!ELEMENT",e)){e+=8;const{index:n}=N(t,e+1);e=n}else if(o&&j(t,"!ATTLIST",e))e+=8;else if(o&&j(t,"!NOTATION",e)){e+=9;const{index:n}=O(t,e+1);e=n}else{if(!j(t,"!--",e))throw new Error("Invalid DOCTYPE");r=!0}i++,s=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}const $=(t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function R(t,e){e=$(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e])&&'"'!==t[e]&&"'"!==t[e];)n+=t[e],e++;if(F(n),e=$(t,e),"SYSTEM"===t.substring(e,e+6).toUpperCase())throw new Error("External entities are not supported");if("%"===t[e])throw new Error("Parameter entities are not supported");let i="";return[e,i]=k(t,e,"entity"),[n,i,--e]}function O(t,e){e=$(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e]);)n+=t[e],e++;F(n),e=$(t,e);const i=t.substring(e,e+6).toUpperCase();if("SYSTEM"!==i&&"PUBLIC"!==i)throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);e+=i.length,e=$(t,e);let o=null,r=null;if("PUBLIC"===i)[e,o]=k(t,e,"publicIdentifier"),'"'!==t[e=$(t,e)]&&"'"!==t[e]||([e,r]=k(t,e,"systemIdentifier"));else if("SYSTEM"===i&&([e,r]=k(t,e,"systemIdentifier"),!r))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:o,systemIdentifier:r,index:--e}}function k(t,e,n){let i="";const o=t[e];if('"'!==o&&"'"!==o)throw new Error(`Expected quoted string, found "${o}"`);for(e++;e<t.length&&t[e]!==o;)i+=t[e],e++;if(t[e]!==o)throw new Error(`Unterminated ${n} value`);return[++e,i]}function N(t,e){e=$(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e]);)n+=t[e],e++;if(!F(n))throw new Error(`Invalid element name: "${n}"`);let i="";if("E"===t[e=$(t,e)]&&j(t,"MPTY",e))e+=4;else if("A"===t[e]&&j(t,"NY",e))e+=2;else{if("("!==t[e])throw new Error(`Invalid Element Expression, found "${t[e]}"`);for(e++;e<t.length&&")"!==t[e];)i+=t[e],e++;if(")"!==t[e])throw new Error("Unterminated content model")}return{elementName:n,contentModel:i.trim(),index:e}}function j(t,e,n){for(let i=0;i<e.length;i++)if(e[i]!==t[n+i+1])return!1;return!0}function F(t){if(A(t))return t;throw new Error(`Invalid entity name ${t}`)}const _=/^[-+]?0x[a-fA-F0-9]+$/,U=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,M={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function L(t,e={}){if(e=Object.assign({},M,e),!t||"string"!=typeof t)return t;let n=t.trim();if(void 0!==e.skipLike&&e.skipLike.test(n))return t;if("0"===t)return 0;if(e.hex&&_.test(n))return function(t,e){if(parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n,16);if(-1!==n.search(/.+[eE].+/))return function(t,e,n){if(!n.eNotation)return t;const i=e.match(W);if(i){let o=i[1]||"";const r=-1===i[3].indexOf("e")?"E":"e",s=i[2],a=o?t[s.length+1]===r:t[s.length]===r;return s.length>1&&a?t:1!==s.length||!i[3].startsWith(`.${r}`)&&i[3][0]!==r?n.leadingZeros&&!a?(e=(i[1]||"")+i[3],Number(e)):t:Number(e)}return t}(t,n,e);{const i=U.exec(n);if(i){const o=i[1]||"",r=i[2];let s=function(t){if(t&&-1!==t.indexOf("."))return"."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substring(0,t.length-1)),t;return t}(i[3]);const a=o?"."===t[r.length+1]:"."===t[r.length];if(!e.leadingZeros&&(r.length>1||1===r.length&&!a))return t;{const i=Number(n),a=String(i);if(0===i)return i;if(-1!==a.search(/[eE]/))return e.eNotation?i:t;if(-1!==n.indexOf("."))return"0"===a||a===s||a===`${o}${s}`?i:t;let c=r?s:n;return r?c===a||o+c===a?i:t:c===a||c===o+a?i:t}}return t}}const W=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class V{constructor(t){var e;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>String.fromCodePoint(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCodePoint(Number.parseInt(e,16))}},this.addExternalEntities=q,this.parseXml=H,this.parseTextData=Y,this.resolveNameSpace=z,this.buildAttributesMap=K,this.isItStopNode=J,this.replaceEntitiesValue=G,this.readStopNodeData=et,this.saveTextToParentTag=Z,this.addChild=X,this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}}function q(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:t[i]}}}function Y(t,e,n,i,o,r,s){if(void 0!==t&&(this.options.trimValues&&!i&&(t=t.trim()),t.length>0)){s||(t=this.replaceEntitiesValue(t));const i=this.options.tagValueProcessor(e,t,n,o,r);if(null==i)return t;if(typeof i!=typeof t||i!==t)return i;if(this.options.trimValues)return nt(t,this.options.parseTagValue,this.options.numberParseOptions);return t.trim()===t?nt(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function z(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}const B=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function K(t,e,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof t){const n=P(t,B),i=n.length,o={};for(let t=0;t<i;t++){const i=this.resolveNameSpace(n[t][1]);if(this.ignoreAttributesFn(i,e))continue;let r=n[t][4],s=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==r){this.options.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r);const t=this.options.attributeValueProcessor(i,r,e);o[s]=null==t?r:typeof t!=typeof r||t!==r?t:nt(r,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[s]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=o,t}return o}}const H=function(t){t=t.replace(/\r\n?/g,"\n");const e=new D("!xml");let n=e,i="",o="";for(let r=0;r<t.length;r++){if("<"===t[r])if("/"===t[r+1]){const e=Q(t,">",r,"Closing Tag is not closed.");let s=t.substring(r+2,e).trim();if(this.options.removeNSPrefix){const t=s.indexOf(":");-1!==t&&(s=s.substr(t+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(i=this.saveTextToParentTag(i,n,o));const a=o.substring(o.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let c=0;a&&-1!==this.options.unpairedTags.indexOf(a)?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),n=this.tagsNodeStack.pop(),i="",r=e}else if("?"===t[r+1]){let e=tt(t,r,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,o),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new D(e.tagName);t.add(this.options.textNodeName,""),e.tagName!==e.tagExp&&e.attrExpPresent&&(t[":@"]=this.buildAttributesMap(e.tagExp,o,e.tagName)),this.addChild(n,t,o,r)}r=e.closeIndex+1}else if("!--"===t.substr(r+1,3)){const e=Q(t,"--\x3e",r+4,"Comment is not closed.");if(this.options.commentPropName){const s=t.substring(r+4,e-2);i=this.saveTextToParentTag(i,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}r=e}else if("!D"===t.substr(r+1,2)){const e=C(t,r);this.docTypeEntities=e.entities,r=e.i}else if("!["===t.substr(r+1,2)){const e=Q(t,"]]>",r,"CDATA is not closed.")-2,s=t.substring(r+9,e);i=this.saveTextToParentTag(i,n,o);let a=this.parseTextData(s,n.tagname,o,!0,!1,!0,!0);null==a&&(a=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):n.add(this.options.textNodeName,a),r=e+2}else{let s=tt(t,r,this.options.removeNSPrefix),a=s.tagName;const c=s.rawTagName;let u=s.tagExp,l=s.attrExpPresent,d=s.closeIndex;this.options.transformTagName&&(a=this.options.transformTagName(a)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,o,!1));const f=n;f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),a!==e.tagname&&(o+=o?"."+a:a);const h=r;if(this.isItStopNode(this.options.stopNodes,o,a)){let e="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)"/"===a[a.length-1]?(a=a.substr(0,a.length-1),o=o.substr(0,o.length-1),u=a):u=u.substr(0,u.length-1),r=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(a))r=s.closeIndex;else{const n=this.readStopNodeData(t,c,d+1);if(!n)throw new Error(`Unexpected end of ${c}`);r=n.i,e=n.tagContent}const i=new D(a);a!==u&&l&&(i[":@"]=this.buildAttributesMap(u,o,a)),e&&(e=this.parseTextData(e,a,o,!0,l,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),i.add(this.options.textNodeName,e),this.addChild(n,i,o,h)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===a[a.length-1]?(a=a.substr(0,a.length-1),o=o.substr(0,o.length-1),u=a):u=u.substr(0,u.length-1),this.options.transformTagName&&(a=this.options.transformTagName(a));const t=new D(a);a!==u&&l&&(t[":@"]=this.buildAttributesMap(u,o,a)),this.addChild(n,t,o,h),o=o.substr(0,o.lastIndexOf("."))}else{const t=new D(a);this.tagsNodeStack.push(n),a!==u&&l&&(t[":@"]=this.buildAttributesMap(u,o,a)),this.addChild(n,t,o,h),n=t}i="",r=d}}else i+=t[r]}return e.child};function X(t,e,n,i){this.options.captureMetaData||(i=void 0);const o=this.options.updateTag(e.tagname,n,e[":@"]);!1===o||("string"==typeof o?(e.tagname=o,t.addChild(e,i)):t.addChild(e,i))}const G=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const n=this.docTypeEntities[e];t=t.replace(n.regx,n.val)}for(let e in this.lastEntities){const n=this.lastEntities[e];t=t.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const n=this.htmlEntities[e];t=t.replace(n.regex,n.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function Z(t,e,n,i){return t&&(void 0===i&&(i=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,i))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function J(t,e,n){const i="*."+n;for(const n in t){const o=t[n];if(i===o||e===o)return!0}return!1}function Q(t,e,n,i){const o=t.indexOf(e,n);if(-1===o)throw new Error(i);return o+e.length-1}function tt(t,e,n,i=">"){const o=function(t,e,n=">"){let i,o="";for(let r=e;r<t.length;r++){let e=t[r];if(i)e===i&&(i="");else if('"'===e||"'"===e)i=e;else if(e===n[0]){if(!n[1])return{data:o,index:r};if(t[r+1]===n[1])return{data:o,index:r}}else"\t"===e&&(e=" ");o+=e}}(t,e+1,i);if(!o)return;let r=o.data;const s=o.index,a=r.search(/\s/);let c=r,u=!0;-1!==a&&(c=r.substring(0,a),r=r.substring(a+1).trimStart());const l=c;if(n){const t=c.indexOf(":");-1!==t&&(c=c.substr(t+1),u=c!==o.data.substr(t+1))}return{tagName:c,tagExp:r,closeIndex:s,attrExpPresent:u,rawTagName:l}}function et(t,e,n){const i=n;let o=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){const r=Q(t,">",n,`${e} is not closed`);if(t.substring(n+2,r).trim()===e&&(o--,0===o))return{tagContent:t.substring(i,n),i:r};n=r}else if("?"===t[n+1]){n=Q(t,"?>",n+1,"StopNode is not closed.")}else if("!--"===t.substr(n+1,3)){n=Q(t,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===t.substr(n+1,2)){n=Q(t,"]]>",n,"StopNode is not closed.")-2}else{const i=tt(t,n,">");if(i){(i&&i.tagName)===e&&"/"!==i.tagExp[i.tagExp.length-1]&&o++,n=i.closeIndex}}}function nt(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&L(t,n)}return function(t){return void 0!==t}(t)?t:""}const it=D.getMetaDataSymbol();function ot(t,e){return rt(t,e)}function rt(t,e,n){let i;const o={};for(let r=0;r<t.length;r++){const s=t[r],a=st(s);let c="";if(c=void 0===n?a:n+"."+a,a===e.textNodeName)void 0===i?i=s[a]:i+=""+s[a];else{if(void 0===a)continue;if(s[a]){let t=rt(s[a],e,c);const n=ct(t,e);void 0!==s[it]&&(t[it]=s[it]),s[":@"]?at(t,s[":@"],c,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==o[a]&&o.hasOwnProperty(a)?(Array.isArray(o[a])||(o[a]=[o[a]]),o[a].push(t)):e.isArray(a,c,n)?o[a]=[t]:o[a]=t}}}return"string"==typeof i?i.length>0&&(o[e.textNodeName]=i):void 0!==i&&(o[e.textNodeName]=i),o}function st(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function at(t,e,n,i){if(e){const o=Object.keys(e),r=o.length;for(let s=0;s<r;s++){const r=o[s];i.isArray(r,n+"."+r,!0,!0)?t[r]=[e[r]]:t[r]=e[r]}}}function ct(t,e){const{textNodeName:n}=e,i=Object.keys(t).length;return 0===i||!(1!==i||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}const ut={allowBooleanAttributes:!1,unpairedTags:[]};function lt(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function dt(t,e){const n=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const i=t.substr(n,e-n);if(e>5&&"xml"===i)return xt("InvalidXml","XML declaration allowed only at the start of the document.",yt(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function ft(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}const ht='"',pt="'";function mt(t,e){let n="",i="",o=!1;for(;e<t.length;e++){if(t[e]===ht||t[e]===pt)""===i?i=t[e]:i!==t[e]||(i="");else if(">"===t[e]&&""===i){o=!0;break}n+=t[e]}return""===i&&{value:n,index:e,tagClosed:o}}const gt=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function wt(t,e){const n=P(t,gt),i={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return xt("InvalidAttr","Attribute '"+n[t][2]+"' has no space in starting.",bt(n[t]));if(void 0!==n[t][3]&&void 0===n[t][4])return xt("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",bt(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return xt("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",bt(n[t]));const o=n[t][2];if(!Et(o))return xt("InvalidAttr","Attribute '"+o+"' is an invalid name.",bt(n[t]));if(i.hasOwnProperty(o))return xt("InvalidAttr","Attribute '"+o+"' is repeated.",bt(n[t]));i[o]=1}return!0}function vt(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function xt(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function Et(t){return A(t)}function yt(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function bt(t){return t.startIndex+t[1].length}const It=new class{constructor(t){this.externalEntities={},this.options=function(t){return Object.assign({},b,t)}(t)}parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});const n=function(t,e){e=Object.assign({},ut,e);const n=[];let i=!1,o=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let r=0;r<t.length;r++)if("<"===t[r]&&"?"===t[r+1]){if(r+=2,r=dt(t,r),r.err)return r}else{if("<"!==t[r]){if(lt(t[r]))continue;return xt("InvalidChar","char '"+t[r]+"' is not expected.",yt(t,r))}{let s=r;if(r++,"!"===t[r]){r=ft(t,r);continue}{let a=!1;"/"===t[r]&&(a=!0,r++);let c="";for(;r<t.length&&">"!==t[r]&&" "!==t[r]&&"\t"!==t[r]&&"\n"!==t[r]&&"\r"!==t[r];r++)c+=t[r];if(c=c.trim(),"/"===c[c.length-1]&&(c=c.substring(0,c.length-1),r--),!A(c)){let e;return e=0===c.trim().length?"Invalid space after '<'.":"Tag '"+c+"' is an invalid name.",xt("InvalidTag",e,yt(t,r))}const u=mt(t,r);if(!1===u)return xt("InvalidAttr","Attributes for '"+c+"' have open quote.",yt(t,r));let l=u.value;if(r=u.index,"/"===l[l.length-1]){const n=r-l.length;l=l.substring(0,l.length-1);const o=wt(l,e);if(!0!==o)return xt(o.err.code,o.err.msg,yt(t,n+o.err.line));i=!0}else if(a){if(!u.tagClosed)return xt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",yt(t,r));if(l.trim().length>0)return xt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",yt(t,s));if(0===n.length)return xt("InvalidTag","Closing tag '"+c+"' has not been opened.",yt(t,s));{const e=n.pop();if(c!==e.tagName){let n=yt(t,e.tagStartPos);return xt("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+c+"'.",yt(t,s))}0==n.length&&(o=!0)}}else{const a=wt(l,e);if(!0!==a)return xt(a.err.code,a.err.msg,yt(t,r-l.length+a.err.line));if(!0===o)return xt("InvalidXml","Multiple possible root nodes found.",yt(t,r));-1!==e.unpairedTags.indexOf(c)||n.push({tagName:c,tagStartPos:s}),i=!0}for(r++;r<t.length;r++)if("<"===t[r]){if("!"===t[r+1]){r++,r=ft(t,r);continue}if("?"!==t[r+1])break;if(r=dt(t,++r),r.err)return r}else if("&"===t[r]){const e=vt(t,r);if(-1==e)return xt("InvalidChar","char '&' is not expected.",yt(t,r));r=e}else if(!0===o&&!lt(t[r]))return xt("InvalidXml","Extra text at the end",yt(t,r));"<"===t[r]&&r--}}}return i?1==n.length?xt("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",yt(t,n[0].tagStartPos)):!(n.length>0)||xt("InvalidXml","Invalid '"+JSON.stringify(n.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):xt("InvalidXml","Start tag expected.",1)}(t,e);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new V(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:ot(i,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}static getMetaDataSymbol(){return D.getMetaDataSymbol()}}({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(t,e)=>""===e.trim()&&e.includes("\n")?"":void 0});It.addEntity("#xD","\r"),It.addEntity("#10","\n");const St=t=>{const e="#text";for(const n in t)t.hasOwnProperty(n)&&void 0!==t[n][e]?t[n]=t[n][e]:"object"==typeof t[n]&&null!==t[n]&&(t[n]=St(t[n]));return t};var Pt=n(118);const At=(t,e)=>(0,Pt.w)(t,e).then((t=>{if(t.length){let n;try{e=t,n=It.parse(e,!0)}catch(e){throw e&&"object"==typeof e&&Object.defineProperty(e,"$responseBodyText",{value:t}),e}const i="#text",o=Object.keys(n)[0],r=n[o];return r[i]&&(r[o]=r[i],delete r[i]),St(r)}var e;return{}})),Tt=async(t,e)=>{const n=await At(t,e);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n};var Dt=n(33),Ct=n(121),$t=n(122),Rt=n(123),Ot=n(912);const kt=async(t,e)=>{const n=pe;let i;return i=Je({...zt(t,e),[ge]:ve,[Ke]:me}),he(e,n,"/",void 0,i)},Nt=async(t,e)=>{const n=pe;let i;return i=Je({...Bt(t,e),[ge]:ye,[Ke]:me}),he(e,n,"/",void 0,i)},jt=async(t,e)=>{if(t.statusCode>=300)return _t(t,e);const n=await At(t.body,e);let i={};i=ee(n.AssumeRoleResult,e);return{$metadata:de(t),...i}},Ft=async(t,e)=>{if(t.statusCode>=300)return _t(t,e);const n=await At(t.body,e);let i={};i=ne(n.AssumeRoleWithWebIdentityResult,e);return{$metadata:de(t),...i}},_t=async(t,e)=>{const n={...t,body:await Tt(t.body,e)},i=Qe(t,n.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ut(n,e);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Vt(n,e);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await qt(n,e);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Yt(n,e);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Mt(n,e);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Lt(n,e);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Wt(n,e);default:const o=n.body;return fe({output:t,parsedBody:o.Error,errorCode:i})}},Ut=async(t,e)=>{const n=t.body,i=oe(n.Error,e),o=new h({$metadata:de(t),...i});return(0,u.M)(o,n)},Mt=async(t,e)=>{const n=t.body,i=re(n.Error,e),o=new y({$metadata:de(t),...i});return(0,u.M)(o,n)},Lt=async(t,e)=>{const n=t.body,i=se(n.Error,e),o=new w({$metadata:de(t),...i});return(0,u.M)(o,n)},Wt=async(t,e)=>{const n=t.body,i=ae(n.Error,e),o=new v({$metadata:de(t),...i});return(0,u.M)(o,n)},Vt=async(t,e)=>{const n=t.body,i=ce(n.Error,e),o=new p({$metadata:de(t),...i});return(0,u.M)(o,n)},qt=async(t,e)=>{const n=t.body,i=ue(n.Error,e),o=new m({$metadata:de(t),...i});return(0,u.M)(o,n)},Yt=async(t,e)=>{const n=t.body,i=le(n.Error,e),o=new g({$metadata:de(t),...i});return(0,u.M)(o,n)},zt=(t,e)=>{const n={};if(null!=t[_e]&&(n[_e]=t[_e]),null!=t[Ue]&&(n[Ue]=t[Ue]),null!=t[Re]){const i=Kt(t[Re],e);0===t[Re]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}if(null!=t[$e]&&(n[$e]=t[$e]),null!=t[Ae]&&(n[Ae]=t[Ae]),null!=t[Ye]){const i=Qt(t[Ye],e);0===t[Ye]?.length&&(n.Tags=[]),Object.entries(i).forEach((([t,e])=>{n[`Tags.${t}`]=e}))}if(null!=t[Be]){const i=Jt(t[Be],e);0===t[Be]?.length&&(n.TransitiveTagKeys=[]),Object.entries(i).forEach((([t,e])=>{n[`TransitiveTagKeys.${t}`]=e}))}if(null!=t[De]&&(n[De]=t[De]),null!=t[Ve]&&(n[Ve]=t[Ve]),null!=t[ze]&&(n[ze]=t[ze]),null!=t[We]&&(n[We]=t[We]),null!=t[ke]){const i=Gt(t[ke],e);0===t[ke]?.length&&(n.ProvidedContexts=[]),Object.entries(i).forEach((([t,e])=>{n[`ProvidedContexts.${t}`]=e}))}return n},Bt=(t,e)=>{const n={};if(null!=t[_e]&&(n[_e]=t[_e]),null!=t[Ue]&&(n[Ue]=t[Ue]),null!=t[Xe]&&(n[Xe]=t[Xe]),null!=t[Ne]&&(n[Ne]=t[Ne]),null!=t[Re]){const i=Kt(t[Re],e);0===t[Re]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}return null!=t[$e]&&(n[$e]=t[$e]),null!=t[Ae]&&(n[Ae]=t[Ae]),n},Kt=(t,e)=>{const n={};let i=1;for(const o of t){if(null===o)continue;const t=Ht(o,e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},Ht=(t,e)=>{const n={};return null!=t[Ge]&&(n[Ge]=t[Ge]),n},Xt=(t,e)=>{const n={};return null!=t[Oe]&&(n[Oe]=t[Oe]),null!=t[Pe]&&(n[Pe]=t[Pe]),n},Gt=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=Xt(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},Zt=(t,e)=>{const n={};return null!=t[Ce]&&(n[Ce]=t[Ce]),null!=t[He]&&(n[He]=t[He]),n},Jt=(t,e)=>{const n={};let i=1;for(const e of t)null!==e&&(n[`member.${i}`]=e,i++);return n},Qt=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=Zt(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},te=(t,e)=>{const n={};return null!=t[xe]&&(n[xe]=(0,Ct.lK)(t[xe])),null!=t[be]&&(n[be]=(0,Ct.lK)(t[be])),n},ee=(t,e)=>{const n={};return null!=t[Se]&&(n[Se]=ie(t[Se],e)),null!=t[Ee]&&(n[Ee]=te(t[Ee])),null!=t[je]&&(n[je]=(0,Ct.xW)(t[je])),null!=t[We]&&(n[We]=(0,Ct.lK)(t[We])),n},ne=(t,e)=>{const n={};return null!=t[Se]&&(n[Se]=ie(t[Se],e)),null!=t[Le]&&(n[Le]=(0,Ct.lK)(t[Le])),null!=t[Ee]&&(n[Ee]=te(t[Ee])),null!=t[je]&&(n[je]=(0,Ct.xW)(t[je])),null!=t[Fe]&&(n[Fe]=(0,Ct.lK)(t[Fe])),null!=t[Ie]&&(n[Ie]=(0,Ct.lK)(t[Ie])),null!=t[We]&&(n[We]=(0,Ct.lK)(t[We])),n},ie=(t,e)=>{const n={};return null!=t[we]&&(n[we]=(0,Ct.lK)(t[we])),null!=t[Me]&&(n[Me]=(0,Ct.lK)(t[Me])),null!=t[qe]&&(n[qe]=(0,Ct.lK)(t[qe])),null!=t[Te]&&(n[Te]=(0,Ct.Y0)((0,$t.t_)(t[Te]))),n},oe=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},re=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},se=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},ae=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},ce=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},ue=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},le=(t,e)=>{const n={};return null!=t[Ze]&&(n[Ze]=(0,Ct.lK)(t[Ze])),n},de=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),fe=(0,Rt.j)(l),he=async(t,e,n,i,o)=>{const{hostname:r,protocol:s="https",port:a,path:c}=await t.endpoint(),u={protocol:s,hostname:r,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:e};return void 0!==i&&(u.hostname=i),void 0!==o&&(u.body=o),new Dt.K(u)},pe={"content-type":"application/x-www-form-urlencoded"},me="2011-06-15",ge="Action",we="AccessKeyId",ve="AssumeRole",xe="AssumedRoleId",Ee="AssumedRoleUser",ye="AssumeRoleWithWebIdentity",be="Arn",Ie="Audience",Se="Credentials",Pe="ContextAssertion",Ae="DurationSeconds",Te="Expiration",De="ExternalId",Ce="Key",$e="Policy",Re="PolicyArns",Oe="ProviderArn",ke="ProvidedContexts",Ne="ProviderId",je="PackedPolicySize",Fe="Provider",_e="RoleArn",Ue="RoleSessionName",Me="SecretAccessKey",Le="SubjectFromWebIdentityToken",We="SourceIdentity",Ve="SerialNumber",qe="SessionToken",Ye="Tags",ze="TokenCode",Be="TransitiveTagKeys",Ke="Version",He="Value",Xe="WebIdentityToken",Ge="arn",Ze="message",Je=t=>Object.entries(t).map((([t,e])=>(0,Ot.$)(t)+"="+(0,Ot.$)(e))).join("&"),Qe=(t,e)=>void 0!==e.Error?.Code?e.Error.Code:404==t.statusCode?"NotFound":void 0;class tn extends(s.u.classBuilder().ep(a).m((function(t,e,n,i){return[(0,r.TM)(n,this.serialize,this.deserialize),(0,o.r)(n,t.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,f).ser(kt).de(jt).build()){}class en extends(s.u.classBuilder().ep(a).m((function(t,e,n,i){return[(0,r.TM)(n,this.serialize,this.deserialize),(0,o.r)(n,t.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(x,E).ser(Nt).de(Ft).build()){}const nn="us-east-1",on=t=>{if("string"==typeof t?.Arn){const e=t.Arn.split(":");if(e.length>4&&""!==e[4])return e[4]}},rn=async(t,e,n)=>{const i="function"==typeof t?await t():t,o="function"==typeof e?await e():e;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${i} (provider)`,`${o} (parent client)`,`${nn} (STS default)`),i??o??nn},sn=(t,e)=>{let n,o;return async(r,s)=>{if(o=r,!n){const{logger:i=t?.parentClientConfig?.logger,region:r,requestHandler:s=t?.parentClientConfig?.requestHandler,credentialProviderLogger:a}=t,c=await rn(r,t?.parentClientConfig?.region,a),u=!cn(s);n=new e({profile:t?.parentClientConfig?.profile,credentialDefaultProvider:()=>async()=>o,region:c,requestHandler:u?s:void 0,logger:i})}const{Credentials:a,AssumedRoleUser:c}=await n.send(new tn(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);const u=on(c),l={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...u&&{accountId:u}};return(0,i.g)(l,"CREDENTIALS_STS_ASSUME_ROLE","i"),l}},an=(t,e)=>{let n;return async o=>{if(!n){const{logger:i=t?.parentClientConfig?.logger,region:o,requestHandler:r=t?.parentClientConfig?.requestHandler,credentialProviderLogger:s}=t,a=await rn(o,t?.parentClientConfig?.region,s),c=!cn(r);n=new e({profile:t?.parentClientConfig?.profile,region:a,requestHandler:c?r:void 0,logger:i})}const{Credentials:r,AssumedRoleUser:s}=await n.send(new en(o));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);const a=on(s),c={accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...a&&{accountId:a}};return a&&(0,i.g)(c,"RESOLVED_ACCOUNT_ID","T"),(0,i.g)(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},cn=t=>"h2"===t?.metadata?.handlerProtocol;var un=n(32),ln=n(107),dn=n(108),fn=n(94),hn=n(104),pn=n(100),mn=n(111),gn=n(112),wn=n(113),vn=n(34),xn=n(101),En=n(83),yn=n(105),bn=n(98),In=n(38),Sn=n(35),Pn=n(37);const An=async(t,e,n)=>({operation:(0,Sn.u)(e).operation,region:await(0,Pn.t)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Tn=t=>{const e=[];if("AssumeRoleWithWebIdentity"===t.operation)e.push({schemeId:"smithy.api#noAuth"});else e.push(function(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}(t));return e},Dn=t=>{const e=(n=t,Object.assign(n,{stsClientCtor:Bi}));var n;const i=(0,In.h)(e);return Object.assign(i,{authSchemePreference:(0,Pn.t)(t.authSchemePreference??[])})};var Cn=n(915),$n=n(77),Rn=n(78),On=n(57),kn=n(81),Nn=n(93),jn=n(75),Fn=n(89),_n=n(92),Un=n(913),Mn=n(47),Ln=n(63),Wn=n(87),Vn=n(88),qn=n(79),Yn=n(84),zn=n(59),Bn=n(48),Kn=n(55),Hn=n(56),Xn=n(43),Gn=n(60),Zn=n(49),Jn=n(53),Qn=n(54),ti=n(52);const ei="required",ni="type",ii="fn",oi="argv",ri="ref",si=!1,ai=!0,ci="booleanEquals",ui="stringEquals",li="sigv4",di="us-east-1",fi="endpoint",hi="https://sts.{Region}.{PartitionResult#dnsSuffix}",pi="tree",mi="error",gi="getAttr",wi={[ei]:!1,[ni]:"String"},vi={[ei]:!0,default:!1,[ni]:"Boolean"},xi={[ri]:"Endpoint"},Ei={[ii]:"isSet",[oi]:[{[ri]:"Region"}]},yi={[ri]:"Region"},bi={[ii]:"aws.partition",[oi]:[yi],assign:"PartitionResult"},Ii={[ri]:"UseFIPS"},Si={[ri]:"UseDualStack"},Pi={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:li,signingName:"sts",signingRegion:di}]},headers:{}},Ai={},Ti={conditions:[{[ii]:ui,[oi]:[yi,"aws-global"]}],[fi]:Pi,[ni]:fi},Di={[ii]:ci,[oi]:[Ii,!0]},Ci={[ii]:ci,[oi]:[Si,!0]},$i={[ii]:gi,[oi]:[{[ri]:"PartitionResult"},"supportsFIPS"]},Ri={[ri]:"PartitionResult"},Oi={[ii]:ci,[oi]:[!0,{[ii]:gi,[oi]:[Ri,"supportsDualStack"]}]},ki=[{[ii]:"isSet",[oi]:[xi]}],Ni=[Di],ji=[Ci],Fi={version:"1.0",parameters:{Region:wi,UseDualStack:vi,UseFIPS:vi,Endpoint:wi,UseGlobalEndpoint:vi},rules:[{conditions:[{[ii]:ci,[oi]:[{[ri]:"UseGlobalEndpoint"},ai]},{[ii]:"not",[oi]:ki},Ei,bi,{[ii]:ci,[oi]:[Ii,si]},{[ii]:ci,[oi]:[Si,si]}],rules:[{conditions:[{[ii]:ui,[oi]:[yi,"ap-northeast-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"ap-south-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"ap-southeast-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"ap-southeast-2"]}],endpoint:Pi,[ni]:fi},Ti,{conditions:[{[ii]:ui,[oi]:[yi,"ca-central-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"eu-central-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"eu-north-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"eu-west-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"eu-west-2"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"eu-west-3"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"sa-east-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,di]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"us-east-2"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"us-west-1"]}],endpoint:Pi,[ni]:fi},{conditions:[{[ii]:ui,[oi]:[yi,"us-west-2"]}],endpoint:Pi,[ni]:fi},{endpoint:{url:hi,properties:{authSchemes:[{name:li,signingName:"sts",signingRegion:"{Region}"}]},headers:Ai},[ni]:fi}],[ni]:pi},{conditions:ki,rules:[{conditions:Ni,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ni]:mi},{conditions:ji,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ni]:mi},{endpoint:{url:xi,properties:Ai,headers:Ai},[ni]:fi}],[ni]:pi},{conditions:[Ei],rules:[{conditions:[bi],rules:[{conditions:[Di,Ci],rules:[{conditions:[{[ii]:ci,[oi]:[ai,$i]},Oi],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ai,headers:Ai},[ni]:fi}],[ni]:pi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ni]:mi}],[ni]:pi},{conditions:Ni,rules:[{conditions:[{[ii]:ci,[oi]:[$i,ai]}],rules:[{conditions:[{[ii]:ui,[oi]:[{[ii]:gi,[oi]:[Ri,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Ai,headers:Ai},[ni]:fi},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ai,headers:Ai},[ni]:fi}],[ni]:pi},{error:"FIPS is enabled but this partition does not support FIPS",[ni]:mi}],[ni]:pi},{conditions:ji,rules:[{conditions:[Oi],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ai,headers:Ai},[ni]:fi}],[ni]:pi},{error:"DualStack is enabled but this partition does not support DualStack",[ni]:mi}],[ni]:pi},Ti,{endpoint:{url:hi,properties:Ai,headers:Ai},[ni]:fi}],[ni]:pi}],[ni]:pi},{error:"Invalid Configuration: Missing Region",[ni]:mi}]},_i=new Jn.k({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ui=(t,e={})=>_i.get(t,(()=>(0,Qn.s)(Fi,{endpointParams:t,logger:e.logger})));ti.m.aws=Zn.UF;var Mi=n(76),Li=n(62),Wi=n(61);const Vi=t=>{(0,Wi.I)(process.version);const e=(0,Li.I)(t),n=()=>e().then(Mi.l),i=(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Kn.E,base64Encoder:t?.base64Encoder??Hn.n,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ui,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Tn,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new On.f2},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Un.m}],logger:t?.logger??new zn.N,serviceId:t?.serviceId??"STS",urlParser:t?.urlParser??Bn.D,utf8Decoder:t?.utf8Decoder??Xn.a,utf8Encoder:t?.utf8Encoder??Gn.P}))(t);(0,$n.I)(process.version);const o={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??(0,Ln.Z)(Rn.$,o),bodyLengthChecker:t?.bodyLengthChecker??qn.n,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,kn.pf)({serviceId:i.serviceId,clientVersion:Cn.rE}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4")||(async e=>await t.credentialDefaultProvider(e?.o||{})()),signer:new On.f2},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Un.m}],maxAttempts:t?.maxAttempts??(0,Ln.Z)(En.qs,t),region:t?.region??(0,Ln.Z)(jn.GG,{...jn.zH,...o}),requestHandler:Wn.$.create(t?.requestHandler??n),retryMode:t?.retryMode??(0,Ln.Z)({...En.kN,default:async()=>(await n()).retryMode||Yn.L0},t),sha256:t?.sha256??Mn.V.bind(null,"sha256"),streamCollector:t?.streamCollector??Vn.k,useDualstackEndpoint:t?.useDualstackEndpoint??(0,Ln.Z)(Fn.e$,o),useFipsEndpoint:t?.useFipsEndpoint??(0,Ln.Z)(_n.Ko,o),userAgentAppId:t?.userAgentAppId??(0,Ln.Z)(Nn.hV,o)}};var qi=n(95),Yi=n(97),zi=n(96);class Bi extends bn.K{config;constructor(...[t]){const e=Vi(t||{});super(e),this.initConfig=e;const n=(i=e,Object.assign(i,{useDualstackEndpoint:i.useDualstackEndpoint??!1,useFipsEndpoint:i.useFipsEndpoint??!1,useGlobalEndpoint:i.useGlobalEndpoint??!1,defaultSigningName:"sts"}));var i;const o=(0,fn.D)(n),r=(0,En.$z)(o),s=(0,pn.T)(r),a=(0,un.OV)(s),c=(0,xn.C)(a),u=((t,e)=>{const n=Object.assign((0,qi.R)(t),(0,zi.xA)(t),(0,Yi.e)(t),(t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,i=t.credentials;return{setHttpAuthScheme(t){const n=e.findIndex((e=>e.schemeId===t.schemeId));-1===n?e.push(t):e.splice(n,1,t)},httpAuthSchemes:()=>e,setHttpAuthSchemeProvider(t){n=t},httpAuthSchemeProvider:()=>n,setCredentials(t){i=t},credentials:()=>i}})(t));return e.forEach((t=>t.configure(n))),Object.assign(t,(0,qi.$)(n),(0,zi.uv)(n),(0,Yi.j)(n),{httpAuthSchemes:(i=n).httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()});var i})(Dn(c),t?.extensions||[]);this.config=u,this.middlewareStack.use((0,hn.sM)(this.config)),this.middlewareStack.use((0,yn.ey)(this.config)),this.middlewareStack.use((0,vn.vK)(this.config)),this.middlewareStack.use((0,un.TC)(this.config)),this.middlewareStack.use((0,ln.Y7)(this.config)),this.middlewareStack.use((0,dn.n)(this.config)),this.middlewareStack.use((0,mn.w)(this.config,{httpAuthSchemeParametersProvider:An,identityProviderConfigProvider:async t=>new gn.h({"aws.auth#sigv4":t.credentials})})),this.middlewareStack.use((0,wn.l)(this.config))}destroy(){super.destroy()}}const Ki=(t,e)=>e?class extends t{constructor(t){super(t);for(const t of e)this.middlewareStack.use(t)}}:t,Hi=(t={},e)=>sn(t,Ki(Bi,e)),Xi=(t={},e)=>an(t,Ki(Bi,e))},912:(t,e,n)=>{function i(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}n.d(e,{$:()=>i})},913:(t,e,n)=>{n.d(e,{m:()=>i});class i{async sign(t,e,n){return t}}},915:t=>{t.exports={rE:"3.901.0"}}};
3
- //# sourceMappingURL=717.index.js.map