mirror of
https://github.com/docker/login-action.git
synced 2024-11-23 19:29:02 +00:00
980c90b31a
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 lines
1.3 MiB
Generated
2 lines
1.3 MiB
Generated
require('./sourcemap-register.js');(()=>{var __webpack_modules__={87351:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=s(o(22037));const a=o(5278);function issueCommand(e,t,o){const r=new Command(e,t,o);process.stdout.write(r.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,o){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=o}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const o in this.properties){if(this.properties.hasOwnProperty(o)){const r=this.properties[o];if(r){if(t){t=false}else{e+=","}e+=`${o}=${escapeProperty(r)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=o(87351);const c=o(717);const l=o(5278);const u=s(o(22037));const d=s(o(71017));const p=o(98041);var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const o=l.toCommandValue(t);process.env[e]=o;const r=process.env["GITHUB_ENV"]||"";if(r){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}a.issueCommand("set-env",{name:e},o)}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const o=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!o){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return o}return o.trim()}t.getInput=getInput;function getMultilineInput(e,t){const o=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return o}return o.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const o=["true","True","TRUE"];const r=["false","False","FALSE"];const n=getInput(e,t);if(o.includes(n))return true;if(r.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const o=process.env["GITHUB_OUTPUT"]||"";if(o){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(u.EOL);a.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let o;try{o=yield t()}finally{endGroup()}return o}))}t.group=group;function saveState(e,t){const o=process.env["GITHUB_STATE"]||"";if(o){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var m=o(81327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return m.summary}});var g=o(81327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=o(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.toPlatformPath}})},717:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=s(o(57147));const a=s(o(22037));const c=o(75840);const l=o(5278);function issueFileCommand(e,t){const o=process.env[`GITHUB_${e}`];if(!o){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(o)){throw new Error(`Missing file at path: ${o}`)}i.appendFileSync(o,`${l.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const o=`ghadelimiter_${c.v4()}`;const r=l.toCommandValue(t);if(e.includes(o)){throw new Error(`Unexpected input: name should not contain the delimiter "${o}"`)}if(r.includes(o)){throw new Error(`Unexpected input: value should not contain the delimiter "${o}"`)}return`${e}<<${o}${a.EOL}${r}${a.EOL}${o}`}t.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(e,t,o){"use strict";var r=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=o(96255);const s=o(35526);const i=o(42186);class OidcClient{static createHttpClient(e=true,t=10){const o={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],o)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const o=OidcClient.createHttpClient();const r=yield o.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(t=r.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const o=encodeURIComponent(e);t=`${t}&audience=${o}`}i.debug(`ID token url is ${t}`);const o=yield OidcClient.getCall(t);i.setSecret(o);return o}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=s(o(71017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},81327:function(e,t,o){"use strict";var r=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const n=o(22037);const s=o(57147);const{access:i,appendFile:a,writeFile:c}=s.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,s.constants.R_OK|s.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,o={}){const r=Object.entries(o).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}</${e}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const o=yield this.filePath();const r=t?c:a;yield r(o,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const o=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),o);return this.addRaw(r).addEOL()}addList(e,t=false){const o=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(o,r);return this.addRaw(n).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:o,colspan:r,rowspan:n}=e;const s=t?"th":"td";const i=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(s,o,i)})).join("");return this.wrap("tr",t)})).join("");const o=this.wrap("table",t);return this.addRaw(o).addEOL()}addDetails(e,t){const o=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(o).addEOL()}addImage(e,t,o){const{width:r,height:n}=o||{};const s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n});const i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const o=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(o)?o:"h1";const n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const o=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,o);return this.addRaw(r).addEOL()}addLink(e,t){const o=this.wrap("a",e,{href:t});return this.addRaw(o).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},71514:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=o(71576);const c=s(o(88159));function exec(e,t,o){return i(this,void 0,void 0,(function*(){const r=c.argStringToArray(e);if(r.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=r[0];t=r.slice(1).concat(t||[]);const s=new c.ToolRunner(n,t,o);return s.exec()}))}t.exec=exec;function getExecOutput(e,t,o){var r,n;return i(this,void 0,void 0,(function*(){let s="";let i="";const c=new a.StringDecoder("utf8");const l=new a.StringDecoder("utf8");const u=(r=o===null||o===void 0?void 0:o.listeners)===null||r===void 0?void 0:r.stdout;const d=(n=o===null||o===void 0?void 0:o.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{i+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{s+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},o===null||o===void 0?void 0:o.listeners),{stdout:stdOutListener,stderr:stdErrListener});const f=yield exec(e,t,Object.assign(Object.assign({},o),{listeners:p}));s+=c.end();i+=l.end();return{exitCode:f,stdout:s,stderr:i}}))}t.getExecOutput=getExecOutput},88159:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=s(o(22037));const c=s(o(82361));const l=s(o(32081));const u=s(o(71017));const d=s(o(47351));const p=s(o(81962));const f=o(39512);const m=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,o){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=o||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const o=this._getSpawnFileName();const r=this._getSpawnArgs(e);let n=t?"":"[command]";if(m){if(this._isCmdFile()){n+=o;for(const e of r){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${o}"`;for(const e of r){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(o);for(const e of r){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=o;for(const e of r){n+=` ${e}`}}return n}_processLineBuffer(e,t,o){try{let r=t+e.toString();let n=r.indexOf(a.EOL);while(n>-1){const e=r.substring(0,n);o(e);r=r.substring(n+a.EOL.length);n=r.indexOf(a.EOL)}return r}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const o of this.args){t+=" ";t+=e.windowsVerbatimArguments?o:this._windowsQuoteCmdArg(o)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let o=false;for(const r of e){if(t.some((e=>e===r))){o=true;break}}if(!o){return e}let r='"';let n=true;for(let t=e.length;t>0;t--){r+=e[t-1];if(n&&e[t-1]==="\\"){r+="\\"}else if(e[t-1]==='"'){n=true;r+='"'}else{n=false}}r+='"';return r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let o=true;for(let r=e.length;r>0;r--){t+=e[r-1];if(o&&e[r-1]==="\\"){t+="\\"}else if(e[r-1]==='"'){o=true;t+="\\"}else{o=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const o={};o.cwd=e.cwd;o.env=e.env;o["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){o.argv0=`"${t}"`}return o}exec(){return i(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const o=this._cloneExecOptions(this.options);if(!o.silent&&o.outStream){o.outStream.write(this._getCommandString(o)+a.EOL)}const r=new ExecState(o,this.toolPath);r.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const s=l.spawn(n,this._getSpawnArgs(o),this._getSpawnOptions(this.options,n));let i="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!o.silent&&o.outStream){o.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(s.stderr){s.stderr.on("data",(e=>{r.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!o.silent&&o.errStream&&o.outStream){const t=o.failOnStdErr?o.errStream:o.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{r.processError=e.message;r.processExited=true;r.processClosed=true;r.CheckComplete()}));s.on("exit",(e=>{r.processExitCode=e;r.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);r.CheckComplete()}));s.on("close",(e=>{r.processExitCode=e;r.processExited=true;r.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);r.CheckComplete()}));r.on("done",((o,r)=>{if(i.length>0){this.emit("stdline",i)}if(c.length>0){this.emit("errline",c)}s.removeAllListeners();if(o){t(o)}else{e(r)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let o=false;let r=false;let n="";function append(e){if(r&&e!=='"'){n+="\\"}n+=e;r=false}for(let s=0;s<e.length;s++){const i=e.charAt(s);if(i==='"'){if(!r){o=!o}else{append(i)}continue}if(i==="\\"&&r){append(i);continue}if(i==="\\"&&o){r=true;continue}if(i===" "&&!o){if(n.length>0){t.push(n);n=""}continue}append(i)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=f.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},35526:function(e,t){"use strict";var o=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return o(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return o(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return o(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=s(o(13685));const c=s(o(95687));const l=s(o(19835));const u=s(o(74294));var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var f;(function(e){e["ApplicationJson"]="application/json"})(f=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const m=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const g=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const y=["OPTIONS","GET","DELETE","HEAD"];const h=10;const E=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,o){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=o;if(o){if(o.ignoreSslError!=null){this._ignoreSslError=o.ignoreSslError}this._socketTimeout=o.socketTimeout;if(o.allowRedirects!=null){this._allowRedirects=o.allowRedirects}if(o.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=o.allowRedirectDowngrade}if(o.maxRedirects!=null){this._maxRedirects=Math.max(o.maxRedirects,0)}if(o.keepAlive!=null){this._keepAlive=o.keepAlive}if(o.allowRetries!=null){this._allowRetries=o.allowRetries}if(o.maxRetries!=null){this._maxRetries=o.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,o){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,o||{})}))}patch(e,t,o){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,o||{})}))}put(e,t,o){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,o||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,o,r){return i(this,void 0,void 0,(function*(){return this.request(e,t,o,r)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,f.ApplicationJson);const o=yield this.get(e,t);return this._processResponse(o,this.requestOptions)}))}postJson(e,t,o={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);o[p.Accept]=this._getExistingOrDefaultHeader(o,p.Accept,f.ApplicationJson);o[p.ContentType]=this._getExistingOrDefaultHeader(o,p.ContentType,f.ApplicationJson);const n=yield this.post(e,r,o);return this._processResponse(n,this.requestOptions)}))}putJson(e,t,o={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);o[p.Accept]=this._getExistingOrDefaultHeader(o,p.Accept,f.ApplicationJson);o[p.ContentType]=this._getExistingOrDefaultHeader(o,p.ContentType,f.ApplicationJson);const n=yield this.put(e,r,o);return this._processResponse(n,this.requestOptions)}))}patchJson(e,t,o={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);o[p.Accept]=this._getExistingOrDefaultHeader(o,p.Accept,f.ApplicationJson);o[p.ContentType]=this._getExistingOrDefaultHeader(o,p.ContentType,f.ApplicationJson);const n=yield this.patch(e,r,o);return this._processResponse(n,this.requestOptions)}))}request(e,t,o,r){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(t);let s=this._prepareRequest(e,n,r);const i=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(s,o);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,s,o)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&m.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(n.protocol==="https:"&&n.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==n.hostname){for(const e in r){if(e.toLowerCase()==="authorization"){delete r[e]}}}s=this._prepareRequest(e,a,r);c=yield this.requestRaw(s,o);t--}if(!c.message.statusCode||!g.includes(c.message.statusCode)){return c}a+=1;if(a<i){yield c.readBody();yield this._performExponentialBackoff(a)}}while(a<i);return c}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((o,r)=>{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{o(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,o){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;o(e,t)}}const n=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){n.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){n.end()}));t.pipe(n)}else{n.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,o){const r={};r.parsedUrl=t;const n=r.parsedUrl.protocol==="https:";r.httpModule=n?c:a;const s=n?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(o);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,o){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||o}_getAgent(e){let t;const o=l.getProxyUrl(e);const r=o&&o.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(this._keepAlive&&!r){t=this._agent}if(t){return t}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(o&&o.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`}),{host:o.hostname,port:o.port})};let r;const i=o.protocol==="https:";if(n){r=i?u.httpsOverHttps:u.httpsOverHttp}else{r=i?u.httpOverHttps:u.httpOverHttp}t=r(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=n?new c.Agent(e):new a.Agent(e);this._agent=t}if(!t){t=n?c.globalAgent:a.globalAgent}if(n&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(h,e);const t=E*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((o,r)=>i(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===d.NotFound){o(s)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}s.result=i}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${n})`}const t=new HttpClientError(e,n);t.result=s.result;r(t)}else{o(s)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,o)=>(t[o.toLowerCase()]=e[o],t)),{})},19835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const o=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(o){return new URL(o)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const r=[e.hostname.toUpperCase()];if(typeof o==="number"){r.push(`${r[0]}:${o}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(r.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},81962:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=s(o(57147));const l=s(o(71017));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,o=false){return i(this,void 0,void 0,(function*(){const r=o?yield t.stat(e):yield t.lstat(e);return r.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,o){return i(this,void 0,void 0,(function*(){let r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(o.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const s of o){e=n+s;r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){try{const o=l.dirname(e);const r=l.basename(e).toUpperCase();for(const n of yield t.readdir(o)){if(r===n.toUpperCase()){e=l.join(o,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},47351:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=o(39491);const c=s(o(32081));const l=s(o(71017));const u=o(73837);const d=s(o(81962));const p=u.promisify(c.exec);const f=u.promisify(c.execFile);function cp(e,t,o={}){return i(this,void 0,void 0,(function*(){const{force:r,recursive:n,copySourceDirectory:s}=readCopyOptions(o);const i=(yield d.exists(t))?yield d.stat(t):null;if(i&&i.isFile()&&!r){return}const a=i&&i.isDirectory()&&s?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,r)}}else{if(l.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,r)}}))}t.cp=cp;function mv(e,t,o={}){return i(this,void 0,void 0,(function*(){if(yield d.exists(t)){let r=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));r=yield d.exists(t)}if(r){if(o.force==null||o.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield f(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const o=yield findInPath(e);if(o&&o.length>0){return o[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const o=yield d.tryGetExecutablePath(e,t);if(o){return[o]}return[]}if(e.includes(l.sep)){return[]}const o=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){o.push(e)}}}const r=[];for(const n of o){const o=yield d.tryGetExecutablePath(l.join(n,e),t);if(o){r.push(o)}}return r}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const o=Boolean(e.recursive);const r=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:o,copySourceDirectory:r}}function cpDirRecursive(e,t,o,r){return i(this,void 0,void 0,(function*(){if(o>=255)return;o++;yield mkdirP(t);const n=yield d.readdir(e);for(const s of n){const n=`${e}/${s}`;const i=`${t}/${s}`;const a=yield d.lstat(n);if(a.isDirectory()){yield cpDirRecursive(n,i,o,r)}else{yield copyFile(n,i,r)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,o){return i(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const o=yield d.readlink(e);yield d.symlink(o,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||o){yield d.copyFile(e,t)}}))}},86087:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const r=o(25356);const n=o(56517);const s=o(55490);const i=o(39633);const a=o(60467);const c=o(62528);const l=o(22776);const u=o(47670);const d=o(78696);const p=o(82218);const f=o(92674);const m=o(26518);const g=o(53189);const y=o(8562);const h=o(83675);const E=o(80575);const v=o(86486);const _=o(46805);const S=o(83753);const w=o(79838);const P=o(39869);const b=o(66689);const C=o(97429);const R=o(30608);class ECRPUBLIC extends R.ECRPUBLICClient{batchCheckLayerAvailability(e,t,o){const n=new r.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}batchDeleteImage(e,t,o){const r=new n.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}completeLayerUpload(e,t,o){const r=new s.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}createRepository(e,t,o){const r=new i.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteRepository(e,t,o){const r=new a.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteRepositoryPolicy(e,t,o){const r=new c.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeImages(e,t,o){const r=new l.DescribeImagesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeImageTags(e,t,o){const r=new u.DescribeImageTagsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeRegistries(e,t,o){const r=new d.DescribeRegistriesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeRepositories(e,t,o){const r=new p.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getAuthorizationToken(e,t,o){const r=new f.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRegistryCatalogData(e,t,o){const r=new m.GetRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRepositoryCatalogData(e,t,o){const r=new g.GetRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRepositoryPolicy(e,t,o){const r=new y.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}initiateLayerUpload(e,t,o){const r=new h.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listTagsForResource(e,t,o){const r=new E.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putImage(e,t,o){const r=new v.PutImageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putRegistryCatalogData(e,t,o){const r=new _.PutRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putRepositoryCatalogData(e,t,o){const r=new S.PutRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}setRepositoryPolicy(e,t,o){const r=new w.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}tagResource(e,t,o){const r=new P.TagResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}untagResource(e,t,o){const r=new b.UntagResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}uploadLayerPart(e,t,o){const r=new C.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.ECRPUBLIC=ECRPUBLIC},30608:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=void 0;const r=o(56535);const n=o(78110);const s=o(46478);const i=o(78126);const a=o(60874);const c=o(83660);const l=o(14935);const u=o(15457);const d=o(73514);const p=o(49324);class ECRPUBLICClient extends d.Client{constructor(e){const t=(0,p.getRuntimeConfig)(e);const o=(0,r.resolveRegionConfig)(t);const d=(0,r.resolveEndpointsConfig)(o);const f=(0,c.resolveRetryConfig)(d);const m=(0,s.resolveHostHeaderConfig)(f);const g=(0,l.resolveAwsAuthConfig)(m);const y=(0,u.resolveUserAgentConfig)(g);super(y);this.config=y;this.middlewareStack.use((0,c.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,i.getLoggerPlugin)(this.config));this.middlewareStack.use((0,a.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,l.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},25356:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class BatchCheckLayerAvailabilityCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="BatchCheckLayerAvailabilityCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.BatchCheckLayerAvailabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchCheckLayerAvailabilityResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},56517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class BatchDeleteImageCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="BatchDeleteImageCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.BatchDeleteImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchDeleteImageResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},55490:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class CompleteLayerUploadCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="CompleteLayerUploadCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.CompleteLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CompleteLayerUploadResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},39633:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class CreateRepositoryCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="CreateRepositoryCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.CreateRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CreateRepositoryResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},60467:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DeleteRepositoryCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DeleteRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},62528:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DeleteRepositoryPolicyCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryPolicyCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DeleteRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},47670:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DescribeImageTagsCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeImageTagsCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DescribeImageTagsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImageTagsResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DescribeImageTagsCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DescribeImageTagsCommand)(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},22776:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DescribeImagesCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeImagesCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DescribeImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImagesResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},78696:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DescribeRegistriesCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeRegistriesCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DescribeRegistriesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRegistriesResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DescribeRegistriesCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DescribeRegistriesCommand)(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},82218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class DescribeRepositoriesCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeRepositoriesCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.DescribeRepositoriesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRepositoriesResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},92674:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class GetAuthorizationTokenCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetAuthorizationTokenCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.GetAuthorizationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetAuthorizationTokenResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},26518:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class GetRegistryCatalogDataCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRegistryCatalogDataCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.GetRegistryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRegistryCatalogDataResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1GetRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1GetRegistryCatalogDataCommand)(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},53189:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class GetRepositoryCatalogDataCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRepositoryCatalogDataCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.GetRepositoryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRepositoryCatalogDataResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1GetRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1GetRepositoryCatalogDataCommand)(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class GetRepositoryPolicyCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRepositoryPolicyCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.GetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},83675:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class InitiateLayerUploadCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="InitiateLayerUploadCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.InitiateLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.InitiateLayerUploadResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},80575:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class ListTagsForResourceCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="ListTagsForResourceCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.ListTagsForResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListTagsForResourceResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},86486:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class PutImageCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutImageCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.PutImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutImageResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1PutImageCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},46805:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class PutRegistryCatalogDataCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutRegistryCatalogDataCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.PutRegistryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRegistryCatalogDataResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1PutRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1PutRegistryCatalogDataCommand)(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},83753:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class PutRepositoryCatalogDataCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutRepositoryCatalogDataCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.PutRepositoryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRepositoryCatalogDataResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1PutRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1PutRepositoryCatalogDataCommand)(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},79838:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class SetRepositoryPolicyCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="SetRepositoryPolicyCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.SetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.SetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},39869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class TagResourceCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="TagResourceCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.TagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.TagResourceResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1TagResourceCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},66689:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class UntagResourceCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="UntagResourceCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.UntagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UntagResourceResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1UntagResourceCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},97429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const r=o(33526);const n=o(73514);const s=o(38818);const i=o(64170);class UploadLayerPartCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="UploadLayerPartCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.UploadLayerPartRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UploadLayerPartResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_json1_1UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_json1_1UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},65442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(25356),t);r.__exportStar(o(56517),t);r.__exportStar(o(55490),t);r.__exportStar(o(39633),t);r.__exportStar(o(60467),t);r.__exportStar(o(62528),t);r.__exportStar(o(47670),t);r.__exportStar(o(22776),t);r.__exportStar(o(78696),t);r.__exportStar(o(82218),t);r.__exportStar(o(92674),t);r.__exportStar(o(26518),t);r.__exportStar(o(53189),t);r.__exportStar(o(8562),t);r.__exportStar(o(83675),t);r.__exportStar(o(80575),t);r.__exportStar(o(86486),t);r.__exportStar(o(46805),t);r.__exportStar(o(83753),t);r.__exportStar(o(79838),t);r.__exportStar(o(39869),t);r.__exportStar(o(66689),t);r.__exportStar(o(97429),t)},68593:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const r=o(56535);const n={};const s={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com.cn",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.c2s.ic.gov",tags:[]},{hostname:"api.ecr-public-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.sc2s.sgov.gov",tags:[]},{hostname:"api.ecr-public-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>(0,r.getRegionInfo)(e,{...t,signingService:"ecr-public",regionHash:n,partitionHash:s});t.defaultRegionInfoProvider=defaultRegionInfoProvider},42308:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const r=o(4351);r.__exportStar(o(86087),t);r.__exportStar(o(30608),t);r.__exportStar(o(65442),t);r.__exportStar(o(30183),t);r.__exportStar(o(75945),t);var n=o(48278);Object.defineProperty(t,"ECRPUBLICServiceException",{enumerable:true,get:function(){return n.ECRPUBLICServiceException}})},48278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const r=o(73514);class ECRPUBLICServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},30183:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(38818),t)},38818:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ImageDetailFilterSensitiveLog=t.DescribeImagesRequestFilterSensitiveLog=t.DeleteRepositoryPolicyResponseFilterSensitiveLog=t.DeleteRepositoryPolicyRequestFilterSensitiveLog=t.DeleteRepositoryResponseFilterSensitiveLog=t.DeleteRepositoryRequestFilterSensitiveLog=t.CreateRepositoryResponseFilterSensitiveLog=t.RepositoryFilterSensitiveLog=t.RepositoryCatalogDataFilterSensitiveLog=t.CreateRepositoryRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.RepositoryCatalogDataInputFilterSensitiveLog=t.CompleteLayerUploadResponseFilterSensitiveLog=t.CompleteLayerUploadRequestFilterSensitiveLog=t.BatchDeleteImageResponseFilterSensitiveLog=t.ImageFailureFilterSensitiveLog=t.BatchDeleteImageRequestFilterSensitiveLog=t.ImageIdentifierFilterSensitiveLog=t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=t.LayerFilterSensitiveLog=t.LayerFailureFilterSensitiveLog=t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=t.AuthorizationDataFilterSensitiveLog=t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RegistryAliasStatus=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.UnsupportedCommandException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.ImageFailureCode=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;t.UploadLayerPartResponseFilterSensitiveLog=t.UploadLayerPartRequestFilterSensitiveLog=t.UntagResourceResponseFilterSensitiveLog=t.UntagResourceRequestFilterSensitiveLog=t.TagResourceResponseFilterSensitiveLog=t.TagResourceRequestFilterSensitiveLog=t.SetRepositoryPolicyResponseFilterSensitiveLog=t.SetRepositoryPolicyRequestFilterSensitiveLog=t.PutRepositoryCatalogDataResponseFilterSensitiveLog=t.PutRepositoryCatalogDataRequestFilterSensitiveLog=t.PutRegistryCatalogDataResponseFilterSensitiveLog=t.PutRegistryCatalogDataRequestFilterSensitiveLog=t.PutImageResponseFilterSensitiveLog=t.PutImageRequestFilterSensitiveLog=t.ListTagsForResourceResponseFilterSensitiveLog=t.ListTagsForResourceRequestFilterSensitiveLog=t.InitiateLayerUploadResponseFilterSensitiveLog=t.InitiateLayerUploadRequestFilterSensitiveLog=t.ImageFilterSensitiveLog=t.GetRepositoryPolicyResponseFilterSensitiveLog=t.GetRepositoryPolicyRequestFilterSensitiveLog=t.GetRepositoryCatalogDataResponseFilterSensitiveLog=t.GetRepositoryCatalogDataRequestFilterSensitiveLog=t.GetRegistryCatalogDataResponseFilterSensitiveLog=t.RegistryCatalogDataFilterSensitiveLog=t.GetRegistryCatalogDataRequestFilterSensitiveLog=t.GetAuthorizationTokenResponseFilterSensitiveLog=t.GetAuthorizationTokenRequestFilterSensitiveLog=t.DescribeRepositoriesResponseFilterSensitiveLog=t.DescribeRepositoriesRequestFilterSensitiveLog=t.DescribeRegistriesResponseFilterSensitiveLog=t.RegistryFilterSensitiveLog=t.RegistryAliasFilterSensitiveLog=t.DescribeRegistriesRequestFilterSensitiveLog=t.DescribeImageTagsResponseFilterSensitiveLog=t.ImageTagDetailFilterSensitiveLog=t.ReferencedImageDetailFilterSensitiveLog=t.DescribeImageTagsRequestFilterSensitiveLog=t.DescribeImagesResponseFilterSensitiveLog=void 0;const r=o(48278);var n;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(n=t.LayerFailureCode||(t.LayerFailureCode={}));var s;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(s=t.LayerAvailability||(t.LayerAvailability={}));class InvalidParameterException extends r.ECRPUBLICServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});this.name="RegistryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;var i;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(i=t.ImageFailureCode||(t.ImageFailureCode={}));class EmptyUploadException extends r.ECRPUBLICServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends r.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends r.ECRPUBLICServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends r.ECRPUBLICServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UnsupportedCommandException extends r.ECRPUBLICServiceException{constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});this.name="UnsupportedCommandException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;class UploadNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends r.ECRPUBLICServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends r.ECRPUBLICServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends r.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends r.ECRPUBLICServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends r.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;var a;(function(e){e["ACTIVE"]="ACTIVE";e["PENDING"]="PENDING";e["REJECTED"]="REJECTED"})(a=t.RegistryAliasStatus||(t.RegistryAliasStatus={}));class ImageAlreadyExistsException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends r.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends r.ECRPUBLICServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;const AuthorizationDataFilterSensitiveLog=e=>({...e});t.AuthorizationDataFilterSensitiveLog=AuthorizationDataFilterSensitiveLog;const BatchCheckLayerAvailabilityRequestFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=BatchCheckLayerAvailabilityRequestFilterSensitiveLog;const LayerFailureFilterSensitiveLog=e=>({...e});t.LayerFailureFilterSensitiveLog=LayerFailureFilterSensitiveLog;const LayerFilterSensitiveLog=e=>({...e});t.LayerFilterSensitiveLog=LayerFilterSensitiveLog;const BatchCheckLayerAvailabilityResponseFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=BatchCheckLayerAvailabilityResponseFilterSensitiveLog;const ImageIdentifierFilterSensitiveLog=e=>({...e});t.ImageIdentifierFilterSensitiveLog=ImageIdentifierFilterSensitiveLog;const BatchDeleteImageRequestFilterSensitiveLog=e=>({...e});t.BatchDeleteImageRequestFilterSensitiveLog=BatchDeleteImageRequestFilterSensitiveLog;const ImageFailureFilterSensitiveLog=e=>({...e});t.ImageFailureFilterSensitiveLog=ImageFailureFilterSensitiveLog;const BatchDeleteImageResponseFilterSensitiveLog=e=>({...e});t.BatchDeleteImageResponseFilterSensitiveLog=BatchDeleteImageResponseFilterSensitiveLog;const CompleteLayerUploadRequestFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadRequestFilterSensitiveLog=CompleteLayerUploadRequestFilterSensitiveLog;const CompleteLayerUploadResponseFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadResponseFilterSensitiveLog=CompleteLayerUploadResponseFilterSensitiveLog;const RepositoryCatalogDataInputFilterSensitiveLog=e=>({...e});t.RepositoryCatalogDataInputFilterSensitiveLog=RepositoryCatalogDataInputFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const CreateRepositoryRequestFilterSensitiveLog=e=>({...e});t.CreateRepositoryRequestFilterSensitiveLog=CreateRepositoryRequestFilterSensitiveLog;const RepositoryCatalogDataFilterSensitiveLog=e=>({...e});t.RepositoryCatalogDataFilterSensitiveLog=RepositoryCatalogDataFilterSensitiveLog;const RepositoryFilterSensitiveLog=e=>({...e});t.RepositoryFilterSensitiveLog=RepositoryFilterSensitiveLog;const CreateRepositoryResponseFilterSensitiveLog=e=>({...e});t.CreateRepositoryResponseFilterSensitiveLog=CreateRepositoryResponseFilterSensitiveLog;const DeleteRepositoryRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryRequestFilterSensitiveLog=DeleteRepositoryRequestFilterSensitiveLog;const DeleteRepositoryResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryResponseFilterSensitiveLog=DeleteRepositoryResponseFilterSensitiveLog;const DeleteRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyRequestFilterSensitiveLog=DeleteRepositoryPolicyRequestFilterSensitiveLog;const DeleteRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyResponseFilterSensitiveLog=DeleteRepositoryPolicyResponseFilterSensitiveLog;const DescribeImagesRequestFilterSensitiveLog=e=>({...e});t.DescribeImagesRequestFilterSensitiveLog=DescribeImagesRequestFilterSensitiveLog;const ImageDetailFilterSensitiveLog=e=>({...e});t.ImageDetailFilterSensitiveLog=ImageDetailFilterSensitiveLog;const DescribeImagesResponseFilterSensitiveLog=e=>({...e});t.DescribeImagesResponseFilterSensitiveLog=DescribeImagesResponseFilterSensitiveLog;const DescribeImageTagsRequestFilterSensitiveLog=e=>({...e});t.DescribeImageTagsRequestFilterSensitiveLog=DescribeImageTagsRequestFilterSensitiveLog;const ReferencedImageDetailFilterSensitiveLog=e=>({...e});t.ReferencedImageDetailFilterSensitiveLog=ReferencedImageDetailFilterSensitiveLog;const ImageTagDetailFilterSensitiveLog=e=>({...e});t.ImageTagDetailFilterSensitiveLog=ImageTagDetailFilterSensitiveLog;const DescribeImageTagsResponseFilterSensitiveLog=e=>({...e});t.DescribeImageTagsResponseFilterSensitiveLog=DescribeImageTagsResponseFilterSensitiveLog;const DescribeRegistriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRegistriesRequestFilterSensitiveLog=DescribeRegistriesRequestFilterSensitiveLog;const RegistryAliasFilterSensitiveLog=e=>({...e});t.RegistryAliasFilterSensitiveLog=RegistryAliasFilterSensitiveLog;const RegistryFilterSensitiveLog=e=>({...e});t.RegistryFilterSensitiveLog=RegistryFilterSensitiveLog;const DescribeRegistriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRegistriesResponseFilterSensitiveLog=DescribeRegistriesResponseFilterSensitiveLog;const DescribeRepositoriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesRequestFilterSensitiveLog=DescribeRepositoriesRequestFilterSensitiveLog;const DescribeRepositoriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesResponseFilterSensitiveLog=DescribeRepositoriesResponseFilterSensitiveLog;const GetAuthorizationTokenRequestFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenRequestFilterSensitiveLog=GetAuthorizationTokenRequestFilterSensitiveLog;const GetAuthorizationTokenResponseFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenResponseFilterSensitiveLog=GetAuthorizationTokenResponseFilterSensitiveLog;const GetRegistryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.GetRegistryCatalogDataRequestFilterSensitiveLog=GetRegistryCatalogDataRequestFilterSensitiveLog;const RegistryCatalogDataFilterSensitiveLog=e=>({...e});t.RegistryCatalogDataFilterSensitiveLog=RegistryCatalogDataFilterSensitiveLog;const GetRegistryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.GetRegistryCatalogDataResponseFilterSensitiveLog=GetRegistryCatalogDataResponseFilterSensitiveLog;const GetRepositoryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryCatalogDataRequestFilterSensitiveLog=GetRepositoryCatalogDataRequestFilterSensitiveLog;const GetRepositoryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryCatalogDataResponseFilterSensitiveLog=GetRepositoryCatalogDataResponseFilterSensitiveLog;const GetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyRequestFilterSensitiveLog=GetRepositoryPolicyRequestFilterSensitiveLog;const GetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyResponseFilterSensitiveLog=GetRepositoryPolicyResponseFilterSensitiveLog;const ImageFilterSensitiveLog=e=>({...e});t.ImageFilterSensitiveLog=ImageFilterSensitiveLog;const InitiateLayerUploadRequestFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadRequestFilterSensitiveLog=InitiateLayerUploadRequestFilterSensitiveLog;const InitiateLayerUploadResponseFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadResponseFilterSensitiveLog=InitiateLayerUploadResponseFilterSensitiveLog;const ListTagsForResourceRequestFilterSensitiveLog=e=>({...e});t.ListTagsForResourceRequestFilterSensitiveLog=ListTagsForResourceRequestFilterSensitiveLog;const ListTagsForResourceResponseFilterSensitiveLog=e=>({...e});t.ListTagsForResourceResponseFilterSensitiveLog=ListTagsForResourceResponseFilterSensitiveLog;const PutImageRequestFilterSensitiveLog=e=>({...e});t.PutImageRequestFilterSensitiveLog=PutImageRequestFilterSensitiveLog;const PutImageResponseFilterSensitiveLog=e=>({...e});t.PutImageResponseFilterSensitiveLog=PutImageResponseFilterSensitiveLog;const PutRegistryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.PutRegistryCatalogDataRequestFilterSensitiveLog=PutRegistryCatalogDataRequestFilterSensitiveLog;const PutRegistryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.PutRegistryCatalogDataResponseFilterSensitiveLog=PutRegistryCatalogDataResponseFilterSensitiveLog;const PutRepositoryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.PutRepositoryCatalogDataRequestFilterSensitiveLog=PutRepositoryCatalogDataRequestFilterSensitiveLog;const PutRepositoryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.PutRepositoryCatalogDataResponseFilterSensitiveLog=PutRepositoryCatalogDataResponseFilterSensitiveLog;const SetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyRequestFilterSensitiveLog=SetRepositoryPolicyRequestFilterSensitiveLog;const SetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyResponseFilterSensitiveLog=SetRepositoryPolicyResponseFilterSensitiveLog;const TagResourceRequestFilterSensitiveLog=e=>({...e});t.TagResourceRequestFilterSensitiveLog=TagResourceRequestFilterSensitiveLog;const TagResourceResponseFilterSensitiveLog=e=>({...e});t.TagResourceResponseFilterSensitiveLog=TagResourceResponseFilterSensitiveLog;const UntagResourceRequestFilterSensitiveLog=e=>({...e});t.UntagResourceRequestFilterSensitiveLog=UntagResourceRequestFilterSensitiveLog;const UntagResourceResponseFilterSensitiveLog=e=>({...e});t.UntagResourceResponseFilterSensitiveLog=UntagResourceResponseFilterSensitiveLog;const UploadLayerPartRequestFilterSensitiveLog=e=>({...e});t.UploadLayerPartRequestFilterSensitiveLog=UploadLayerPartRequestFilterSensitiveLog;const UploadLayerPartResponseFilterSensitiveLog=e=>({...e});t.UploadLayerPartResponseFilterSensitiveLog=UploadLayerPartResponseFilterSensitiveLog},99634:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const r=o(47670);const n=o(86087);const s=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeImageTagsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImageTags(t,...o);async function*paginateDescribeImageTags(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeImageTags=paginateDescribeImageTags},74128:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const r=o(22776);const n=o(86087);const s=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImages(t,...o);async function*paginateDescribeImages(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeImages=paginateDescribeImages},11720:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRegistries=void 0;const r=o(78696);const n=o(86087);const s=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeRegistriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRegistries(t,...o);async function*paginateDescribeRegistries(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeRegistries=paginateDescribeRegistries},65474:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const r=o(82218);const n=o(86087);const s=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeRepositoriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRepositories(t,...o);async function*paginateDescribeRepositories(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},93463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75945:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(99634),t);r.__exportStar(o(74128),t);r.__exportStar(o(11720),t);r.__exportStar(o(65474),t);r.__exportStar(o(93463),t)},64170:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=t.deserializeAws_json1_1PutRegistryCatalogDataCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=t.deserializeAws_json1_1GetRegistryCatalogDataCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistriesCommand=t.deserializeAws_json1_1DescribeImageTagsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutRepositoryCatalogDataCommand=t.serializeAws_json1_1PutRegistryCatalogDataCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRepositoryCatalogDataCommand=t.serializeAws_json1_1GetRegistryCatalogDataCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistriesCommand=t.serializeAws_json1_1DescribeImageTagsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;const r=o(65700);const n=o(73514);const s=o(48278);const i=o(38818);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchCheckLayerAvailability"};let r;r=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchDeleteImage"};let r;r=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CompleteLayerUpload"};let r;r=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CreateRepository"};let r;r=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepository"};let r;r=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImages"};let r;r=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImageTags"};let r;r=JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeImageTagsCommand=serializeAws_json1_1DescribeImageTagsCommand;const serializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRegistries"};let r;r=JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeRegistriesCommand=serializeAws_json1_1DescribeRegistriesCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRepositories"};let r;r=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetAuthorizationToken"};let r;r=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRegistryCatalogData"};let r;r=JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRegistryCatalogDataCommand=serializeAws_json1_1GetRegistryCatalogDataCommand;const serializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryCatalogData"};let r;r=JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRepositoryCatalogDataCommand=serializeAws_json1_1GetRepositoryCatalogDataCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.InitiateLayerUpload"};let r;r=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.ListTagsForResource"};let r;r=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutImage"};let r;r=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRegistryCatalogData"};let r;r=JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutRegistryCatalogDataCommand=serializeAws_json1_1PutRegistryCatalogDataCommand;const serializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRepositoryCatalogData"};let r;r=JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutRepositoryCatalogDataCommand=serializeAws_json1_1PutRepositoryCatalogDataCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.SetRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.TagResource"};let r;r=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UntagResource"};let r;r=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UploadLayerPart"};let r;r=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchDeleteImageResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1CompleteLayerUploadResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(o,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1CreateRepositoryResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteRepositoryResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeImagesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageTagsCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeImageTagsResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeImageTagsCommand=deserializeAws_json1_1DescribeImageTagsCommand;const deserializeAws_json1_1DescribeImageTagsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistriesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeRegistriesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeRegistriesCommand=deserializeAws_json1_1DescribeRegistriesCommand;const deserializeAws_json1_1DescribeRegistriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeRepositoriesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetAuthorizationTokenResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRegistryCatalogDataResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRegistryCatalogDataCommand=deserializeAws_json1_1GetRegistryCatalogDataCommand;const deserializeAws_json1_1GetRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRepositoryCatalogDataResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=deserializeAws_json1_1GetRepositoryCatalogDataCommand;const deserializeAws_json1_1GetRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1InitiateLayerUploadResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1ListTagsForResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutImageResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutRegistryCatalogDataResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutRegistryCatalogDataCommand=deserializeAws_json1_1PutRegistryCatalogDataCommand;const deserializeAws_json1_1PutRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutRepositoryCatalogDataResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=deserializeAws_json1_1PutRepositoryCatalogDataCommand;const deserializeAws_json1_1PutRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1SetRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1TagResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1UntagResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1UploadLayerPartResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRPUBLICServiceException,errorCode:r})}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1EmptyUploadException(o,t);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageAlreadyExistsException(o,t);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageDigestDoesNotMatchException(o,t);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageNotFoundException(o,t);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageTagAlreadyExistsException(o,t);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidLayerException(o,t);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidLayerPartException(o,t);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidParameterException(o,t);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidTagParameterException(o,t);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayerAlreadyExistsException(o,t);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayerPartTooSmallException(o,t);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayersNotFoundException(o,t);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LimitExceededException(o,t);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ReferencedImagesNotFoundException(o,t);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RegistryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RegistryNotFoundException(o,t);const s=new i.RegistryNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryAlreadyExistsException(o,t);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryNotEmptyException(o,t);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryNotFoundException(o,t);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryPolicyNotFoundException(o,t);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ServerException(o,t);const s=new i.ServerException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1TooManyTagsException(o,t);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1UnsupportedCommandExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1UnsupportedCommandException(o,t);const s=new i.UnsupportedCommandException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1UploadNotFoundException(o,t);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const serializeAws_json1_1ArchitectureList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.catalogData!=null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageTagsRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeRegistriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken}});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryCatalogDataRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryCatalogDataRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageTag!=null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ImageIdentifier(e,t)));const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1OperatingSystemList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageManifest!=null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!=null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!=null&&{imageTag:e.imageTag},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryCatalogDataRequest=(e,t)=>({...e.displayName!=null&&{displayName:e.displayName}});const serializeAws_json1_1PutRepositoryCatalogDataRequest=(e,t)=>({...e.catalogData!=null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1RepositoryCatalogDataInput=(e,t)=>({...e.aboutText!=null&&{aboutText:e.aboutText},...e.architectures!=null&&{architectures:serializeAws_json1_1ArchitectureList(e.architectures,t)},...e.description!=null&&{description:e.description},...e.logoImageBlob!=null&&{logoImageBlob:t.base64Encoder(e.logoImageBlob)},...e.operatingSystems!=null&&{operatingSystems:serializeAws_json1_1OperatingSystemList(e.operatingSystems,t)},...e.usageText!=null&&{usageText:e.usageText}});const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.policyText!=null&&{policyText:e.policyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!=null&&{Key:e.Key},...e.Value!=null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1Tag(e,t)));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tagKeys!=null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!=null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!=null&&{partFirstByte:e.partFirstByte},...e.partLastByte!=null&&{partLastByte:e.partLastByte},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const deserializeAws_json1_1ArchitectureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:(0,n.expectString)(e.authorizationToken),expiresAt:e.expiresAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.expiresAt))):undefined});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!=null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:(0,n.expectString)(e.layerDigest),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined,repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!=null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:(0,n.expectString)(e.nextToken)});const deserializeAws_json1_1DescribeImageTagsResponse=(e,t)=>({imageTagDetails:e.imageTagDetails!=null?deserializeAws_json1_1ImageTagDetailList(e.imageTagDetails,t):undefined,nextToken:(0,n.expectString)(e.nextToken)});const deserializeAws_json1_1DescribeRegistriesResponse=(e,t)=>({nextToken:(0,n.expectString)(e.nextToken),registries:e.registries!=null?deserializeAws_json1_1RegistryList(e.registries,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:(0,n.expectString)(e.nextToken),repositories:e.repositories!=null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!=null?deserializeAws_json1_1AuthorizationData(e.authorizationData,t):undefined});const deserializeAws_json1_1GetRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!=null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1GetRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:(0,n.expectString)(e.imageManifest),imageManifestMediaType:(0,n.expectString)(e.imageManifestMediaType),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:(0,n.expectString)(e.artifactMediaType),imageDigest:(0,n.expectString)(e.imageDigest),imageManifestMediaType:(0,n.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imagePushedAt))):undefined,imageSizeInBytes:(0,n.expectLong)(e.imageSizeInBytes),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return o};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),failureReason:(0,n.expectString)(e.failureReason),imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return o};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:(0,n.expectString)(e.imageDigest),imageTag:(0,n.expectString)(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return o};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageTagDetail=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,imageDetail:e.imageDetail!=null?deserializeAws_json1_1ReferencedImageDetail(e.imageDetail,t):undefined,imageTag:(0,n.expectString)(e.imageTag)});const deserializeAws_json1_1ImageTagDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageTagDetail(e,t)}));return o};const deserializeAws_json1_1ImageTagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:(0,n.expectLong)(e.partSize),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:(0,n.expectLong)(e.lastValidByteReceived),message:(0,n.expectString)(e.message),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:(0,n.expectString)(e.layerAvailability),layerDigest:(0,n.expectString)(e.layerDigest),layerSize:(0,n.expectLong)(e.layerSize),mediaType:(0,n.expectString)(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),failureReason:(0,n.expectString)(e.failureReason),layerDigest:(0,n.expectString)(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return o};const deserializeAws_json1_1LayerList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return o};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!=null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1OperatingSystemList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!=null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!=null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1PutRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1ReferencedImageDetail=(e,t)=>({artifactMediaType:(0,n.expectString)(e.artifactMediaType),imageDigest:(0,n.expectString)(e.imageDigest),imageManifestMediaType:(0,n.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imagePushedAt))):undefined,imageSizeInBytes:(0,n.expectLong)(e.imageSizeInBytes)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1Registry=(e,t)=>({aliases:e.aliases!=null?deserializeAws_json1_1RegistryAliasList(e.aliases,t):undefined,registryArn:(0,n.expectString)(e.registryArn),registryId:(0,n.expectString)(e.registryId),registryUri:(0,n.expectString)(e.registryUri),verified:(0,n.expectBoolean)(e.verified)});const deserializeAws_json1_1RegistryAlias=(e,t)=>({defaultRegistryAlias:(0,n.expectBoolean)(e.defaultRegistryAlias),name:(0,n.expectString)(e.name),primaryRegistryAlias:(0,n.expectBoolean)(e.primaryRegistryAlias),status:(0,n.expectString)(e.status)});const deserializeAws_json1_1RegistryAliasList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryAlias(e,t)}));return o};const deserializeAws_json1_1RegistryCatalogData=(e,t)=>({displayName:(0,n.expectString)(e.displayName)});const deserializeAws_json1_1RegistryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Registry(e,t)}));return o};const deserializeAws_json1_1RegistryNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,registryId:(0,n.expectString)(e.registryId),repositoryArn:(0,n.expectString)(e.repositoryArn),repositoryName:(0,n.expectString)(e.repositoryName),repositoryUri:(0,n.expectString)(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryCatalogData=(e,t)=>({aboutText:(0,n.expectString)(e.aboutText),architectures:e.architectures!=null?deserializeAws_json1_1ArchitectureList(e.architectures,t):undefined,description:(0,n.expectString)(e.description),logoUrl:(0,n.expectString)(e.logoUrl),marketplaceCertified:(0,n.expectBoolean)(e.marketplaceCertified),operatingSystems:e.operatingSystems!=null?deserializeAws_json1_1OperatingSystemList(e.operatingSystems,t):undefined,usageText:(0,n.expectString)(e.usageText)});const deserializeAws_json1_1RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return o};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ServerException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1Tag=(e,t)=>({Key:(0,n.expectString)(e.Key),Value:(0,n.expectString)(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return o};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1UnsupportedCommandException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:(0,n.expectLong)(e.lastByteReceived),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeMetadata=e=>{var t,o;return{httpStatusCode:e.statusCode,requestId:(o=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&o!==void 0?o:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,n,s)=>{const{hostname:i,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(n!==undefined){u.hostname=n}if(s!==undefined){u.body=s}return new r.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{var o;const r=await parseBody(e,t);r.message=(o=r.message)!==null&&o!==void 0?o:r.Message;return r};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},49324:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(25929));const s=o(52209);const i=o(56535);const a=o(75531);const c=o(24018);const l=o(83660);const u=o(83871);const d=o(89367);const p=o(18588);const f=o(55258);const m=o(20810);const g=o(89253);const y=o(76746);const h=o(73514);const E=o(70130);const v=o(73514);const getRuntimeConfig=e=>{var t,o,r,_,S,w,P,b,C,R,x,I,T,A,O;(0,v.emitWarningIfUnsupportedVersion)(process.version);const N=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const D=(0,y.getRuntimeConfig)(e);return{...D,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:p.toBase64,bodyLengthChecker:(r=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:f.calculateBodyLength,credentialDefaultProvider:(_=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&_!==void 0?_:(0,s.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:(S=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&S!==void 0?S:(0,m.defaultUserAgent)({serviceId:D.serviceId,clientVersion:n.default.version}),maxAttempts:(w=e===null||e===void 0?void 0:e.maxAttempts)!==null&&w!==void 0?w:(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(P=e===null||e===void 0?void 0:e.region)!==null&&P!==void 0?P:(0,u.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(b=e===null||e===void 0?void 0:e.requestHandler)!==null&&b!==void 0?b:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(C=e===null||e===void 0?void 0:e.retryMode)!==null&&C!==void 0?C:(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(R=e===null||e===void 0?void 0:e.sha256)!==null&&R!==void 0?R:c.Hash.bind(null,"sha256"),streamCollector:(x=e===null||e===void 0?void 0:e.streamCollector)!==null&&x!==void 0?x:d.streamCollector,useDualstackEndpoint:(I=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&I!==void 0?I:(0,u.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,u.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(A=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&A!==void 0?A:g.fromUtf8,utf8Encoder:(O=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&O!==void 0?O:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},76746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(37081);const n=o(68593);const getRuntimeConfig=e=>{var t,o,s,i,a;return{apiVersion:"2020-10-30",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(s=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&s!==void 0?s:n.defaultRegionInfoProvider,serviceId:(i=e===null||e===void 0?void 0:e.serviceId)!==null&&i!==void 0?i:"ECR PUBLIC",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:r.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},89526:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const r=o(99185);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,r.SelectorType.CONFIG),default:false}},4638:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const r=o(99185);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,r.SelectorType.CONFIG),default:false}},1876:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(89526),t);r.__exportStar(o(4638),t);r.__exportStar(o(57614),t);r.__exportStar(o(10147),t)},57614:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const r=o(97752);const resolveCustomEndpointsConfig=e=>{var t;const{endpoint:o,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,r.normalizeProvider)(typeof o==="string"?n(o):o),isCustomEndpoint:true,useDualstackEndpoint:(0,r.normalizeProvider)(e.useDualstackEndpoint)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},10147:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const r=o(97752);const n=o(65018);const resolveEndpointsConfig=e=>{var t;const o=(0,r.normalizeProvider)(e.useDualstackEndpoint);const{endpoint:s,useFipsEndpoint:i,urlParser:a}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:s?(0,r.normalizeProvider)(typeof s==="string"?a(s):s):()=>(0,n.getEndpointFromRegion)({...e,useDualstackEndpoint:o,useFipsEndpoint:i}),isCustomEndpoint:!!s,useDualstackEndpoint:o}};t.resolveEndpointsConfig=resolveEndpointsConfig},65018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:o=true}=e;const r=await e.region();const n=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!n.test(r)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${o?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},56535:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(1876),t);r.__exportStar(o(8218),t);r.__exportStar(o(79319),t)},90231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},64338:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const r=o(81231);const getRealRegion=e=>(0,r.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},8218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(90231),t);r.__exportStar(o(30642),t)},81231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},30642:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const r=o(64338);const n=o(81231);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,r.getRealRegion)(t)}const e=await t();return(0,r.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,n.isFipsRegion)(e)){return true}return typeof o==="boolean"?Promise.resolve(o):o()}}};t.resolveRegionConfig=resolveRegionConfig},25406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},78776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>{var r;return(r=e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack"))))===null||r===void 0?void 0:r.hostname};t.getHostnameFromVariants=getHostnameFromVariants},54934:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const r=o(78776);const n=o(19398);const s=o(78590);const i=o(65894);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,f,m,g;const y=(0,s.getResolvedPartition)(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const E={useFipsEndpoint:t,useDualstackEndpoint:o};const v=(0,r.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const _=(0,r.getHostnameFromVariants)((f=l[y])===null||f===void 0?void 0:f.variants,E);const S=(0,n.getResolvedHostname)(h,{regionHostname:v,partitionHostname:_});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const w=(0,i.getResolvedSigningRegion)(S,{signingRegion:(m=c[h])===null||m===void 0?void 0:m.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...w&&{signingRegion:w},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},19398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},78590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var o;return(o=Object.keys(t||{}).find((o=>t[o].regions.includes(e))))!==null&&o!==void 0?o:"aws"};t.getResolvedPartition=getResolvedPartition},65894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:r})=>{if(t){return t}else if(r){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const r=e.match(t);if(r){return r[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},79319:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(25406),t);r.__exportStar(o(9826),t);r.__exportStar(o(54934),t)},24018:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const r=o(36010);const n=o(14300);const s=o(6113);class Hash{constructor(e,t){this.hash=t?(0,s.createHmac)(e,castSourceData(t)):(0,s.createHash)(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(n.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,r.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,r.fromArrayBuffer)(e)}},78110:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const r=o(65700);const n="content-length";function contentLengthMiddleware(e){return t=>async o=>{const s=o.request;if(r.HttpRequest.isInstance(s)){const{body:t,headers:o}=s;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(n)===-1){try{const o=e(t);s.headers={...s.headers,[n]:String(o)}}catch(e){}}}return t({...o,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:o=>{o.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},46478:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const r=o(65700);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async o=>{if(!r.HttpRequest.isInstance(o.request))return t(o);const{request:n}=o;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"]){delete n.headers["host"];n.headers[":authority"]=""}else if(!n.headers["host"]){n.headers["host"]=n.hostname}return t(o)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:o=>{o.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},78126:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(69399),t)},69399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async o=>{const{clientName:r,commandName:n,inputFilterSensitiveLog:s,logger:i,outputFilterSensitiveLog:a}=t;const c=await e(o);if(!i){return c}if(typeof i.info==="function"){const{$metadata:e,...t}=c.output;i.info({clientName:r,commandName:n,input:s(o.input),output:a(t),metadata:e})}return c};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},60874:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const r=o(65700);const n="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async o=>{const{request:a}=o;if(!r.HttpRequest.isInstance(a)||e.runtime!=="node"||a.headers.hasOwnProperty(n)){return t(o)}const c=process.env[s];const l=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(l)){a.headers[n]=l}return t({...o,request:a})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:o=>{o.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},23133:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const r=o(45142);const n=o(95326);const s=o(77688);class AdaptiveRetryStrategy extends s.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...s}=t!==null&&t!==void 0?t:{};super(e,s);this.rateLimiter=o!==null&&o!==void 0?o:new n.DefaultRateLimiter;this.mode=r.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},95326:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const r=o(70677);class DefaultRateLimiter{constructor(e){var t,o,r,n,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(o=e===null||e===void 0?void 0:e.minCapacity)!==null&&o!==void 0?o:1;this.minFillRate=(r=e===null||e===void 0?void 0:e.minFillRate)!==null&&r!==void 0?r:.5;this.scaleConstant=(n=e===null||e===void 0?void 0:e.scaleConstant)!==null&&n!==void 0?n:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,r.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},77688:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const r=o(65700);const n=o(70677);const s=o(75840);const i=o(45142);const a=o(8836);const c=o(56693);const l=o(71499);const u=o(83933);class StandardRetryStrategy{constructor(e,t){var o,r,n;this.maxAttemptsProvider=e;this.mode=i.RETRY_MODES.STANDARD;this.retryDecider=(o=t===null||t===void 0?void 0:t.retryDecider)!==null&&o!==void 0?o:u.defaultRetryDecider;this.delayDecider=(r=t===null||t===void 0?void 0:t.delayDecider)!==null&&r!==void 0?r:l.defaultDelayDecider;this.retryQuota=(n=t===null||t===void 0?void 0:t.retryQuota)!==null&&n!==void 0?n:(0,c.getDefaultRetryQuota)(a.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=i.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,o){let i;let c=0;let l=0;const u=await this.getMaxAttempts();const{request:d}=t;if(r.HttpRequest.isInstance(d)){d.headers[a.INVOCATION_ID_HEADER]=(0,s.v4)()}while(true){try{if(r.HttpRequest.isInstance(d)){d.headers[a.REQUEST_HEADER]=`attempt=${c+1}; max=${u}`}if(o===null||o===void 0?void 0:o.beforeRequest){await o.beforeRequest()}const{response:n,output:s}=await e(t);if(o===null||o===void 0?void 0:o.afterRequest){o.afterRequest(n)}this.retryQuota.releaseRetryTokens(i);s.$metadata.attempts=c+1;s.$metadata.totalRetryDelay=l;return{response:n,output:s}}catch(e){const t=asSdkError(e);c++;if(this.shouldRetry(t,c,u)){i=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,n.isThrottlingError)(t)?a.THROTTLING_RETRY_DELAY_BASE:a.DEFAULT_RETRY_DELAY_BASE,c);const o=getDelayFromRetryAfterHeader(t.$response);const r=Math.max(o||0,e);l+=r;await new Promise((e=>setTimeout(e,r)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!r.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const n=Number(o);if(!Number.isNaN(n))return n*1e3;const s=new Date(o);return s.getTime()-Date.now()};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)}},45142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var o;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(o=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=o.STANDARD},27399:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const r=o(97752);const n=o(23133);const s=o(45142);const i=o(77688);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const o=e[t.ENV_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},configFileSelector:e=>{const o=e[t.CONFIG_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},default:s.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const o=(0,r.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:s.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:o,retryStrategy:async()=>{if(e.retryStrategy){return e.retryStrategy}const t=await(0,r.normalizeProvider)(e.retryMode)();if(t===s.RETRY_MODES.ADAPTIVE){return new n.AdaptiveRetryStrategy(o)}return new i.StandardRetryStrategy(o)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:s.DEFAULT_RETRY_MODE}},8836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},56693:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const r=o(8836);const getDefaultRetryQuota=(e,t)=>{var o,n,s;const i=e;const a=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:r.NO_RETRY_INCREMENT;const c=(n=t===null||t===void 0?void 0:t.retryCost)!==null&&n!==void 0?n:r.RETRY_COST;const l=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:r.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l:c;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:a;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},71499:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const r=o(8836);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},83660:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(23133),t);r.__exportStar(o(95326),t);r.__exportStar(o(77688),t);r.__exportStar(o(45142),t);r.__exportStar(o(27399),t);r.__exportStar(o(71499),t);r.__exportStar(o(7041),t);r.__exportStar(o(83933),t);r.__exportStar(o(54907),t);r.__exportStar(o(80973),t)},7041:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const r=o(65700);const n=o(8836);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(r.HttpRequest.isInstance(o)){delete o.headers[n.INVOCATION_ID_HEADER];delete o.headers[n.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},83933:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const r=o(70677);const defaultRetryDecider=e=>{if(!e){return false}return(0,r.isRetryableByTrait)(e)||(0,r.isClockSkewError)(e)||(0,r.isThrottlingError)(e)||(0,r.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},54907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const retryMiddleware=e=>(t,o)=>async r=>{const n=await e.retryStrategy();if(n===null||n===void 0?void 0:n.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",n.mode]];return n.retry(t,r)};t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin},80973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(o,r)=>async r=>{const{response:n}=await o(r);try{const o=await t(n,e);return{response:n,output:o}}catch(e){Object.defineProperty(e,"$response",{value:n});throw e}};t.deserializerMiddleware=deserializerMiddleware},33526:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(80407),t);r.__exportStar(o(22645),t);r.__exportStar(o(63064),t)},22645:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const r=o(80407);const n=o(63064);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,s){return{applyToStack:i=>{i.add((0,r.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,n.serializerMiddleware)(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},63064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,r)=>async n=>{var s;const i=((s=r.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const a=await t(n.input,{...e,endpoint:i});return o({...n,request:a})};t.serializerMiddleware=serializerMiddleware},96374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let n=[];const s=new Set;const sort=e=>e.sort(((e,t)=>o[t.step]-o[e.step]||r[t.priority||"normal"]-r[e.priority||"normal"]));const removeByName=t=>{let o=false;const filterCb=e=>{if(e.name&&e.name===t){o=true;s.delete(t);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const removeByReference=t=>{let o=false;const filterCb=e=>{if(e.middleware===t){o=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));n.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const o=[];const r=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));n.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;r.push(t)}));r.forEach((e=>{if(e.toMiddleware){const o=s[e.toMiddleware];if(o===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){o.after.push(e)}if(e.relation==="before"){o.before.push(e)}}}));const i=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,o={})=>{const{name:r,override:n}=o;const i={step:"initialize",priority:"normal",middleware:t,...o};if(r){if(s.has(r)){if(!n)throw new Error(`Duplicate middleware name '${r}'`);const t=e.findIndex((e=>e.name===r));const o=e[t];if(o.step!==i.step||o.priority!==i.priority){throw new Error(`"${r}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(r)}e.push(i)},addRelativeTo:(e,t)=>{const{name:o,override:r}=t;const i={middleware:e,...t};if(o){if(s.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const e=n.findIndex((e=>e.name===o));const t=n[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}n.splice(e,1)}s.add(o)}n.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let o=false;const filterCb=e=>{const{tags:r,name:n}=e;if(r&&r.includes(t)){if(n)s.delete(n);o=true;return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o},concat:e=>{const o=cloneTo((0,t.constructStack)());o.use(e);return o},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}return e}};return i};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const r={high:3,normal:2,low:1}},77237:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(96374),t)},25672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},51810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_REGEX=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},15457:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(25672),t);r.__exportStar(o(88772),t)},88772:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const r=o(65700);const n=o(51810);const userAgentMiddleware=e=>(t,o)=>async s=>{var i,a;const{request:c}=s;if(!r.HttpRequest.isInstance(c))return t(s);const{headers:l}=c;const u=((i=o===null||o===void 0?void 0:o.userAgent)===null||i===void 0?void 0:i.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const f=[...d,...u,...p].join(n.SPACE);const m=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(n.SPACE);if(e.runtime!=="browser"){if(m){l[n.X_AMZ_USER_AGENT]=l[n.X_AMZ_USER_AGENT]?`${l[n.USER_AGENT]} ${m}`:m}l[n.USER_AGENT]=f}else{l[n.X_AMZ_USER_AGENT]=f}return t({...s,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const o=e.indexOf("/");const r=e.substring(0,o);let s=e.substring(o+1);if(r==="api"){s=s.toLowerCase()}return[r,s,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(n.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},78494:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const r=o(26175);const n=o(74855);const s=o(7349);const i=o(3393);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>(0,r.memoize)((0,r.chain)((0,n.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},74855:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const r=o(26175);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},7349:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const r=o(26175);const n=o(26868);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,n.getProfileName)(o);const{configFile:i,credentialsFile:a}=await(0,n.loadSharedConfigFiles)(o);const c=a[s]||{};const l=i[s]||{};const u=t==="config"?{...c,...l}:{...l,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},3393:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(26175);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,r.fromStatic)(e);t.fromStatic=fromStatic},83871:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(78494),t)},30647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},81002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const o of Object.keys(e)){const r=e[o];t[o]=Array.isArray(r)?r.join(","):r}return t};t.getTransformedHeaders=getTransformedHeaders},89367:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(4748),t);r.__exportStar(o(25058),t);r.__exportStar(o(86403),t)},4748:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const r=o(65700);const n=o(43402);const s=o(13685);const i=o(95687);const a=o(30647);const c=o(81002);const l=o(76696);const u=o(18249);const d=o(51098);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:o,httpAgent:r,httpsAgent:n}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:o,httpAgent:r||new s.Agent({keepAlive:a,maxSockets:c}),httpsAgent:n||new i.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,o,r;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(r=(o=this.config)===null||o===void 0?void 0:o.httpsAgent)===null||r===void 0?void 0:r.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((o,p)=>{if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";p(e);return}const f=e.protocol==="https:";const m=(0,n.buildQueryString)(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:m?`${e.path}?${m}`:e.path,port:e.port,agent:f?this.config.httpsAgent:this.config.httpAgent};const y=f?i.request:s.request;const h=y(g,(e=>{const t=new r.HttpResponse({statusCode:e.statusCode||-1,headers:(0,c.getTransformedHeaders)(e.headers),body:e});o({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));(0,l.setConnectionTimeout)(h,p,this.config.connectionTimeout);(0,u.setSocketTimeout)(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}(0,d.writeRequestBody)(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},25058:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const r=o(65700);const n=o(43402);const s=o(85158);const i=o(81002);const a=o(51098);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}));this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}const{requestTimeout:o,disableConcurrentStreams:c}=this.config;return new Promise(((l,u)=>{let d=false;if(t===null||t===void 0?void 0:t.aborted){d=true;const e=new Error("Request aborted");e.name="AbortError";u(e);return}const{hostname:p,method:f,port:m,protocol:g,path:y,query:h}=e;const E=`${g}//${p}${m?`:${m}`:""}`;const v=this.getSession(E,c||false);const reject=e=>{if(c){this.destroySession(v)}d=true;u(e)};const _=(0,n.buildQueryString)(h||{});const S=v.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:_?`${y}?${_}`:y,[s.constants.HTTP2_HEADER_METHOD]:f});v.ref();S.on("response",(e=>{const t=new r.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:S});d=true;l({response:t});if(c){v.close();this.deleteSessionFromCache(E,v)}}));if(o){S.setTimeout(o,(()=>{S.close();const e=new Error(`Stream timed out because of no activity for ${o} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{S.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}S.on("frameError",((e,t,o)=>{reject(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));S.on("error",reject);S.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${S.rstCode}.`))}));S.on("close",(()=>{v.unref();if(c){v.destroy()}if(!d){reject(new Error("Unexpected error: http2 request did not get a response"))}}));(0,a.writeRequestBody)(S,e)}))}getSession(e,t){var o;const r=this.sessionCache;const n=r.get(e)||[];if(n.length>0&&!t)return n[0];const i=(0,s.connect)(e);i.unref();const destroySessionCb=()=>{this.destroySession(i);this.deleteSessionFromCache(e,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSessionFromCache(e,i)));if((o=this.config)===null||o===void 0?void 0:o.sessionTimeout){i.setTimeout(this.config.sessionTimeout,destroySessionCb)}n.push(i);r.set(e,n);return i}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const o=this.sessionCache.get(e)||[];if(!o.includes(t)){return}this.sessionCache.set(e,o.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},76696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}e.on("socket",(r=>{if(r.connecting){const n=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);r.on("connect",(()=>{clearTimeout(n)}))}}))};t.setConnectionTimeout=setConnectionTimeout},18249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,o=0)=>{e.setTimeout(o,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${o} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},28712:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const r=o(12781);class Collector extends r.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},86403:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const r=o(28712);const streamCollector=e=>new Promise(((t,o)=>{const n=new r.Collector;e.pipe(n);e.on("error",(e=>{n.end();o(e)}));n.on("error",o);n.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},51098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const r=o(12781);function writeRequestBody(e,t){const o=t.headers["Expect"]||t.headers["expect"];if(o==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof r.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},84734:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(1707);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},1707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},45657:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(1707);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},89735:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(1707);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},52618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},26175:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(84734),t);r.__exportStar(o(1707),t);r.__exportStar(o(45657),t);r.__exportStar(o(89735),t);r.__exportStar(o(52618),t);r.__exportStar(o(61427),t)},61427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},2484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},11474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{})}},51146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},65700:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(2484),t);r.__exportStar(o(11474),t);r.__exportStar(o(51146),t);r.__exportStar(o(12283),t)},12283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},22269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,r=null]=o.split("=");e=decodeURIComponent(e);if(r){r=decodeURIComponent(r)}if(!(e in t)){t[e]=r}else if(Array.isArray(t[e])){t[e].push(r)}else{t[e]=[t[e],r]}}}return t}t.parseQueryString=parseQueryString},65019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},70677:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const r=o(65019);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>r.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,o;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||r.THROTTLING_ERROR_CODES.includes(e.name)||((o=e.$retryable)===null||o===void 0?void 0:o.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return r.TRANSIENT_ERROR_CODES.includes(e.name)||r.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||r.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError},48443:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(17709);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},34550:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(17709);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},17709:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},60593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},5995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},89254:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(17709);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},86408:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(89254);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},91195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},26868:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(17709),t);r.__exportStar(o(5995),t);r.__exportStar(o(89254),t);r.__exportStar(o(86408),t);r.__exportStar(o(578),t);r.__exportStar(o(51819),t);r.__exportStar(o(47640),t);r.__exportStar(o(67257),t)},578:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(48443);const n=o(34550);const s=o(60593);const i=o(29346);const a=o(95590);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},51819:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(48443);const n=o(91195);const s=o(29346);const i=o(95590);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},29346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},47640:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(578);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},95590:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},67257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},91517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const r=o(77237);class Client{constructor(e){this.middlewareStack=(0,r.constructStack)();this.config=e}send(e,t,o){const r=typeof t!=="function"?t:undefined;const n=typeof t==="function"?t:o;const s=e.resolveMiddleware(this.middlewareStack,this.config,r);if(n){s(e).then((e=>n(null,e.output)),(e=>n(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},14562:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const r=o(77237);class Command{constructor(){this.middlewareStack=(0,r.constructStack)()}}t.Command=Command},56734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},4060:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const r=o(89924);const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const r=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const f=l<10?`0${l}`:`${l}`;return`${n[r]}, ${u} ${s[o]} ${t} ${d}:${p}:${f} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,n,s,a,c,l,u,d]=t;const p=(0,r.strictParseShort)(stripLeadingZeroes(n));const f=parseDateValue(s,"month",1,12);const m=parseDateValue(a,"day",1,31);return buildDate(p,f,m,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const c=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const l=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=a.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,o,r,n,s,i,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(n),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(l)),parseMonthByShortName(o),parseDateValue(n.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,r.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,o,r)=>{const n=t-1;validateDayOfMonth(e,n,o);return new Date(Date.UTC(e,n,o,parseDateValue(r.hours,"hour",0,23),parseDateValue(r.minutes,"minute",0,59),parseDateValue(r.seconds,"seconds",0,60),parseMilliseconds(r.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+(0,r.strictParseShort)(stripLeadingZeroes(e));if(o<t){return o+100}return o};const u=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>u){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let r=d[t];if(t===1&&isLeapYear(e)){r=29}if(o>r){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,n)=>{const s=(0,r.strictParseByte)(stripLeadingZeroes(e));if(s<o||s>n){throw new TypeError(`${t} must be between ${o} and ${n}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,r.strictParseFloat32)("0."+e)*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},83835:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwDefaultError=void 0;const r=o(19245);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:n})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const a=new o({name:t.code||t.Code||n||i||"UnknowError",$fault:"client",$metadata:s});throw(0,r.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},7924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},22532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let o=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!o&&parseInt(e.substring(1,e.indexOf(".")))<14){o=true;process.emitWarning(`The AWS SDK for JavaScript (v3) will\n`+`no longer support Node.js ${e} on November 1, 2022.\n\n`+`To continue receiving updates to AWS services, bug fixes, and security\n`+`updates please upgrade to Node.js 14.x or later.\n\n`+`For details, please refer our blog post: https://a.co/48dbdYz`,`NodeDeprecationWarning`)}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},19245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};t.decorateServiceException=decorateServiceException},26152:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},90516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},20116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const o="#text";for(const r in e){if(e.hasOwnProperty(r)&&e[r][o]!==undefined){e[r]=e[r][o]}else if(typeof e[r]==="object"&&e[r]!==null){e[r]=(0,t.getValueFromTextNode)(e[r])}}return e};t.getValueFromTextNode=getValueFromTextNode},73514:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(91517),t);r.__exportStar(o(14562),t);r.__exportStar(o(56734),t);r.__exportStar(o(4060),t);r.__exportStar(o(83835),t);r.__exportStar(o(7924),t);r.__exportStar(o(22532),t);r.__exportStar(o(19245),t);r.__exportStar(o(26152),t);r.__exportStar(o(90516),t);r.__exportStar(o(20116),t);r.__exportStar(o(29598),t);r.__exportStar(o(70699),t);r.__exportStar(o(89924),t);r.__exportStar(o(6372),t);r.__exportStar(o(81462),t);r.__exportStar(o(62863),t)},29598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const o=new t;Object.setPrototypeOf(o,e.prototype);return o};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},70699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertMap=t.map=void 0;function map(e,t,o){let r;let n;let s;if(typeof t==="undefined"&&typeof o==="undefined"){r={};s=e}else{r=e;if(typeof t==="function"){n=t;s=o;return mapWithFilter(r,n,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){r[e]=s[e];continue}let[t,o]=s[e];if(typeof o==="function"){let n;const s=t===undefined&&(n=o())!=null;const i=typeof t==="function"&&!!t(void 0)||typeof t!=="function"&&!!t;if(s){r[e]=n}else if(i){r[e]=o()}}else{const n=t===undefined&&o!=null;const s=typeof t==="function"&&!!t(o)||typeof t!=="function"&&!!t;if(n||s){r[e]=o}}}return r}t.map=map;const convertMap=e=>{const t={};for(const[o,r]of Object.entries(e||{})){t[o]=[,r]}return t};t.convertMap=convertMap;const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,r])=>{if(Array.isArray(r)){e[o]=r}else{if(typeof r==="function"){e[o]=[t,r()]}else{e[o]=[t,r]}}return e}),{}))},89924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const o=e.toLowerCase();if(o==="false"||o==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(o==="false"){return false}if(o==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const o=parseFloat(e);if(!Number.isNaN(o)){if(String(o)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return o}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const r=(0,t.expectNumber)(e);if(r!==undefined&&!Number.isNaN(r)&&r!==Infinity&&r!==-Infinity){if(Math.abs(r)>o){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return r};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,o)=>{const r=(0,t.expectLong)(e);if(r!==undefined&&castInt(r,o)!==r){throw new TypeError(`Expected ${o}-bit integer, got ${e}`)}return r};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=(0,t.expectObject)(e);const r=Object.entries(o).filter((([,e])=>e!=null)).map((([e])=>e));if(r.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(r.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`)}return o};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const r=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(r);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},6372:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const r=o(26152);const resolvedPath=(e,t,o,n,s,i)=>{if(t!=null&&t[o]!==undefined){const t=n();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(s,i?t.split("/").map((e=>(0,r.extendedEncodeURIComponent)(e))).join("/"):(0,r.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};t.resolvedPath=resolvedPath},81462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},62863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const r=e.split(t);if(o===1){return r}const n=[];let s="";for(let e=0;e<r.length;e++){if(s===""){s=r[e]}else{s+=t+r[e]}if((e+1)%o===0){n.push(s);s=""}}if(s!==""){n.push(s)}return n}t.splitEvery=splitEvery},37081:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const r=o(22269);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:n,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,r.parseQueryString)(a)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:n,query:c}};t.parseUrl=parseUrl},10635:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const r=o(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,r.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},55258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(10635),t)},93949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var o;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(o=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},99185:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(93949),t)},62840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},59970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const o="AWS_DEFAULTS_MODE";const r="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[o],configFileSelector:e=>e[r],default:"legacy"}},70130:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(53402),t)},53402:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const r=o(56535);const n=o(25898);const s=o(83871);const i=o(26175);const a=o(62840);const c=o(59970);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(r.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const o=typeof t==="function"?await t():t;switch(o===null||o===void 0?void 0:o.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o===null||o===void 0?void 0:o.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${o}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[a.AWS_EXECUTION_ENV]&&(process.env[a.AWS_REGION_ENV]||process.env[a.AWS_DEFAULT_REGION_ENV])){return(e=process.env[a.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[a.AWS_DEFAULT_REGION_ENV]}if(!process.env[a.ENV_IMDS_DISABLED]){try{const e=await(0,n.getInstanceMetadataEndpoint)();return(await(0,n.httpRequest)({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},97752:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(67312),t)},67312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},20810:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const r=o(83871);const n=o(22037);const s=o(77282);const i=o(65214);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:o})=>{const a=[["aws-sdk-js",o],[`os/${(0,n.platform)()}`,(0,n.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const c=(0,i.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,o])}if(s.env.AWS_EXECUTION_ENV){a.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const l=(0,r.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await l;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},65214:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},89253:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const r=o(36010);const fromUtf8=e=>{const t=(0,r.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},59167:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const r=o(63804);const n=o(15511);const s=o(78859);const i=o(79728);const a=o(49003);const c=o(71454);const l=o(5074);const u=o(48981);const d=o(83793);const p=o(31424);const f=o(88651);const m=o(36828);const g=o(39694);const y=o(72987);const h=o(95353);const E=o(31484);const v=o(26166);const _=o(21200);const S=o(35828);const w=o(51401);const P=o(48469);const b=o(17006);const C=o(33685);const R=o(82741);const x=o(46330);const I=o(6936);const T=o(3854);const A=o(97403);const O=o(66844);const N=o(87935);const D=o(66495);const M=o(33854);const F=o(97928);const L=o(29529);const j=o(13350);const k=o(78300);const z=o(47984);const U=o(35905);const q=o(82665);const $=o(37225);const H=o(55825);const G=o(83391);class ECR extends G.ECRClient{batchCheckLayerAvailability(e,t,o){const n=new r.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}batchDeleteImage(e,t,o){const r=new n.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}batchGetImage(e,t,o){const r=new s.BatchGetImageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}batchGetRepositoryScanningConfiguration(e,t,o){const r=new i.BatchGetRepositoryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}completeLayerUpload(e,t,o){const r=new a.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}createPullThroughCacheRule(e,t,o){const r=new c.CreatePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}createRepository(e,t,o){const r=new l.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteLifecyclePolicy(e,t,o){const r=new u.DeleteLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deletePullThroughCacheRule(e,t,o){const r=new d.DeletePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteRegistryPolicy(e,t,o){const r=new p.DeleteRegistryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteRepository(e,t,o){const r=new f.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}deleteRepositoryPolicy(e,t,o){const r=new m.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeImageReplicationStatus(e,t,o){const r=new g.DescribeImageReplicationStatusCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeImages(e,t,o){const r=new h.DescribeImagesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeImageScanFindings(e,t,o){const r=new y.DescribeImageScanFindingsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describePullThroughCacheRules(e,t,o){const r=new E.DescribePullThroughCacheRulesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeRegistry(e,t,o){const r=new v.DescribeRegistryCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}describeRepositories(e,t,o){const r=new _.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getAuthorizationToken(e,t,o){const r=new S.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getDownloadUrlForLayer(e,t,o){const r=new w.GetDownloadUrlForLayerCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getLifecyclePolicy(e,t,o){const r=new P.GetLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getLifecyclePolicyPreview(e,t,o){const r=new b.GetLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRegistryPolicy(e,t,o){const r=new C.GetRegistryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRegistryScanningConfiguration(e,t,o){const r=new R.GetRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getRepositoryPolicy(e,t,o){const r=new x.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}initiateLayerUpload(e,t,o){const r=new I.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listImages(e,t,o){const r=new T.ListImagesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listTagsForResource(e,t,o){const r=new A.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putImage(e,t,o){const r=new O.PutImageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putImageScanningConfiguration(e,t,o){const r=new N.PutImageScanningConfigurationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putImageTagMutability(e,t,o){const r=new D.PutImageTagMutabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putLifecyclePolicy(e,t,o){const r=new M.PutLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putRegistryPolicy(e,t,o){const r=new F.PutRegistryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putRegistryScanningConfiguration(e,t,o){const r=new L.PutRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}putReplicationConfiguration(e,t,o){const r=new j.PutReplicationConfigurationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}setRepositoryPolicy(e,t,o){const r=new k.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}startImageScan(e,t,o){const r=new z.StartImageScanCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}startLifecyclePolicyPreview(e,t,o){const r=new U.StartLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}tagResource(e,t,o){const r=new q.TagResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}untagResource(e,t,o){const r=new $.UntagResourceCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}uploadLayerPart(e,t,o){const r=new H.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.ECR=ECR},83391:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=void 0;const r=o(56153);const n=o(42245);const s=o(5497);const i=o(22545);const a=o(20014);const c=o(85525);const l=o(96064);const u=o(4772);const d=o(64688);const p=o(4963);const f=o(49729);const m=o(869);class ECRClient extends p.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const o=(0,f.resolveClientEndpointParameters)(t);const p=(0,r.resolveRegionConfig)(o);const g=(0,s.resolveEndpointConfig)(p);const y=(0,l.resolveRetryConfig)(g);const h=(0,i.resolveHostHeaderConfig)(y);const E=(0,u.resolveAwsAuthConfig)(h);const v=(0,d.resolveUserAgentConfig)(E);super(v);this.config=v;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,i.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},63804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class BatchCheckLayerAvailabilityCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,BatchCheckLayerAvailabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchCheckLayerAvailabilityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.BatchCheckLayerAvailabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.BatchCheckLayerAvailabilityResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},15511:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class BatchDeleteImageCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,BatchDeleteImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchDeleteImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.BatchDeleteImageRequestFilterSensitiveLog,outputFilterSensitiveLog:i.BatchDeleteImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},78859:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class BatchGetImageCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,BatchGetImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchGetImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.BatchGetImageRequestFilterSensitiveLog,outputFilterSensitiveLog:i.BatchGetImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchGetImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchGetImageCommand)(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},79728:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class BatchGetRepositoryScanningConfigurationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,BatchGetRepositoryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchGetRepositoryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand)(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},49003:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class CompleteLayerUploadCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,CompleteLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CompleteLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.CompleteLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:i.CompleteLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},71454:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class CreatePullThroughCacheRuleCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,CreatePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CreatePullThroughCacheRuleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.CreatePullThroughCacheRuleRequestFilterSensitiveLog,outputFilterSensitiveLog:i.CreatePullThroughCacheRuleResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CreatePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CreatePullThroughCacheRuleCommand)(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class CreateRepositoryCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,CreateRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CreateRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.CreateRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:i.CreateRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},48981:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DeleteLifecyclePolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DeleteLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DeleteLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DeleteLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteLifecyclePolicyCommand)(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},83793:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DeletePullThroughCacheRuleCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DeletePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeletePullThroughCacheRuleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DeletePullThroughCacheRuleRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DeletePullThroughCacheRuleResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeletePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeletePullThroughCacheRuleCommand)(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},31424:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DeleteRegistryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DeleteRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DeleteRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DeleteRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRegistryPolicyCommand)(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},88651:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DeleteRepositoryCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DeleteRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DeleteRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},36828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DeleteRepositoryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DeleteRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DeleteRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},39694:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribeImageReplicationStatusCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribeImageReplicationStatusCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImageReplicationStatusCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribeImageReplicationStatusRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageReplicationStatusResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImageReplicationStatusCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImageReplicationStatusCommand)(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},72987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribeImageScanFindingsCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribeImageScanFindingsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImageScanFindingsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribeImageScanFindingsRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageScanFindingsResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImageScanFindingsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImageScanFindingsCommand)(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},95353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribeImagesCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribeImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImagesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribeImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribeImagesResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},31484:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribePullThroughCacheRulesCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribePullThroughCacheRulesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribePullThroughCacheRulesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribePullThroughCacheRulesRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribePullThroughCacheRulesResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribePullThroughCacheRulesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribePullThroughCacheRulesCommand)(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},26166:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribeRegistryCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribeRegistryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeRegistryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribeRegistryRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribeRegistryResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRegistryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRegistryCommand)(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},21200:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class DescribeRepositoriesCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DescribeRepositoriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeRepositoriesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DescribeRepositoriesRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DescribeRepositoriesResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},35828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetAuthorizationTokenCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetAuthorizationTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetAuthorizationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetAuthorizationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetAuthorizationTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},51401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetDownloadUrlForLayerCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetDownloadUrlForLayerCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetDownloadUrlForLayerCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetDownloadUrlForLayerRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetDownloadUrlForLayerResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetDownloadUrlForLayerCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetDownloadUrlForLayerCommand)(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},48469:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetLifecyclePolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetLifecyclePolicyCommand)(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},17006:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetLifecyclePolicyPreviewCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetLifecyclePolicyPreviewCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetLifecyclePolicyPreviewRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyPreviewResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand)(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},33685:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetRegistryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRegistryPolicyCommand)(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},82741:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetRegistryScanningConfigurationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRegistryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetRegistryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRegistryScanningConfigurationCommand)(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},46330:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class GetRepositoryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class InitiateLayerUploadCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,InitiateLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="InitiateLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.InitiateLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:i.InitiateLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class ListImagesCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,ListImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="ListImagesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.ListImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:i.ListImagesResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1ListImagesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1ListImagesCommand)(e,t)}}t.ListImagesCommand=ListImagesCommand},97403:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class ListTagsForResourceCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,ListTagsForResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="ListTagsForResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.ListTagsForResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:i.ListTagsForResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},66844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutImageCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutImageRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},87935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutImageScanningConfigurationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutImageScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutImageScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutImageScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageScanningConfigurationCommand)(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},66495:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutImageTagMutabilityCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutImageTagMutabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageTagMutabilityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutImageTagMutabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutImageTagMutabilityResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageTagMutabilityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageTagMutabilityCommand)(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},33854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutLifecyclePolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutLifecyclePolicyCommand)(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},97928:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutRegistryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRegistryPolicyCommand)(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},29529:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutRegistryScanningConfigurationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutRegistryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutRegistryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRegistryScanningConfigurationCommand)(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},13350:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class PutReplicationConfigurationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,PutReplicationConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutReplicationConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.PutReplicationConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.PutReplicationConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutReplicationConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutReplicationConfigurationCommand)(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},78300:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class SetRepositoryPolicyCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,SetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="SetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.SetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:i.SetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},47984:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class StartImageScanCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,StartImageScanCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="StartImageScanCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.StartImageScanRequestFilterSensitiveLog,outputFilterSensitiveLog:i.StartImageScanResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1StartImageScanCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1StartImageScanCommand)(e,t)}}t.StartImageScanCommand=StartImageScanCommand},35905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class StartLifecyclePolicyPreviewCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,StartLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="StartLifecyclePolicyPreviewCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.StartLifecyclePolicyPreviewRequestFilterSensitiveLog,outputFilterSensitiveLog:i.StartLifecyclePolicyPreviewResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1StartLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand)(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},82665:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class TagResourceCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,TagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="TagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.TagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:i.TagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1TagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},37225:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class UntagResourceCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,UntagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="UntagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.UntagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:i.UntagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UntagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},55825:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(79088);const a=o(56704);class UploadLayerPartCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,UploadLayerPartCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="UploadLayerPartCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.UploadLayerPartRequestFilterSensitiveLog,outputFilterSensitiveLog:i.UploadLayerPartResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},67407:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(63804),t);r.__exportStar(o(15511),t);r.__exportStar(o(78859),t);r.__exportStar(o(79728),t);r.__exportStar(o(49003),t);r.__exportStar(o(71454),t);r.__exportStar(o(5074),t);r.__exportStar(o(48981),t);r.__exportStar(o(83793),t);r.__exportStar(o(31424),t);r.__exportStar(o(88651),t);r.__exportStar(o(36828),t);r.__exportStar(o(39694),t);r.__exportStar(o(72987),t);r.__exportStar(o(95353),t);r.__exportStar(o(31484),t);r.__exportStar(o(26166),t);r.__exportStar(o(21200),t);r.__exportStar(o(35828),t);r.__exportStar(o(51401),t);r.__exportStar(o(48469),t);r.__exportStar(o(17006),t);r.__exportStar(o(33685),t);r.__exportStar(o(82741),t);r.__exportStar(o(46330),t);r.__exportStar(o(6936),t);r.__exportStar(o(3854),t);r.__exportStar(o(97403),t);r.__exportStar(o(66844),t);r.__exportStar(o(87935),t);r.__exportStar(o(66495),t);r.__exportStar(o(33854),t);r.__exportStar(o(97928),t);r.__exportStar(o(29529),t);r.__exportStar(o(13350),t);r.__exportStar(o(78300),t);r.__exportStar(o(47984),t);r.__exportStar(o(35905),t);r.__exportStar(o(82665),t);r.__exportStar(o(37225),t);r.__exportStar(o(55825),t)},49729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},61610:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const r=o(39205);const n=o(64053);const defaultEndpointResolver=(e,t={})=>(0,r.resolveEndpoint)(n.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},64053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-east-2"]}],endpoint:{url:"https://ecr-fips.us-east-2.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-east-1"]}],endpoint:{url:"https://ecr-fips.us-east-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-west-2"]}],endpoint:{url:"https://ecr-fips.us-west-2.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-west-1"]}],endpoint:{url:"https://ecr-fips.us-west-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:["aws",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-gov-east-1"]}],endpoint:{url:"https://ecr-fips.us-gov-east-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-gov-west-1"]}],endpoint:{url:"https://ecr-fips.us-gov-west-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},8923:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const r=o(4351);r.__exportStar(o(59167),t);r.__exportStar(o(83391),t);r.__exportStar(o(67407),t);r.__exportStar(o(57451),t);r.__exportStar(o(35356),t);r.__exportStar(o(28406),t);var n=o(11610);Object.defineProperty(t,"ECRServiceException",{enumerable:true,get:function(){return n.ECRServiceException}})},11610:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const r=o(4963);class ECRServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},57451:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(79088),t)},79088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=t.InvalidLayerPartException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.ScanType=t.LifecyclePolicyPreviewNotFoundException=t.LifecyclePolicyPreviewStatus=t.ImageActionType=t.LayersNotFoundException=t.LayerInaccessibleException=t.RepositoryFilterType=t.ScanNotFoundException=t.ScanStatus=t.FindingSeverity=t.TagStatus=t.ImageNotFoundException=t.ReplicationStatus=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.ImageTagMutability=t.EncryptionType=t.UnsupportedUpstreamRegistryException=t.PullThroughCacheRuleAlreadyExistsException=t.LimitExceededException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.ScanFrequency=t.ScanningRepositoryFilterType=t.ScanningConfigurationFailureCode=t.ImageFailureCode=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;t.RemediationFilterSensitiveLog=t.RecommendationFilterSensitiveLog=t.PackageVulnerabilityDetailsFilterSensitiveLog=t.VulnerablePackageFilterSensitiveLog=t.CvssScoreFilterSensitiveLog=t.DescribeImageScanFindingsRequestFilterSensitiveLog=t.DescribeImagesResponseFilterSensitiveLog=t.ImageDetailFilterSensitiveLog=t.ImageScanStatusFilterSensitiveLog=t.ImageScanFindingsSummaryFilterSensitiveLog=t.DescribeImagesRequestFilterSensitiveLog=t.DescribeImagesFilterFilterSensitiveLog=t.DescribeImageReplicationStatusResponseFilterSensitiveLog=t.ImageReplicationStatusFilterSensitiveLog=t.DescribeImageReplicationStatusRequestFilterSensitiveLog=t.DeleteRepositoryPolicyResponseFilterSensitiveLog=t.DeleteRepositoryPolicyRequestFilterSensitiveLog=t.DeleteRepositoryResponseFilterSensitiveLog=t.DeleteRepositoryRequestFilterSensitiveLog=t.DeleteRegistryPolicyResponseFilterSensitiveLog=t.DeleteRegistryPolicyRequestFilterSensitiveLog=t.DeletePullThroughCacheRuleResponseFilterSensitiveLog=t.DeletePullThroughCacheRuleRequestFilterSensitiveLog=t.DeleteLifecyclePolicyResponseFilterSensitiveLog=t.DeleteLifecyclePolicyRequestFilterSensitiveLog=t.CreateRepositoryResponseFilterSensitiveLog=t.RepositoryFilterSensitiveLog=t.CreateRepositoryRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.ImageScanningConfigurationFilterSensitiveLog=t.EncryptionConfigurationFilterSensitiveLog=t.CreatePullThroughCacheRuleResponseFilterSensitiveLog=t.CreatePullThroughCacheRuleRequestFilterSensitiveLog=t.CompleteLayerUploadResponseFilterSensitiveLog=t.CompleteLayerUploadRequestFilterSensitiveLog=t.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=t.RepositoryScanningConfigurationFilterSensitiveLog=t.ScanningRepositoryFilterFilterSensitiveLog=t.RepositoryScanningConfigurationFailureFilterSensitiveLog=t.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=t.BatchGetImageResponseFilterSensitiveLog=t.ImageFilterSensitiveLog=t.BatchGetImageRequestFilterSensitiveLog=t.BatchDeleteImageResponseFilterSensitiveLog=t.ImageFailureFilterSensitiveLog=t.BatchDeleteImageRequestFilterSensitiveLog=t.ImageIdentifierFilterSensitiveLog=t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=t.LayerFilterSensitiveLog=t.LayerFailureFilterSensitiveLog=void 0;t.ListTagsForResourceResponseFilterSensitiveLog=t.ListTagsForResourceRequestFilterSensitiveLog=t.ListImagesResponseFilterSensitiveLog=t.ListImagesRequestFilterSensitiveLog=t.ListImagesFilterFilterSensitiveLog=t.InitiateLayerUploadResponseFilterSensitiveLog=t.InitiateLayerUploadRequestFilterSensitiveLog=t.GetRepositoryPolicyResponseFilterSensitiveLog=t.GetRepositoryPolicyRequestFilterSensitiveLog=t.GetRegistryScanningConfigurationResponseFilterSensitiveLog=t.RegistryScanningConfigurationFilterSensitiveLog=t.RegistryScanningRuleFilterSensitiveLog=t.GetRegistryScanningConfigurationRequestFilterSensitiveLog=t.GetRegistryPolicyResponseFilterSensitiveLog=t.GetRegistryPolicyRequestFilterSensitiveLog=t.GetLifecyclePolicyPreviewResponseFilterSensitiveLog=t.LifecyclePolicyPreviewSummaryFilterSensitiveLog=t.LifecyclePolicyPreviewResultFilterSensitiveLog=t.LifecyclePolicyRuleActionFilterSensitiveLog=t.GetLifecyclePolicyPreviewRequestFilterSensitiveLog=t.LifecyclePolicyPreviewFilterFilterSensitiveLog=t.GetLifecyclePolicyResponseFilterSensitiveLog=t.GetLifecyclePolicyRequestFilterSensitiveLog=t.GetDownloadUrlForLayerResponseFilterSensitiveLog=t.GetDownloadUrlForLayerRequestFilterSensitiveLog=t.GetAuthorizationTokenResponseFilterSensitiveLog=t.AuthorizationDataFilterSensitiveLog=t.GetAuthorizationTokenRequestFilterSensitiveLog=t.DescribeRepositoriesResponseFilterSensitiveLog=t.DescribeRepositoriesRequestFilterSensitiveLog=t.DescribeRegistryResponseFilterSensitiveLog=t.ReplicationConfigurationFilterSensitiveLog=t.ReplicationRuleFilterSensitiveLog=t.RepositoryFilterFilterSensitiveLog=t.ReplicationDestinationFilterSensitiveLog=t.DescribeRegistryRequestFilterSensitiveLog=t.DescribePullThroughCacheRulesResponseFilterSensitiveLog=t.PullThroughCacheRuleFilterSensitiveLog=t.DescribePullThroughCacheRulesRequestFilterSensitiveLog=t.DescribeImageScanFindingsResponseFilterSensitiveLog=t.ImageScanFindingsFilterSensitiveLog=t.ImageScanFindingFilterSensitiveLog=t.AttributeFilterSensitiveLog=t.EnhancedImageScanFindingFilterSensitiveLog=t.ScoreDetailsFilterSensitiveLog=t.CvssScoreDetailsFilterSensitiveLog=t.CvssScoreAdjustmentFilterSensitiveLog=t.ResourceFilterSensitiveLog=t.ResourceDetailsFilterSensitiveLog=t.AwsEcrContainerImageDetailsFilterSensitiveLog=void 0;t.UploadLayerPartResponseFilterSensitiveLog=t.UploadLayerPartRequestFilterSensitiveLog=t.UntagResourceResponseFilterSensitiveLog=t.UntagResourceRequestFilterSensitiveLog=t.TagResourceResponseFilterSensitiveLog=t.TagResourceRequestFilterSensitiveLog=t.StartLifecyclePolicyPreviewResponseFilterSensitiveLog=t.StartLifecyclePolicyPreviewRequestFilterSensitiveLog=t.StartImageScanResponseFilterSensitiveLog=t.StartImageScanRequestFilterSensitiveLog=t.SetRepositoryPolicyResponseFilterSensitiveLog=t.SetRepositoryPolicyRequestFilterSensitiveLog=t.PutReplicationConfigurationResponseFilterSensitiveLog=t.PutReplicationConfigurationRequestFilterSensitiveLog=t.PutRegistryScanningConfigurationResponseFilterSensitiveLog=t.PutRegistryScanningConfigurationRequestFilterSensitiveLog=t.PutRegistryPolicyResponseFilterSensitiveLog=t.PutRegistryPolicyRequestFilterSensitiveLog=t.PutLifecyclePolicyResponseFilterSensitiveLog=t.PutLifecyclePolicyRequestFilterSensitiveLog=t.PutImageTagMutabilityResponseFilterSensitiveLog=t.PutImageTagMutabilityRequestFilterSensitiveLog=t.PutImageScanningConfigurationResponseFilterSensitiveLog=t.PutImageScanningConfigurationRequestFilterSensitiveLog=t.PutImageResponseFilterSensitiveLog=t.PutImageRequestFilterSensitiveLog=void 0;const r=o(11610);var n;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(n=t.LayerFailureCode||(t.LayerFailureCode={}));var s;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(s=t.LayerAvailability||(t.LayerAvailability={}));class InvalidParameterException extends r.ECRServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends r.ECRServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends r.ECRServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;var i;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(i=t.ImageFailureCode||(t.ImageFailureCode={}));var a;(function(e){e["REPOSITORY_NOT_FOUND"]="REPOSITORY_NOT_FOUND"})(a=t.ScanningConfigurationFailureCode||(t.ScanningConfigurationFailureCode={}));var c;(function(e){e["WILDCARD"]="WILDCARD"})(c=t.ScanningRepositoryFilterType||(t.ScanningRepositoryFilterType={}));var l;(function(e){e["CONTINUOUS_SCAN"]="CONTINUOUS_SCAN";e["MANUAL"]="MANUAL";e["SCAN_ON_PUSH"]="SCAN_ON_PUSH"})(l=t.ScanFrequency||(t.ScanFrequency={}));class ValidationException extends r.ECRServiceException{constructor(e){super({name:"ValidationException",$fault:"client",...e});this.name="ValidationException";this.$fault="client";Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends r.ECRServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends r.ECRServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends r.ECRServiceException{constructor(e){super({name:"KmsException",$fault:"client",...e});this.name="KmsException";this.$fault="client";Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends r.ECRServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends r.ECRServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends r.ECRServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class LimitExceededException extends r.ECRServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class PullThroughCacheRuleAlreadyExistsException extends r.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});this.name="PullThroughCacheRuleAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class UnsupportedUpstreamRegistryException extends r.ECRServiceException{constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});this.name="UnsupportedUpstreamRegistryException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;var u;(function(e){e["AES256"]="AES256";e["KMS"]="KMS"})(u=t.EncryptionType||(t.EncryptionType={}));var d;(function(e){e["IMMUTABLE"]="IMMUTABLE";e["MUTABLE"]="MUTABLE"})(d=t.ImageTagMutability||(t.ImageTagMutability={}));class InvalidTagParameterException extends r.ECRServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends r.ECRServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends r.ECRServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class LifecyclePolicyNotFoundException extends r.ECRServiceException{constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends r.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});this.name="PullThroughCacheRuleNotFoundException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends r.ECRServiceException{constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});this.name="RegistryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends r.ECRServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends r.ECRServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;var p;(function(e){e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(p=t.ReplicationStatus||(t.ReplicationStatus={}));class ImageNotFoundException extends r.ECRServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;var f;(function(e){e["ANY"]="ANY";e["TAGGED"]="TAGGED";e["UNTAGGED"]="UNTAGGED"})(f=t.TagStatus||(t.TagStatus={}));var m;(function(e){e["CRITICAL"]="CRITICAL";e["HIGH"]="HIGH";e["INFORMATIONAL"]="INFORMATIONAL";e["LOW"]="LOW";e["MEDIUM"]="MEDIUM";e["UNDEFINED"]="UNDEFINED"})(m=t.FindingSeverity||(t.FindingSeverity={}));var g;(function(e){e["ACTIVE"]="ACTIVE";e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["FINDINGS_UNAVAILABLE"]="FINDINGS_UNAVAILABLE";e["IN_PROGRESS"]="IN_PROGRESS";e["PENDING"]="PENDING";e["SCAN_ELIGIBILITY_EXPIRED"]="SCAN_ELIGIBILITY_EXPIRED";e["UNSUPPORTED_IMAGE"]="UNSUPPORTED_IMAGE"})(g=t.ScanStatus||(t.ScanStatus={}));class ScanNotFoundException extends r.ECRServiceException{constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});this.name="ScanNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;var y;(function(e){e["PREFIX_MATCH"]="PREFIX_MATCH"})(y=t.RepositoryFilterType||(t.RepositoryFilterType={}));class LayerInaccessibleException extends r.ECRServiceException{constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});this.name="LayerInaccessibleException";this.$fault="client";Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends r.ECRServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;var h;(function(e){e["EXPIRE"]="EXPIRE"})(h=t.ImageActionType||(t.ImageActionType={}));var E;(function(e){e["COMPLETE"]="COMPLETE";e["EXPIRED"]="EXPIRED";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(E=t.LifecyclePolicyPreviewStatus||(t.LifecyclePolicyPreviewStatus={}));class LifecyclePolicyPreviewNotFoundException extends r.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyPreviewNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;var v;(function(e){e["BASIC"]="BASIC";e["ENHANCED"]="ENHANCED"})(v=t.ScanType||(t.ScanType={}));class ImageAlreadyExistsException extends r.ECRServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends r.ECRServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends r.ECRServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends r.ECRServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class UnsupportedImageTypeException extends r.ECRServiceException{constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});this.name="UnsupportedImageTypeException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends r.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});this.name="LifecyclePolicyPreviewInProgressException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class InvalidLayerPartException extends r.ECRServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;const BatchCheckLayerAvailabilityRequestFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=BatchCheckLayerAvailabilityRequestFilterSensitiveLog;const LayerFailureFilterSensitiveLog=e=>({...e});t.LayerFailureFilterSensitiveLog=LayerFailureFilterSensitiveLog;const LayerFilterSensitiveLog=e=>({...e});t.LayerFilterSensitiveLog=LayerFilterSensitiveLog;const BatchCheckLayerAvailabilityResponseFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=BatchCheckLayerAvailabilityResponseFilterSensitiveLog;const ImageIdentifierFilterSensitiveLog=e=>({...e});t.ImageIdentifierFilterSensitiveLog=ImageIdentifierFilterSensitiveLog;const BatchDeleteImageRequestFilterSensitiveLog=e=>({...e});t.BatchDeleteImageRequestFilterSensitiveLog=BatchDeleteImageRequestFilterSensitiveLog;const ImageFailureFilterSensitiveLog=e=>({...e});t.ImageFailureFilterSensitiveLog=ImageFailureFilterSensitiveLog;const BatchDeleteImageResponseFilterSensitiveLog=e=>({...e});t.BatchDeleteImageResponseFilterSensitiveLog=BatchDeleteImageResponseFilterSensitiveLog;const BatchGetImageRequestFilterSensitiveLog=e=>({...e});t.BatchGetImageRequestFilterSensitiveLog=BatchGetImageRequestFilterSensitiveLog;const ImageFilterSensitiveLog=e=>({...e});t.ImageFilterSensitiveLog=ImageFilterSensitiveLog;const BatchGetImageResponseFilterSensitiveLog=e=>({...e});t.BatchGetImageResponseFilterSensitiveLog=BatchGetImageResponseFilterSensitiveLog;const BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog;const RepositoryScanningConfigurationFailureFilterSensitiveLog=e=>({...e});t.RepositoryScanningConfigurationFailureFilterSensitiveLog=RepositoryScanningConfigurationFailureFilterSensitiveLog;const ScanningRepositoryFilterFilterSensitiveLog=e=>({...e});t.ScanningRepositoryFilterFilterSensitiveLog=ScanningRepositoryFilterFilterSensitiveLog;const RepositoryScanningConfigurationFilterSensitiveLog=e=>({...e});t.RepositoryScanningConfigurationFilterSensitiveLog=RepositoryScanningConfigurationFilterSensitiveLog;const BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog;const CompleteLayerUploadRequestFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadRequestFilterSensitiveLog=CompleteLayerUploadRequestFilterSensitiveLog;const CompleteLayerUploadResponseFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadResponseFilterSensitiveLog=CompleteLayerUploadResponseFilterSensitiveLog;const CreatePullThroughCacheRuleRequestFilterSensitiveLog=e=>({...e});t.CreatePullThroughCacheRuleRequestFilterSensitiveLog=CreatePullThroughCacheRuleRequestFilterSensitiveLog;const CreatePullThroughCacheRuleResponseFilterSensitiveLog=e=>({...e});t.CreatePullThroughCacheRuleResponseFilterSensitiveLog=CreatePullThroughCacheRuleResponseFilterSensitiveLog;const EncryptionConfigurationFilterSensitiveLog=e=>({...e});t.EncryptionConfigurationFilterSensitiveLog=EncryptionConfigurationFilterSensitiveLog;const ImageScanningConfigurationFilterSensitiveLog=e=>({...e});t.ImageScanningConfigurationFilterSensitiveLog=ImageScanningConfigurationFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const CreateRepositoryRequestFilterSensitiveLog=e=>({...e});t.CreateRepositoryRequestFilterSensitiveLog=CreateRepositoryRequestFilterSensitiveLog;const RepositoryFilterSensitiveLog=e=>({...e});t.RepositoryFilterSensitiveLog=RepositoryFilterSensitiveLog;const CreateRepositoryResponseFilterSensitiveLog=e=>({...e});t.CreateRepositoryResponseFilterSensitiveLog=CreateRepositoryResponseFilterSensitiveLog;const DeleteLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteLifecyclePolicyRequestFilterSensitiveLog=DeleteLifecyclePolicyRequestFilterSensitiveLog;const DeleteLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteLifecyclePolicyResponseFilterSensitiveLog=DeleteLifecyclePolicyResponseFilterSensitiveLog;const DeletePullThroughCacheRuleRequestFilterSensitiveLog=e=>({...e});t.DeletePullThroughCacheRuleRequestFilterSensitiveLog=DeletePullThroughCacheRuleRequestFilterSensitiveLog;const DeletePullThroughCacheRuleResponseFilterSensitiveLog=e=>({...e});t.DeletePullThroughCacheRuleResponseFilterSensitiveLog=DeletePullThroughCacheRuleResponseFilterSensitiveLog;const DeleteRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRegistryPolicyRequestFilterSensitiveLog=DeleteRegistryPolicyRequestFilterSensitiveLog;const DeleteRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRegistryPolicyResponseFilterSensitiveLog=DeleteRegistryPolicyResponseFilterSensitiveLog;const DeleteRepositoryRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryRequestFilterSensitiveLog=DeleteRepositoryRequestFilterSensitiveLog;const DeleteRepositoryResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryResponseFilterSensitiveLog=DeleteRepositoryResponseFilterSensitiveLog;const DeleteRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyRequestFilterSensitiveLog=DeleteRepositoryPolicyRequestFilterSensitiveLog;const DeleteRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyResponseFilterSensitiveLog=DeleteRepositoryPolicyResponseFilterSensitiveLog;const DescribeImageReplicationStatusRequestFilterSensitiveLog=e=>({...e});t.DescribeImageReplicationStatusRequestFilterSensitiveLog=DescribeImageReplicationStatusRequestFilterSensitiveLog;const ImageReplicationStatusFilterSensitiveLog=e=>({...e});t.ImageReplicationStatusFilterSensitiveLog=ImageReplicationStatusFilterSensitiveLog;const DescribeImageReplicationStatusResponseFilterSensitiveLog=e=>({...e});t.DescribeImageReplicationStatusResponseFilterSensitiveLog=DescribeImageReplicationStatusResponseFilterSensitiveLog;const DescribeImagesFilterFilterSensitiveLog=e=>({...e});t.DescribeImagesFilterFilterSensitiveLog=DescribeImagesFilterFilterSensitiveLog;const DescribeImagesRequestFilterSensitiveLog=e=>({...e});t.DescribeImagesRequestFilterSensitiveLog=DescribeImagesRequestFilterSensitiveLog;const ImageScanFindingsSummaryFilterSensitiveLog=e=>({...e});t.ImageScanFindingsSummaryFilterSensitiveLog=ImageScanFindingsSummaryFilterSensitiveLog;const ImageScanStatusFilterSensitiveLog=e=>({...e});t.ImageScanStatusFilterSensitiveLog=ImageScanStatusFilterSensitiveLog;const ImageDetailFilterSensitiveLog=e=>({...e});t.ImageDetailFilterSensitiveLog=ImageDetailFilterSensitiveLog;const DescribeImagesResponseFilterSensitiveLog=e=>({...e});t.DescribeImagesResponseFilterSensitiveLog=DescribeImagesResponseFilterSensitiveLog;const DescribeImageScanFindingsRequestFilterSensitiveLog=e=>({...e});t.DescribeImageScanFindingsRequestFilterSensitiveLog=DescribeImageScanFindingsRequestFilterSensitiveLog;const CvssScoreFilterSensitiveLog=e=>({...e});t.CvssScoreFilterSensitiveLog=CvssScoreFilterSensitiveLog;const VulnerablePackageFilterSensitiveLog=e=>({...e});t.VulnerablePackageFilterSensitiveLog=VulnerablePackageFilterSensitiveLog;const PackageVulnerabilityDetailsFilterSensitiveLog=e=>({...e});t.PackageVulnerabilityDetailsFilterSensitiveLog=PackageVulnerabilityDetailsFilterSensitiveLog;const RecommendationFilterSensitiveLog=e=>({...e});t.RecommendationFilterSensitiveLog=RecommendationFilterSensitiveLog;const RemediationFilterSensitiveLog=e=>({...e});t.RemediationFilterSensitiveLog=RemediationFilterSensitiveLog;const AwsEcrContainerImageDetailsFilterSensitiveLog=e=>({...e});t.AwsEcrContainerImageDetailsFilterSensitiveLog=AwsEcrContainerImageDetailsFilterSensitiveLog;const ResourceDetailsFilterSensitiveLog=e=>({...e});t.ResourceDetailsFilterSensitiveLog=ResourceDetailsFilterSensitiveLog;const ResourceFilterSensitiveLog=e=>({...e});t.ResourceFilterSensitiveLog=ResourceFilterSensitiveLog;const CvssScoreAdjustmentFilterSensitiveLog=e=>({...e});t.CvssScoreAdjustmentFilterSensitiveLog=CvssScoreAdjustmentFilterSensitiveLog;const CvssScoreDetailsFilterSensitiveLog=e=>({...e});t.CvssScoreDetailsFilterSensitiveLog=CvssScoreDetailsFilterSensitiveLog;const ScoreDetailsFilterSensitiveLog=e=>({...e});t.ScoreDetailsFilterSensitiveLog=ScoreDetailsFilterSensitiveLog;const EnhancedImageScanFindingFilterSensitiveLog=e=>({...e});t.EnhancedImageScanFindingFilterSensitiveLog=EnhancedImageScanFindingFilterSensitiveLog;const AttributeFilterSensitiveLog=e=>({...e});t.AttributeFilterSensitiveLog=AttributeFilterSensitiveLog;const ImageScanFindingFilterSensitiveLog=e=>({...e});t.ImageScanFindingFilterSensitiveLog=ImageScanFindingFilterSensitiveLog;const ImageScanFindingsFilterSensitiveLog=e=>({...e});t.ImageScanFindingsFilterSensitiveLog=ImageScanFindingsFilterSensitiveLog;const DescribeImageScanFindingsResponseFilterSensitiveLog=e=>({...e});t.DescribeImageScanFindingsResponseFilterSensitiveLog=DescribeImageScanFindingsResponseFilterSensitiveLog;const DescribePullThroughCacheRulesRequestFilterSensitiveLog=e=>({...e});t.DescribePullThroughCacheRulesRequestFilterSensitiveLog=DescribePullThroughCacheRulesRequestFilterSensitiveLog;const PullThroughCacheRuleFilterSensitiveLog=e=>({...e});t.PullThroughCacheRuleFilterSensitiveLog=PullThroughCacheRuleFilterSensitiveLog;const DescribePullThroughCacheRulesResponseFilterSensitiveLog=e=>({...e});t.DescribePullThroughCacheRulesResponseFilterSensitiveLog=DescribePullThroughCacheRulesResponseFilterSensitiveLog;const DescribeRegistryRequestFilterSensitiveLog=e=>({...e});t.DescribeRegistryRequestFilterSensitiveLog=DescribeRegistryRequestFilterSensitiveLog;const ReplicationDestinationFilterSensitiveLog=e=>({...e});t.ReplicationDestinationFilterSensitiveLog=ReplicationDestinationFilterSensitiveLog;const RepositoryFilterFilterSensitiveLog=e=>({...e});t.RepositoryFilterFilterSensitiveLog=RepositoryFilterFilterSensitiveLog;const ReplicationRuleFilterSensitiveLog=e=>({...e});t.ReplicationRuleFilterSensitiveLog=ReplicationRuleFilterSensitiveLog;const ReplicationConfigurationFilterSensitiveLog=e=>({...e});t.ReplicationConfigurationFilterSensitiveLog=ReplicationConfigurationFilterSensitiveLog;const DescribeRegistryResponseFilterSensitiveLog=e=>({...e});t.DescribeRegistryResponseFilterSensitiveLog=DescribeRegistryResponseFilterSensitiveLog;const DescribeRepositoriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesRequestFilterSensitiveLog=DescribeRepositoriesRequestFilterSensitiveLog;const DescribeRepositoriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesResponseFilterSensitiveLog=DescribeRepositoriesResponseFilterSensitiveLog;const GetAuthorizationTokenRequestFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenRequestFilterSensitiveLog=GetAuthorizationTokenRequestFilterSensitiveLog;const AuthorizationDataFilterSensitiveLog=e=>({...e});t.AuthorizationDataFilterSensitiveLog=AuthorizationDataFilterSensitiveLog;const GetAuthorizationTokenResponseFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenResponseFilterSensitiveLog=GetAuthorizationTokenResponseFilterSensitiveLog;const GetDownloadUrlForLayerRequestFilterSensitiveLog=e=>({...e});t.GetDownloadUrlForLayerRequestFilterSensitiveLog=GetDownloadUrlForLayerRequestFilterSensitiveLog;const GetDownloadUrlForLayerResponseFilterSensitiveLog=e=>({...e});t.GetDownloadUrlForLayerResponseFilterSensitiveLog=GetDownloadUrlForLayerResponseFilterSensitiveLog;const GetLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyRequestFilterSensitiveLog=GetLifecyclePolicyRequestFilterSensitiveLog;const GetLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyResponseFilterSensitiveLog=GetLifecyclePolicyResponseFilterSensitiveLog;const LifecyclePolicyPreviewFilterFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewFilterFilterSensitiveLog=LifecyclePolicyPreviewFilterFilterSensitiveLog;const GetLifecyclePolicyPreviewRequestFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyPreviewRequestFilterSensitiveLog=GetLifecyclePolicyPreviewRequestFilterSensitiveLog;const LifecyclePolicyRuleActionFilterSensitiveLog=e=>({...e});t.LifecyclePolicyRuleActionFilterSensitiveLog=LifecyclePolicyRuleActionFilterSensitiveLog;const LifecyclePolicyPreviewResultFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewResultFilterSensitiveLog=LifecyclePolicyPreviewResultFilterSensitiveLog;const LifecyclePolicyPreviewSummaryFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewSummaryFilterSensitiveLog=LifecyclePolicyPreviewSummaryFilterSensitiveLog;const GetLifecyclePolicyPreviewResponseFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyPreviewResponseFilterSensitiveLog=GetLifecyclePolicyPreviewResponseFilterSensitiveLog;const GetRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRegistryPolicyRequestFilterSensitiveLog=GetRegistryPolicyRequestFilterSensitiveLog;const GetRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRegistryPolicyResponseFilterSensitiveLog=GetRegistryPolicyResponseFilterSensitiveLog;const GetRegistryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.GetRegistryScanningConfigurationRequestFilterSensitiveLog=GetRegistryScanningConfigurationRequestFilterSensitiveLog;const RegistryScanningRuleFilterSensitiveLog=e=>({...e});t.RegistryScanningRuleFilterSensitiveLog=RegistryScanningRuleFilterSensitiveLog;const RegistryScanningConfigurationFilterSensitiveLog=e=>({...e});t.RegistryScanningConfigurationFilterSensitiveLog=RegistryScanningConfigurationFilterSensitiveLog;const GetRegistryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.GetRegistryScanningConfigurationResponseFilterSensitiveLog=GetRegistryScanningConfigurationResponseFilterSensitiveLog;const GetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyRequestFilterSensitiveLog=GetRepositoryPolicyRequestFilterSensitiveLog;const GetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyResponseFilterSensitiveLog=GetRepositoryPolicyResponseFilterSensitiveLog;const InitiateLayerUploadRequestFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadRequestFilterSensitiveLog=InitiateLayerUploadRequestFilterSensitiveLog;const InitiateLayerUploadResponseFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadResponseFilterSensitiveLog=InitiateLayerUploadResponseFilterSensitiveLog;const ListImagesFilterFilterSensitiveLog=e=>({...e});t.ListImagesFilterFilterSensitiveLog=ListImagesFilterFilterSensitiveLog;const ListImagesRequestFilterSensitiveLog=e=>({...e});t.ListImagesRequestFilterSensitiveLog=ListImagesRequestFilterSensitiveLog;const ListImagesResponseFilterSensitiveLog=e=>({...e});t.ListImagesResponseFilterSensitiveLog=ListImagesResponseFilterSensitiveLog;const ListTagsForResourceRequestFilterSensitiveLog=e=>({...e});t.ListTagsForResourceRequestFilterSensitiveLog=ListTagsForResourceRequestFilterSensitiveLog;const ListTagsForResourceResponseFilterSensitiveLog=e=>({...e});t.ListTagsForResourceResponseFilterSensitiveLog=ListTagsForResourceResponseFilterSensitiveLog;const PutImageRequestFilterSensitiveLog=e=>({...e});t.PutImageRequestFilterSensitiveLog=PutImageRequestFilterSensitiveLog;const PutImageResponseFilterSensitiveLog=e=>({...e});t.PutImageResponseFilterSensitiveLog=PutImageResponseFilterSensitiveLog;const PutImageScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutImageScanningConfigurationRequestFilterSensitiveLog=PutImageScanningConfigurationRequestFilterSensitiveLog;const PutImageScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutImageScanningConfigurationResponseFilterSensitiveLog=PutImageScanningConfigurationResponseFilterSensitiveLog;const PutImageTagMutabilityRequestFilterSensitiveLog=e=>({...e});t.PutImageTagMutabilityRequestFilterSensitiveLog=PutImageTagMutabilityRequestFilterSensitiveLog;const PutImageTagMutabilityResponseFilterSensitiveLog=e=>({...e});t.PutImageTagMutabilityResponseFilterSensitiveLog=PutImageTagMutabilityResponseFilterSensitiveLog;const PutLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.PutLifecyclePolicyRequestFilterSensitiveLog=PutLifecyclePolicyRequestFilterSensitiveLog;const PutLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.PutLifecyclePolicyResponseFilterSensitiveLog=PutLifecyclePolicyResponseFilterSensitiveLog;const PutRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.PutRegistryPolicyRequestFilterSensitiveLog=PutRegistryPolicyRequestFilterSensitiveLog;const PutRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.PutRegistryPolicyResponseFilterSensitiveLog=PutRegistryPolicyResponseFilterSensitiveLog;const PutRegistryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutRegistryScanningConfigurationRequestFilterSensitiveLog=PutRegistryScanningConfigurationRequestFilterSensitiveLog;const PutRegistryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutRegistryScanningConfigurationResponseFilterSensitiveLog=PutRegistryScanningConfigurationResponseFilterSensitiveLog;const PutReplicationConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutReplicationConfigurationRequestFilterSensitiveLog=PutReplicationConfigurationRequestFilterSensitiveLog;const PutReplicationConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutReplicationConfigurationResponseFilterSensitiveLog=PutReplicationConfigurationResponseFilterSensitiveLog;const SetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyRequestFilterSensitiveLog=SetRepositoryPolicyRequestFilterSensitiveLog;const SetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyResponseFilterSensitiveLog=SetRepositoryPolicyResponseFilterSensitiveLog;const StartImageScanRequestFilterSensitiveLog=e=>({...e});t.StartImageScanRequestFilterSensitiveLog=StartImageScanRequestFilterSensitiveLog;const StartImageScanResponseFilterSensitiveLog=e=>({...e});t.StartImageScanResponseFilterSensitiveLog=StartImageScanResponseFilterSensitiveLog;const StartLifecyclePolicyPreviewRequestFilterSensitiveLog=e=>({...e});t.StartLifecyclePolicyPreviewRequestFilterSensitiveLog=StartLifecyclePolicyPreviewRequestFilterSensitiveLog;const StartLifecyclePolicyPreviewResponseFilterSensitiveLog=e=>({...e});t.StartLifecyclePolicyPreviewResponseFilterSensitiveLog=StartLifecyclePolicyPreviewResponseFilterSensitiveLog;const TagResourceRequestFilterSensitiveLog=e=>({...e});t.TagResourceRequestFilterSensitiveLog=TagResourceRequestFilterSensitiveLog;const TagResourceResponseFilterSensitiveLog=e=>({...e});t.TagResourceResponseFilterSensitiveLog=TagResourceResponseFilterSensitiveLog;const UntagResourceRequestFilterSensitiveLog=e=>({...e});t.UntagResourceRequestFilterSensitiveLog=UntagResourceRequestFilterSensitiveLog;const UntagResourceResponseFilterSensitiveLog=e=>({...e});t.UntagResourceResponseFilterSensitiveLog=UntagResourceResponseFilterSensitiveLog;const UploadLayerPartRequestFilterSensitiveLog=e=>({...e});t.UploadLayerPartRequestFilterSensitiveLog=UploadLayerPartRequestFilterSensitiveLog;const UploadLayerPartResponseFilterSensitiveLog=e=>({...e});t.UploadLayerPartResponseFilterSensitiveLog=UploadLayerPartResponseFilterSensitiveLog},30862:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const r=o(72987);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeImageScanFindingsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImageScanFindings(t,...o);async function*paginateDescribeImageScanFindings(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeImageScanFindings=paginateDescribeImageScanFindings},51351:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const r=o(95353);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImages(t,...o);async function*paginateDescribeImages(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeImages=paginateDescribeImages},59589:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribePullThroughCacheRules=void 0;const r=o(31484);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribePullThroughCacheRulesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describePullThroughCacheRules(t,...o);async function*paginateDescribePullThroughCacheRules(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribePullThroughCacheRules=paginateDescribePullThroughCacheRules},16404:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const r=o(21200);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.DescribeRepositoriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRepositories(t,...o);async function*paginateDescribeRepositories(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},50987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateGetLifecyclePolicyPreview=void 0;const r=o(17006);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.GetLifecyclePolicyPreviewCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.getLifecyclePolicyPreview(t,...o);async function*paginateGetLifecyclePolicyPreview(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateGetLifecyclePolicyPreview=paginateGetLifecyclePolicyPreview},9010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1066:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListImages=void 0;const r=o(3854);const n=o(59167);const s=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.ListImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listImages(t,...o);async function*paginateListImages(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateListImages=paginateListImages},35356:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(30862),t);r.__exportStar(o(51351),t);r.__exportStar(o(59589),t);r.__exportStar(o(16404),t);r.__exportStar(o(50987),t);r.__exportStar(o(9010),t);r.__exportStar(o(1066),t)},56704:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.deserializeAws_json1_1BatchGetImageCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.serializeAws_json1_1StartImageScanCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutReplicationConfigurationCommand=t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=t.serializeAws_json1_1PutRegistryPolicyCommand=t.serializeAws_json1_1PutLifecyclePolicyCommand=t.serializeAws_json1_1PutImageTagMutabilityCommand=t.serializeAws_json1_1PutImageScanningConfigurationCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1ListImagesCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=t.serializeAws_json1_1GetRegistryPolicyCommand=t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.serializeAws_json1_1GetLifecyclePolicyCommand=t.serializeAws_json1_1GetDownloadUrlForLayerCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistryCommand=t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=t.serializeAws_json1_1DescribeImageScanFindingsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DescribeImageReplicationStatusCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1DeleteRegistryPolicyCommand=t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=t.serializeAws_json1_1DeleteLifecyclePolicyCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.serializeAws_json1_1BatchGetImageCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;t.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1StartImageScanCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutReplicationConfigurationCommand=t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=t.deserializeAws_json1_1PutRegistryPolicyCommand=t.deserializeAws_json1_1PutLifecyclePolicyCommand=t.deserializeAws_json1_1PutImageTagMutabilityCommand=t.deserializeAws_json1_1PutImageScanningConfigurationCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1ListImagesCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=t.deserializeAws_json1_1GetRegistryPolicyCommand=t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1GetLifecyclePolicyCommand=t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistryCommand=t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=t.deserializeAws_json1_1DescribeImageScanFindingsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1DeleteRegistryPolicyCommand=void 0;const r=o(70223);const n=o(4963);const s=o(11610);const i=o(79088);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability"};let r;r=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage"};let r;r=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1BatchGetImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetImage"};let r;r=JSON.stringify(serializeAws_json1_1BatchGetImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchGetImageCommand=serializeAws_json1_1BatchGetImageCommand;const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration"};let r;r=JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload"};let r;r=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule"};let r;r=JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=serializeAws_json1_1CreatePullThroughCacheRuleCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreateRepository"};let r;r=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy"};let r;r=JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteLifecyclePolicyCommand=serializeAws_json1_1DeleteLifecyclePolicyCommand;const serializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"};let r;r=JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=serializeAws_json1_1DeletePullThroughCacheRuleCommand;const serializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteRegistryPolicyCommand=serializeAws_json1_1DeleteRegistryPolicyCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepository"};let r;r=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus"};let r;r=JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeImageReplicationStatusCommand=serializeAws_json1_1DescribeImageReplicationStatusCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImages"};let r;r=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings"};let r;r=JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeImageScanFindingsCommand=serializeAws_json1_1DescribeImageScanFindingsCommand;const serializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules"};let r;r=JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=serializeAws_json1_1DescribePullThroughCacheRulesCommand;const serializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRegistry"};let r;r=JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeRegistryCommand=serializeAws_json1_1DescribeRegistryCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"};let r;r=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken"};let r;r=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer"};let r;r=JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetDownloadUrlForLayerCommand=serializeAws_json1_1GetDownloadUrlForLayerCommand;const serializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy"};let r;r=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetLifecyclePolicyCommand=serializeAws_json1_1GetLifecyclePolicyCommand;const serializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview"};let r;r=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=serializeAws_json1_1GetLifecyclePolicyPreviewCommand;const serializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRegistryPolicyCommand=serializeAws_json1_1GetRegistryPolicyCommand;const serializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration"};let r;r=JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=serializeAws_json1_1GetRegistryScanningConfigurationCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload"};let r;r=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListImages"};let r;r=JSON.stringify(serializeAws_json1_1ListImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1ListImagesCommand=serializeAws_json1_1ListImagesCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListTagsForResource"};let r;r=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImage"};let r;r=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration"};let r;r=JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutImageScanningConfigurationCommand=serializeAws_json1_1PutImageScanningConfigurationCommand;const serializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability"};let r;r=JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutImageTagMutabilityCommand=serializeAws_json1_1PutImageTagMutabilityCommand;const serializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy"};let r;r=JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutLifecyclePolicyCommand=serializeAws_json1_1PutLifecyclePolicyCommand;const serializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutRegistryPolicyCommand=serializeAws_json1_1PutRegistryPolicyCommand;const serializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration"};let r;r=JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=serializeAws_json1_1PutRegistryScanningConfigurationCommand;const serializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration"};let r;r=JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1PutReplicationConfigurationCommand=serializeAws_json1_1PutReplicationConfigurationCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy"};let r;r=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1StartImageScanCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartImageScan"};let r;r=JSON.stringify(serializeAws_json1_1StartImageScanRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1StartImageScanCommand=serializeAws_json1_1StartImageScanCommand;const serializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview"};let r;r=JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=serializeAws_json1_1StartLifecyclePolicyPreviewCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.TagResource"};let r;r=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UntagResource"};let r;r=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UploadLayerPart"};let r;r=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchDeleteImageResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetImageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchGetImageResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchGetImageCommand=deserializeAws_json1_1BatchGetImageCommand;const deserializeAws_json1_1BatchGetImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1CompleteLayerUploadResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(o,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1CreatePullThroughCacheRuleResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=deserializeAws_json1_1CreatePullThroughCacheRuleCommand;const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1CreateRepositoryResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteLifecyclePolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=deserializeAws_json1_1DeleteLifecyclePolicyCommand;const deserializeAws_json1_1DeleteLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeletePullThroughCacheRuleResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=deserializeAws_json1_1DeletePullThroughCacheRuleCommand;const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteRegistryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteRegistryPolicyCommand=deserializeAws_json1_1DeleteRegistryPolicyCommand;const deserializeAws_json1_1DeleteRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteRepositoryResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DeleteRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeImageReplicationStatusResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=deserializeAws_json1_1DescribeImageReplicationStatusCommand;const deserializeAws_json1_1DescribeImageReplicationStatusCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeImagesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageScanFindingsCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeImageScanFindingsResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeImageScanFindingsCommand=deserializeAws_json1_1DescribeImageScanFindingsCommand;const deserializeAws_json1_1DescribeImageScanFindingsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await deserializeAws_json1_1ScanNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribePullThroughCacheRulesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=deserializeAws_json1_1DescribePullThroughCacheRulesCommand;const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistryCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeRegistryResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeRegistryCommand=deserializeAws_json1_1DescribeRegistryCommand;const deserializeAws_json1_1DescribeRegistryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1DescribeRepositoriesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetAuthorizationTokenResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetDownloadUrlForLayerCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetDownloadUrlForLayerResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=deserializeAws_json1_1GetDownloadUrlForLayerCommand;const deserializeAws_json1_1GetDownloadUrlForLayerCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await deserializeAws_json1_1LayerInaccessibleExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetLifecyclePolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetLifecyclePolicyCommand=deserializeAws_json1_1GetLifecyclePolicyCommand;const deserializeAws_json1_1GetLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=deserializeAws_json1_1GetLifecyclePolicyPreviewCommand;const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRegistryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRegistryPolicyCommand=deserializeAws_json1_1GetRegistryPolicyCommand;const deserializeAws_json1_1GetRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRegistryScanningConfigurationResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=deserializeAws_json1_1GetRegistryScanningConfigurationCommand;const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1GetRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1InitiateLayerUploadResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListImagesCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1ListImagesResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1ListImagesCommand=deserializeAws_json1_1ListImagesCommand;const deserializeAws_json1_1ListImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1ListTagsForResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutImageResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutImageScanningConfigurationResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutImageScanningConfigurationCommand=deserializeAws_json1_1PutImageScanningConfigurationCommand;const deserializeAws_json1_1PutImageScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageTagMutabilityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutImageTagMutabilityResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutImageTagMutabilityCommand=deserializeAws_json1_1PutImageTagMutabilityCommand;const deserializeAws_json1_1PutImageTagMutabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutLifecyclePolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutLifecyclePolicyCommand=deserializeAws_json1_1PutLifecyclePolicyCommand;const deserializeAws_json1_1PutLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutRegistryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutRegistryPolicyCommand=deserializeAws_json1_1PutRegistryPolicyCommand;const deserializeAws_json1_1PutRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutRegistryScanningConfigurationResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=deserializeAws_json1_1PutRegistryScanningConfigurationCommand;const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutReplicationConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1PutReplicationConfigurationResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1PutReplicationConfigurationCommand=deserializeAws_json1_1PutReplicationConfigurationCommand;const deserializeAws_json1_1PutReplicationConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1SetRepositoryPolicyResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartImageScanCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1StartImageScanResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1StartImageScanCommand=deserializeAws_json1_1StartImageScanCommand;const deserializeAws_json1_1StartImageScanCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=deserializeAws_json1_1StartLifecyclePolicyPreviewCommand;const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1TagResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1UntagResourceResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_json1_1UploadLayerPartResponse(o,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const i=o.body;(0,n.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.ECRServiceException,errorCode:r})}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1EmptyUploadException(o,t);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageAlreadyExistsException(o,t);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageDigestDoesNotMatchException(o,t);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageNotFoundException(o,t);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ImageTagAlreadyExistsException(o,t);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidLayerException(o,t);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidLayerPartException(o,t);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidParameterException(o,t);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1InvalidTagParameterException(o,t);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1KmsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1KmsException(o,t);const s=new i.KmsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayerAlreadyExistsException(o,t);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayerInaccessibleExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayerInaccessibleException(o,t);const s=new i.LayerInaccessibleException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayerPartTooSmallException(o,t);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LayersNotFoundException(o,t);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LifecyclePolicyNotFoundException(o,t);const s=new i.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(o,t);const s=new i.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(o,t);const s=new i.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1LimitExceededException(o,t);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(o,t);const s=new i.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1PullThroughCacheRuleNotFoundException(o,t);const s=new i.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ReferencedImagesNotFoundException(o,t);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RegistryPolicyNotFoundException(o,t);const s=new i.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryAlreadyExistsException(o,t);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryNotEmptyException(o,t);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryNotFoundException(o,t);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1RepositoryPolicyNotFoundException(o,t);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ScanNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ScanNotFoundException(o,t);const s=new i.ScanNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ServerException(o,t);const s=new i.ServerException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1TooManyTagsException(o,t);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1UnsupportedImageTypeException(o,t);const s=new i.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1UnsupportedUpstreamRegistryException(o,t);const s=new i.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1UploadNotFoundException(o,t);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_json1_1ValidationExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_json1_1ValidationException(o,t);const s=new i.ValidationException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1BatchGetImageRequest=(e,t)=>({...e.acceptedMediaTypes!=null&&{acceptedMediaTypes:serializeAws_json1_1MediaTypeList(e.acceptedMediaTypes,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest=(e,t)=>({...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1ScanningConfigurationRepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreatePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!=null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!=null&&{registryId:e.registryId},...e.upstreamRegistryUrl!=null&&{upstreamRegistryUrl:e.upstreamRegistryUrl}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.encryptionConfiguration!=null&&{encryptionConfiguration:serializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t)},...e.imageScanningConfiguration!=null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.imageTagMutability!=null&&{imageTagMutability:e.imageTagMutability},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteLifecyclePolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeletePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!=null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1DeleteRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageReplicationStatusRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageScanFindingsRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1DescribeImagesFilter(e.filter,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribePullThroughCacheRulesRequest=(e,t)=>({...e.ecrRepositoryPrefixes!=null&&{ecrRepositoryPrefixes:serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(e.ecrRepositoryPrefixes,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1DescribeRegistryRequest=(e,t)=>({});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1EncryptionConfiguration=(e,t)=>({...e.encryptionType!=null&&{encryptionType:e.encryptionType},...e.kmsKey!=null&&{kmsKey:e.kmsKey}});const serializeAws_json1_1GetAuthorizationTokenRegistryIdList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({...e.registryIds!=null&&{registryIds:serializeAws_json1_1GetAuthorizationTokenRegistryIdList(e.registryIds,t)}});const serializeAws_json1_1GetDownloadUrlForLayerRequest=(e,t)=>({...e.layerDigest!=null&&{layerDigest:e.layerDigest},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyPreviewRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1LifecyclePolicyPreviewFilter(e.filter,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryScanningConfigurationRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageTag!=null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ImageIdentifier(e,t)));const serializeAws_json1_1ImageScanningConfiguration=(e,t)=>({...e.scanOnPush!=null&&{scanOnPush:e.scanOnPush}});const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1LifecyclePolicyPreviewFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1ListImagesFilter(e.filter,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1MediaTypeList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageManifest!=null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!=null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!=null&&{imageTag:e.imageTag},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageScanningConfigurationRequest=(e,t)=>({...e.imageScanningConfiguration!=null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageTagMutabilityRequest=(e,t)=>({...e.imageTagMutability!=null&&{imageTagMutability:e.imageTagMutability},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutLifecyclePolicyRequest=(e,t)=>({...e.lifecyclePolicyText!=null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryPolicyRequest=(e,t)=>({...e.policyText!=null&&{policyText:e.policyText}});const serializeAws_json1_1PutRegistryScanningConfigurationRequest=(e,t)=>({...e.rules!=null&&{rules:serializeAws_json1_1RegistryScanningRuleList(e.rules,t)},...e.scanType!=null&&{scanType:e.scanType}});const serializeAws_json1_1PutReplicationConfigurationRequest=(e,t)=>({...e.replicationConfiguration!=null&&{replicationConfiguration:serializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t)}});const serializeAws_json1_1RegistryScanningRule=(e,t)=>({...e.repositoryFilters!=null&&{repositoryFilters:serializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t)},...e.scanFrequency!=null&&{scanFrequency:e.scanFrequency}});const serializeAws_json1_1RegistryScanningRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1RegistryScanningRule(e,t)));const serializeAws_json1_1ReplicationConfiguration=(e,t)=>({...e.rules!=null&&{rules:serializeAws_json1_1ReplicationRuleList(e.rules,t)}});const serializeAws_json1_1ReplicationDestination=(e,t)=>({...e.region!=null&&{region:e.region},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1ReplicationDestinationList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ReplicationDestination(e,t)));const serializeAws_json1_1ReplicationRule=(e,t)=>({...e.destinations!=null&&{destinations:serializeAws_json1_1ReplicationDestinationList(e.destinations,t)},...e.repositoryFilters!=null&&{repositoryFilters:serializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t)}});const serializeAws_json1_1ReplicationRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ReplicationRule(e,t)));const serializeAws_json1_1RepositoryFilter=(e,t)=>({...e.filter!=null&&{filter:e.filter},...e.filterType!=null&&{filterType:e.filterType}});const serializeAws_json1_1RepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1RepositoryFilter(e,t)));const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ScanningConfigurationRepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({...e.filter!=null&&{filter:e.filter},...e.filterType!=null&&{filterType:e.filterType}});const serializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ScanningRepositoryFilter(e,t)));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.policyText!=null&&{policyText:e.policyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartImageScanRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartLifecyclePolicyPreviewRequest=(e,t)=>({...e.lifecyclePolicyText!=null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!=null&&{Key:e.Key},...e.Value!=null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1Tag(e,t)));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tagKeys!=null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!=null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!=null&&{partFirstByte:e.partFirstByte},...e.partLastByte!=null&&{partLastByte:e.partLastByte},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const deserializeAws_json1_1Attribute=(e,t)=>({key:(0,n.expectString)(e.key),value:(0,n.expectString)(e.value)});const deserializeAws_json1_1AttributeList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Attribute(e,t)}));return o};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:(0,n.expectString)(e.authorizationToken),expiresAt:e.expiresAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.expiresAt))):undefined,proxyEndpoint:(0,n.expectString)(e.proxyEndpoint)});const deserializeAws_json1_1AuthorizationDataList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1AuthorizationData(e,t)}));return o};const deserializeAws_json1_1AwsEcrContainerImageDetails=(e,t)=>({architecture:(0,n.expectString)(e.architecture),author:(0,n.expectString)(e.author),imageHash:(0,n.expectString)(e.imageHash),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagsList(e.imageTags,t):undefined,platform:(0,n.expectString)(e.platform),pushedAt:e.pushedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.pushedAt))):undefined,registry:(0,n.expectString)(e.registry),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!=null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1BatchGetImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,images:e.images!=null?deserializeAws_json1_1ImageList(e.images,t):undefined});const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1RepositoryScanningConfigurationFailureList(e.failures,t):undefined,scanningConfigurations:e.scanningConfigurations!=null?deserializeAws_json1_1RepositoryScanningConfigurationList(e.scanningConfigurations,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:(0,n.expectString)(e.layerDigest),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1CreatePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,n.expectString)(e.ecrRepositoryPrefix),registryId:(0,n.expectString)(e.registryId),upstreamRegistryUrl:(0,n.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1CvssScore=(e,t)=>({baseScore:(0,n.limitedParseDouble)(e.baseScore),scoringVector:(0,n.expectString)(e.scoringVector),source:(0,n.expectString)(e.source),version:(0,n.expectString)(e.version)});const deserializeAws_json1_1CvssScoreAdjustment=(e,t)=>({metric:(0,n.expectString)(e.metric),reason:(0,n.expectString)(e.reason)});const deserializeAws_json1_1CvssScoreAdjustmentList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScoreAdjustment(e,t)}));return o};const deserializeAws_json1_1CvssScoreDetails=(e,t)=>({adjustments:e.adjustments!=null?deserializeAws_json1_1CvssScoreAdjustmentList(e.adjustments,t):undefined,score:(0,n.limitedParseDouble)(e.score),scoreSource:(0,n.expectString)(e.scoreSource),scoringVector:(0,n.expectString)(e.scoringVector),version:(0,n.expectString)(e.version)});const deserializeAws_json1_1CvssScoreList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScore(e,t)}));return o};const deserializeAws_json1_1DeleteLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:(0,n.expectString)(e.lifecyclePolicyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1DeletePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,n.expectString)(e.ecrRepositoryPrefix),registryId:(0,n.expectString)(e.registryId),upstreamRegistryUrl:(0,n.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1DeleteRegistryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId)});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImageReplicationStatusResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,replicationStatuses:e.replicationStatuses!=null?deserializeAws_json1_1ImageReplicationStatusList(e.replicationStatuses,t):undefined,repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1DescribeImageScanFindingsResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanFindings:e.imageScanFindings!=null?deserializeAws_json1_1ImageScanFindings(e.imageScanFindings,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,nextToken:(0,n.expectString)(e.nextToken),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!=null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:(0,n.expectString)(e.nextToken)});const deserializeAws_json1_1DescribePullThroughCacheRulesResponse=(e,t)=>({nextToken:(0,n.expectString)(e.nextToken),pullThroughCacheRules:e.pullThroughCacheRules!=null?deserializeAws_json1_1PullThroughCacheRuleList(e.pullThroughCacheRules,t):undefined});const deserializeAws_json1_1DescribeRegistryResponse=(e,t)=>({registryId:(0,n.expectString)(e.registryId),replicationConfiguration:e.replicationConfiguration!=null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:(0,n.expectString)(e.nextToken),repositories:e.repositories!=null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1EncryptionConfiguration=(e,t)=>({encryptionType:(0,n.expectString)(e.encryptionType),kmsKey:(0,n.expectString)(e.kmsKey)});const deserializeAws_json1_1EnhancedImageScanFinding=(e,t)=>({awsAccountId:(0,n.expectString)(e.awsAccountId),description:(0,n.expectString)(e.description),findingArn:(0,n.expectString)(e.findingArn),firstObservedAt:e.firstObservedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.firstObservedAt))):undefined,lastObservedAt:e.lastObservedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.lastObservedAt))):undefined,packageVulnerabilityDetails:e.packageVulnerabilityDetails!=null?deserializeAws_json1_1PackageVulnerabilityDetails(e.packageVulnerabilityDetails,t):undefined,remediation:e.remediation!=null?deserializeAws_json1_1Remediation(e.remediation,t):undefined,resources:e.resources!=null?deserializeAws_json1_1ResourceList(e.resources,t):undefined,score:(0,n.limitedParseDouble)(e.score),scoreDetails:e.scoreDetails!=null?deserializeAws_json1_1ScoreDetails(e.scoreDetails,t):undefined,severity:(0,n.expectString)(e.severity),status:(0,n.expectString)(e.status),title:(0,n.expectString)(e.title),type:(0,n.expectString)(e.type),updatedAt:e.updatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.updatedAt))):undefined});const deserializeAws_json1_1EnhancedImageScanFindingList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1EnhancedImageScanFinding(e,t)}));return o};const deserializeAws_json1_1FindingSeverityCounts=(e,t)=>Object.entries(e).reduce(((e,[t,o])=>{if(o===null){return e}e[t]=(0,n.expectInt32)(o);return e}),{});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!=null?deserializeAws_json1_1AuthorizationDataList(e.authorizationData,t):undefined});const deserializeAws_json1_1GetDownloadUrlForLayerResponse=(e,t)=>({downloadUrl:(0,n.expectString)(e.downloadUrl),layerDigest:(0,n.expectString)(e.layerDigest)});const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:(0,n.expectString)(e.lifecyclePolicyText),nextToken:(0,n.expectString)(e.nextToken),previewResults:e.previewResults!=null?deserializeAws_json1_1LifecyclePolicyPreviewResultList(e.previewResults,t):undefined,registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),status:(0,n.expectString)(e.status),summary:e.summary!=null?deserializeAws_json1_1LifecyclePolicyPreviewSummary(e.summary,t):undefined});const deserializeAws_json1_1GetLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:(0,n.expectString)(e.lifecyclePolicyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1GetRegistryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId)});const deserializeAws_json1_1GetRegistryScanningConfigurationResponse=(e,t)=>({registryId:(0,n.expectString)(e.registryId),scanningConfiguration:e.scanningConfiguration!=null?deserializeAws_json1_1RegistryScanningConfiguration(e.scanningConfiguration,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:(0,n.expectString)(e.imageManifest),imageManifestMediaType:(0,n.expectString)(e.imageManifestMediaType),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:(0,n.expectString)(e.artifactMediaType),imageDigest:(0,n.expectString)(e.imageDigest),imageManifestMediaType:(0,n.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imagePushedAt))):undefined,imageScanFindingsSummary:e.imageScanFindingsSummary!=null?deserializeAws_json1_1ImageScanFindingsSummary(e.imageScanFindingsSummary,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,imageSizeInBytes:(0,n.expectLong)(e.imageSizeInBytes),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,lastRecordedPullTime:e.lastRecordedPullTime!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.lastRecordedPullTime))):undefined,registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return o};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),failureReason:(0,n.expectString)(e.failureReason),imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return o};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:(0,n.expectString)(e.imageDigest),imageTag:(0,n.expectString)(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return o};const deserializeAws_json1_1ImageList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Image(e,t)}));return o};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageReplicationStatus=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),region:(0,n.expectString)(e.region),registryId:(0,n.expectString)(e.registryId),status:(0,n.expectString)(e.status)});const deserializeAws_json1_1ImageReplicationStatusList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageReplicationStatus(e,t)}));return o};const deserializeAws_json1_1ImageScanFinding=(e,t)=>({attributes:e.attributes!=null?deserializeAws_json1_1AttributeList(e.attributes,t):undefined,description:(0,n.expectString)(e.description),name:(0,n.expectString)(e.name),severity:(0,n.expectString)(e.severity),uri:(0,n.expectString)(e.uri)});const deserializeAws_json1_1ImageScanFindingList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageScanFinding(e,t)}));return o};const deserializeAws_json1_1ImageScanFindings=(e,t)=>({enhancedFindings:e.enhancedFindings!=null?deserializeAws_json1_1EnhancedImageScanFindingList(e.enhancedFindings,t):undefined,findingSeverityCounts:e.findingSeverityCounts!=null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,findings:e.findings!=null?deserializeAws_json1_1ImageScanFindingList(e.findings,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanFindingsSummary=(e,t)=>({findingSeverityCounts:e.findingSeverityCounts!=null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanningConfiguration=(e,t)=>({scanOnPush:(0,n.expectBoolean)(e.scanOnPush)});const deserializeAws_json1_1ImageScanStatus=(e,t)=>({description:(0,n.expectString)(e.description),status:(0,n.expectString)(e.status)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ImageTagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1ImageTagsList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:(0,n.expectLong)(e.partSize),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:(0,n.expectLong)(e.lastValidByteReceived),message:(0,n.expectString)(e.message),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1KmsException=(e,t)=>({kmsError:(0,n.expectString)(e.kmsError),message:(0,n.expectString)(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:(0,n.expectString)(e.layerAvailability),layerDigest:(0,n.expectString)(e.layerDigest),layerSize:(0,n.expectLong)(e.layerSize),mediaType:(0,n.expectString)(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),failureReason:(0,n.expectString)(e.failureReason),layerDigest:(0,n.expectString)(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return o};const deserializeAws_json1_1LayerInaccessibleException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LayerList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return o};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewResult=(e,t)=>({action:e.action!=null?deserializeAws_json1_1LifecyclePolicyRuleAction(e.action,t):undefined,appliedRulePriority:(0,n.expectInt32)(e.appliedRulePriority),imageDigest:(0,n.expectString)(e.imageDigest),imagePushedAt:e.imagePushedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.imagePushedAt))):undefined,imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined});const deserializeAws_json1_1LifecyclePolicyPreviewResultList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LifecyclePolicyPreviewResult(e,t)}));return o};const deserializeAws_json1_1LifecyclePolicyPreviewSummary=(e,t)=>({expiringImageTotalCount:(0,n.expectInt32)(e.expiringImageTotalCount)});const deserializeAws_json1_1LifecyclePolicyRuleAction=(e,t)=>({type:(0,n.expectString)(e.type)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ListImagesResponse=(e,t)=>({imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined,nextToken:(0,n.expectString)(e.nextToken)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!=null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1PackageVulnerabilityDetails=(e,t)=>({cvss:e.cvss!=null?deserializeAws_json1_1CvssScoreList(e.cvss,t):undefined,referenceUrls:e.referenceUrls!=null?deserializeAws_json1_1ReferenceUrlsList(e.referenceUrls,t):undefined,relatedVulnerabilities:e.relatedVulnerabilities!=null?deserializeAws_json1_1RelatedVulnerabilitiesList(e.relatedVulnerabilities,t):undefined,source:(0,n.expectString)(e.source),sourceUrl:(0,n.expectString)(e.sourceUrl),vendorCreatedAt:e.vendorCreatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.vendorCreatedAt))):undefined,vendorSeverity:(0,n.expectString)(e.vendorSeverity),vendorUpdatedAt:e.vendorUpdatedAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.vendorUpdatedAt))):undefined,vulnerabilityId:(0,n.expectString)(e.vulnerabilityId),vulnerablePackages:e.vulnerablePackages!=null?deserializeAws_json1_1VulnerablePackagesList(e.vulnerablePackages,t):undefined});const deserializeAws_json1_1PullThroughCacheRule=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,n.expectString)(e.ecrRepositoryPrefix),registryId:(0,n.expectString)(e.registryId),upstreamRegistryUrl:(0,n.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1PullThroughCacheRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1PullThroughCacheRule(e,t)}));return o};const deserializeAws_json1_1PullThroughCacheRuleNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!=null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutImageScanningConfigurationResponse=(e,t)=>({imageScanningConfiguration:e.imageScanningConfiguration!=null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1PutImageTagMutabilityResponse=(e,t)=>({imageTagMutability:(0,n.expectString)(e.imageTagMutability),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1PutLifecyclePolicyResponse=(e,t)=>({lifecyclePolicyText:(0,n.expectString)(e.lifecyclePolicyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1PutRegistryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId)});const deserializeAws_json1_1PutRegistryScanningConfigurationResponse=(e,t)=>({registryScanningConfiguration:e.registryScanningConfiguration!=null?deserializeAws_json1_1RegistryScanningConfiguration(e.registryScanningConfiguration,t):undefined});const deserializeAws_json1_1PutReplicationConfigurationResponse=(e,t)=>({replicationConfiguration:e.replicationConfiguration!=null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1Recommendation=(e,t)=>({text:(0,n.expectString)(e.text),url:(0,n.expectString)(e.url)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ReferenceUrlsList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1RegistryPolicyNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RegistryScanningConfiguration=(e,t)=>({rules:e.rules!=null?deserializeAws_json1_1RegistryScanningRuleList(e.rules,t):undefined,scanType:(0,n.expectString)(e.scanType)});const deserializeAws_json1_1RegistryScanningRule=(e,t)=>({repositoryFilters:e.repositoryFilters!=null?deserializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t):undefined,scanFrequency:(0,n.expectString)(e.scanFrequency)});const deserializeAws_json1_1RegistryScanningRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryScanningRule(e,t)}));return o};const deserializeAws_json1_1RelatedVulnerabilitiesList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,n.expectString)(e)}));return o};const deserializeAws_json1_1Remediation=(e,t)=>({recommendation:e.recommendation!=null?deserializeAws_json1_1Recommendation(e.recommendation,t):undefined});const deserializeAws_json1_1ReplicationConfiguration=(e,t)=>({rules:e.rules!=null?deserializeAws_json1_1ReplicationRuleList(e.rules,t):undefined});const deserializeAws_json1_1ReplicationDestination=(e,t)=>({region:(0,n.expectString)(e.region),registryId:(0,n.expectString)(e.registryId)});const deserializeAws_json1_1ReplicationDestinationList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationDestination(e,t)}));return o};const deserializeAws_json1_1ReplicationRule=(e,t)=>({destinations:e.destinations!=null?deserializeAws_json1_1ReplicationDestinationList(e.destinations,t):undefined,repositoryFilters:e.repositoryFilters!=null?deserializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t):undefined});const deserializeAws_json1_1ReplicationRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationRule(e,t)}));return o};const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!=null?(0,n.expectNonNull)((0,n.parseEpochTimestamp)((0,n.expectNumber)(e.createdAt))):undefined,encryptionConfiguration:e.encryptionConfiguration!=null?deserializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t):undefined,imageScanningConfiguration:e.imageScanningConfiguration!=null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,imageTagMutability:(0,n.expectString)(e.imageTagMutability),registryId:(0,n.expectString)(e.registryId),repositoryArn:(0,n.expectString)(e.repositoryArn),repositoryName:(0,n.expectString)(e.repositoryName),repositoryUri:(0,n.expectString)(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryFilter=(e,t)=>({filter:(0,n.expectString)(e.filter),filterType:(0,n.expectString)(e.filterType)});const deserializeAws_json1_1RepositoryFilterList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryFilter(e,t)}));return o};const deserializeAws_json1_1RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return o};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1RepositoryScanningConfiguration=(e,t)=>({appliedScanFilters:e.appliedScanFilters!=null?deserializeAws_json1_1ScanningRepositoryFilterList(e.appliedScanFilters,t):undefined,repositoryArn:(0,n.expectString)(e.repositoryArn),repositoryName:(0,n.expectString)(e.repositoryName),scanFrequency:(0,n.expectString)(e.scanFrequency),scanOnPush:(0,n.expectBoolean)(e.scanOnPush)});const deserializeAws_json1_1RepositoryScanningConfigurationFailure=(e,t)=>({failureCode:(0,n.expectString)(e.failureCode),failureReason:(0,n.expectString)(e.failureReason),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1RepositoryScanningConfigurationFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfigurationFailure(e,t)}));return o};const deserializeAws_json1_1RepositoryScanningConfigurationList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfiguration(e,t)}));return o};const deserializeAws_json1_1Resource=(e,t)=>({details:e.details!=null?deserializeAws_json1_1ResourceDetails(e.details,t):undefined,id:(0,n.expectString)(e.id),tags:e.tags!=null?deserializeAws_json1_1Tags(e.tags,t):undefined,type:(0,n.expectString)(e.type)});const deserializeAws_json1_1ResourceDetails=(e,t)=>({awsEcrContainerImage:e.awsEcrContainerImage!=null?deserializeAws_json1_1AwsEcrContainerImageDetails(e.awsEcrContainerImage,t):undefined});const deserializeAws_json1_1ResourceList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Resource(e,t)}));return o};const deserializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({filter:(0,n.expectString)(e.filter),filterType:(0,n.expectString)(e.filterType)});const deserializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ScanningRepositoryFilter(e,t)}));return o};const deserializeAws_json1_1ScanNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ScoreDetails=(e,t)=>({cvss:e.cvss!=null?deserializeAws_json1_1CvssScoreDetails(e.cvss,t):undefined});const deserializeAws_json1_1ServerException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:(0,n.expectString)(e.policyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1StartImageScanResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName)});const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:(0,n.expectString)(e.lifecyclePolicyText),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),status:(0,n.expectString)(e.status)});const deserializeAws_json1_1Tag=(e,t)=>({Key:(0,n.expectString)(e.Key),Value:(0,n.expectString)(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return o};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1Tags=(e,t)=>Object.entries(e).reduce(((e,[t,o])=>{if(o===null){return e}e[t]=(0,n.expectString)(o);return e}),{});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1UnsupportedImageTypeException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1UnsupportedUpstreamRegistryException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:(0,n.expectLong)(e.lastByteReceived),registryId:(0,n.expectString)(e.registryId),repositoryName:(0,n.expectString)(e.repositoryName),uploadId:(0,n.expectString)(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1ValidationException=(e,t)=>({message:(0,n.expectString)(e.message)});const deserializeAws_json1_1VulnerablePackage=(e,t)=>({arch:(0,n.expectString)(e.arch),epoch:(0,n.expectInt32)(e.epoch),filePath:(0,n.expectString)(e.filePath),name:(0,n.expectString)(e.name),packageManager:(0,n.expectString)(e.packageManager),release:(0,n.expectString)(e.release),sourceLayerHash:(0,n.expectString)(e.sourceLayerHash),version:(0,n.expectString)(e.version)});const deserializeAws_json1_1VulnerablePackagesList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1VulnerablePackage(e,t)}));return o};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,n,s)=>{const{hostname:i,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(n!==undefined){u.hostname=n}if(s!==undefined){u.body=s}return new r.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(4289));const s=o(43869);const i=o(56153);const a=o(98707);const c=o(97442);const l=o(96064);const u=o(87684);const d=o(68805);const p=o(74147);const f=o(99395);const m=o(98095);const g=o(66278);const y=o(70542);const h=o(4963);const E=o(74243);const v=o(4963);const getRuntimeConfig=e=>{(0,v.emitWarningIfUnsupportedVersion)(process.version);const t=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(h.loadConfigsForDefaultMode);const o=(0,y.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??p.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,m.defaultUserAgent)({serviceId:o.serviceId,clientVersion:n.default.version}),maxAttempts:e?.maxAttempts??(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,u.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||f.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,u.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,u.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??g.fromUtf8,utf8Encoder:e?.utf8Encoder??g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},70542:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4963);const n=o(2992);const s=o(97727);const i=o(61610);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??i.defaultEndpointResolver,logger:e?.logger??new r.NoOpLogger,serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??n.parseUrl});t.getRuntimeConfig=getRuntimeConfig},28406:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(78547),t);r.__exportStar(o(45723),t)},78547:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilImageScanComplete=t.waitForImageScanComplete=void 0;const r=o(21627);const n=o(72987);const checkState=async(e,t)=>{let o;try{const s=await e.send(new n.DescribeImageScanFindingsCommand(t));o=s;try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:r.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:r.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:r.WaiterState.RETRY,reason:o}};const waitForImageScanComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};return(0,r.createWaiter)({...o,...e},t,checkState)};t.waitForImageScanComplete=waitForImageScanComplete;const waitUntilImageScanComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const n=await(0,r.createWaiter)({...o,...e},t,checkState);return(0,r.checkExceptions)(n)};t.waitUntilImageScanComplete=waitUntilImageScanComplete},45723:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilLifecyclePolicyPreviewComplete=t.waitForLifecyclePolicyPreviewComplete=void 0;const r=o(21627);const n=o(17006);const checkState=async(e,t)=>{let o;try{const s=await e.send(new n.GetLifecyclePolicyPreviewCommand(t));o=s;try{const returnComparator=()=>s.status;if(returnComparator()==="COMPLETE"){return{state:r.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>s.status;if(returnComparator()==="FAILED"){return{state:r.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:r.WaiterState.RETRY,reason:o}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};return(0,r.createWaiter)({...o,...e},t,checkState)};t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const n=await(0,r.createWaiter)({...o,...e},t,checkState);return(0,r.checkExceptions)(n)};t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete},90635:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const r=o(44350);const n=o(52297);const s=o(1845);const i=o(9433);const a=o(20486);class SSO extends a.SSOClient{getRoleCredentials(e,t,o){const n=new r.GetRoleCredentialsCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listAccountRoles(e,t,o){const r=new n.ListAccountRolesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listAccounts(e,t,o){const r=new s.ListAccountsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}logout(e,t,o){const r=new i.LogoutCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.SSO=SSO},20486:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=void 0;const r=o(56153);const n=o(42245);const s=o(5497);const i=o(22545);const a=o(20014);const c=o(85525);const l=o(96064);const u=o(64688);const d=o(4963);const p=o(19993);const f=o(31628);class SSOClient extends d.Client{constructor(e){const t=(0,f.getRuntimeConfig)(e);const o=(0,p.resolveClientEndpointParameters)(t);const d=(0,r.resolveRegionConfig)(o);const m=(0,s.resolveEndpointConfig)(d);const g=(0,l.resolveRetryConfig)(m);const y=(0,i.resolveHostHeaderConfig)(g);const h=(0,u.resolveUserAgentConfig)(y);super(h);this.config=h;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,i.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},44350:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(86522);const a=o(53111);class GetRoleCredentialsCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetRoleCredentialsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="GetRoleCredentialsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRoleCredentialsResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1GetRoleCredentialsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1GetRoleCredentialsCommand)(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},52297:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(86522);const a=o(53111);class ListAccountRolesCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,ListAccountRolesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="ListAccountRolesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:i.ListAccountRolesResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1ListAccountRolesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1ListAccountRolesCommand)(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},1845:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(86522);const a=o(53111);class ListAccountsCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,ListAccountsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="ListAccountsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:i.ListAccountsResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1ListAccountsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1ListAccountsCommand)(e,t)}}t.ListAccountsCommand=ListAccountsCommand},9433:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(86522);const a=o(53111);class LogoutCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,LogoutCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="LogoutCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1LogoutCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1LogoutCommand)(e,t)}}t.LogoutCommand=LogoutCommand},98637:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(44350),t);r.__exportStar(o(52297),t);r.__exportStar(o(1845),t);r.__exportStar(o(9433),t)},19993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},93872:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const r=o(39205);const n=o(45417);const defaultEndpointResolver=(e,t={})=>(0,r.resolveEndpoint)(n.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},45417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},22636:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const r=o(4351);r.__exportStar(o(90635),t);r.__exportStar(o(20486),t);r.__exportStar(o(98637),t);r.__exportStar(o(58565),t);r.__exportStar(o(29096),t);var n=o(4965);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return n.SSOServiceException}})},4965:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const r=o(4963);class SSOServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},58565:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(86522),t)},86522:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequestFilterSensitiveLog=t.ListAccountsResponseFilterSensitiveLog=t.ListAccountsRequestFilterSensitiveLog=t.ListAccountRolesResponseFilterSensitiveLog=t.RoleInfoFilterSensitiveLog=t.ListAccountRolesRequestFilterSensitiveLog=t.GetRoleCredentialsResponseFilterSensitiveLog=t.RoleCredentialsFilterSensitiveLog=t.GetRoleCredentialsRequestFilterSensitiveLog=t.AccountInfoFilterSensitiveLog=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const r=o(4963);const n=o(4965);class InvalidRequestException extends n.SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype)}}t.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends n.SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends n.SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException";this.$fault="client";Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends n.SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException;const AccountInfoFilterSensitiveLog=e=>({...e});t.AccountInfoFilterSensitiveLog=AccountInfoFilterSensitiveLog;const GetRoleCredentialsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.GetRoleCredentialsRequestFilterSensitiveLog=GetRoleCredentialsRequestFilterSensitiveLog;const RoleCredentialsFilterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:r.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:r.SENSITIVE_STRING}});t.RoleCredentialsFilterSensitiveLog=RoleCredentialsFilterSensitiveLog;const GetRoleCredentialsResponseFilterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,t.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});t.GetRoleCredentialsResponseFilterSensitiveLog=GetRoleCredentialsResponseFilterSensitiveLog;const ListAccountRolesRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.ListAccountRolesRequestFilterSensitiveLog=ListAccountRolesRequestFilterSensitiveLog;const RoleInfoFilterSensitiveLog=e=>({...e});t.RoleInfoFilterSensitiveLog=RoleInfoFilterSensitiveLog;const ListAccountRolesResponseFilterSensitiveLog=e=>({...e});t.ListAccountRolesResponseFilterSensitiveLog=ListAccountRolesResponseFilterSensitiveLog;const ListAccountsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.ListAccountsRequestFilterSensitiveLog=ListAccountsRequestFilterSensitiveLog;const ListAccountsResponseFilterSensitiveLog=e=>({...e});t.ListAccountsResponseFilterSensitiveLog=ListAccountsResponseFilterSensitiveLog;const LogoutRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.LogoutRequestFilterSensitiveLog=LogoutRequestFilterSensitiveLog},89250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},29367:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const r=o(52297);const n=o(90635);const s=o(20486);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.ListAccountRolesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccountRoles(t,...o);async function*paginateListAccountRoles(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},43328:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const r=o(1845);const n=o(90635);const s=o(20486);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.ListAccountsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccounts(t,...o);async function*paginateListAccounts(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateListAccounts=paginateListAccounts},29096:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(89250),t);r.__exportStar(o(29367),t);r.__exportStar(o(43328),t)},53111:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_restJson1LogoutCommand=t.deserializeAws_restJson1ListAccountsCommand=t.deserializeAws_restJson1ListAccountRolesCommand=t.deserializeAws_restJson1GetRoleCredentialsCommand=t.serializeAws_restJson1LogoutCommand=t.serializeAws_restJson1ListAccountsCommand=t.serializeAws_restJson1ListAccountRolesCommand=t.serializeAws_restJson1GetRoleCredentialsCommand=void 0;const r=o(70223);const n=o(4963);const s=o(86522);const i=o(4965);const serializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:c}=await t.endpoint();const l=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const u=`${c?.endsWith("/")?c.slice(0,-1):c||""}`+"/federation/credentials";const d=a({role_name:[,(0,n.expectNonNull)(e.roleName,`roleName`)],account_id:[,(0,n.expectNonNull)(e.accountId,`accountId`)]});let p;return new r.HttpRequest({protocol:s,hostname:o,port:i,method:"GET",headers:l,path:u,query:d,body:p})};t.serializeAws_restJson1GetRoleCredentialsCommand=serializeAws_restJson1GetRoleCredentialsCommand;const serializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:c}=await t.endpoint();const l=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const u=`${c?.endsWith("/")?c.slice(0,-1):c||""}`+"/assignment/roles";const d=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,n.expectNonNull)(e.accountId,`accountId`)]});let p;return new r.HttpRequest({protocol:s,hostname:o,port:i,method:"GET",headers:l,path:u,query:d,body:p})};t.serializeAws_restJson1ListAccountRolesCommand=serializeAws_restJson1ListAccountRolesCommand;const serializeAws_restJson1ListAccountsCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${i?.endsWith("/")?i.slice(0,-1):i||""}`+"/assignment/accounts";const u=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]});let d;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"GET",headers:c,path:l,query:u,body:d})};t.serializeAws_restJson1ListAccountsCommand=serializeAws_restJson1ListAccountsCommand;const serializeAws_restJson1LogoutCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${i?.endsWith("/")?i.slice(0,-1):i||""}`+"/logout";let u;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"POST",headers:c,path:l,body:u})};t.serializeAws_restJson1LogoutCommand=serializeAws_restJson1LogoutCommand;const deserializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1GetRoleCredentialsCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.roleCredentials!=null){o.roleCredentials=deserializeAws_restJson1RoleCredentials(r.roleCredentials,t)}return o};t.deserializeAws_restJson1GetRoleCredentialsCommand=deserializeAws_restJson1GetRoleCredentialsCommand;const deserializeAws_restJson1GetRoleCredentialsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountRolesCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.nextToken!=null){o.nextToken=(0,n.expectString)(r.nextToken)}if(r.roleList!=null){o.roleList=deserializeAws_restJson1RoleListType(r.roleList,t)}return o};t.deserializeAws_restJson1ListAccountRolesCommand=deserializeAws_restJson1ListAccountRolesCommand;const deserializeAws_restJson1ListAccountRolesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountsCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.accountList!=null){o.accountList=deserializeAws_restJson1AccountListType(r.accountList,t)}if(r.nextToken!=null){o.nextToken=(0,n.expectString)(r.nextToken)}return o};t.deserializeAws_restJson1ListAccountsCommand=deserializeAws_restJson1ListAccountsCommand;const deserializeAws_restJson1ListAccountsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1LogoutCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});await collectBody(e.body,t);return o};t.deserializeAws_restJson1LogoutCommand=deserializeAws_restJson1LogoutCommand;const deserializeAws_restJson1LogoutCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const a=n.map;const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1ResourceNotFoundExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.ResourceNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1TooManyRequestsExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.TooManyRequestsException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1UnauthorizedExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.UnauthorizedException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1AccountInfo=(e,t)=>({accountId:(0,n.expectString)(e.accountId),accountName:(0,n.expectString)(e.accountName),emailAddress:(0,n.expectString)(e.emailAddress)});const deserializeAws_restJson1AccountListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1AccountInfo(e,t)}));return o};const deserializeAws_restJson1RoleCredentials=(e,t)=>({accessKeyId:(0,n.expectString)(e.accessKeyId),expiration:(0,n.expectLong)(e.expiration),secretAccessKey:(0,n.expectString)(e.secretAccessKey),sessionToken:(0,n.expectString)(e.sessionToken)});const deserializeAws_restJson1RoleInfo=(e,t)=>({accountId:(0,n.expectString)(e.accountId),roleName:(0,n.expectString)(e.roleName)});const deserializeAws_restJson1RoleListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1RoleInfo(e,t)}));return o};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},31628:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(9718));const s=o(56153);const i=o(97442);const a=o(96064);const c=o(87684);const l=o(68805);const u=o(74147);const d=o(99395);const p=o(98095);const f=o(66278);const m=o(97192);const g=o(4963);const y=o(74243);const h=o(4963);const getRuntimeConfig=e=>{(0,h.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(g.loadConfigsForDefaultMode);const o=(0,m.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??u.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.defaultUserAgent)({serviceId:o.serviceId,clientVersion:n.default.version}),maxAttempts:e?.maxAttempts??(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,c.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new l.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||d.DEFAULT_RETRY_MODE}),sha256:e?.sha256??i.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??l.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,c.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,c.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??f.fromUtf8,utf8Encoder:e?.utf8Encoder??f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},97192:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4963);const n=o(2992);const s=o(97727);const i=o(93872);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??i.defaultEndpointResolver,logger:e?.logger??new r.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??n.parseUrl});t.getRuntimeConfig=getRuntimeConfig},85103:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const r=o(40686);const n=o(31194);const s=o(87598);const i=o(32225);const a=o(27920);const c=o(14627);const l=o(38668);const u=o(53836);const d=o(12473);class STS extends d.STSClient{assumeRole(e,t,o){const n=new r.AssumeRoleCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}assumeRoleWithSAML(e,t,o){const r=new n.AssumeRoleWithSAMLCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}assumeRoleWithWebIdentity(e,t,o){const r=new s.AssumeRoleWithWebIdentityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}decodeAuthorizationMessage(e,t,o){const r=new i.DecodeAuthorizationMessageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getAccessKeyInfo(e,t,o){const r=new a.GetAccessKeyInfoCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getCallerIdentity(e,t,o){const r=new c.GetCallerIdentityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getFederationToken(e,t,o){const r=new l.GetFederationTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getSessionToken(e,t,o){const r=new u.GetSessionTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.STS=STS},12473:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=void 0;const r=o(56153);const n=o(42245);const s=o(5497);const i=o(22545);const a=o(20014);const c=o(85525);const l=o(96064);const u=o(30274);const d=o(64688);const p=o(4963);const f=o(31967);const m=o(70745);class STSClient extends p.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const o=(0,f.resolveClientEndpointParameters)(t);const p=(0,r.resolveRegionConfig)(o);const g=(0,s.resolveEndpointConfig)(p);const y=(0,l.resolveRetryConfig)(g);const h=(0,i.resolveHostHeaderConfig)(y);const E=(0,u.resolveStsAuthConfig)(h,{stsClientCtor:STSClient});const v=(0,d.resolveUserAgentConfig)(E);super(v);this.config=v;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,i.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},40686:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class AssumeRoleCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,AssumeRoleCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="AssumeRoleCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.AssumeRoleRequestFilterSensitiveLog,outputFilterSensitiveLog:a.AssumeRoleResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryAssumeRoleCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryAssumeRoleCommand)(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},31194:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(42273);const a=o(96596);class AssumeRoleWithSAMLCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleWithSAMLCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithSAMLResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},87598:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(42273);const a=o(96596);class AssumeRoleWithWebIdentityCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleWithWebIdentityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithWebIdentityResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},32225:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class DecodeAuthorizationMessageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="DecodeAuthorizationMessageCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.DecodeAuthorizationMessageRequestFilterSensitiveLog,outputFilterSensitiveLog:a.DecodeAuthorizationMessageResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},27920:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class GetAccessKeyInfoCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetAccessKeyInfoCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetAccessKeyInfoCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetAccessKeyInfoRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetAccessKeyInfoResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetAccessKeyInfoCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetAccessKeyInfoCommand)(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},14627:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class GetCallerIdentityCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetCallerIdentityCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetCallerIdentityCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetCallerIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetCallerIdentityResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetCallerIdentityCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetCallerIdentityCommand)(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},38668:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class GetFederationTokenCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetFederationTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetFederationTokenCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetFederationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetFederationTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetFederationTokenCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetFederationTokenCommand)(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},53836:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4772);const i=o(4963);const a=o(42273);const c=o(96596);class GetSessionTokenCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{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"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetSessionTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,s.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetSessionTokenCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetSessionTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetSessionTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,o||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetSessionTokenCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetSessionTokenCommand)(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},45274:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(40686),t);r.__exportStar(o(31194),t);r.__exportStar(o(87598),t);r.__exportStar(o(32225),t);r.__exportStar(o(27920),t);r.__exportStar(o(14627),t);r.__exportStar(o(38668),t);r.__exportStar(o(53836),t)},38902:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const r=o(4168);const n=o(12473);const getCustomizableStsClientCtor=(e,t)=>{if(!t)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},t)=>(0,r.getDefaultRoleAssumer)(e,getCustomizableStsClientCtor(n.STSClient,t));t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={},t)=>(0,r.getDefaultRoleAssumerWithWebIdentity)(e,getCustomizableStsClientCtor(n.STSClient,t));t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},4168:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const r=o(40686);const n=o(87598);const s="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?s:e}return async()=>{try{return await e()}catch(e){return s}}};const getDefaultRoleAssumer=(e,t)=>{let o;let n;return async(s,i)=>{n=s;if(!o){const{logger:r,region:s,requestHandler:i}=e;o=new t({logger:r,credentialDefaultProvider:()=>async()=>n,region:decorateDefaultRegion(s||e.region),...i?{requestHandler:i}:{}})}const{Credentials:a}=await o.send(new r.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`)}return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let o;return async r=>{if(!o){const{logger:r,region:n,requestHandler:s}=e;o=new t({logger:r,region:decorateDefaultRegion(n||e.region),...s?{requestHandler:s}:{}})}const{Credentials:s}=await o.send(new n.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`)}return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o,o.stsClientCtor),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o,o.stsClientCtor),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},31967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,defaultSigningName:"sts"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},73117:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const r=o(39205);const n=o(81337);const defaultEndpointResolver=(e,t={})=>(0,r.resolveEndpoint)(n.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},81337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"},UseGlobalEndpoint:{builtIn:"AWS::STS::UseGlobalEndpoint",required:true,default:false,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",type:"Boolean"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseGlobalEndpoint"},true]},{fn:"booleanEquals",argv:[{ref:"UseFIPS"},false]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},false]},{fn:"not",argv:[{fn:"isSet",argv:[{ref:"Endpoint"}]}]}],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-northeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-south-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ca-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-north-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-3"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"sa-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:{}},type:"endpoint"}]},{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"sts"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}]}},43869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const r=o(4351);r.__exportStar(o(85103),t);r.__exportStar(o(12473),t);r.__exportStar(o(45274),t);r.__exportStar(o(38902),t);r.__exportStar(o(16985),t);var n=o(34268);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return n.STSServiceException}})},34268:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const r=o(4963);class STSServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},16985:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(42273),t)},42273:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponseFilterSensitiveLog=t.GetSessionTokenRequestFilterSensitiveLog=t.GetFederationTokenResponseFilterSensitiveLog=t.FederatedUserFilterSensitiveLog=t.GetFederationTokenRequestFilterSensitiveLog=t.GetCallerIdentityResponseFilterSensitiveLog=t.GetCallerIdentityRequestFilterSensitiveLog=t.GetAccessKeyInfoResponseFilterSensitiveLog=t.GetAccessKeyInfoRequestFilterSensitiveLog=t.DecodeAuthorizationMessageResponseFilterSensitiveLog=t.DecodeAuthorizationMessageRequestFilterSensitiveLog=t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=t.AssumeRoleWithSAMLResponseFilterSensitiveLog=t.AssumeRoleWithSAMLRequestFilterSensitiveLog=t.AssumeRoleResponseFilterSensitiveLog=t.CredentialsFilterSensitiveLog=t.AssumeRoleRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.PolicyDescriptorTypeFilterSensitiveLog=t.AssumedRoleUserFilterSensitiveLog=t.InvalidAuthorizationMessageException=t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const r=o(34268);class ExpiredTokenException extends r.STSServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}t.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends r.STSServiceException{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});this.name="MalformedPolicyDocumentException";this.$fault="client";Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}t.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends r.STSServiceException{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});this.name="PackedPolicyTooLargeException";this.$fault="client";Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}t.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends r.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends r.STSServiceException{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});this.name="IDPRejectedClaimException";this.$fault="client";Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}t.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends r.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends r.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;class InvalidAuthorizationMessageException extends r.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;const AssumedRoleUserFilterSensitiveLog=e=>({...e});t.AssumedRoleUserFilterSensitiveLog=AssumedRoleUserFilterSensitiveLog;const PolicyDescriptorTypeFilterSensitiveLog=e=>({...e});t.PolicyDescriptorTypeFilterSensitiveLog=PolicyDescriptorTypeFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const AssumeRoleRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleRequestFilterSensitiveLog=AssumeRoleRequestFilterSensitiveLog;const CredentialsFilterSensitiveLog=e=>({...e});t.CredentialsFilterSensitiveLog=CredentialsFilterSensitiveLog;const AssumeRoleResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleResponseFilterSensitiveLog=AssumeRoleResponseFilterSensitiveLog;const AssumeRoleWithSAMLRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLRequestFilterSensitiveLog=AssumeRoleWithSAMLRequestFilterSensitiveLog;const AssumeRoleWithSAMLResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLResponseFilterSensitiveLog=AssumeRoleWithSAMLResponseFilterSensitiveLog;const AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=AssumeRoleWithWebIdentityRequestFilterSensitiveLog;const AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=AssumeRoleWithWebIdentityResponseFilterSensitiveLog;const DecodeAuthorizationMessageRequestFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageRequestFilterSensitiveLog=DecodeAuthorizationMessageRequestFilterSensitiveLog;const DecodeAuthorizationMessageResponseFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageResponseFilterSensitiveLog=DecodeAuthorizationMessageResponseFilterSensitiveLog;const GetAccessKeyInfoRequestFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoRequestFilterSensitiveLog=GetAccessKeyInfoRequestFilterSensitiveLog;const GetAccessKeyInfoResponseFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoResponseFilterSensitiveLog=GetAccessKeyInfoResponseFilterSensitiveLog;const GetCallerIdentityRequestFilterSensitiveLog=e=>({...e});t.GetCallerIdentityRequestFilterSensitiveLog=GetCallerIdentityRequestFilterSensitiveLog;const GetCallerIdentityResponseFilterSensitiveLog=e=>({...e});t.GetCallerIdentityResponseFilterSensitiveLog=GetCallerIdentityResponseFilterSensitiveLog;const GetFederationTokenRequestFilterSensitiveLog=e=>({...e});t.GetFederationTokenRequestFilterSensitiveLog=GetFederationTokenRequestFilterSensitiveLog;const FederatedUserFilterSensitiveLog=e=>({...e});t.FederatedUserFilterSensitiveLog=FederatedUserFilterSensitiveLog;const GetFederationTokenResponseFilterSensitiveLog=e=>({...e});t.GetFederationTokenResponseFilterSensitiveLog=GetFederationTokenResponseFilterSensitiveLog;const GetSessionTokenRequestFilterSensitiveLog=e=>({...e});t.GetSessionTokenRequestFilterSensitiveLog=GetSessionTokenRequestFilterSensitiveLog;const GetSessionTokenResponseFilterSensitiveLog=e=>({...e});t.GetSessionTokenResponseFilterSensitiveLog=GetSessionTokenResponseFilterSensitiveLog},96596:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_queryGetSessionTokenCommand=t.deserializeAws_queryGetFederationTokenCommand=t.deserializeAws_queryGetCallerIdentityCommand=t.deserializeAws_queryGetAccessKeyInfoCommand=t.deserializeAws_queryDecodeAuthorizationMessageCommand=t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=t.deserializeAws_queryAssumeRoleWithSAMLCommand=t.deserializeAws_queryAssumeRoleCommand=t.serializeAws_queryGetSessionTokenCommand=t.serializeAws_queryGetFederationTokenCommand=t.serializeAws_queryGetCallerIdentityCommand=t.serializeAws_queryGetAccessKeyInfoCommand=t.serializeAws_queryDecodeAuthorizationMessageCommand=t.serializeAws_queryAssumeRoleWithWebIdentityCommand=t.serializeAws_queryAssumeRoleWithSAMLCommand=t.serializeAws_queryAssumeRoleCommand=void 0;const r=o(70223);const n=o(4963);const s=o(16424);const i=o(42273);const a=o(34268);const serializeAws_queryAssumeRoleCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleCommand=serializeAws_queryAssumeRoleCommand;const serializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleWithSAMLCommand=serializeAws_queryAssumeRoleWithSAMLCommand;const serializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleWithWebIdentityCommand=serializeAws_queryAssumeRoleWithWebIdentityCommand;const serializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryDecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryDecodeAuthorizationMessageCommand=serializeAws_queryDecodeAuthorizationMessageCommand;const serializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetAccessKeyInfoCommand=serializeAws_queryGetAccessKeyInfoCommand;const serializeAws_queryGetCallerIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetCallerIdentityCommand=serializeAws_queryGetCallerIdentityCommand;const serializeAws_queryGetFederationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetFederationTokenCommand=serializeAws_queryGetFederationTokenCommand;const serializeAws_queryGetSessionTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetSessionTokenCommand=serializeAws_queryGetSessionTokenCommand;const deserializeAws_queryAssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleResponse(o.AssumeRoleResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleCommand=deserializeAws_queryAssumeRoleCommand;const deserializeAws_queryAssumeRoleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithSAMLCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleWithSAMLResponse(o.AssumeRoleWithSAMLResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleWithSAMLCommand=deserializeAws_queryAssumeRoleWithSAMLCommand;const deserializeAws_queryAssumeRoleWithSAMLCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleWithWebIdentityResponse(o.AssumeRoleWithWebIdentityResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=deserializeAws_queryAssumeRoleWithWebIdentityCommand;const deserializeAws_queryAssumeRoleWithWebIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryDecodeAuthorizationMessageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryDecodeAuthorizationMessageResponse(o.DecodeAuthorizationMessageResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryDecodeAuthorizationMessageCommand=deserializeAws_queryDecodeAuthorizationMessageCommand;const deserializeAws_queryDecodeAuthorizationMessageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetAccessKeyInfoCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetAccessKeyInfoResponse(o.GetAccessKeyInfoResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetAccessKeyInfoCommand=deserializeAws_queryGetAccessKeyInfoCommand;const deserializeAws_queryGetAccessKeyInfoCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})};const deserializeAws_queryGetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetCallerIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetCallerIdentityResponse(o.GetCallerIdentityResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetCallerIdentityCommand=deserializeAws_queryGetCallerIdentityCommand;const deserializeAws_queryGetCallerIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})};const deserializeAws_queryGetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetFederationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetFederationTokenResponse(o.GetFederationTokenResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetFederationTokenCommand=deserializeAws_queryGetFederationTokenCommand;const deserializeAws_queryGetFederationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryGetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetSessionTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetSessionTokenResponse(o.GetSessionTokenResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetSessionTokenCommand=deserializeAws_queryGetSessionTokenCommand;const deserializeAws_queryGetSessionTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:a.STSServiceException,errorCode:r})}};const deserializeAws_queryExpiredTokenExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryExpiredTokenException(o.Error,t);const s=new i.ExpiredTokenException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryIDPCommunicationErrorExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryIDPCommunicationErrorException(o.Error,t);const s=new i.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryIDPRejectedClaimExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryIDPRejectedClaimException(o.Error,t);const s=new i.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryInvalidAuthorizationMessageException(o.Error,t);const s=new i.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryInvalidIdentityTokenExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryInvalidIdentityTokenException(o.Error,t);const s=new i.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryMalformedPolicyDocumentExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryMalformedPolicyDocumentException(o.Error,t);const s=new i.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryPackedPolicyTooLargeExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryPackedPolicyTooLargeException(o.Error,t);const s=new i.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryRegionDisabledExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryRegionDisabledException(o.Error,t);const s=new i.RegionDisabledException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const serializeAws_queryAssumeRoleRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const r=serializeAws_querytagListType(e.Tags,t);if(e.Tags?.length===0){o.Tags=[]}Object.entries(r).forEach((([e,t])=>{const r=`Tags.${e}`;o[r]=t}))}if(e.TransitiveTagKeys!=null){const r=serializeAws_querytagKeyListType(e.TransitiveTagKeys,t);if(e.TransitiveTagKeys?.length===0){o.TransitiveTagKeys=[]}Object.entries(r).forEach((([e,t])=>{const r=`TransitiveTagKeys.${e}`;o[r]=t}))}if(e.ExternalId!=null){o["ExternalId"]=e.ExternalId}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}if(e.SourceIdentity!=null){o["SourceIdentity"]=e.SourceIdentity}return o};const serializeAws_queryAssumeRoleWithSAMLRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.PrincipalArn!=null){o["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!=null){o["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryAssumeRoleWithWebIdentityRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!=null){o["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!=null){o["ProviderId"]=e.ProviderId}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryDecodeAuthorizationMessageRequest=(e,t)=>{const o={};if(e.EncodedMessage!=null){o["EncodedMessage"]=e.EncodedMessage}return o};const serializeAws_queryGetAccessKeyInfoRequest=(e,t)=>{const o={};if(e.AccessKeyId!=null){o["AccessKeyId"]=e.AccessKeyId}return o};const serializeAws_queryGetCallerIdentityRequest=(e,t)=>{const o={};return o};const serializeAws_queryGetFederationTokenRequest=(e,t)=>{const o={};if(e.Name!=null){o["Name"]=e.Name}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const r=serializeAws_querytagListType(e.Tags,t);if(e.Tags?.length===0){o.Tags=[]}Object.entries(r).forEach((([e,t])=>{const r=`Tags.${e}`;o[r]=t}))}return o};const serializeAws_queryGetSessionTokenRequest=(e,t)=>{const o={};if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}return o};const serializeAws_querypolicyDescriptorListType=(e,t)=>{const o={};let r=1;for(const n of e){if(n===null){continue}const e=serializeAws_queryPolicyDescriptorType(n,t);Object.entries(e).forEach((([e,t])=>{o[`member.${r}.${e}`]=t}));r++}return o};const serializeAws_queryPolicyDescriptorType=(e,t)=>{const o={};if(e.arn!=null){o["arn"]=e.arn}return o};const serializeAws_queryTag=(e,t)=>{const o={};if(e.Key!=null){o["Key"]=e.Key}if(e.Value!=null){o["Value"]=e.Value}return o};const serializeAws_querytagKeyListType=(e,t)=>{const o={};let r=1;for(const t of e){if(t===null){continue}o[`member.${r}`]=t;r++}return o};const serializeAws_querytagListType=(e,t)=>{const o={};let r=1;for(const n of e){if(n===null){continue}const e=serializeAws_queryTag(n,t);Object.entries(e).forEach((([e,t])=>{o[`member.${r}.${e}`]=t}));r++}return o};const deserializeAws_queryAssumedRoleUser=(e,t)=>{const o={AssumedRoleId:undefined,Arn:undefined};if(e["AssumedRoleId"]!==undefined){o.AssumedRoleId=(0,n.expectString)(e["AssumedRoleId"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryAssumeRoleResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithSAMLResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Subject:undefined,SubjectType:undefined,Issuer:undefined,Audience:undefined,NameQualifier:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["Subject"]!==undefined){o.Subject=(0,n.expectString)(e["Subject"])}if(e["SubjectType"]!==undefined){o.SubjectType=(0,n.expectString)(e["SubjectType"])}if(e["Issuer"]!==undefined){o.Issuer=(0,n.expectString)(e["Issuer"])}if(e["Audience"]!==undefined){o.Audience=(0,n.expectString)(e["Audience"])}if(e["NameQualifier"]!==undefined){o.NameQualifier=(0,n.expectString)(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithWebIdentityResponse=(e,t)=>{const o={Credentials:undefined,SubjectFromWebIdentityToken:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Provider:undefined,Audience:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){o.SubjectFromWebIdentityToken=(0,n.expectString)(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["Provider"]!==undefined){o.Provider=(0,n.expectString)(e["Provider"])}if(e["Audience"]!==undefined){o.Audience=(0,n.expectString)(e["Audience"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryCredentials=(e,t)=>{const o={AccessKeyId:undefined,SecretAccessKey:undefined,SessionToken:undefined,Expiration:undefined};if(e["AccessKeyId"]!==undefined){o.AccessKeyId=(0,n.expectString)(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){o.SecretAccessKey=(0,n.expectString)(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){o.SessionToken=(0,n.expectString)(e["SessionToken"])}if(e["Expiration"]!==undefined){o.Expiration=(0,n.expectNonNull)((0,n.parseRfc3339DateTime)(e["Expiration"]))}return o};const deserializeAws_queryDecodeAuthorizationMessageResponse=(e,t)=>{const o={DecodedMessage:undefined};if(e["DecodedMessage"]!==undefined){o.DecodedMessage=(0,n.expectString)(e["DecodedMessage"])}return o};const deserializeAws_queryExpiredTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryFederatedUser=(e,t)=>{const o={FederatedUserId:undefined,Arn:undefined};if(e["FederatedUserId"]!==undefined){o.FederatedUserId=(0,n.expectString)(e["FederatedUserId"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryGetAccessKeyInfoResponse=(e,t)=>{const o={Account:undefined};if(e["Account"]!==undefined){o.Account=(0,n.expectString)(e["Account"])}return o};const deserializeAws_queryGetCallerIdentityResponse=(e,t)=>{const o={UserId:undefined,Account:undefined,Arn:undefined};if(e["UserId"]!==undefined){o.UserId=(0,n.expectString)(e["UserId"])}if(e["Account"]!==undefined){o.Account=(0,n.expectString)(e["Account"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryGetFederationTokenResponse=(e,t)=>{const o={Credentials:undefined,FederatedUser:undefined,PackedPolicySize:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){o.FederatedUser=deserializeAws_queryFederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}return o};const deserializeAws_queryGetSessionTokenResponse=(e,t)=>{const o={Credentials:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}return o};const deserializeAws_queryIDPCommunicationErrorException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryIDPRejectedClaimException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryInvalidAuthorizationMessageException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryInvalidIdentityTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryMalformedPolicyDocumentException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryPackedPolicyTooLargeException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryRegionDisabledException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,n,s)=>{const{hostname:i,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(n!==undefined){u.hostname=n}if(s!==undefined){u.body=s}return new r.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=new s.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});t.addEntity("#xD","\r");t.addEntity("#10","\n");const o=t.parse(e);const r="#text";const i=Object.keys(o)[0];const a=o[i];if(a[r]){a[i]=a[r];delete a[r]}return(0,n.getValueFromTextNode)(a)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);if(o.Error){o.Error.message=o.Error.message??o.Error.Message}return o};const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>(0,n.extendedEncodeURIComponent)(e)+"="+(0,n.extendedEncodeURIComponent)(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}}},70745:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(55115));const s=o(4168);const i=o(56153);const a=o(98707);const c=o(97442);const l=o(96064);const u=o(87684);const d=o(68805);const p=o(74147);const f=o(99395);const m=o(98095);const g=o(66278);const y=o(62920);const h=o(4963);const E=o(74243);const v=o(4963);const getRuntimeConfig=e=>{(0,v.emitWarningIfUnsupportedVersion)(process.version);const t=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(h.loadConfigsForDefaultMode);const o=(0,y.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??p.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,m.defaultUserAgent)({serviceId:o.serviceId,clientVersion:n.default.version}),maxAttempts:e?.maxAttempts??(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,u.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||f.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,u.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,u.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??g.fromUtf8,utf8Encoder:e?.utf8Encoder??g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},62920:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4963);const n=o(2992);const s=o(97727);const i=o(73117);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??i.defaultEndpointResolver,logger:e?.logger??new r.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??n.parseUrl});t.getRuntimeConfig=getRuntimeConfig},82038:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=t.ENV_EXPIRATION=t.ENV_SESSION=t.ENV_SECRET=t.ENV_KEY=void 0;const r=o(74462);t.ENV_KEY="AWS_ACCESS_KEY_ID";t.ENV_SECRET="AWS_SECRET_ACCESS_KEY";t.ENV_SESSION="AWS_SESSION_TOKEN";t.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";const fromEnv=()=>async()=>{const e=process.env[t.ENV_KEY];const o=process.env[t.ENV_SECRET];const n=process.env[t.ENV_SESSION];const s=process.env[t.ENV_EXPIRATION];if(e&&o){return{accessKeyId:e,secretAccessKey:o,...n&&{sessionToken:n},...s&&{expiration:new Date(s)}}}throw new r.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},75321:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(82038),t)},14365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var o;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(o=t.Endpoint||(t.Endpoint={}))},60947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},73796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var o;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(o=t.EndpointMode||(t.EndpointMode={}))},34073:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const r=o(73796);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:r.EndpointMode.IPv4}},3750:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const r=o(74462);const n=o(57310);const s=o(60208);const i=o(17084);const a=o(35393);const c=o(17103);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:o}=(0,a.providerConfigFromInit)(e);return()=>(0,c.retry)((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(o)}),o)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,o)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){o.headers={...o.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const r=await(0,s.httpRequest)({...o,timeout:e});return r.toString()};const l="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const d={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:l,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,n.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new r.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in d)){throw new r.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new r.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},82979:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const r=o(74462);const n=o(60208);const s=o(17084);const i=o(35393);const a=o(17103);const c=o(47663);const l=o(30429);const u="/latest/meta-data/iam/security-credentials/";const d="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,l.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:o,maxRetries:r}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,o)=>{const r=(await(0,a.retry)((async()=>{let e;try{e=await getProfile(o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,a.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(r,o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,c.getInstanceMetadataEndpoint)();if(t){return getCredentials(r,{...e,timeout:o})}else{let n;try{n=(await getMetadataToken({...e,timeout:o})).toString()}catch(n){if((n===null||n===void 0?void 0:n.statusCode)===400){throw Object.assign(n,{message:"EC2 Metadata token request returned error"})}else if(n.message==="TimeoutError"||[403,404,405].includes(n.statusCode)){t=true}return getCredentials(r,{...e,timeout:o})}return getCredentials(r,{...e,headers:{"x-aws-ec2-metadata-token":n},timeout:o})}}};const getMetadataToken=async e=>(0,n.httpRequest)({...e,path:d,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,n.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await(0,n.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(o)}},36279:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const r=o(4351);r.__exportStar(o(3750),t);r.__exportStar(o(82979),t);r.__exportStar(o(35393),t);r.__exportStar(o(57499),t);var n=o(60208);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return n.httpRequest}});var s=o(47663);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},17084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},35393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:o=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:o});t.providerConfigFromInit=providerConfigFromInit},60208:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const r=o(74462);const n=o(14300);const s=o(13685);function httpRequest(e){return new Promise(((t,o)=>{var i;const a=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});a.on("error",(e=>{o(Object.assign(new r.ProviderError("Unable to connect to instance metadata service"),e));a.destroy()}));a.on("timeout",(()=>{o(new r.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){o(Object.assign(new r.ProviderError("Error response received from instance metadata service"),{statusCode:s}));a.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(n.Buffer.concat(i));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},17103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let o=e();for(let r=0;r<t;r++){o=o.catch(e)}return o};t.retry=retry},57499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const o=5*60;const r=5*60;const n="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=o+Math.floor(Math.random()*r);const a=new Date(Date.now()+i*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+n);const c=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...c?{originalExpiration:c}:{},expiration:a}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},47663:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const r=o(87684);const n=o(2992);const s=o(14365);const i=o(60947);const a=o(73796);const c=o(34073);const getInstanceMetadataEndpoint=async()=>(0,n.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,r.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,r.loadConfig)(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return s.Endpoint.IPv4;case a.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},30429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const r=o(36254);const staticStabilityProvider=(e,t={})=>{const o=(t===null||t===void 0?void 0:t.logger)||console;let n;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,r.getExtendedInstanceMetadataCredentials)(t,o)}}catch(e){if(n){o.warn("Credential renew failed: ",e);t=(0,r.getExtendedInstanceMetadataCredentials)(n,o)}else{throw e}}n=t;return t}};t.staticStabilityProvider=staticStabilityProvider},42424:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const r=o(67387);const n=o(91934);const fromIni=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);return(0,n.resolveProfileData)((0,r.getProfileName)(e),t,e)};t.fromIni=fromIni},53206:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(42424),t)},45458:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const r=o(74462);const n=o(67387);const s=o(84106);const i=o(91934);const isAssumeRoleProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(e)||isAssumeRoleWithProviderProfile(e));t.isAssumeRoleProfile=isAssumeRoleProfile;const isAssumeRoleWithSourceProfile=e=>typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";const isAssumeRoleWithProviderProfile=e=>typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";const resolveAssumeRoleCredentials=async(e,t,o,a={})=>{const c=t[e];if(!o.roleAssumer){throw new r.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,false)}const{source_profile:l}=c;if(l&&l in a){throw new r.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${(0,n.getProfileName)(o)}. Profiles visited: `+Object.keys(a).join(", "),false)}const u=l?(0,i.resolveProfileData)(l,t,o,{...a,[l]:true}):(0,s.resolveCredentialSource)(c.credential_source,e)();const d={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id};const{mfa_serial:p}=c;if(p){if(!o.mfaCodeProvider){throw new r.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}d.SerialNumber=p;d.TokenCode=await o.mfaCodeProvider(p)}const f=await u;return o.roleAssumer(f,d)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},84106:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const r=o(75321);const n=o(36279);const s=o(74462);const resolveCredentialSource=(e,t)=>{const o={EcsContainer:n.fromContainerMetadata,Ec2InstanceMetadata:n.fromInstanceMetadata,Environment:r.fromEnv};if(e in o){return o[e]()}else{throw new s.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},8280:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=t.isProcessProfile=void 0;const r=o(84578);const isProcessProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string";t.isProcessProfile=isProcessProfile;const resolveProcessCredentials=async(e,t)=>(0,r.fromProcess)({...e,profile:t})();t.resolveProcessCredentials=resolveProcessCredentials},91934:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const r=o(74462);const n=o(45458);const s=o(8280);const i=o(58427);const a=o(43881);const c=o(86471);const resolveProfileData=async(e,t,o,l={})=>{const u=t[e];if(Object.keys(l).length>0&&(0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,n.isAssumeRoleProfile)(u)){return(0,n.resolveAssumeRoleCredentials)(e,t,o,l)}if((0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,c.isWebIdentityProfile)(u)){return(0,c.resolveWebIdentityCredentials)(u,o)}if((0,s.isProcessProfile)(u)){return(0,s.resolveProcessCredentials)(o,e)}if((0,i.isSsoProfile)(u)){return(0,i.resolveSsoCredentials)(u)}throw new r.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},58427:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const r=o(78321);var n=o(78321);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return n.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:o,sso_session:n,sso_region:s,sso_role_name:i}=(0,r.validateSsoProfile)(e);return(0,r.fromSSO)({ssoStartUrl:t,ssoAccountId:o,ssoSession:n,ssoRegion:s,ssoRoleName:i})()};t.resolveSsoCredentials=resolveSsoCredentials},43881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStaticCredentials=t.isStaticCredsProfile=void 0;const isStaticCredsProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;t.isStaticCredsProfile=isStaticCredsProfile;const resolveStaticCredentials=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});t.resolveStaticCredentials=resolveStaticCredentials},86471:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const r=o(39497);const isWebIdentityProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;t.isWebIdentityProfile=isWebIdentityProfile;const resolveWebIdentityCredentials=async(e,t)=>(0,r.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},61357:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const r=o(75321);const n=o(53206);const s=o(84578);const i=o(78321);const a=o(39497);const c=o(74462);const l=o(67387);const u=o(92766);const defaultProvider=(e={})=>(0,c.memoize)((0,c.chain)(...e.profile||process.env[l.ENV_PROFILE]?[]:[(0,r.fromEnv)()],(0,i.fromSSO)(e),(0,n.fromIni)(e),(0,s.fromProcess)(e),(0,a.fromTokenFile)(e),(0,u.remoteProvider)(e),(async()=>{throw new c.CredentialsProviderError("Could not load credentials from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.defaultProvider=defaultProvider},98707:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(61357),t)},92766:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const r=o(36279);const n=o(74462);t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";const remoteProvider=e=>{if(process.env[r.ENV_CMDS_RELATIVE_URI]||process.env[r.ENV_CMDS_FULL_URI]){return(0,r.fromContainerMetadata)(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new n.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return(0,r.fromInstanceMetadata)(e)};t.remoteProvider=remoteProvider},12542:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const r=o(67387);const n=o(1990);const fromProcess=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);return(0,n.resolveProcessCredentials)((0,r.getProfileName)(e),t)};t.fromProcess=fromProcess},9414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValidatedProcessCredentials=void 0;const getValidatedProcessCredentials=(e,t)=>{if(t.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(t.AccessKeyId===undefined||t.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(t.Expiration){const o=new Date;const r=new Date(t.Expiration);if(r<o){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};t.getValidatedProcessCredentials=getValidatedProcessCredentials},84578:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(12542),t)},1990:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const r=o(74462);const n=o(32081);const s=o(73837);const i=o(9414);const resolveProcessCredentials=async(e,t)=>{const o=t[e];if(t[e]){const t=o["credential_process"];if(t!==undefined){const o=(0,s.promisify)(n.exec);try{const{stdout:r}=await o(t);let n;try{n=JSON.parse(r.trim())}catch(t){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,i.getValidatedProcessCredentials)(e,n)}catch(e){throw new r.CredentialsProviderError(e.message)}}else{throw new r.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}}else{throw new r.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)}};t.resolveProcessCredentials=resolveProcessCredentials},79537:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const r=o(74462);const n=o(67387);const s=o(65244);const i=o(22463);const a=o(14028);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u,ssoSession:d}=e;const p=(0,n.getProfileName)(e);if(!t&&!o&&!c&&!l&&!d){const o=await(0,n.parseKnownFiles)(e);const l=o[p];if(!l){throw new r.CredentialsProviderError(`Profile ${p} was not found.`)}if(!(0,s.isSsoProfile)(l)){throw new r.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`)}if(l===null||l===void 0?void 0:l.sso_session){const o=await(0,n.loadSsoSessionData)(e);const s=o[l.sso_session];const i=` configurations in profile ${p} and sso-session ${l.sso_session}`;if(c&&c!==s.sso_region){throw new r.CredentialsProviderError(`Conflicting SSO region`+i,false)}if(t&&t!==s.sso_start_url){throw new r.CredentialsProviderError(`Conflicting SSO start_url`+i,false)}l.sso_region=s.sso_region;l.sso_start_url=s.sso_start_url}const{sso_start_url:d,sso_account_id:f,sso_region:m,sso_role_name:g,sso_session:y}=(0,a.validateSsoProfile)(l);return(0,i.resolveSSOCredentials)({ssoStartUrl:d,ssoSession:y,ssoAccountId:f,ssoRegion:m,ssoRoleName:g,ssoClient:u,profile:p})}else if(!t||!o||!c||!l){throw new r.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return(0,i.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:d,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u,profile:p})}};t.fromSSO=fromSSO},78321:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(79537),t);r.__exportStar(o(65244),t);r.__exportStar(o(91250),t);r.__exportStar(o(14028),t)},65244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSsoProfile=void 0;const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");t.isSsoProfile=isSsoProfile},22463:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const r=o(22636);const n=o(74462);const s=o(67387);const i=o(52843);const a=15*60*1e3;const c=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:o,ssoRegion:l,ssoRoleName:u,ssoClient:d,profile:p})=>{let f;const m=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t){try{const e=await(0,i.fromSso)({profile:p})();f={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new n.CredentialsProviderError(e.message,c)}}else{try{f=await(0,s.getSSOTokenFromFile)(e)}catch(e){throw new n.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${m}`,c)}}if(new Date(f.expiresAt).getTime()-Date.now()<=a){throw new n.CredentialsProviderError(`The SSO session associated with this profile has expired. ${m}`,c)}const{accessToken:g}=f;const y=d||new r.SSOClient({region:l});let h;try{h=await y.send(new r.GetRoleCredentialsCommand({accountId:o,roleName:u,accessToken:g}))}catch(e){throw n.CredentialsProviderError.from(e,c)}const{roleCredentials:{accessKeyId:E,secretAccessKey:v,sessionToken:_,expiration:S}={}}=h;if(!E||!v||!_||!S){throw new n.CredentialsProviderError("SSO returns an invalid temporary credential.",c)}return{accessKeyId:E,secretAccessKey:v,sessionToken:_,expiration:new Date(S)}};t.resolveSSOCredentials=resolveSSOCredentials},91250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14028:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const r=o(74462);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:n,sso_role_name:s}=e;if(!t||!o||!n||!s){throw new r.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,false)}return e};t.validateSsoProfile=validateSsoProfile},33017:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const r=o(74462);const n=o(57147);const s=o(892);const i="AWS_WEB_IDENTITY_TOKEN_FILE";const a="AWS_ROLE_ARN";const c="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>resolveTokenFile(e);t.fromTokenFile=fromTokenFile;const resolveTokenFile=e=>{var t,o,l;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[i];const d=(o=e===null||e===void 0?void 0:e.roleArn)!==null&&o!==void 0?o:process.env[a];const p=(l=e===null||e===void 0?void 0:e.roleSessionName)!==null&&l!==void 0?l:process.env[c];if(!u||!d){throw new r.CredentialsProviderError("Web identity configuration not specified")}return(0,s.fromWebToken)({...e,webIdentityToken:(0,n.readFileSync)(u,{encoding:"ascii"}),roleArn:d,roleSessionName:p})()}},892:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const r=o(74462);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:o,webIdentityToken:n,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l){throw new r.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return l({RoleArn:t,RoleSessionName:o!==null&&o!==void 0?o:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};t.fromWebToken=fromWebToken},39497:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(33017),t);r.__exportStar(o(892),t)},30274:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const r=o(4772);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>(0,r.resolveAwsAuthConfig)({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},22417:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const r=o(74462);const n=o(37776);const s=o(10236);const i=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else if(e.regionInfoProvider){a=()=>(0,s.normalizeProvider)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([r,s])=>{const{signingRegion:a,signingService:c}=r;e.signingRegion=e.signingRegion||a||s;e.signingName=e.signingName||c||e.serviceId;const l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||n.SignatureV4;return new u(l)}))}else{a=async r=>{r=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,s.normalizeProvider)(e.region)(),properties:{}},r);const a=r.signingRegion;const c=r.signingName;e.signingRegion=e.signingRegion||a;e.signingName=e.signingName||c||e.serviceId;const l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||n.SignatureV4;return new u(l)}}return{...e,systemClockOffset:r,signingEscapePath:o,credentials:t,signer:a}};t.resolveAwsAuthConfig=resolveAwsAuthConfig;const resolveSigV4AuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else{a=(0,s.normalizeProvider)(new n.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:o}))}return{...e,systemClockOffset:r,signingEscapePath:o,credentials:t,signer:a}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeCredentialProvider=e=>{if(typeof e==="function"){return(0,r.memoize)(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return(0,s.normalizeProvider)(e)}},4772:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(22417),t);r.__exportStar(o(82996),t)},82996:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const r=o(70223);const n=o(11219);const s=o(41182);const awsAuthMiddleware=e=>(t,o)=>async function(i){var a,c,l,u;if(!r.HttpRequest.isInstance(i.request))return t(i);const d=(l=(c=(a=o.endpointV2)===null||a===void 0?void 0:a.properties)===null||c===void 0?void 0:c.authSchemes)===null||l===void 0?void 0:l[0];const p=(d===null||d===void 0?void 0:d.name)==="sigv4a"?(u=d===null||d===void 0?void 0:d.signingRegionSet)===null||u===void 0?void 0:u.join(","):undefined;const f=await e.signer(d);const m=await t({...i,request:await f.sign(i.request,{signingDate:(0,n.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:p||o["signing_region"],signingService:o["signing_service"]})}).catch((t=>{var o;const r=(o=t.ServerTime)!==null&&o!==void 0?o:getDateHeader(t.$response);if(r){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(r,e.systemClockOffset)}throw t}));const g=getDateHeader(m.response);if(g){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(g,e.systemClockOffset)}return m};t.awsAuthMiddleware=awsAuthMiddleware;const getDateHeader=e=>{var t,o,n;return r.HttpResponse.isInstance(e)?(o=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&o!==void 0?o:(n=e.headers)===null||n===void 0?void 0:n.Date:undefined};t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:true};const getAwsAuthPlugin=e=>({applyToStack:o=>{o.addRelativeTo((0,t.awsAuthMiddleware)(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},11219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSkewCorrectedDate=void 0;const getSkewCorrectedDate=e=>new Date(Date.now()+e);t.getSkewCorrectedDate=getSkewCorrectedDate},41182:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const r=o(41168);const getUpdatedSystemClockOffset=(e,t)=>{const o=Date.parse(e);if((0,r.isClockSkewed)(o,t)){return o-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},41168:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const r=o(11219);const isClockSkewed=(e,t)=>Math.abs((0,r.getSkewCorrectedDate)(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},16424:(e,t,o)=>{"use strict";const r=o(16210);const n=o(26930);const s=o(78483);e.exports={XMLParser:n,XMLValidator:r,XMLBuilder:s}},36159:(e,t)=>{"use strict";const o=":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";const r=o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const n="["+o+"]["+r+"]*";const s=new RegExp("^"+n+"$");const getAllMatches=function(e,t){const o=[];let r=t.exec(e);while(r){const n=[];n.startIndex=t.lastIndex-r[0].length;const s=r.length;for(let e=0;e<s;e++){n.push(r[e])}o.push(n);r=t.exec(e)}return o};const isName=function(e){const t=s.exec(e);return!(t===null||typeof t==="undefined")};t.isExist=function(e){return typeof e!=="undefined"};t.isEmptyObject=function(e){return Object.keys(e).length===0};t.merge=function(e,t,o){if(t){const r=Object.keys(t);const n=r.length;for(let s=0;s<n;s++){if(o==="strict"){e[r[s]]=[t[r[s]]]}else{e[r[s]]=t[r[s]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=n},16210:(e,t,o)=>{"use strict";const r=o(36159);const n={allowBooleanAttributes:false,unpairedTags:[]};t.validate=function(e,t){t=Object.assign({},n,t);const o=[];let r=false;let s=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let n=0;n<e.length;n++){if(e[n]==="<"&&e[n+1]==="?"){n+=2;n=readPI(e,n);if(n.err)return n}else if(e[n]==="<"){let i=n;n++;if(e[n]==="!"){n=readCommentAndCDATA(e,n);continue}else{let a=false;if(e[n]==="/"){a=true;n++}let c="";for(;n<e.length&&e[n]!==">"&&e[n]!==" "&&e[n]!=="\t"&&e[n]!=="\n"&&e[n]!=="\r";n++){c+=e[n]}c=c.trim();if(c[c.length-1]==="/"){c=c.substring(0,c.length-1);n--}if(!validateTagName(c)){let t;if(c.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+c+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,n))}const l=readAttributeStr(e,n);if(l===false){return getErrorObject("InvalidAttr","Attributes for '"+c+"' have open quote.",getLineNumberForPosition(e,n))}let u=l.value;n=l.index;if(u[u.length-1]==="/"){const o=n-u.length;u=u.substring(0,u.length-1);const s=validateAttributeString(u,t);if(s===true){r=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,o+s.err.line))}}else if(a){if(!l.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",getLineNumberForPosition(e,n))}else if(u.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,i))}else{const t=o.pop();if(c!==t.tagName){let o=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+o.line+", col "+o.col+") instead of closing tag '"+c+"'.",getLineNumberForPosition(e,i))}if(o.length==0){s=true}}}else{const a=validateAttributeString(u,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,n-u.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,n))}else if(t.unpairedTags.indexOf(c)!==-1){}else{o.push({tagName:c,tagStartPos:i})}r=true}for(n++;n<e.length;n++){if(e[n]==="<"){if(e[n+1]==="!"){n++;n=readCommentAndCDATA(e,n);continue}else if(e[n+1]==="?"){n=readPI(e,++n);if(n.err)return n}else{break}}else if(e[n]==="&"){const t=validateAmpersand(e,n);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,n));n=t}else{if(s===true&&!isWhiteSpace(e[n])){return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,n))}}}if(e[n]==="<"){n--}}}else{if(isWhiteSpace(e[n])){continue}return getErrorObject("InvalidChar","char '"+e[n]+"' is not expected.",getLineNumberForPosition(e,n))}}if(!r){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(o.length==1){return getErrorObject("InvalidTag","Unclosed tag '"+o[0].tagName+"'.",getLineNumberForPosition(e,o[0].tagStartPos))}else if(o.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(o.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const o=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){const r=e.substr(o,t-o);if(t>5&&r==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++){if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let o=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){o++}else if(e[t]===">"){o--;if(o===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++){if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}}return t}const s='"';const i="'";function readAttributeStr(e,t){let o="";let r="";let n=false;for(;t<e.length;t++){if(e[t]===s||e[t]===i){if(r===""){r=e[t]}else if(r!==e[t]){}else{r=""}}else if(e[t]===">"){if(r===""){n=true;break}}o+=e[t]}if(r!==""){return false}return{value:o,index:t,tagClosed:n}}const a=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const o=r.getAllMatches(e,a);const n={};for(let e=0;e<o.length;e++){if(o[e][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+o[e][2]+"' has no space in starting.",getPositionFromMatch(o[e]))}else if(o[e][3]!==undefined&&o[e][4]===undefined){return getErrorObject("InvalidAttr","Attribute '"+o[e][2]+"' is without value.",getPositionFromMatch(o[e]))}else if(o[e][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+o[e][2]+"' is not allowed.",getPositionFromMatch(o[e]))}const r=o[e][2];if(!validateAttrName(r)){return getErrorObject("InvalidAttr","Attribute '"+r+"' is an invalid name.",getPositionFromMatch(o[e]))}if(!n.hasOwnProperty(r)){n[r]=1}else{return getErrorObject("InvalidAttr","Attribute '"+r+"' is repeated.",getPositionFromMatch(o[e]))}}return true}function validateNumberAmpersand(e,t){let o=/\d/;if(e[t]==="x"){t++;o=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(o))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let o=0;for(;t<e.length;t++,o++){if(e[t].match(/\w/)&&o<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,o){return{err:{code:e,msg:t,line:o.line||o,col:o.col}}}function validateAttrName(e){return r.isName(e)}function validateTagName(e){return r.isName(e)}function getLineNumberForPosition(e,t){const o=e.substring(0,t).split(/\r?\n/);return{line:o.length,col:o[o.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}},78483:(e,t,o)=>{"use strict";const r=o(62719);const n={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],transformTagName:false};function Builder(e){this.options=Object.assign({},n,e);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}if(this.options.suppressEmptyNode){this.buildTextNode=buildEmptyTextNode;this.buildObjNode=buildEmptyObjNode}else{this.buildTextNode=buildTextValNode;this.buildObjNode=buildObjectNode}this.buildTextValNode=buildTextValNode;this.buildObjectNode=buildObjectNode;this.replaceEntitiesValue=replaceEntitiesValue;this.buildAttrPairStr=buildAttrPairStr}Builder.prototype.build=function(e){if(this.options.preserveOrder){return r(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}return this.j2x(e,0).val}};Builder.prototype.j2x=function(e,t){let o="";let r="";for(let n in e){if(typeof e[n]==="undefined"){}else if(e[n]===null){if(n[0]==="?")r+=this.indentate(t)+"<"+n+"?"+this.tagEndChar;else r+=this.indentate(t)+"<"+n+"/"+this.tagEndChar}else if(e[n]instanceof Date){r+=this.buildTextNode(e[n],n,"",t)}else if(typeof e[n]!=="object"){const s=this.isAttribute(n);if(s){o+=this.buildAttrPairStr(s,""+e[n])}else{if(n===this.options.textNodeName){let t=this.options.tagValueProcessor(n,""+e[n]);r+=this.replaceEntitiesValue(t)}else{r+=this.buildTextNode(e[n],n,"",t)}}}else if(Array.isArray(e[n])){const o=e[n].length;for(let s=0;s<o;s++){const o=e[n][s];if(typeof o==="undefined"){}else if(o===null){if(n[0]==="?")r+=this.indentate(t)+"<"+n+"?"+this.tagEndChar;else r+=this.indentate(t)+"<"+n+"/"+this.tagEndChar}else if(typeof o==="object"){r+=this.processTextOrObjNode(o,n,t)}else{r+=this.buildTextNode(o,n,"",t)}}}else{if(this.options.attributesGroupName&&n===this.options.attributesGroupName){const t=Object.keys(e[n]);const r=t.length;for(let s=0;s<r;s++){o+=this.buildAttrPairStr(t[s],""+e[n][t[s]])}}else{r+=this.processTextOrObjNode(e[n],n,t)}}}return{attrStr:o,val:r}};function buildAttrPairStr(e,t){t=this.options.attributeValueProcessor(e,""+t);t=this.replaceEntitiesValue(t);if(this.options.suppressBooleanAttributes&&t==="true"){return" "+e}else return" "+e+'="'+t+'"'}function processTextOrObjNode(e,t,o){const r=this.j2x(e,o+1);if(e[this.options.textNodeName]!==undefined&&Object.keys(e).length===1){return this.buildTextNode(e[this.options.textNodeName],t,r.attrStr,o)}else{return this.buildObjNode(r.val,t,r.attrStr,o)}}function buildObjectNode(e,t,o,r){let n="</"+t+this.tagEndChar;let s="";if(t[0]==="?"){s="?";n=""}if(o&&e.indexOf("<")===-1){return this.indentate(r)+"<"+t+o+s+">"+e+n}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&s.length===0){return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(r)+"<"+t+o+s+this.tagEndChar+e+this.indentate(r)+n}}function buildEmptyObjNode(e,t,o,r){if(e!==""){return this.buildObjectNode(e,t,o,r)}else{if(t[0]==="?")return this.indentate(r)+"<"+t+o+"?"+this.tagEndChar;else return this.indentate(r)+"<"+t+o+"/"+this.tagEndChar}}function buildTextValNode(e,t,o,r){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine}else{let n=this.options.tagValueProcessor(t,e);n=this.replaceEntitiesValue(n);if(n===""&&this.options.unpairedTags.indexOf(t)!==-1){if(this.options.suppressUnpairedNode){return this.indentate(r)+"<"+t+this.tagEndChar}else{return this.indentate(r)+"<"+t+"/"+this.tagEndChar}}else{return this.indentate(r)+"<"+t+o+">"+n+"</"+t+this.tagEndChar}}}function replaceEntitiesValue(e){if(e&&e.length>0&&this.options.processEntities){for(let t=0;t<this.options.entities.length;t++){const o=this.options.entities[t];e=e.replace(o.regex,o.val)}}return e}function buildEmptyTextNode(e,t,o,r){if(e===""&&this.options.unpairedTags.indexOf(t)!==-1){if(this.options.suppressUnpairedNode){return this.indentate(r)+"<"+t+this.tagEndChar}else{return this.indentate(r)+"<"+t+"/"+this.tagEndChar}}else if(e!==""){return this.buildTextValNode(e,t,o,r)}else{if(t[0]==="?")return this.indentate(r)+"<"+t+o+"?"+this.tagEndChar;else return this.indentate(r)+"<"+t+o+"/"+this.tagEndChar}}function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)){return e.substr(this.attrPrefixLen)}else{return false}}e.exports=Builder},62719:e=>{const t="\n";function toXml(e,t){return arrToStr(e,t,"",0)}function arrToStr(e,o,r,n){let s="";let i="";if(o.format&&o.indentBy.length>0){i=t+""+o.indentBy.repeat(n)}for(let t=0;t<e.length;t++){const a=e[t];const c=propName(a);let l="";if(r.length===0)l=c;else l=`${r}.${c}`;if(c===o.textNodeName){let e=a[c];if(!isStopNode(l,o)){e=o.tagValueProcessor(c,e);e=replaceEntitiesValue(e,o)}s+=i+e;continue}else if(c===o.cdataPropName){s+=i+`<![CDATA[${a[c][0][o.textNodeName]}]]>`;continue}else if(c===o.commentPropName){s+=i+`\x3c!--${a[c][0][o.textNodeName]}--\x3e`;continue}else if(c[0]==="?"){const e=attr_to_str(a[":@"],o);const t=c==="?xml"?"":i;let r=a[c][0][o.textNodeName];r=r.length!==0?" "+r:"";s+=t+`<${c}${r}${e}?>`;continue}const u=attr_to_str(a[":@"],o);let d=i+`<${c}${u}`;let p=arrToStr(a[c],o,l,n+1);if(o.unpairedTags.indexOf(c)!==-1){if(o.suppressUnpairedNode)s+=d+">";else s+=d+"/>"}else if((!p||p.length===0)&&o.suppressEmptyNode){s+=d+"/>"}else{s+=d+`>${p}${i}</${c}>`}}return s}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const o=t[e];if(o!==":@")return o}}function attr_to_str(e,t){let o="";if(e&&!t.ignoreAttributes){for(let r in e){let n=t.attributeValueProcessor(r,e[r]);n=replaceEntitiesValue(n,t);if(n===true&&t.suppressBooleanAttributes){o+=` ${r.substr(t.attributeNamePrefix.length)}`}else{o+=` ${r.substr(t.attributeNamePrefix.length)}="${n}"`}}}return o}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let o=e.substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes){if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+o)return true}return false}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities){for(let o=0;o<t.entities.length;o++){const r=t.entities[o];e=e.replace(r.regex,r.val)}}return e}e.exports=toXml},1470:e=>{function readDocType(e,t){const o={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let r=1;let n=false,s=false,i=false;let a="";for(;t<e.length;t++){if(e[t]==="<"){if(n&&e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="N"&&e[t+4]==="T"&&e[t+5]==="I"&&e[t+6]==="T"&&e[t+7]==="Y"){t+=7;s=true}else if(n&&e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="L"&&e[t+4]==="E"&&e[t+5]==="M"&&e[t+6]==="E"&&e[t+7]==="N"&&e[t+8]==="T"){t+=8}else if(n&&e[t+1]==="!"&&e[t+2]==="A"&&e[t+3]==="T"&&e[t+4]==="T"&&e[t+5]==="L"&&e[t+6]==="I"&&e[t+7]==="S"&&e[t+8]==="T"){t+=8}else if(n&&e[t+1]==="!"&&e[t+2]==="N"&&e[t+3]==="O"&&e[t+4]==="T"&&e[t+5]==="A"&&e[t+6]==="T"&&e[t+7]==="I"&&e[t+8]==="O"&&e[t+9]==="N"){t+=9}else if(e[t+1]==="!"&&e[t+2]==="-"&&e[t+3]==="-"){i=true}else{throw new Error("Invalid DOCTYPE")}r++;a=""}else if(e[t]===">"){if(i){if(e[t-1]==="-"&&e[t-2]==="-"){i=false}else{throw new Error(`Invalid XML comment in DOCTYPE`)}}else if(s){parseEntityExp(a,o);s=false}r--;if(r===0){break}}else if(e[t]==="["){n=true}else{a+=e[t]}}if(r!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:o,i:t}}const t=RegExp("^\\s([a-zA-z0-0]+)[ \t](['\"])([^&]+)\\2");function parseEntityExp(e,o){const r=t.exec(e);if(r){o[r[1]]={regx:RegExp(`&${r[1]};`,"g"),val:r[3]}}}e.exports=readDocType},63150:(e,t)=>{const o={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false};const buildOptions=function(e){return Object.assign({},o,e)};t.buildOptions=buildOptions;t.defaultOptions=o},90764:(e,t,o)=>{"use strict";const r=o(36159);const n=o(60698);const s=o(1470);const i=o(14526);const a="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);class OrderedObjParser{constructor(e){this.options=e;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:"₹"}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag}}function addExternalEntities(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const r=t[o];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function parseTextData(e,t,o,r,n,s,i){if(e!==undefined){if(this.options.trimValues&&!r){e=e.trim()}if(e.length>0){if(!i)e=this.replaceEntitiesValue(e);const r=this.options.tagValueProcessor(t,e,o,n,s);if(r===null||r===undefined){return e}else if(typeof r!==typeof e||r!==e){return r}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=o+t[1]}}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t){if(!this.options.ignoreAttributes&&typeof e==="string"){const o=r.getAllMatches(e,c);const n=o.length;const s={};for(let e=0;e<n;e++){const r=this.resolveNameSpace(o[e][1]);let n=o[e][4];const i=this.options.attributeNamePrefix+r;if(r.length){if(n!==undefined){if(this.options.trimValues){n=n.trim()}n=this.replaceEntitiesValue(n);const e=this.options.attributeValueProcessor(r,n,t);if(e===null||e===undefined){s[i]=n}else if(typeof e!==typeof n||e!==n){s[i]=e}else{s[i]=parseValue(n,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){s[i]=true}}}if(!Object.keys(s).length){return}if(this.options.attributesGroupName){const e={};e[this.options.attributesGroupName]=s;return e}return s}}const parseXml=function(e){e=e.replace(/\r\n?/g,"\n");const t=new n("!xml");let o=t;let r="";let i="";for(let a=0;a<e.length;a++){const c=e[a];if(c==="<"){if(e[a+1]==="/"){const t=findClosingIndex(e,">",a,"Closing Tag is not closed.");let n=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=n.indexOf(":");if(e!==-1){n=n.substr(e+1)}}if(this.options.transformTagName){n=this.options.transformTagName(n)}if(o){r=this.saveTextToParentTag(r,o,i)}i=i.substr(0,i.lastIndexOf("."));o=this.tagsNodeStack.pop();r="";a=t}else if(e[a+1]==="?"){let t=readTagExp(e,a,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");r=this.saveTextToParentTag(r,o,i);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new n(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,i)}o.addChild(e)}a=t.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const n=e.substring(a+4,t-2);r=this.saveTextToParentTag(r,o,i);o.add(this.options.commentPropName,[{[this.options.textNodeName]:n}])}a=t}else if(e.substr(a+1,2)==="!D"){const t=s(e,a);this.docTypeEntities=t.entities;a=t.i}else if(e.substr(a+1,2)==="!["){const t=findClosingIndex(e,"]]>",a,"CDATA is not closed.")-2;const n=e.substring(a+9,t);r=this.saveTextToParentTag(r,o,i);if(this.options.cdataPropName){o.add(this.options.cdataPropName,[{[this.options.textNodeName]:n}])}else{let e=this.parseTextData(n,o.tagname,i,true,false,true);if(e==undefined)e="";o.add(this.options.textNodeName,e)}a=t+2}else{let s=readTagExp(e,a,this.options.removeNSPrefix);let c=s.tagName;let l=s.tagExp;let u=s.attrExpPresent;let d=s.closeIndex;if(this.options.transformTagName){c=this.options.transformTagName(c)}if(o&&r){if(o.tagname!=="!xml"){r=this.saveTextToParentTag(r,o,i,false)}}if(c!==t.tagname){i+=i?"."+c:c}const p=o;if(p&&this.options.unpairedTags.indexOf(p.tagname)!==-1){o=this.tagsNodeStack.pop()}if(this.isItStopNode(this.options.stopNodes,i,c)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1){a=s.closeIndex}else if(this.options.unpairedTags.indexOf(c)!==-1){a=s.closeIndex}else{const o=this.readStopNodeData(e,c,d+1);if(!o)throw new Error(`Unexpected end of ${c}`);a=o.i;t=o.tagContent}const r=new n(c);if(c!==l&&u){r[":@"]=this.buildAttributesMap(l,i)}if(t){t=this.parseTextData(t,c,i,true,u,true,true)}i=i.substr(0,i.lastIndexOf("."));r.add(this.options.textNodeName,t);o.addChild(r)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){if(c[c.length-1]==="/"){c=c.substr(0,c.length-1);l=c}else{l=l.substr(0,l.length-1)}if(this.options.transformTagName){c=this.options.transformTagName(c)}const e=new n(c);if(c!==l&&u){e[":@"]=this.buildAttributesMap(l,i)}i=i.substr(0,i.lastIndexOf("."));o.addChild(e)}else{const e=new n(c);this.tagsNodeStack.push(o);if(c!==l&&u){e[":@"]=this.buildAttributesMap(l,i)}o.addChild(e);o=e}r="";a=d}}}else{r+=e[a]}}return t.child};const replaceEntitiesValue=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const o=this.docTypeEntities[t];e=e.replace(o.regx,o.val)}for(let t in this.lastEntities){const o=this.lastEntities[t];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities){for(let t in this.htmlEntities){const o=this.htmlEntities[t];e=e.replace(o.regex,o.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function saveTextToParentTag(e,t,o,r){if(e){if(r===undefined)r=Object.keys(t.child).length===0;e=this.parseTextData(e,t.tagname,o,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,r);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t,o){const r="*."+o;for(const o in e){const n=e[o];if(r===n||t===n)return true}return false}function tagExpWithClosingIndex(e,t,o=">"){let r;let n="";for(let s=t;s<e.length;s++){let t=e[s];if(r){if(t===r)r=""}else if(t==='"'||t==="'"){r=t}else if(t===o[0]){if(o[1]){if(e[s+1]===o[1]){return{data:n,index:s}}}else{return{data:n,index:s}}}else if(t==="\t"){t=" "}n+=t}}function findClosingIndex(e,t,o,r){const n=e.indexOf(t,o);if(n===-1){throw new Error(r)}else{return n+t.length-1}}function readTagExp(e,t,o,r=">"){const n=tagExpWithClosingIndex(e,t+1,r);if(!n)return;let s=n.data;const i=n.index;const a=s.search(/\s/);let c=s;let l=true;if(a!==-1){c=s.substr(0,a).replace(/\s\s*$/,"");s=s.substr(a+1)}if(o){const e=c.indexOf(":");if(e!==-1){c=c.substr(e+1);l=c!==n.data.substr(e+1)}}return{tagName:c,tagExp:s,closeIndex:i,attrExpPresent:l}}function readStopNodeData(e,t,o){const r=o;let n=1;for(;o<e.length;o++){if(e[o]==="<"){if(e[o+1]==="/"){const s=findClosingIndex(e,">",o,`${t} is not closed`);let i=e.substring(o+2,s).trim();if(i===t){n--;if(n===0){return{tagContent:e.substring(r,o),i:s}}}o=s}else if(e[o+1]==="?"){const t=findClosingIndex(e,"?>",o+1,"StopNode is not closed.");o=t}else if(e.substr(o+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",o+3,"StopNode is not closed.");o=t}else if(e.substr(o+1,2)==="!["){const t=findClosingIndex(e,"]]>",o,"StopNode is not closed.")-2;o=t}else{const r=readTagExp(e,o,">");if(r){const e=r&&r.tagName;if(e===t&&r.tagExp[r.tagExp.length-1]!=="/"){n++}o=r.closeIndex}}}}}function parseValue(e,t,o){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return i(e,o)}else{if(r.isExist(e)){return e}else{return""}}}e.exports=OrderedObjParser},26930:(e,t,o)=>{const{buildOptions:r}=o(63150);const n=o(90764);const{prettify:s}=o(70398);const i=o(16210);class XMLParser{constructor(e){this.externalEntities={};this.options=r(e)}parse(e,t){if(typeof e==="string"){}else if(e.toString){e=e.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(t){if(t===true)t={};const o=i.validate(e,t);if(o!==true){throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}}const o=new n(this.options);o.addExternalEntities(this.externalEntities);const r=o.parseXml(e);if(this.options.preserveOrder||r===undefined)return r;else return s(r,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'")}else if(t==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=t}}}e.exports=XMLParser},70398:(e,t)=>{"use strict";function prettify(e,t){return compress(e,t)}function compress(e,t,o){let r;const n={};for(let s=0;s<e.length;s++){const i=e[s];const a=propName(i);let c="";if(o===undefined)c=a;else c=o+"."+a;if(a===t.textNodeName){if(r===undefined)r=i[a];else r+=""+i[a]}else if(a===undefined){continue}else if(i[a]){let e=compress(i[a],t,c);const o=isLeafTag(e,t);if(i[":@"]){assignAttributes(e,i[":@"],c,t)}else if(Object.keys(e).length===1&&e[t.textNodeName]!==undefined&&!t.alwaysCreateTextNode){e=e[t.textNodeName]}else if(Object.keys(e).length===0){if(t.alwaysCreateTextNode)e[t.textNodeName]="";else e=""}if(n[a]!==undefined&&n.hasOwnProperty(a)){if(!Array.isArray(n[a])){n[a]=[n[a]]}n[a].push(e)}else{if(t.isArray(a,c,o)){n[a]=[e]}else{n[a]=e}}}}if(typeof r==="string"){if(r.length>0)n[t.textNodeName]=r}else if(r!==undefined)n[t.textNodeName]=r;return n}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const o=t[e];if(o!==":@")return o}}function assignAttributes(e,t,o,r){if(t){const n=Object.keys(t);const s=n.length;for(let i=0;i<s;i++){const s=n[i];if(r.isArray(s,o+"."+s,true,true)){e[s]=[t[s]]}else{e[s]=t[s]}}}}function isLeafTag(e,t){const o=Object.keys(e).length;if(o===0||o===1&&e[t.textNodeName])return true;return false}t.prettify=prettify},60698:e=>{"use strict";class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){this.child.push({[e]:t})}addChild(e){if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}}}e.exports=XmlNode},17124:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDC=void 0;const r=o(62853);const n=o(36677);const s=o(38359);const i=o(70139);class SSOOIDC extends i.SSOOIDCClient{createToken(e,t,o){const n=new r.CreateTokenCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}registerClient(e,t,o){const r=new n.RegisterClientCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}startDeviceAuthorization(e,t,o){const r=new s.StartDeviceAuthorizationCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.SSOOIDC=SSOOIDC},70139:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCClient=void 0;const r=o(56153);const n=o(42245);const s=o(5497);const i=o(22545);const a=o(20014);const c=o(85525);const l=o(96064);const u=o(64688);const d=o(4963);const p=o(61426);const f=o(25524);class SSOOIDCClient extends d.Client{constructor(e){const t=(0,f.getRuntimeConfig)(e);const o=(0,p.resolveClientEndpointParameters)(t);const d=(0,r.resolveRegionConfig)(o);const m=(0,s.resolveEndpointConfig)(d);const g=(0,l.resolveRetryConfig)(m);const y=(0,i.resolveHostHeaderConfig)(g);const h=(0,u.resolveUserAgentConfig)(y);super(h);this.config=h;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,i.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOOIDCClient=SSOOIDCClient},62853:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateTokenCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(69374);const a=o(21518);class CreateTokenCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,CreateTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="CreateTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.CreateTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:i.CreateTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1CreateTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1CreateTokenCommand)(e,t)}}t.CreateTokenCommand=CreateTokenCommand},36677:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RegisterClientCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(69374);const a=o(21518);class RegisterClientCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,RegisterClientCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="RegisterClientCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.RegisterClientRequestFilterSensitiveLog,outputFilterSensitiveLog:i.RegisterClientResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1RegisterClientCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1RegisterClientCommand)(e,t)}}t.RegisterClientCommand=RegisterClientCommand},38359:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartDeviceAuthorizationCommand=void 0;const r=o(5497);const n=o(93631);const s=o(4963);const i=o(69374);const a=o(21518);class StartDeviceAuthorizationCommand extends s.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,n.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="StartDeviceAuthorizationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.StartDeviceAuthorizationRequestFilterSensitiveLog,outputFilterSensitiveLog:i.StartDeviceAuthorizationResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1StartDeviceAuthorizationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1StartDeviceAuthorizationCommand)(e,t)}}t.StartDeviceAuthorizationCommand=StartDeviceAuthorizationCommand},50447:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(62853),t);r.__exportStar(o(36677),t);r.__exportStar(o(38359),t)},61426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssooidc"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},97604:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const r=o(39205);const n=o(51756);const defaultEndpointResolver=(e,t={})=>(0,r.resolveEndpoint)(n.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},51756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},54527:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCServiceException=void 0;const r=o(4351);r.__exportStar(o(17124),t);r.__exportStar(o(70139),t);r.__exportStar(o(50447),t);r.__exportStar(o(35973),t);var n=o(43026);Object.defineProperty(t,"SSOOIDCServiceException",{enumerable:true,get:function(){return n.SSOOIDCServiceException}})},43026:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCServiceException=void 0;const r=o(4963);class SSOOIDCServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}t.SSOOIDCServiceException=SSOOIDCServiceException},35973:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(69374),t)},69374:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartDeviceAuthorizationResponseFilterSensitiveLog=t.StartDeviceAuthorizationRequestFilterSensitiveLog=t.RegisterClientResponseFilterSensitiveLog=t.RegisterClientRequestFilterSensitiveLog=t.CreateTokenResponseFilterSensitiveLog=t.CreateTokenRequestFilterSensitiveLog=t.InvalidClientMetadataException=t.UnsupportedGrantTypeException=t.UnauthorizedClientException=t.SlowDownException=t.InvalidScopeException=t.InvalidRequestException=t.InvalidGrantException=t.InvalidClientException=t.InternalServerException=t.ExpiredTokenException=t.AuthorizationPendingException=t.AccessDeniedException=void 0;const r=o(43026);class AccessDeniedException extends r.SSOOIDCServiceException{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException";this.$fault="client";Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=e.error;this.error_description=e.error_description}}t.AccessDeniedException=AccessDeniedException;class AuthorizationPendingException extends r.SSOOIDCServiceException{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException";this.$fault="client";Object.setPrototypeOf(this,AuthorizationPendingException.prototype);this.error=e.error;this.error_description=e.error_description}}t.AuthorizationPendingException=AuthorizationPendingException;class ExpiredTokenException extends r.SSOOIDCServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype);this.error=e.error;this.error_description=e.error_description}}t.ExpiredTokenException=ExpiredTokenException;class InternalServerException extends r.SSOOIDCServiceException{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException";this.$fault="server";Object.setPrototypeOf(this,InternalServerException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InternalServerException=InternalServerException;class InvalidClientException extends r.SSOOIDCServiceException{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException";this.$fault="client";Object.setPrototypeOf(this,InvalidClientException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidClientException=InvalidClientException;class InvalidGrantException extends r.SSOOIDCServiceException{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException";this.$fault="client";Object.setPrototypeOf(this,InvalidGrantException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidGrantException=InvalidGrantException;class InvalidRequestException extends r.SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidRequestException=InvalidRequestException;class InvalidScopeException extends r.SSOOIDCServiceException{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException";this.$fault="client";Object.setPrototypeOf(this,InvalidScopeException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidScopeException=InvalidScopeException;class SlowDownException extends r.SSOOIDCServiceException{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException";this.$fault="client";Object.setPrototypeOf(this,SlowDownException.prototype);this.error=e.error;this.error_description=e.error_description}}t.SlowDownException=SlowDownException;class UnauthorizedClientException extends r.SSOOIDCServiceException{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedClientException.prototype);this.error=e.error;this.error_description=e.error_description}}t.UnauthorizedClientException=UnauthorizedClientException;class UnsupportedGrantTypeException extends r.SSOOIDCServiceException{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype);this.error=e.error;this.error_description=e.error_description}}t.UnsupportedGrantTypeException=UnsupportedGrantTypeException;class InvalidClientMetadataException extends r.SSOOIDCServiceException{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException";this.$fault="client";Object.setPrototypeOf(this,InvalidClientMetadataException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidClientMetadataException=InvalidClientMetadataException;const CreateTokenRequestFilterSensitiveLog=e=>({...e});t.CreateTokenRequestFilterSensitiveLog=CreateTokenRequestFilterSensitiveLog;const CreateTokenResponseFilterSensitiveLog=e=>({...e});t.CreateTokenResponseFilterSensitiveLog=CreateTokenResponseFilterSensitiveLog;const RegisterClientRequestFilterSensitiveLog=e=>({...e});t.RegisterClientRequestFilterSensitiveLog=RegisterClientRequestFilterSensitiveLog;const RegisterClientResponseFilterSensitiveLog=e=>({...e});t.RegisterClientResponseFilterSensitiveLog=RegisterClientResponseFilterSensitiveLog;const StartDeviceAuthorizationRequestFilterSensitiveLog=e=>({...e});t.StartDeviceAuthorizationRequestFilterSensitiveLog=StartDeviceAuthorizationRequestFilterSensitiveLog;const StartDeviceAuthorizationResponseFilterSensitiveLog=e=>({...e});t.StartDeviceAuthorizationResponseFilterSensitiveLog=StartDeviceAuthorizationResponseFilterSensitiveLog},21518:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_restJson1StartDeviceAuthorizationCommand=t.deserializeAws_restJson1RegisterClientCommand=t.deserializeAws_restJson1CreateTokenCommand=t.serializeAws_restJson1StartDeviceAuthorizationCommand=t.serializeAws_restJson1RegisterClientCommand=t.serializeAws_restJson1CreateTokenCommand=void 0;const r=o(70223);const n=o(4963);const s=o(69374);const i=o(43026);const serializeAws_restJson1CreateTokenCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const a={"content-type":"application/json"};const c=`${i?.endsWith("/")?i.slice(0,-1):i||""}`+"/token";let l;l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.code!=null&&{code:e.code},...e.deviceCode!=null&&{deviceCode:e.deviceCode},...e.grantType!=null&&{grantType:e.grantType},...e.redirectUri!=null&&{redirectUri:e.redirectUri},...e.refreshToken!=null&&{refreshToken:e.refreshToken},...e.scope!=null&&{scope:serializeAws_restJson1Scopes(e.scope,t)}});return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1CreateTokenCommand=serializeAws_restJson1CreateTokenCommand;const serializeAws_restJson1RegisterClientCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const a={"content-type":"application/json"};const c=`${i?.endsWith("/")?i.slice(0,-1):i||""}`+"/client/register";let l;l=JSON.stringify({...e.clientName!=null&&{clientName:e.clientName},...e.clientType!=null&&{clientType:e.clientType},...e.scopes!=null&&{scopes:serializeAws_restJson1Scopes(e.scopes,t)}});return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1RegisterClientCommand=serializeAws_restJson1RegisterClientCommand;const serializeAws_restJson1StartDeviceAuthorizationCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const a={"content-type":"application/json"};const c=`${i?.endsWith("/")?i.slice(0,-1):i||""}`+"/device_authorization";let l;l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.startUrl!=null&&{startUrl:e.startUrl}});return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1StartDeviceAuthorizationCommand=serializeAws_restJson1StartDeviceAuthorizationCommand;const deserializeAws_restJson1CreateTokenCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1CreateTokenCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.accessToken!=null){o.accessToken=(0,n.expectString)(r.accessToken)}if(r.expiresIn!=null){o.expiresIn=(0,n.expectInt32)(r.expiresIn)}if(r.idToken!=null){o.idToken=(0,n.expectString)(r.idToken)}if(r.refreshToken!=null){o.refreshToken=(0,n.expectString)(r.refreshToken)}if(r.tokenType!=null){o.tokenType=(0,n.expectString)(r.tokenType)}return o};t.deserializeAws_restJson1CreateTokenCommand=deserializeAws_restJson1CreateTokenCommand;const deserializeAws_restJson1CreateTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await deserializeAws_restJson1AccessDeniedExceptionResponse(o,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await deserializeAws_restJson1AuthorizationPendingExceptionResponse(o,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await deserializeAws_restJson1ExpiredTokenExceptionResponse(o,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await deserializeAws_restJson1InternalServerExceptionResponse(o,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await deserializeAws_restJson1InvalidClientExceptionResponse(o,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await deserializeAws_restJson1InvalidGrantExceptionResponse(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await deserializeAws_restJson1InvalidScopeExceptionResponse(o,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await deserializeAws_restJson1SlowDownExceptionResponse(o,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(o,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOOIDCServiceException,errorCode:r})}};const deserializeAws_restJson1RegisterClientCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1RegisterClientCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.authorizationEndpoint!=null){o.authorizationEndpoint=(0,n.expectString)(r.authorizationEndpoint)}if(r.clientId!=null){o.clientId=(0,n.expectString)(r.clientId)}if(r.clientIdIssuedAt!=null){o.clientIdIssuedAt=(0,n.expectLong)(r.clientIdIssuedAt)}if(r.clientSecret!=null){o.clientSecret=(0,n.expectString)(r.clientSecret)}if(r.clientSecretExpiresAt!=null){o.clientSecretExpiresAt=(0,n.expectLong)(r.clientSecretExpiresAt)}if(r.tokenEndpoint!=null){o.tokenEndpoint=(0,n.expectString)(r.tokenEndpoint)}return o};t.deserializeAws_restJson1RegisterClientCommand=deserializeAws_restJson1RegisterClientCommand;const deserializeAws_restJson1RegisterClientCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await deserializeAws_restJson1InternalServerExceptionResponse(o,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await deserializeAws_restJson1InvalidClientMetadataExceptionResponse(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await deserializeAws_restJson1InvalidScopeExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOOIDCServiceException,errorCode:r})}};const deserializeAws_restJson1StartDeviceAuthorizationCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1StartDeviceAuthorizationCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.deviceCode!=null){o.deviceCode=(0,n.expectString)(r.deviceCode)}if(r.expiresIn!=null){o.expiresIn=(0,n.expectInt32)(r.expiresIn)}if(r.interval!=null){o.interval=(0,n.expectInt32)(r.interval)}if(r.userCode!=null){o.userCode=(0,n.expectString)(r.userCode)}if(r.verificationUri!=null){o.verificationUri=(0,n.expectString)(r.verificationUri)}if(r.verificationUriComplete!=null){o.verificationUriComplete=(0,n.expectString)(r.verificationUriComplete)}return o};t.deserializeAws_restJson1StartDeviceAuthorizationCommand=deserializeAws_restJson1StartDeviceAuthorizationCommand;const deserializeAws_restJson1StartDeviceAuthorizationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await deserializeAws_restJson1InternalServerExceptionResponse(o,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await deserializeAws_restJson1InvalidClientExceptionResponse(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await deserializeAws_restJson1SlowDownExceptionResponse(o,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOOIDCServiceException,errorCode:r})}};const a=n.map;const deserializeAws_restJson1AccessDeniedExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.AccessDeniedException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1AuthorizationPendingExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.AuthorizationPendingException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1ExpiredTokenExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.ExpiredTokenException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InternalServerExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InternalServerException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InvalidClientExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InvalidClientException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InvalidClientMetadataExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InvalidClientMetadataException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InvalidGrantExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InvalidGrantException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1InvalidScopeExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.InvalidScopeException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1SlowDownExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.SlowDownException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1UnauthorizedClientExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.UnauthorizedClientException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.error!=null){o.error=(0,n.expectString)(r.error)}if(r.error_description!=null){o.error_description=(0,n.expectString)(r.error_description)}const i=new s.UnsupportedGrantTypeException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const serializeAws_restJson1Scopes=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},25524:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(69722));const s=o(56153);const i=o(97442);const a=o(96064);const c=o(87684);const l=o(68805);const u=o(74147);const d=o(99395);const p=o(98095);const f=o(66278);const m=o(68005);const g=o(4963);const y=o(74243);const h=o(4963);const getRuntimeConfig=e=>{(0,h.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(g.loadConfigsForDefaultMode);const o=(0,m.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??u.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.defaultUserAgent)({serviceId:o.serviceId,clientVersion:n.default.version}),maxAttempts:e?.maxAttempts??(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,c.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new l.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||d.DEFAULT_RETRY_MODE}),sha256:e?.sha256??i.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??l.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,c.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,c.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??f.fromUtf8,utf8Encoder:e?.utf8Encoder??f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},68005:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4963);const n=o(2992);const s=o(97727);const i=o(97604);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??i.defaultEndpointResolver,logger:e?.logger??new r.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??n.parseUrl});t.getRuntimeConfig=getRuntimeConfig},69838:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const r=o(18972);const n=o(1513);const s=o(64296);const i=o(12586);const a=o(71057);class SSO extends a.SSOClient{getRoleCredentials(e,t,o){const n=new r.GetRoleCredentialsCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listAccountRoles(e,t,o){const r=new n.ListAccountRolesCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listAccounts(e,t,o){const r=new s.ListAccountsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}logout(e,t,o){const r=new i.LogoutCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.SSO=SSO},71057:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=void 0;const r=o(12304);const n=o(59575);const s=o(48683);const i=o(20165);const a=o(96452);const c=o(7275);const l=o(1712);const u=o(49632);const d=o(19756);class SSOClient extends u.Client{constructor(e){const t=(0,d.getRuntimeConfig)(e);const o=(0,r.resolveRegionConfig)(t);const u=(0,r.resolveEndpointsConfig)(o);const p=(0,c.resolveRetryConfig)(u);const f=(0,s.resolveHostHeaderConfig)(p);const m=(0,l.resolveUserAgentConfig)(f);super(m);this.config=m;this.middlewareStack.use((0,c.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,i.getLoggerPlugin)(this.config));this.middlewareStack.use((0,a.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,l.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},18972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=void 0;const r=o(995);const n=o(49632);const s=o(66390);const i=o(98507);class GetRoleCredentialsCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOClient";const c="GetRoleCredentialsCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRoleCredentialsResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_restJson1GetRoleCredentialsCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_restJson1GetRoleCredentialsCommand)(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=void 0;const r=o(995);const n=o(49632);const s=o(66390);const i=o(98507);class ListAccountRolesCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOClient";const c="ListAccountRolesCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListAccountRolesResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_restJson1ListAccountRolesCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_restJson1ListAccountRolesCommand)(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},64296:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=void 0;const r=o(995);const n=o(49632);const s=o(66390);const i=o(98507);class ListAccountsCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOClient";const c="ListAccountsCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListAccountsResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_restJson1ListAccountsCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_restJson1ListAccountsCommand)(e,t)}}t.ListAccountsCommand=ListAccountsCommand},12586:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=void 0;const r=o(995);const n=o(49632);const s=o(66390);const i=o(98507);class LogoutCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOClient";const c="LogoutCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_restJson1LogoutCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_restJson1LogoutCommand)(e,t)}}t.LogoutCommand=LogoutCommand},65706:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(18972),t);r.__exportStar(o(1513),t);r.__exportStar(o(64296),t);r.__exportStar(o(12586),t)},33546:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const r=o(12304);const n={"ap-east-1":{variants:[{hostname:"portal.sso.ap-east-1.amazonaws.com",tags:[]}],signingRegion:"ap-east-1"},"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-northeast-3":{variants:[{hostname:"portal.sso.ap-northeast-3.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-3"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-south-1":{variants:[{hostname:"portal.sso.eu-south-1.amazonaws.com",tags:[]}],signingRegion:"eu-south-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"me-south-1":{variants:[{hostname:"portal.sso.me-south-1.amazonaws.com",tags:[]}],signingRegion:"me-south-1"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}};const s={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>(0,r.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:n,partitionHash:s});t.defaultRegionInfoProvider=defaultRegionInfoProvider},82666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const r=o(4351);r.__exportStar(o(69838),t);r.__exportStar(o(71057),t);r.__exportStar(o(65706),t);r.__exportStar(o(14952),t);r.__exportStar(o(36773),t);var n=o(81517);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return n.SSOServiceException}})},81517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const r=o(49632);class SSOServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},14952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(66390),t)},66390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequestFilterSensitiveLog=t.ListAccountsResponseFilterSensitiveLog=t.ListAccountsRequestFilterSensitiveLog=t.ListAccountRolesResponseFilterSensitiveLog=t.RoleInfoFilterSensitiveLog=t.ListAccountRolesRequestFilterSensitiveLog=t.GetRoleCredentialsResponseFilterSensitiveLog=t.RoleCredentialsFilterSensitiveLog=t.GetRoleCredentialsRequestFilterSensitiveLog=t.AccountInfoFilterSensitiveLog=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const r=o(49632);const n=o(81517);class InvalidRequestException extends n.SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype)}}t.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends n.SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends n.SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException";this.$fault="client";Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends n.SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException;const AccountInfoFilterSensitiveLog=e=>({...e});t.AccountInfoFilterSensitiveLog=AccountInfoFilterSensitiveLog;const GetRoleCredentialsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.GetRoleCredentialsRequestFilterSensitiveLog=GetRoleCredentialsRequestFilterSensitiveLog;const RoleCredentialsFilterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:r.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:r.SENSITIVE_STRING}});t.RoleCredentialsFilterSensitiveLog=RoleCredentialsFilterSensitiveLog;const GetRoleCredentialsResponseFilterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,t.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});t.GetRoleCredentialsResponseFilterSensitiveLog=GetRoleCredentialsResponseFilterSensitiveLog;const ListAccountRolesRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.ListAccountRolesRequestFilterSensitiveLog=ListAccountRolesRequestFilterSensitiveLog;const RoleInfoFilterSensitiveLog=e=>({...e});t.RoleInfoFilterSensitiveLog=RoleInfoFilterSensitiveLog;const ListAccountRolesResponseFilterSensitiveLog=e=>({...e});t.ListAccountRolesResponseFilterSensitiveLog=ListAccountRolesResponseFilterSensitiveLog;const ListAccountsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.ListAccountsRequestFilterSensitiveLog=ListAccountsRequestFilterSensitiveLog;const ListAccountsResponseFilterSensitiveLog=e=>({...e});t.ListAccountsResponseFilterSensitiveLog=ListAccountsResponseFilterSensitiveLog;const LogoutRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:r.SENSITIVE_STRING}});t.LogoutRequestFilterSensitiveLog=LogoutRequestFilterSensitiveLog},80849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},88460:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const r=o(1513);const n=o(69838);const s=o(71057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.ListAccountRolesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccountRoles(t,...o);async function*paginateListAccountRoles(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},50938:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const r=o(64296);const n=o(69838);const s=o(71057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new r.ListAccountsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccounts(t,...o);async function*paginateListAccounts(e,t,...o){let r=e.startingToken||undefined;let i=true;let a;while(i){t.nextToken=r;t["maxResults"]=e.pageSize;if(e.client instanceof n.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof s.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=r;r=a.nextToken;i=!!(r&&(!e.stopOnSameToken||r!==c))}return undefined}t.paginateListAccounts=paginateListAccounts},36773:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(80849),t);r.__exportStar(o(88460),t);r.__exportStar(o(50938),t)},98507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_restJson1LogoutCommand=t.deserializeAws_restJson1ListAccountsCommand=t.deserializeAws_restJson1ListAccountRolesCommand=t.deserializeAws_restJson1GetRoleCredentialsCommand=t.serializeAws_restJson1LogoutCommand=t.serializeAws_restJson1ListAccountsCommand=t.serializeAws_restJson1ListAccountRolesCommand=t.serializeAws_restJson1GetRoleCredentialsCommand=void 0;const r=o(95074);const n=o(49632);const s=o(66390);const i=o(81517);const serializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${(i===null||i===void 0?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}`+"/federation/credentials";const u=a({role_name:[,e.roleName],account_id:[,e.accountId]});let d;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"GET",headers:c,path:l,query:u,body:d})};t.serializeAws_restJson1GetRoleCredentialsCommand=serializeAws_restJson1GetRoleCredentialsCommand;const serializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${(i===null||i===void 0?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}`+"/assignment/roles";const u=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,e.accountId]});let d;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"GET",headers:c,path:l,query:u,body:d})};t.serializeAws_restJson1ListAccountRolesCommand=serializeAws_restJson1ListAccountRolesCommand;const serializeAws_restJson1ListAccountsCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${(i===null||i===void 0?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}`+"/assignment/accounts";const u=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]});let d;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"GET",headers:c,path:l,query:u,body:d})};t.serializeAws_restJson1ListAccountsCommand=serializeAws_restJson1ListAccountsCommand;const serializeAws_restJson1LogoutCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:s,path:i}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${(i===null||i===void 0?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}`+"/logout";let u;return new r.HttpRequest({protocol:n,hostname:o,port:s,method:"POST",headers:c,path:l,body:u})};t.serializeAws_restJson1LogoutCommand=serializeAws_restJson1LogoutCommand;const deserializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1GetRoleCredentialsCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.roleCredentials!=null){o.roleCredentials=deserializeAws_restJson1RoleCredentials(r.roleCredentials,t)}return o};t.deserializeAws_restJson1GetRoleCredentialsCommand=deserializeAws_restJson1GetRoleCredentialsCommand;const deserializeAws_restJson1GetRoleCredentialsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountRolesCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.nextToken!=null){o.nextToken=(0,n.expectString)(r.nextToken)}if(r.roleList!=null){o.roleList=deserializeAws_restJson1RoleListType(r.roleList,t)}return o};t.deserializeAws_restJson1ListAccountRolesCommand=deserializeAws_restJson1ListAccountRolesCommand;const deserializeAws_restJson1ListAccountRolesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountsCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});const r=(0,n.expectNonNull)((0,n.expectObject)(await parseBody(e.body,t)),"body");if(r.accountList!=null){o.accountList=deserializeAws_restJson1AccountListType(r.accountList,t)}if(r.nextToken!=null){o.nextToken=(0,n.expectString)(r.nextToken)}return o};t.deserializeAws_restJson1ListAccountsCommand=deserializeAws_restJson1ListAccountsCommand;const deserializeAws_restJson1ListAccountsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const deserializeAws_restJson1LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1LogoutCommandError(e,t)}const o=a({$metadata:deserializeMetadata(e)});await collectBody(e.body,t);return o};t.deserializeAws_restJson1LogoutCommand=deserializeAws_restJson1LogoutCommand;const deserializeAws_restJson1LogoutCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadRestJsonErrorCode(e,o.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.SSOServiceException,errorCode:r})}};const a=n.map;const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1ResourceNotFoundExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.ResourceNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1TooManyRequestsExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.TooManyRequestsException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1UnauthorizedExceptionResponse=async(e,t)=>{const o=a({});const r=e.body;if(r.message!=null){o.message=(0,n.expectString)(r.message)}const i=new s.UnauthorizedException({$metadata:deserializeMetadata(e),...o});return(0,n.decorateServiceException)(i,e.body)};const deserializeAws_restJson1AccountInfo=(e,t)=>({accountId:(0,n.expectString)(e.accountId),accountName:(0,n.expectString)(e.accountName),emailAddress:(0,n.expectString)(e.emailAddress)});const deserializeAws_restJson1AccountListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1AccountInfo(e,t)}));return o};const deserializeAws_restJson1RoleCredentials=(e,t)=>({accessKeyId:(0,n.expectString)(e.accessKeyId),expiration:(0,n.expectLong)(e.expiration),secretAccessKey:(0,n.expectString)(e.secretAccessKey),sessionToken:(0,n.expectString)(e.sessionToken)});const deserializeAws_restJson1RoleInfo=(e,t)=>({accountId:(0,n.expectString)(e.accountId),roleName:(0,n.expectString)(e.roleName)});const deserializeAws_restJson1RoleListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1RoleInfo(e,t)}));return o};const deserializeMetadata=e=>{var t,o;return{httpStatusCode:e.statusCode,requestId:(o=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&o!==void 0?o:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{var o;const r=await parseBody(e,t);r.message=(o=r.message)!==null&&o!==void 0?o:r.Message;return r};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},19756:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(91092));const s=o(12304);const i=o(40145);const a=o(7275);const c=o(3287);const l=o(70335);const u=o(18588);const d=o(46020);const p=o(78732);const f=o(17458);const m=o(44809);const g=o(49632);const y=o(73312);const h=o(49632);const getRuntimeConfig=e=>{var t,o,r,E,v,_,S,w,P,b,C,R,x,I;(0,h.emitWarningIfUnsupportedVersion)(process.version);const T=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>T().then(g.loadConfigsForDefaultMode);const A=(0,m.getRuntimeConfig)(e);return{...A,...e,runtime:"node",defaultsMode:T,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:u.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:u.toBase64,bodyLengthChecker:(r=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:d.calculateBodyLength,defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:(0,p.defaultUserAgent)({serviceId:A.serviceId,clientVersion:n.default.version}),maxAttempts:(v=e===null||e===void 0?void 0:e.maxAttempts)!==null&&v!==void 0?v:(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(_=e===null||e===void 0?void 0:e.region)!==null&&_!==void 0?_:(0,c.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(S=e===null||e===void 0?void 0:e.requestHandler)!==null&&S!==void 0?S:new l.NodeHttpHandler(defaultConfigProvider),retryMode:(w=e===null||e===void 0?void 0:e.retryMode)!==null&&w!==void 0?w:(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||a.DEFAULT_RETRY_MODE}),sha256:(P=e===null||e===void 0?void 0:e.sha256)!==null&&P!==void 0?P:i.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:l.streamCollector,useDualstackEndpoint:(C=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&C!==void 0?C:(0,c.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(R=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&R!==void 0?R:(0,c.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(x=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&x!==void 0?x:f.fromUtf8,utf8Encoder:(I=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&I!==void 0?I:f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},44809:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(81987);const n=o(33546);const getRuntimeConfig=e=>{var t,o,s,i,a;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(s=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&s!==void 0?s:n.defaultRegionInfoProvider,serviceId:(i=e===null||e===void 0?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:r.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},34839:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const r=o(227);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,r.SelectorType.CONFIG),default:false}},65353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const r=o(227);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,r.SelectorType.CONFIG),default:false}},63011:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(34839),t);r.__exportStar(o(65353),t);r.__exportStar(o(93157),t);r.__exportStar(o(20768),t)},93157:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const r=o(59862);const resolveCustomEndpointsConfig=e=>{var t;const{endpoint:o,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,r.normalizeProvider)(typeof o==="string"?n(o):o),isCustomEndpoint:true,useDualstackEndpoint:(0,r.normalizeProvider)(e.useDualstackEndpoint)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},20768:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const r=o(59862);const n=o(46752);const resolveEndpointsConfig=e=>{var t;const o=(0,r.normalizeProvider)(e.useDualstackEndpoint);const{endpoint:s,useFipsEndpoint:i,urlParser:a}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:s?(0,r.normalizeProvider)(typeof s==="string"?a(s):s):()=>(0,n.getEndpointFromRegion)({...e,useDualstackEndpoint:o,useFipsEndpoint:i}),isCustomEndpoint:!!s,useDualstackEndpoint:o}};t.resolveEndpointsConfig=resolveEndpointsConfig},46752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:o=true}=e;const r=await e.region();const n=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!n.test(r)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${o?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},12304:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(63011),t);r.__exportStar(o(11983),t);r.__exportStar(o(3562),t)},39789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},97103:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const r=o(806);const getRealRegion=e=>(0,r.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},11983:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(39789),t);r.__exportStar(o(66786),t)},806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},66786:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const r=o(97103);const n=o(806);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,r.getRealRegion)(t)}const e=await t();return(0,r.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,n.isFipsRegion)(e)){return true}return typeof o==="boolean"?Promise.resolve(o):o()}}};t.resolveRegionConfig=resolveRegionConfig},33096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},31948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>{var r;return(r=e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack"))))===null||r===void 0?void 0:r.hostname};t.getHostnameFromVariants=getHostnameFromVariants},10388:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const r=o(31948);const n=o(19985);const s=o(34312);const i=o(63669);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,f,m,g;const y=(0,s.getResolvedPartition)(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const E={useFipsEndpoint:t,useDualstackEndpoint:o};const v=(0,r.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const _=(0,r.getHostnameFromVariants)((f=l[y])===null||f===void 0?void 0:f.variants,E);const S=(0,n.getResolvedHostname)(h,{regionHostname:v,partitionHostname:_});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const w=(0,i.getResolvedSigningRegion)(S,{signingRegion:(m=c[h])===null||m===void 0?void 0:m.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...w&&{signingRegion:w},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},19985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},34312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var o;return(o=Object.keys(t||{}).find((o=>t[o].regions.includes(e))))!==null&&o!==void 0?o:"aws"};t.getResolvedPartition=getResolvedPartition},63669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:r})=>{if(t){return t}else if(r){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const r=e.match(t);if(r){return r[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},3562:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(33096),t);r.__exportStar(o(82125),t);r.__exportStar(o(10388),t)},40145:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const r=o(36010);const n=o(14300);const s=o(6113);class Hash{constructor(e,t){this.hash=t?(0,s.createHmac)(e,castSourceData(t)):(0,s.createHash)(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(n.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,r.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,r.fromArrayBuffer)(e)}},59575:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const r=o(95074);const n="content-length";function contentLengthMiddleware(e){return t=>async o=>{const s=o.request;if(r.HttpRequest.isInstance(s)){const{body:t,headers:o}=s;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(n)===-1){try{const o=e(t);s.headers={...s.headers,[n]:String(o)}}catch(e){}}}return t({...o,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:o=>{o.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},48683:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const r=o(95074);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async o=>{if(!r.HttpRequest.isInstance(o.request))return t(o);const{request:n}=o;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"]){delete n.headers["host"];n.headers[":authority"]=""}else if(!n.headers["host"]){n.headers["host"]=n.hostname}return t(o)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:o=>{o.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},20165:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(85239),t)},85239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async o=>{const{clientName:r,commandName:n,inputFilterSensitiveLog:s,logger:i,outputFilterSensitiveLog:a}=t;const c=await e(o);if(!i){return c}if(typeof i.info==="function"){const{$metadata:e,...t}=c.output;i.info({clientName:r,commandName:n,input:s(o.input),output:a(t),metadata:e})}return c};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},96452:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const r=o(95074);const n="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async o=>{const{request:a}=o;if(!r.HttpRequest.isInstance(a)||e.runtime!=="node"||a.headers.hasOwnProperty(n)){return t(o)}const c=process.env[s];const l=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(l)){a.headers[n]=l}return t({...o,request:a})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:o=>{o.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},96162:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const r=o(51870);const n=o(76897);const s=o(47482);class AdaptiveRetryStrategy extends s.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...s}=t!==null&&t!==void 0?t:{};super(e,s);this.rateLimiter=o!==null&&o!==void 0?o:new n.DefaultRateLimiter;this.mode=r.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},76897:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const r=o(74545);class DefaultRateLimiter{constructor(e){var t,o,r,n,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(o=e===null||e===void 0?void 0:e.minCapacity)!==null&&o!==void 0?o:1;this.minFillRate=(r=e===null||e===void 0?void 0:e.minFillRate)!==null&&r!==void 0?r:.5;this.scaleConstant=(n=e===null||e===void 0?void 0:e.scaleConstant)!==null&&n!==void 0?n:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,r.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},47482:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const r=o(95074);const n=o(74545);const s=o(75840);const i=o(51870);const a=o(42573);const c=o(97242);const l=o(92345);const u=o(74435);class StandardRetryStrategy{constructor(e,t){var o,r,n;this.maxAttemptsProvider=e;this.mode=i.RETRY_MODES.STANDARD;this.retryDecider=(o=t===null||t===void 0?void 0:t.retryDecider)!==null&&o!==void 0?o:u.defaultRetryDecider;this.delayDecider=(r=t===null||t===void 0?void 0:t.delayDecider)!==null&&r!==void 0?r:l.defaultDelayDecider;this.retryQuota=(n=t===null||t===void 0?void 0:t.retryQuota)!==null&&n!==void 0?n:(0,c.getDefaultRetryQuota)(a.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=i.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,o){let i;let c=0;let l=0;const u=await this.getMaxAttempts();const{request:d}=t;if(r.HttpRequest.isInstance(d)){d.headers[a.INVOCATION_ID_HEADER]=(0,s.v4)()}while(true){try{if(r.HttpRequest.isInstance(d)){d.headers[a.REQUEST_HEADER]=`attempt=${c+1}; max=${u}`}if(o===null||o===void 0?void 0:o.beforeRequest){await o.beforeRequest()}const{response:n,output:s}=await e(t);if(o===null||o===void 0?void 0:o.afterRequest){o.afterRequest(n)}this.retryQuota.releaseRetryTokens(i);s.$metadata.attempts=c+1;s.$metadata.totalRetryDelay=l;return{response:n,output:s}}catch(e){const t=asSdkError(e);c++;if(this.shouldRetry(t,c,u)){i=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,n.isThrottlingError)(t)?a.THROTTLING_RETRY_DELAY_BASE:a.DEFAULT_RETRY_DELAY_BASE,c);const o=getDelayFromRetryAfterHeader(t.$response);const r=Math.max(o||0,e);l+=r;await new Promise((e=>setTimeout(e,r)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!r.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const n=Number(o);if(!Number.isNaN(n))return n*1e3;const s=new Date(o);return s.getTime()-Date.now()};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)}},51870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var o;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(o=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=o.STANDARD},78520:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const r=o(59862);const n=o(96162);const s=o(51870);const i=o(47482);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const o=e[t.ENV_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},configFileSelector:e=>{const o=e[t.CONFIG_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},default:s.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const o=(0,r.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:s.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:o,retryStrategy:async()=>{if(e.retryStrategy){return e.retryStrategy}const t=await(0,r.normalizeProvider)(e.retryMode)();if(t===s.RETRY_MODES.ADAPTIVE){return new n.AdaptiveRetryStrategy(o)}return new i.StandardRetryStrategy(o)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:s.DEFAULT_RETRY_MODE}},42573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},97242:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const r=o(42573);const getDefaultRetryQuota=(e,t)=>{var o,n,s;const i=e;const a=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:r.NO_RETRY_INCREMENT;const c=(n=t===null||t===void 0?void 0:t.retryCost)!==null&&n!==void 0?n:r.RETRY_COST;const l=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:r.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l:c;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:a;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},92345:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const r=o(42573);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},7275:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(96162),t);r.__exportStar(o(76897),t);r.__exportStar(o(47482),t);r.__exportStar(o(51870),t);r.__exportStar(o(78520),t);r.__exportStar(o(92345),t);r.__exportStar(o(64879),t);r.__exportStar(o(74435),t);r.__exportStar(o(88601),t);r.__exportStar(o(56346),t)},64879:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const r=o(95074);const n=o(42573);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(r.HttpRequest.isInstance(o)){delete o.headers[n.INVOCATION_ID_HEADER];delete o.headers[n.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},74435:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const r=o(74545);const defaultRetryDecider=e=>{if(!e){return false}return(0,r.isRetryableByTrait)(e)||(0,r.isClockSkewError)(e)||(0,r.isThrottlingError)(e)||(0,r.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},88601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const retryMiddleware=e=>(t,o)=>async r=>{const n=await e.retryStrategy();if(n===null||n===void 0?void 0:n.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",n.mode]];return n.retry(t,r)};t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin},56346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},37287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(o,r)=>async r=>{const{response:n}=await o(r);try{const o=await t(n,e);return{response:n,output:o}}catch(e){Object.defineProperty(e,"$response",{value:n});throw e}};t.deserializerMiddleware=deserializerMiddleware},995:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(37287),t);r.__exportStar(o(90814),t);r.__exportStar(o(68623),t)},90814:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const r=o(37287);const n=o(68623);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,s){return{applyToStack:i=>{i.add((0,r.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,n.serializerMiddleware)(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},68623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,r)=>async n=>{var s;const i=((s=r.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const a=await t(n.input,{...e,endpoint:i});return o({...n,request:a})};t.serializerMiddleware=serializerMiddleware},62783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let n=[];const s=new Set;const sort=e=>e.sort(((e,t)=>o[t.step]-o[e.step]||r[t.priority||"normal"]-r[e.priority||"normal"]));const removeByName=t=>{let o=false;const filterCb=e=>{if(e.name&&e.name===t){o=true;s.delete(t);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const removeByReference=t=>{let o=false;const filterCb=e=>{if(e.middleware===t){o=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));n.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const o=[];const r=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));n.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;r.push(t)}));r.forEach((e=>{if(e.toMiddleware){const o=s[e.toMiddleware];if(o===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){o.after.push(e)}if(e.relation==="before"){o.before.push(e)}}}));const i=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,o={})=>{const{name:r,override:n}=o;const i={step:"initialize",priority:"normal",middleware:t,...o};if(r){if(s.has(r)){if(!n)throw new Error(`Duplicate middleware name '${r}'`);const t=e.findIndex((e=>e.name===r));const o=e[t];if(o.step!==i.step||o.priority!==i.priority){throw new Error(`"${r}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(r)}e.push(i)},addRelativeTo:(e,t)=>{const{name:o,override:r}=t;const i={middleware:e,...t};if(o){if(s.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const e=n.findIndex((e=>e.name===o));const t=n[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}n.splice(e,1)}s.add(o)}n.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let o=false;const filterCb=e=>{const{tags:r,name:n}=e;if(r&&r.includes(t)){if(n)s.delete(n);o=true;return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o},concat:e=>{const o=cloneTo((0,t.constructStack)());o.use(e);return o},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}return e}};return i};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const r={high:3,normal:2,low:1}},82707:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(62783),t)},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},88948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_REGEX=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},1712:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(6663),t);r.__exportStar(o(29820),t)},29820:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const r=o(95074);const n=o(88948);const userAgentMiddleware=e=>(t,o)=>async s=>{var i,a;const{request:c}=s;if(!r.HttpRequest.isInstance(c))return t(s);const{headers:l}=c;const u=((i=o===null||o===void 0?void 0:o.userAgent)===null||i===void 0?void 0:i.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const f=[...d,...u,...p].join(n.SPACE);const m=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(n.SPACE);if(e.runtime!=="browser"){if(m){l[n.X_AMZ_USER_AGENT]=l[n.X_AMZ_USER_AGENT]?`${l[n.USER_AGENT]} ${m}`:m}l[n.USER_AGENT]=f}else{l[n.X_AMZ_USER_AGENT]=f}return t({...s,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const o=e.indexOf("/");const r=e.substring(0,o);let s=e.substring(o+1);if(r==="api"){s=s.toLowerCase()}return[r,s,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(n.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},62814:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const r=o(96243);const n=o(76382);const s=o(74261);const i=o(45713);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>(0,r.memoize)((0,r.chain)((0,n.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},76382:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const r=o(96243);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},74261:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const r=o(96243);const n=o(67781);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,n.getProfileName)(o);const{configFile:i,credentialsFile:a}=await(0,n.loadSharedConfigFiles)(o);const c=a[s]||{};const l=i[s]||{};const u=t==="config"?{...c,...l}:{...l,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},45713:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(96243);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,r.fromStatic)(e);t.fromStatic=fromStatic},3287:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(62814),t)},25109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},41242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const o of Object.keys(e)){const r=e[o];t[o]=Array.isArray(r)?r.join(","):r}return t};t.getTransformedHeaders=getTransformedHeaders},70335:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(53462),t);r.__exportStar(o(17900),t);r.__exportStar(o(31672),t)},53462:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const r=o(95074);const n=o(43402);const s=o(13685);const i=o(95687);const a=o(25109);const c=o(41242);const l=o(14065);const u=o(97723);const d=o(48603);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:o,httpAgent:r,httpsAgent:n}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:o,httpAgent:r||new s.Agent({keepAlive:a,maxSockets:c}),httpsAgent:n||new i.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,o,r;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(r=(o=this.config)===null||o===void 0?void 0:o.httpsAgent)===null||r===void 0?void 0:r.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((o,p)=>{if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";p(e);return}const f=e.protocol==="https:";const m=(0,n.buildQueryString)(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:m?`${e.path}?${m}`:e.path,port:e.port,agent:f?this.config.httpsAgent:this.config.httpAgent};const y=f?i.request:s.request;const h=y(g,(e=>{const t=new r.HttpResponse({statusCode:e.statusCode||-1,headers:(0,c.getTransformedHeaders)(e.headers),body:e});o({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));(0,l.setConnectionTimeout)(h,p,this.config.connectionTimeout);(0,u.setSocketTimeout)(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}(0,d.writeRequestBody)(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},17900:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const r=o(95074);const n=o(43402);const s=o(85158);const i=o(41242);const a=o(48603);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}));this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}const{requestTimeout:o,disableConcurrentStreams:c}=this.config;return new Promise(((l,u)=>{let d=false;if(t===null||t===void 0?void 0:t.aborted){d=true;const e=new Error("Request aborted");e.name="AbortError";u(e);return}const{hostname:p,method:f,port:m,protocol:g,path:y,query:h}=e;const E=`${g}//${p}${m?`:${m}`:""}`;const v=this.getSession(E,c||false);const reject=e=>{if(c){this.destroySession(v)}d=true;u(e)};const _=(0,n.buildQueryString)(h||{});const S=v.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:_?`${y}?${_}`:y,[s.constants.HTTP2_HEADER_METHOD]:f});v.ref();S.on("response",(e=>{const t=new r.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:S});d=true;l({response:t});if(c){v.close();this.deleteSessionFromCache(E,v)}}));if(o){S.setTimeout(o,(()=>{S.close();const e=new Error(`Stream timed out because of no activity for ${o} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{S.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}S.on("frameError",((e,t,o)=>{reject(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));S.on("error",reject);S.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${S.rstCode}.`))}));S.on("close",(()=>{v.unref();if(c){v.destroy()}if(!d){reject(new Error("Unexpected error: http2 request did not get a response"))}}));(0,a.writeRequestBody)(S,e)}))}getSession(e,t){var o;const r=this.sessionCache;const n=r.get(e)||[];if(n.length>0&&!t)return n[0];const i=(0,s.connect)(e);i.unref();const destroySessionCb=()=>{this.destroySession(i);this.deleteSessionFromCache(e,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSessionFromCache(e,i)));if((o=this.config)===null||o===void 0?void 0:o.sessionTimeout){i.setTimeout(this.config.sessionTimeout,destroySessionCb)}n.push(i);r.set(e,n);return i}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const o=this.sessionCache.get(e)||[];if(!o.includes(t)){return}this.sessionCache.set(e,o.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},14065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}e.on("socket",(r=>{if(r.connecting){const n=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);r.on("connect",(()=>{clearTimeout(n)}))}}))};t.setConnectionTimeout=setConnectionTimeout},97723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,o=0)=>{e.setTimeout(o,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${o} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},40401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const r=o(12781);class Collector extends r.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},31672:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const r=o(40401);const streamCollector=e=>new Promise(((t,o)=>{const n=new r.Collector;e.pipe(n);e.on("error",(e=>{n.end();o(e)}));n.on("error",o);n.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},48603:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const r=o(12781);function writeRequestBody(e,t){const o=t.headers["Expect"]||t.headers["expect"];if(o==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof r.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},91743:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(36020);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},36020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},71337:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(36020);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},3481:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(36020);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},57629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},96243:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(91743),t);r.__exportStar(o(36020),t);r.__exportStar(o(71337),t);r.__exportStar(o(3481),t);r.__exportStar(o(57629),t);r.__exportStar(o(98781),t)},98781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},91236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},49560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{})}},42793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},95074:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(91236),t);r.__exportStar(o(49560),t);r.__exportStar(o(42793),t);r.__exportStar(o(69523),t)},69523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},38337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,r=null]=o.split("=");e=decodeURIComponent(e);if(r){r=decodeURIComponent(r)}if(!(e in t)){t[e]=r}else if(Array.isArray(t[e])){t[e].push(r)}else{t[e]=[t[e],r]}}}return t}t.parseQueryString=parseQueryString},28914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},74545:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const r=o(28914);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>r.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,o;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||r.THROTTLING_ERROR_CODES.includes(e.name)||((o=e.$retryable)===null||o===void 0?void 0:o.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return r.TRANSIENT_ERROR_CODES.includes(e.name)||r.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||r.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError},23375:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(29677);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},3761:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(29677);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},29677:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},23495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},46802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},26054:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(29677);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},16138:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(26054);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},71350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},67781:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(29677),t);r.__exportStar(o(46802),t);r.__exportStar(o(26054),t);r.__exportStar(o(16138),t);r.__exportStar(o(14815),t);r.__exportStar(o(25829),t);r.__exportStar(o(72478),t);r.__exportStar(o(32061),t)},14815:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(23375);const n=o(3761);const s=o(23495);const i=o(76535);const a=o(87417);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},25829:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(23375);const n=o(71350);const s=o(76535);const i=o(87417);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},76535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},72478:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(14815);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},87417:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},32061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},43784:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const r=o(82707);class Client{constructor(e){this.middlewareStack=(0,r.constructStack)();this.config=e}send(e,t,o){const r=typeof t!=="function"?t:undefined;const n=typeof t==="function"?t:o;const s=e.resolveMiddleware(this.middlewareStack,this.config,r);if(n){s(e).then((e=>n(null,e.output)),(e=>n(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},61495:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const r=o(82707);class Command{constructor(){this.middlewareStack=(0,r.constructStack)()}}t.Command=Command},71206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},9824:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const r=o(89589);const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const r=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const f=l<10?`0${l}`:`${l}`;return`${n[r]}, ${u} ${s[o]} ${t} ${d}:${p}:${f} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,n,s,a,c,l,u,d]=t;const p=(0,r.strictParseShort)(stripLeadingZeroes(n));const f=parseDateValue(s,"month",1,12);const m=parseDateValue(a,"day",1,31);return buildDate(p,f,m,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const c=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const l=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=a.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,o,r,n,s,i,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(n),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(l)),parseMonthByShortName(o),parseDateValue(n.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,r.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,o,r)=>{const n=t-1;validateDayOfMonth(e,n,o);return new Date(Date.UTC(e,n,o,parseDateValue(r.hours,"hour",0,23),parseDateValue(r.minutes,"minute",0,59),parseDateValue(r.seconds,"seconds",0,60),parseMilliseconds(r.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+(0,r.strictParseShort)(stripLeadingZeroes(e));if(o<t){return o+100}return o};const u=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>u){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let r=d[t];if(t===1&&isLeapYear(e)){r=29}if(o>r){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,n)=>{const s=(0,r.strictParseByte)(stripLeadingZeroes(e));if(s<o||s>n){throw new TypeError(`${t} must be between ${o} and ${n}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,r.strictParseFloat32)("0."+e)*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},50316:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwDefaultError=void 0;const r=o(69744);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:n})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const a=new o({name:t.code||t.Code||n||i||"UnknowError",$fault:"client",$metadata:s});throw(0,r.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},58192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},47689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let o=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!o&&parseInt(e.substring(1,e.indexOf(".")))<14){o=true;process.emitWarning(`The AWS SDK for JavaScript (v3) will\n`+`no longer support Node.js ${e} on November 1, 2022.\n\n`+`To continue receiving updates to AWS services, bug fixes, and security\n`+`updates please upgrade to Node.js 14.x or later.\n\n`+`For details, please refer our blog post: https://a.co/48dbdYz`,`NodeDeprecationWarning`)}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},69744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};t.decorateServiceException=decorateServiceException},51048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},36632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},35789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const o="#text";for(const r in e){if(e.hasOwnProperty(r)&&e[r][o]!==undefined){e[r]=e[r][o]}else if(typeof e[r]==="object"&&e[r]!==null){e[r]=(0,t.getValueFromTextNode)(e[r])}}return e};t.getValueFromTextNode=getValueFromTextNode},49632:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(43784),t);r.__exportStar(o(61495),t);r.__exportStar(o(71206),t);r.__exportStar(o(9824),t);r.__exportStar(o(50316),t);r.__exportStar(o(58192),t);r.__exportStar(o(47689),t);r.__exportStar(o(69744),t);r.__exportStar(o(51048),t);r.__exportStar(o(36632),t);r.__exportStar(o(35789),t);r.__exportStar(o(67825),t);r.__exportStar(o(5223),t);r.__exportStar(o(89589),t);r.__exportStar(o(41496),t);r.__exportStar(o(98398),t);r.__exportStar(o(10286),t)},67825:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const o=new t;Object.setPrototypeOf(o,e.prototype);return o};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},5223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertMap=t.map=void 0;function map(e,t,o){let r;let n;let s;if(typeof t==="undefined"&&typeof o==="undefined"){r={};s=e}else{r=e;if(typeof t==="function"){n=t;s=o;return mapWithFilter(r,n,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){r[e]=s[e];continue}let[t,o]=s[e];if(typeof o==="function"){let n;const s=t===undefined&&(n=o())!=null;const i=typeof t==="function"&&!!t(void 0)||typeof t!=="function"&&!!t;if(s){r[e]=n}else if(i){r[e]=o()}}else{const n=t===undefined&&o!=null;const s=typeof t==="function"&&!!t(o)||typeof t!=="function"&&!!t;if(n||s){r[e]=o}}}return r}t.map=map;const convertMap=e=>{const t={};for(const[o,r]of Object.entries(e||{})){t[o]=[,r]}return t};t.convertMap=convertMap;const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,r])=>{if(Array.isArray(r)){e[o]=r}else{if(typeof r==="function"){e[o]=[t,r()]}else{e[o]=[t,r]}}return e}),{}))},89589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const o=e.toLowerCase();if(o==="false"||o==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(o==="false"){return false}if(o==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const o=parseFloat(e);if(!Number.isNaN(o)){if(String(o)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return o}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const r=(0,t.expectNumber)(e);if(r!==undefined&&!Number.isNaN(r)&&r!==Infinity&&r!==-Infinity){if(Math.abs(r)>o){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return r};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,o)=>{const r=(0,t.expectLong)(e);if(r!==undefined&&castInt(r,o)!==r){throw new TypeError(`Expected ${o}-bit integer, got ${e}`)}return r};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=(0,t.expectObject)(e);const r=Object.entries(o).filter((([,e])=>e!=null)).map((([e])=>e));if(r.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(r.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`)}return o};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const r=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(r);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},41496:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const r=o(51048);const resolvedPath=(e,t,o,n,s,i)=>{if(t!=null&&t[o]!==undefined){const t=n();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(s,i?t.split("/").map((e=>(0,r.extendedEncodeURIComponent)(e))).join("/"):(0,r.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};t.resolvedPath=resolvedPath},98398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},10286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const r=e.split(t);if(o===1){return r}const n=[];let s="";for(let e=0;e<r.length;e++){if(s===""){s=r[e]}else{s+=t+r[e]}if((e+1)%o===0){n.push(s);s=""}}if(s!==""){n.push(s)}return n}t.splitEvery=splitEvery},81987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const r=o(38337);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:n,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,r.parseQueryString)(a)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:n,query:c}};t.parseUrl=parseUrl},2385:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const r=o(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,r.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},46020:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(2385),t)},42862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var o;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(o=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},227:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(42862),t)},78258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},78670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const o="AWS_DEFAULTS_MODE";const r="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[o],configFileSelector:e=>e[r],default:"legacy"}},73312:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(44346),t)},44346:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const r=o(12304);const n=o(25898);const s=o(3287);const i=o(96243);const a=o(78258);const c=o(78670);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(r.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const o=typeof t==="function"?await t():t;switch(o===null||o===void 0?void 0:o.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o===null||o===void 0?void 0:o.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${o}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[a.AWS_EXECUTION_ENV]&&(process.env[a.AWS_REGION_ENV]||process.env[a.AWS_DEFAULT_REGION_ENV])){return(e=process.env[a.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[a.AWS_DEFAULT_REGION_ENV]}if(!process.env[a.ENV_IMDS_DISABLED]){try{const e=await(0,n.getInstanceMetadataEndpoint)();return(await(0,n.httpRequest)({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},59862:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(42504),t)},42504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},78732:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const r=o(3287);const n=o(22037);const s=o(77282);const i=o(96349);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:o})=>{const a=[["aws-sdk-js",o],[`os/${(0,n.platform)()}`,(0,n.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const c=(0,i.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,o])}if(s.env.AWS_EXECUTION_ENV){a.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const l=(0,r.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await l;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},96349:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},17458:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const r=o(36010);const fromUtf8=e=>{const t=(0,r.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},32605:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const r=o(59802);const n=o(72865);const s=o(37451);const i=o(74150);const a=o(49804);const c=o(24278);const l=o(57552);const u=o(43285);const d=o(64195);class STS extends d.STSClient{assumeRole(e,t,o){const n=new r.AssumeRoleCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}assumeRoleWithSAML(e,t,o){const r=new n.AssumeRoleWithSAMLCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}assumeRoleWithWebIdentity(e,t,o){const r=new s.AssumeRoleWithWebIdentityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}decodeAuthorizationMessage(e,t,o){const r=new i.DecodeAuthorizationMessageCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getAccessKeyInfo(e,t,o){const r=new a.GetAccessKeyInfoCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getCallerIdentity(e,t,o){const r=new c.GetCallerIdentityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getFederationToken(e,t,o){const r=new l.GetFederationTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}getSessionToken(e,t,o){const r=new u.GetSessionTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}}t.STS=STS},64195:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=void 0;const r=o(86507);const n=o(17304);const s=o(19514);const i=o(25675);const a=o(57977);const c=o(2490);const l=o(55959);const u=o(76634);const d=o(29088);const p=o(83405);class STSClient extends d.Client{constructor(e){const t=(0,p.getRuntimeConfig)(e);const o=(0,r.resolveRegionConfig)(t);const d=(0,r.resolveEndpointsConfig)(o);const f=(0,c.resolveRetryConfig)(d);const m=(0,s.resolveHostHeaderConfig)(f);const g=(0,l.resolveStsAuthConfig)(m,{stsClientCtor:STSClient});const y=(0,u.resolveUserAgentConfig)(g);super(y);this.config=y;this.middlewareStack.use((0,c.getRetryPlugin)(this.config));this.middlewareStack.use((0,n.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,i.getLoggerPlugin)(this.config));this.middlewareStack.use((0,a.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},59802:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class AssumeRoleCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.AssumeRoleRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryAssumeRoleCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryAssumeRoleCommand)(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},72865:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=void 0;const r=o(55922);const n=o(29088);const s=o(21780);const i=o(10740);class AssumeRoleWithSAMLCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="STSClient";const c="AssumeRoleWithSAMLCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleWithSAMLResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},37451:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=void 0;const r=o(55922);const n=o(29088);const s=o(21780);const i=o(10740);class AssumeRoleWithWebIdentityCommand extends n.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));const n=e.concat(this.middlewareStack);const{logger:i}=t;const a="STSClient";const c="AssumeRoleWithWebIdentityCommand";const l={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:s.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleWithWebIdentityResponseFilterSensitiveLog};const{requestHandler:u}=t;return n.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return(0,i.serializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}deserialize(e,t){return(0,i.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},74150:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class DecodeAuthorizationMessageCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="DecodeAuthorizationMessageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.DecodeAuthorizationMessageRequestFilterSensitiveLog,outputFilterSensitiveLog:i.DecodeAuthorizationMessageResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},49804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class GetAccessKeyInfoCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetAccessKeyInfoCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetAccessKeyInfoRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetAccessKeyInfoResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryGetAccessKeyInfoCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryGetAccessKeyInfoCommand)(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},24278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class GetCallerIdentityCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetCallerIdentityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetCallerIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetCallerIdentityResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryGetCallerIdentityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryGetCallerIdentityCommand)(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},57552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class GetFederationTokenCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetFederationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetFederationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetFederationTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryGetFederationTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryGetFederationTokenCommand)(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},43285:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=void 0;const r=o(55922);const n=o(14935);const s=o(29088);const i=o(21780);const a=o(10740);class GetSessionTokenCommand extends s.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetSessionTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:i.GetSessionTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetSessionTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return s.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return(0,a.serializeAws_queryGetSessionTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryGetSessionTokenCommand)(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},55716:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(59802),t);r.__exportStar(o(72865),t);r.__exportStar(o(37451),t);r.__exportStar(o(74150),t);r.__exportStar(o(49804),t);r.__exportStar(o(24278),t);r.__exportStar(o(57552),t);r.__exportStar(o(43285),t)},88028:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const r=o(90048);const n=o(64195);const getCustomizableStsClientCtor=(e,t)=>{if(!t)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},t)=>(0,r.getDefaultRoleAssumer)(e,getCustomizableStsClientCtor(n.STSClient,t));t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={},t)=>(0,r.getDefaultRoleAssumerWithWebIdentity)(e,getCustomizableStsClientCtor(n.STSClient,t));t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},90048:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const r=o(59802);const n=o(37451);const s="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?s:e}return async()=>{try{return await e()}catch(e){return s}}};const getDefaultRoleAssumer=(e,t)=>{let o;let n;return async(s,i)=>{n=s;if(!o){const{logger:r,region:s,requestHandler:i}=e;o=new t({logger:r,credentialDefaultProvider:()=>async()=>n,region:decorateDefaultRegion(s||e.region),...i?{requestHandler:i}:{}})}const{Credentials:a}=await o.send(new r.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`)}return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let o;return async r=>{if(!o){const{logger:r,region:n,requestHandler:s}=e;o=new t({logger:r,region:decorateDefaultRegion(n||e.region),...s?{requestHandler:s}:{}})}const{Credentials:s}=await o.send(new n.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`)}return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o,o.stsClientCtor),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o,o.stsClientCtor),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},3571:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const r=o(86507);const n={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}};const s={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>(0,r.getRegionInfo)(e,{...t,signingService:"sts",regionHash:n,partitionHash:s});t.defaultRegionInfoProvider=defaultRegionInfoProvider},52209:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const r=o(4351);r.__exportStar(o(32605),t);r.__exportStar(o(64195),t);r.__exportStar(o(55716),t);r.__exportStar(o(88028),t);r.__exportStar(o(20106),t);var n=o(26450);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return n.STSServiceException}})},26450:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const r=o(29088);class STSServiceException extends r.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},20106:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(21780),t)},21780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponseFilterSensitiveLog=t.GetSessionTokenRequestFilterSensitiveLog=t.GetFederationTokenResponseFilterSensitiveLog=t.FederatedUserFilterSensitiveLog=t.GetFederationTokenRequestFilterSensitiveLog=t.GetCallerIdentityResponseFilterSensitiveLog=t.GetCallerIdentityRequestFilterSensitiveLog=t.GetAccessKeyInfoResponseFilterSensitiveLog=t.GetAccessKeyInfoRequestFilterSensitiveLog=t.DecodeAuthorizationMessageResponseFilterSensitiveLog=t.DecodeAuthorizationMessageRequestFilterSensitiveLog=t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=t.AssumeRoleWithSAMLResponseFilterSensitiveLog=t.AssumeRoleWithSAMLRequestFilterSensitiveLog=t.AssumeRoleResponseFilterSensitiveLog=t.CredentialsFilterSensitiveLog=t.AssumeRoleRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.PolicyDescriptorTypeFilterSensitiveLog=t.AssumedRoleUserFilterSensitiveLog=t.InvalidAuthorizationMessageException=t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const r=o(26450);class ExpiredTokenException extends r.STSServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}t.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends r.STSServiceException{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});this.name="MalformedPolicyDocumentException";this.$fault="client";Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}t.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends r.STSServiceException{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});this.name="PackedPolicyTooLargeException";this.$fault="client";Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}t.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends r.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends r.STSServiceException{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});this.name="IDPRejectedClaimException";this.$fault="client";Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}t.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends r.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends r.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;class InvalidAuthorizationMessageException extends r.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;const AssumedRoleUserFilterSensitiveLog=e=>({...e});t.AssumedRoleUserFilterSensitiveLog=AssumedRoleUserFilterSensitiveLog;const PolicyDescriptorTypeFilterSensitiveLog=e=>({...e});t.PolicyDescriptorTypeFilterSensitiveLog=PolicyDescriptorTypeFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const AssumeRoleRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleRequestFilterSensitiveLog=AssumeRoleRequestFilterSensitiveLog;const CredentialsFilterSensitiveLog=e=>({...e});t.CredentialsFilterSensitiveLog=CredentialsFilterSensitiveLog;const AssumeRoleResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleResponseFilterSensitiveLog=AssumeRoleResponseFilterSensitiveLog;const AssumeRoleWithSAMLRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLRequestFilterSensitiveLog=AssumeRoleWithSAMLRequestFilterSensitiveLog;const AssumeRoleWithSAMLResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLResponseFilterSensitiveLog=AssumeRoleWithSAMLResponseFilterSensitiveLog;const AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=AssumeRoleWithWebIdentityRequestFilterSensitiveLog;const AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=AssumeRoleWithWebIdentityResponseFilterSensitiveLog;const DecodeAuthorizationMessageRequestFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageRequestFilterSensitiveLog=DecodeAuthorizationMessageRequestFilterSensitiveLog;const DecodeAuthorizationMessageResponseFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageResponseFilterSensitiveLog=DecodeAuthorizationMessageResponseFilterSensitiveLog;const GetAccessKeyInfoRequestFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoRequestFilterSensitiveLog=GetAccessKeyInfoRequestFilterSensitiveLog;const GetAccessKeyInfoResponseFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoResponseFilterSensitiveLog=GetAccessKeyInfoResponseFilterSensitiveLog;const GetCallerIdentityRequestFilterSensitiveLog=e=>({...e});t.GetCallerIdentityRequestFilterSensitiveLog=GetCallerIdentityRequestFilterSensitiveLog;const GetCallerIdentityResponseFilterSensitiveLog=e=>({...e});t.GetCallerIdentityResponseFilterSensitiveLog=GetCallerIdentityResponseFilterSensitiveLog;const GetFederationTokenRequestFilterSensitiveLog=e=>({...e});t.GetFederationTokenRequestFilterSensitiveLog=GetFederationTokenRequestFilterSensitiveLog;const FederatedUserFilterSensitiveLog=e=>({...e});t.FederatedUserFilterSensitiveLog=FederatedUserFilterSensitiveLog;const GetFederationTokenResponseFilterSensitiveLog=e=>({...e});t.GetFederationTokenResponseFilterSensitiveLog=GetFederationTokenResponseFilterSensitiveLog;const GetSessionTokenRequestFilterSensitiveLog=e=>({...e});t.GetSessionTokenRequestFilterSensitiveLog=GetSessionTokenRequestFilterSensitiveLog;const GetSessionTokenResponseFilterSensitiveLog=e=>({...e});t.GetSessionTokenResponseFilterSensitiveLog=GetSessionTokenResponseFilterSensitiveLog},10740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_queryGetSessionTokenCommand=t.deserializeAws_queryGetFederationTokenCommand=t.deserializeAws_queryGetCallerIdentityCommand=t.deserializeAws_queryGetAccessKeyInfoCommand=t.deserializeAws_queryDecodeAuthorizationMessageCommand=t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=t.deserializeAws_queryAssumeRoleWithSAMLCommand=t.deserializeAws_queryAssumeRoleCommand=t.serializeAws_queryGetSessionTokenCommand=t.serializeAws_queryGetFederationTokenCommand=t.serializeAws_queryGetCallerIdentityCommand=t.serializeAws_queryGetAccessKeyInfoCommand=t.serializeAws_queryDecodeAuthorizationMessageCommand=t.serializeAws_queryAssumeRoleWithWebIdentityCommand=t.serializeAws_queryAssumeRoleWithSAMLCommand=t.serializeAws_queryAssumeRoleCommand=void 0;const r=o(50357);const n=o(29088);const s=o(3e3);const i=o(27448);const a=o(21780);const c=o(26450);const serializeAws_queryAssumeRoleCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleCommand=serializeAws_queryAssumeRoleCommand;const serializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleWithSAMLCommand=serializeAws_queryAssumeRoleWithSAMLCommand;const serializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryAssumeRoleWithWebIdentityCommand=serializeAws_queryAssumeRoleWithWebIdentityCommand;const serializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryDecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryDecodeAuthorizationMessageCommand=serializeAws_queryDecodeAuthorizationMessageCommand;const serializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetAccessKeyInfoCommand=serializeAws_queryGetAccessKeyInfoCommand;const serializeAws_queryGetCallerIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetCallerIdentityCommand=serializeAws_queryGetCallerIdentityCommand;const serializeAws_queryGetFederationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetFederationTokenCommand=serializeAws_queryGetFederationTokenCommand;const serializeAws_queryGetSessionTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let r;r=buildFormUrlencodedString({...serializeAws_queryGetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,r)};t.serializeAws_queryGetSessionTokenCommand=serializeAws_queryGetSessionTokenCommand;const deserializeAws_queryAssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleResponse(o.AssumeRoleResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleCommand=deserializeAws_queryAssumeRoleCommand;const deserializeAws_queryAssumeRoleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithSAMLCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleWithSAMLResponse(o.AssumeRoleWithSAMLResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleWithSAMLCommand=deserializeAws_queryAssumeRoleWithSAMLCommand;const deserializeAws_queryAssumeRoleWithSAMLCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryAssumeRoleWithWebIdentityResponse(o.AssumeRoleWithWebIdentityResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=deserializeAws_queryAssumeRoleWithWebIdentityCommand;const deserializeAws_queryAssumeRoleWithWebIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryDecodeAuthorizationMessageCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryDecodeAuthorizationMessageResponse(o.DecodeAuthorizationMessageResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryDecodeAuthorizationMessageCommand=deserializeAws_queryDecodeAuthorizationMessageCommand;const deserializeAws_queryDecodeAuthorizationMessageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetAccessKeyInfoCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetAccessKeyInfoResponse(o.GetAccessKeyInfoResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetAccessKeyInfoCommand=deserializeAws_queryGetAccessKeyInfoCommand;const deserializeAws_queryGetAccessKeyInfoCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})};const deserializeAws_queryGetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetCallerIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetCallerIdentityResponse(o.GetCallerIdentityResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetCallerIdentityCommand=deserializeAws_queryGetCallerIdentityCommand;const deserializeAws_queryGetCallerIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})};const deserializeAws_queryGetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetFederationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetFederationTokenResponse(o.GetFederationTokenResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetFederationTokenCommand=deserializeAws_queryGetFederationTokenCommand;const deserializeAws_queryGetFederationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryGetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetSessionTokenCommandError(e,t)}const o=await parseBody(e.body,t);let r={};r=deserializeAws_queryGetSessionTokenResponse(o.GetSessionTokenResult,t);const n={$metadata:deserializeMetadata(e),...r};return Promise.resolve(n)};t.deserializeAws_queryGetSessionTokenCommand=deserializeAws_queryGetSessionTokenCommand;const deserializeAws_queryGetSessionTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const r=loadQueryErrorCode(e,o.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;(0,n.throwDefaultError)({output:e,parsedBody:s.Error,exceptionCtor:c.STSServiceException,errorCode:r})}};const deserializeAws_queryExpiredTokenExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryExpiredTokenException(o.Error,t);const s=new a.ExpiredTokenException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryIDPCommunicationErrorExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryIDPCommunicationErrorException(o.Error,t);const s=new a.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryIDPRejectedClaimExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryIDPRejectedClaimException(o.Error,t);const s=new a.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryInvalidAuthorizationMessageException(o.Error,t);const s=new a.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryInvalidIdentityTokenExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryInvalidIdentityTokenException(o.Error,t);const s=new a.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryMalformedPolicyDocumentExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryMalformedPolicyDocumentException(o.Error,t);const s=new a.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryPackedPolicyTooLargeExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryPackedPolicyTooLargeException(o.Error,t);const s=new a.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const deserializeAws_queryRegionDisabledExceptionResponse=async(e,t)=>{const o=e.body;const r=deserializeAws_queryRegionDisabledException(o.Error,t);const s=new a.RegionDisabledException({$metadata:deserializeMetadata(e),...r});return(0,n.decorateServiceException)(s,o)};const serializeAws_queryAssumeRoleRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const r=serializeAws_querytagListType(e.Tags,t);Object.entries(r).forEach((([e,t])=>{const r=`Tags.${e}`;o[r]=t}))}if(e.TransitiveTagKeys!=null){const r=serializeAws_querytagKeyListType(e.TransitiveTagKeys,t);Object.entries(r).forEach((([e,t])=>{const r=`TransitiveTagKeys.${e}`;o[r]=t}))}if(e.ExternalId!=null){o["ExternalId"]=e.ExternalId}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}if(e.SourceIdentity!=null){o["SourceIdentity"]=e.SourceIdentity}return o};const serializeAws_queryAssumeRoleWithSAMLRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.PrincipalArn!=null){o["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!=null){o["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryAssumeRoleWithWebIdentityRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!=null){o["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!=null){o["ProviderId"]=e.ProviderId}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryDecodeAuthorizationMessageRequest=(e,t)=>{const o={};if(e.EncodedMessage!=null){o["EncodedMessage"]=e.EncodedMessage}return o};const serializeAws_queryGetAccessKeyInfoRequest=(e,t)=>{const o={};if(e.AccessKeyId!=null){o["AccessKeyId"]=e.AccessKeyId}return o};const serializeAws_queryGetCallerIdentityRequest=(e,t)=>{const o={};return o};const serializeAws_queryGetFederationTokenRequest=(e,t)=>{const o={};if(e.Name!=null){o["Name"]=e.Name}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.PolicyArns!=null){const r=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(r).forEach((([e,t])=>{const r=`PolicyArns.${e}`;o[r]=t}))}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const r=serializeAws_querytagListType(e.Tags,t);Object.entries(r).forEach((([e,t])=>{const r=`Tags.${e}`;o[r]=t}))}return o};const serializeAws_queryGetSessionTokenRequest=(e,t)=>{const o={};if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}return o};const serializeAws_querypolicyDescriptorListType=(e,t)=>{const o={};let r=1;for(const n of e){if(n===null){continue}const e=serializeAws_queryPolicyDescriptorType(n,t);Object.entries(e).forEach((([e,t])=>{o[`member.${r}.${e}`]=t}));r++}return o};const serializeAws_queryPolicyDescriptorType=(e,t)=>{const o={};if(e.arn!=null){o["arn"]=e.arn}return o};const serializeAws_queryTag=(e,t)=>{const o={};if(e.Key!=null){o["Key"]=e.Key}if(e.Value!=null){o["Value"]=e.Value}return o};const serializeAws_querytagKeyListType=(e,t)=>{const o={};let r=1;for(const t of e){if(t===null){continue}o[`member.${r}`]=t;r++}return o};const serializeAws_querytagListType=(e,t)=>{const o={};let r=1;for(const n of e){if(n===null){continue}const e=serializeAws_queryTag(n,t);Object.entries(e).forEach((([e,t])=>{o[`member.${r}.${e}`]=t}));r++}return o};const deserializeAws_queryAssumedRoleUser=(e,t)=>{const o={AssumedRoleId:undefined,Arn:undefined};if(e["AssumedRoleId"]!==undefined){o.AssumedRoleId=(0,n.expectString)(e["AssumedRoleId"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryAssumeRoleResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithSAMLResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Subject:undefined,SubjectType:undefined,Issuer:undefined,Audience:undefined,NameQualifier:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["Subject"]!==undefined){o.Subject=(0,n.expectString)(e["Subject"])}if(e["SubjectType"]!==undefined){o.SubjectType=(0,n.expectString)(e["SubjectType"])}if(e["Issuer"]!==undefined){o.Issuer=(0,n.expectString)(e["Issuer"])}if(e["Audience"]!==undefined){o.Audience=(0,n.expectString)(e["Audience"])}if(e["NameQualifier"]!==undefined){o.NameQualifier=(0,n.expectString)(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithWebIdentityResponse=(e,t)=>{const o={Credentials:undefined,SubjectFromWebIdentityToken:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Provider:undefined,Audience:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){o.SubjectFromWebIdentityToken=(0,n.expectString)(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}if(e["Provider"]!==undefined){o.Provider=(0,n.expectString)(e["Provider"])}if(e["Audience"]!==undefined){o.Audience=(0,n.expectString)(e["Audience"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,n.expectString)(e["SourceIdentity"])}return o};const deserializeAws_queryCredentials=(e,t)=>{const o={AccessKeyId:undefined,SecretAccessKey:undefined,SessionToken:undefined,Expiration:undefined};if(e["AccessKeyId"]!==undefined){o.AccessKeyId=(0,n.expectString)(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){o.SecretAccessKey=(0,n.expectString)(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){o.SessionToken=(0,n.expectString)(e["SessionToken"])}if(e["Expiration"]!==undefined){o.Expiration=(0,n.expectNonNull)((0,n.parseRfc3339DateTime)(e["Expiration"]))}return o};const deserializeAws_queryDecodeAuthorizationMessageResponse=(e,t)=>{const o={DecodedMessage:undefined};if(e["DecodedMessage"]!==undefined){o.DecodedMessage=(0,n.expectString)(e["DecodedMessage"])}return o};const deserializeAws_queryExpiredTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryFederatedUser=(e,t)=>{const o={FederatedUserId:undefined,Arn:undefined};if(e["FederatedUserId"]!==undefined){o.FederatedUserId=(0,n.expectString)(e["FederatedUserId"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryGetAccessKeyInfoResponse=(e,t)=>{const o={Account:undefined};if(e["Account"]!==undefined){o.Account=(0,n.expectString)(e["Account"])}return o};const deserializeAws_queryGetCallerIdentityResponse=(e,t)=>{const o={UserId:undefined,Account:undefined,Arn:undefined};if(e["UserId"]!==undefined){o.UserId=(0,n.expectString)(e["UserId"])}if(e["Account"]!==undefined){o.Account=(0,n.expectString)(e["Account"])}if(e["Arn"]!==undefined){o.Arn=(0,n.expectString)(e["Arn"])}return o};const deserializeAws_queryGetFederationTokenResponse=(e,t)=>{const o={Credentials:undefined,FederatedUser:undefined,PackedPolicySize:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){o.FederatedUser=deserializeAws_queryFederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,n.strictParseInt32)(e["PackedPolicySize"])}return o};const deserializeAws_queryGetSessionTokenResponse=(e,t)=>{const o={Credentials:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}return o};const deserializeAws_queryIDPCommunicationErrorException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryIDPRejectedClaimException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryInvalidAuthorizationMessageException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryInvalidIdentityTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryMalformedPolicyDocumentException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryPackedPolicyTooLargeException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeAws_queryRegionDisabledException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=(0,n.expectString)(e["message"])}return o};const deserializeMetadata=e=>{var t,o;return{httpStatusCode:e.statusCode,requestId:(o=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&o!==void 0?o:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,n,s)=>{const{hostname:i,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(n!==undefined){u.hostname=n}if(s!==undefined){u.body=s}return new r.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=(0,i.parse)(e,{attributeNamePrefix:"",ignoreAttributes:false,parseNodeValue:false,trimValues:false,tagValueProcessor:e=>e.trim()===""&&e.includes("\n")?"":(0,s.decodeHTML)(e)});const o="#text";const r=Object.keys(t)[0];const a=t[r];if(a[o]){a[r]=a[o];delete a[o]}return(0,n.getValueFromTextNode)(a)}return{}}));const parseErrorBody=async(e,t)=>{var o;const r=await parseBody(e,t);if(r.Error){r.Error.message=(o=r.Error.message)!==null&&o!==void 0?o:r.Error.Message}return r};const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>(0,n.extendedEncodeURIComponent)(e)+"="+(0,n.extendedEncodeURIComponent)(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}}},83405:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(4351);const n=r.__importDefault(o(7947));const s=o(90048);const i=o(86507);const a=o(75531);const c=o(68464);const l=o(2490);const u=o(85443);const d=o(51188);const p=o(18588);const f=o(72724);const m=o(97330);const g=o(14291);const y=o(52642);const h=o(29088);const E=o(56017);const v=o(29088);const getRuntimeConfig=e=>{var t,o,r,_,S,w,P,b,C,R,x,I,T,A,O;(0,v.emitWarningIfUnsupportedVersion)(process.version);const N=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const D=(0,y.getRuntimeConfig)(e);return{...D,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:p.toBase64,bodyLengthChecker:(r=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:f.calculateBodyLength,credentialDefaultProvider:(_=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&_!==void 0?_:(0,s.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:(S=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&S!==void 0?S:(0,m.defaultUserAgent)({serviceId:D.serviceId,clientVersion:n.default.version}),maxAttempts:(w=e===null||e===void 0?void 0:e.maxAttempts)!==null&&w!==void 0?w:(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(P=e===null||e===void 0?void 0:e.region)!==null&&P!==void 0?P:(0,u.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(b=e===null||e===void 0?void 0:e.requestHandler)!==null&&b!==void 0?b:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(C=e===null||e===void 0?void 0:e.retryMode)!==null&&C!==void 0?C:(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(R=e===null||e===void 0?void 0:e.sha256)!==null&&R!==void 0?R:c.Hash.bind(null,"sha256"),streamCollector:(x=e===null||e===void 0?void 0:e.streamCollector)!==null&&x!==void 0?x:d.streamCollector,useDualstackEndpoint:(I=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&I!==void 0?I:(0,u.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,u.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(A=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&A!==void 0?A:g.fromUtf8,utf8Encoder:(O=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&O!==void 0?O:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},52642:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const r=o(34590);const n=o(3571);const getRuntimeConfig=e=>{var t,o,s,i,a;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(s=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&s!==void 0?s:n.defaultRegionInfoProvider,serviceId:(i=e===null||e===void 0?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:r.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},87950:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const r=o(79715);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,r.SelectorType.CONFIG),default:false}},71937:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const r=o(79715);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,r.SelectorType.CONFIG),default:false}},2109:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(87950),t);r.__exportStar(o(71937),t);r.__exportStar(o(51087),t);r.__exportStar(o(6750),t)},51087:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const r=o(61291);const resolveCustomEndpointsConfig=e=>{var t;const{endpoint:o,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,r.normalizeProvider)(typeof o==="string"?n(o):o),isCustomEndpoint:true,useDualstackEndpoint:(0,r.normalizeProvider)(e.useDualstackEndpoint)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},6750:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const r=o(61291);const n=o(51826);const resolveEndpointsConfig=e=>{var t;const o=(0,r.normalizeProvider)(e.useDualstackEndpoint);const{endpoint:s,useFipsEndpoint:i,urlParser:a}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:s?(0,r.normalizeProvider)(typeof s==="string"?a(s):s):()=>(0,n.getEndpointFromRegion)({...e,useDualstackEndpoint:o,useFipsEndpoint:i}),isCustomEndpoint:!!s,useDualstackEndpoint:o}};t.resolveEndpointsConfig=resolveEndpointsConfig},51826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:o=true}=e;const r=await e.region();const n=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!n.test(r)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${o?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},86507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(2109),t);r.__exportStar(o(2289),t);r.__exportStar(o(98290),t)},20343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},86160:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const r=o(60679);const getRealRegion=e=>(0,r.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},2289:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(20343),t);r.__exportStar(o(8),t)},60679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},8:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const r=o(86160);const n=o(60679);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,r.getRealRegion)(t)}const e=await t();return(0,r.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,n.isFipsRegion)(e)){return true}return typeof o==="boolean"?Promise.resolve(o):o()}}};t.resolveRegionConfig=resolveRegionConfig},7372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},54738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>{var r;return(r=e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack"))))===null||r===void 0?void 0:r.hostname};t.getHostnameFromVariants=getHostnameFromVariants},81020:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const r=o(75497);const n=o(23457);const s=o(46932);const i=o(36808);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,f,m,g;const y=(0,s.getResolvedPartition)(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const E={useFipsEndpoint:t,useDualstackEndpoint:o};const v=(0,r.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const _=(0,r.getHostnameFromVariants)((f=l[y])===null||f===void 0?void 0:f.variants,E);const S=(0,n.getResolvedHostname)(h,{regionHostname:v,partitionHostname:_});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const w=(0,i.getResolvedSigningRegion)(S,{signingRegion:(m=c[h])===null||m===void 0?void 0:m.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...w&&{signingRegion:w},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},23457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},46932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var o;return(o=Object.keys(t||{}).find((o=>t[o].regions.includes(e))))!==null&&o!==void 0?o:"aws"};t.getResolvedPartition=getResolvedPartition},36808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:r})=>{if(t){return t}else if(r){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const r=e.match(t);if(r){return r[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},98290:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(7372),t);r.__exportStar(o(54738),t);r.__exportStar(o(81020),t)},68464:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const r=o(36010);const n=o(14300);const s=o(6113);class Hash{constructor(e,t){this.hash=t?(0,s.createHmac)(e,castSourceData(t)):(0,s.createHash)(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(n.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,r.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,r.fromArrayBuffer)(e)}},17304:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const r=o(50357);const n="content-length";function contentLengthMiddleware(e){return t=>async o=>{const s=o.request;if(r.HttpRequest.isInstance(s)){const{body:t,headers:o}=s;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(n)===-1){try{const o=e(t);s.headers={...s.headers,[n]:String(o)}}catch(e){}}}return t({...o,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:o=>{o.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},19514:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const r=o(50357);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async o=>{if(!r.HttpRequest.isInstance(o.request))return t(o);const{request:n}=o;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"]){delete n.headers["host"];n.headers[":authority"]=""}else if(!n.headers["host"]){n.headers["host"]=n.hostname}return t(o)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:o=>{o.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},25675:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(4059),t)},4059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async o=>{const{clientName:r,commandName:n,inputFilterSensitiveLog:s,logger:i,outputFilterSensitiveLog:a}=t;const c=await e(o);if(!i){return c}if(typeof i.info==="function"){const{$metadata:e,...t}=c.output;i.info({clientName:r,commandName:n,input:s(o.input),output:a(t),metadata:e})}return c};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},57977:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const r=o(50357);const n="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async o=>{const{request:a}=o;if(!r.HttpRequest.isInstance(a)||e.runtime!=="node"||a.headers.hasOwnProperty(n)){return t(o)}const c=process.env[s];const l=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(l)){a.headers[n]=l}return t({...o,request:a})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:o=>{o.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},90851:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const r=o(7460);const n=o(99048);const s=o(73315);class AdaptiveRetryStrategy extends s.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...s}=t!==null&&t!==void 0?t:{};super(e,s);this.rateLimiter=o!==null&&o!==void 0?o:new n.DefaultRateLimiter;this.mode=r.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},99048:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const r=o(82405);class DefaultRateLimiter{constructor(e){var t,o,r,n,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(o=e===null||e===void 0?void 0:e.minCapacity)!==null&&o!==void 0?o:1;this.minFillRate=(r=e===null||e===void 0?void 0:e.minFillRate)!==null&&r!==void 0?r:.5;this.scaleConstant=(n=e===null||e===void 0?void 0:e.scaleConstant)!==null&&n!==void 0?n:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,r.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},73315:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const r=o(50357);const n=o(82405);const s=o(75840);const i=o(7460);const a=o(76717);const c=o(34882);const l=o(49566);const u=o(89823);class StandardRetryStrategy{constructor(e,t){var o,r,n;this.maxAttemptsProvider=e;this.mode=i.RETRY_MODES.STANDARD;this.retryDecider=(o=t===null||t===void 0?void 0:t.retryDecider)!==null&&o!==void 0?o:u.defaultRetryDecider;this.delayDecider=(r=t===null||t===void 0?void 0:t.delayDecider)!==null&&r!==void 0?r:l.defaultDelayDecider;this.retryQuota=(n=t===null||t===void 0?void 0:t.retryQuota)!==null&&n!==void 0?n:(0,c.getDefaultRetryQuota)(a.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=i.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,o){let i;let c=0;let l=0;const u=await this.getMaxAttempts();const{request:d}=t;if(r.HttpRequest.isInstance(d)){d.headers[a.INVOCATION_ID_HEADER]=(0,s.v4)()}while(true){try{if(r.HttpRequest.isInstance(d)){d.headers[a.REQUEST_HEADER]=`attempt=${c+1}; max=${u}`}if(o===null||o===void 0?void 0:o.beforeRequest){await o.beforeRequest()}const{response:n,output:s}=await e(t);if(o===null||o===void 0?void 0:o.afterRequest){o.afterRequest(n)}this.retryQuota.releaseRetryTokens(i);s.$metadata.attempts=c+1;s.$metadata.totalRetryDelay=l;return{response:n,output:s}}catch(e){const t=asSdkError(e);c++;if(this.shouldRetry(t,c,u)){i=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,n.isThrottlingError)(t)?a.THROTTLING_RETRY_DELAY_BASE:a.DEFAULT_RETRY_DELAY_BASE,c);const o=getDelayFromRetryAfterHeader(t.$response);const r=Math.max(o||0,e);l+=r;await new Promise((e=>setTimeout(e,r)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!r.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const n=Number(o);if(!Number.isNaN(n))return n*1e3;const s=new Date(o);return s.getTime()-Date.now()};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)}},7460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var o;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(o=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=o.STANDARD},1768:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const r=o(61291);const n=o(90851);const s=o(7460);const i=o(73315);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const o=e[t.ENV_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},configFileSelector:e=>{const o=e[t.CONFIG_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},default:s.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const o=(0,r.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:s.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:o,retryStrategy:async()=>{if(e.retryStrategy){return e.retryStrategy}const t=await(0,r.normalizeProvider)(e.retryMode)();if(t===s.RETRY_MODES.ADAPTIVE){return new n.AdaptiveRetryStrategy(o)}return new i.StandardRetryStrategy(o)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:s.DEFAULT_RETRY_MODE}},76717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},34882:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const r=o(76717);const getDefaultRetryQuota=(e,t)=>{var o,n,s;const i=e;const a=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:r.NO_RETRY_INCREMENT;const c=(n=t===null||t===void 0?void 0:t.retryCost)!==null&&n!==void 0?n:r.RETRY_COST;const l=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:r.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l:c;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:a;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},49566:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const r=o(76717);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},2490:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(90851),t);r.__exportStar(o(99048),t);r.__exportStar(o(73315),t);r.__exportStar(o(7460),t);r.__exportStar(o(1768),t);r.__exportStar(o(49566),t);r.__exportStar(o(20023),t);r.__exportStar(o(89823),t);r.__exportStar(o(70044),t);r.__exportStar(o(77659),t)},20023:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const r=o(50357);const n=o(76717);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(r.HttpRequest.isInstance(o)){delete o.headers[n.INVOCATION_ID_HEADER];delete o.headers[n.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},89823:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const r=o(82405);const defaultRetryDecider=e=>{if(!e){return false}return(0,r.isRetryableByTrait)(e)||(0,r.isClockSkewError)(e)||(0,r.isThrottlingError)(e)||(0,r.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},70044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const retryMiddleware=e=>(t,o)=>async r=>{const n=await e.retryStrategy();if(n===null||n===void 0?void 0:n.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",n.mode]];return n.retry(t,r)};t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin},77659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},97446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(o,r)=>async r=>{const{response:n}=await o(r);try{const o=await t(n,e);return{response:n,output:o}}catch(e){Object.defineProperty(e,"$response",{value:n});throw e}};t.deserializerMiddleware=deserializerMiddleware},55922:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(97446),t);r.__exportStar(o(13304),t);r.__exportStar(o(76847),t)},13304:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const r=o(97446);const n=o(76847);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,s){return{applyToStack:i=>{i.add((0,r.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,n.serializerMiddleware)(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},76847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,r)=>async n=>{var s;const i=((s=r.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const a=await t(n.input,{...e,endpoint:i});return o({...n,request:a})};t.serializerMiddleware=serializerMiddleware},30689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let n=[];const s=new Set;const sort=e=>e.sort(((e,t)=>o[t.step]-o[e.step]||r[t.priority||"normal"]-r[e.priority||"normal"]));const removeByName=t=>{let o=false;const filterCb=e=>{if(e.name&&e.name===t){o=true;s.delete(t);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const removeByReference=t=>{let o=false;const filterCb=e=>{if(e.middleware===t){o=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));n.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const o=[];const r=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));n.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;r.push(t)}));r.forEach((e=>{if(e.toMiddleware){const o=s[e.toMiddleware];if(o===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){o.after.push(e)}if(e.relation==="before"){o.before.push(e)}}}));const i=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,o={})=>{const{name:r,override:n}=o;const i={step:"initialize",priority:"normal",middleware:t,...o};if(r){if(s.has(r)){if(!n)throw new Error(`Duplicate middleware name '${r}'`);const t=e.findIndex((e=>e.name===r));const o=e[t];if(o.step!==i.step||o.priority!==i.priority){throw new Error(`"${r}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(r)}e.push(i)},addRelativeTo:(e,t)=>{const{name:o,override:r}=t;const i={middleware:e,...t};if(o){if(s.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const e=n.findIndex((e=>e.name===o));const t=n[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}n.splice(e,1)}s.add(o)}n.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let o=false;const filterCb=e=>{const{tags:r,name:n}=e;if(r&&r.includes(t)){if(n)s.delete(n);o=true;return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o},concat:e=>{const o=cloneTo((0,t.constructStack)());o.use(e);return o},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}return e}};return i};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const r={high:3,normal:2,low:1}},79329:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(30689),t)},12527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},56257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_REGEX=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},76634:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(12527),t);r.__exportStar(o(26497),t)},26497:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const r=o(50357);const n=o(56257);const userAgentMiddleware=e=>(t,o)=>async s=>{var i,a;const{request:c}=s;if(!r.HttpRequest.isInstance(c))return t(s);const{headers:l}=c;const u=((i=o===null||o===void 0?void 0:o.userAgent)===null||i===void 0?void 0:i.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const f=[...d,...u,...p].join(n.SPACE);const m=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(n.SPACE);if(e.runtime!=="browser"){if(m){l[n.X_AMZ_USER_AGENT]=l[n.X_AMZ_USER_AGENT]?`${l[n.USER_AGENT]} ${m}`:m}l[n.USER_AGENT]=f}else{l[n.X_AMZ_USER_AGENT]=f}return t({...s,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const o=e.indexOf("/");const r=e.substring(0,o);let s=e.substring(o+1);if(r==="api"){s=s.toLowerCase()}return[r,s,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(n.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},44685:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const r=o(41720);const n=o(1762);const s=o(27796);const i=o(7023);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>(0,r.memoize)((0,r.chain)((0,n.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},1762:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const r=o(41720);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},27796:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const r=o(41720);const n=o(55531);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,n.getProfileName)(o);const{configFile:i,credentialsFile:a}=await(0,n.loadSharedConfigFiles)(o);const c=a[s]||{};const l=i[s]||{};const u=t==="config"?{...c,...l}:{...l,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},7023:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(41720);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,r.fromStatic)(e);t.fromStatic=fromStatic},85443:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(44685),t)},14351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},29719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const o of Object.keys(e)){const r=e[o];t[o]=Array.isArray(r)?r.join(","):r}return t};t.getTransformedHeaders=getTransformedHeaders},51188:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(50563),t);r.__exportStar(o(74585),t);r.__exportStar(o(79879),t)},50563:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const r=o(50357);const n=o(43402);const s=o(13685);const i=o(95687);const a=o(14351);const c=o(29719);const l=o(87841);const u=o(39973);const d=o(50449);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:o,httpAgent:r,httpsAgent:n}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:o,httpAgent:r||new s.Agent({keepAlive:a,maxSockets:c}),httpsAgent:n||new i.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,o,r;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(r=(o=this.config)===null||o===void 0?void 0:o.httpsAgent)===null||r===void 0?void 0:r.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((o,p)=>{if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";p(e);return}const f=e.protocol==="https:";const m=(0,n.buildQueryString)(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:m?`${e.path}?${m}`:e.path,port:e.port,agent:f?this.config.httpsAgent:this.config.httpAgent};const y=f?i.request:s.request;const h=y(g,(e=>{const t=new r.HttpResponse({statusCode:e.statusCode||-1,headers:(0,c.getTransformedHeaders)(e.headers),body:e});o({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));(0,l.setConnectionTimeout)(h,p,this.config.connectionTimeout);(0,u.setSocketTimeout)(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}(0,d.writeRequestBody)(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},74585:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const r=o(50357);const n=o(43402);const s=o(85158);const i=o(29719);const a=o(50449);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}));this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}const{requestTimeout:o,disableConcurrentStreams:c}=this.config;return new Promise(((l,u)=>{let d=false;if(t===null||t===void 0?void 0:t.aborted){d=true;const e=new Error("Request aborted");e.name="AbortError";u(e);return}const{hostname:p,method:f,port:m,protocol:g,path:y,query:h}=e;const E=`${g}//${p}${m?`:${m}`:""}`;const v=this.getSession(E,c||false);const reject=e=>{if(c){this.destroySession(v)}d=true;u(e)};const _=(0,n.buildQueryString)(h||{});const S=v.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:_?`${y}?${_}`:y,[s.constants.HTTP2_HEADER_METHOD]:f});v.ref();S.on("response",(e=>{const t=new r.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:S});d=true;l({response:t});if(c){v.close();this.deleteSessionFromCache(E,v)}}));if(o){S.setTimeout(o,(()=>{S.close();const e=new Error(`Stream timed out because of no activity for ${o} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{S.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}S.on("frameError",((e,t,o)=>{reject(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));S.on("error",reject);S.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${S.rstCode}.`))}));S.on("close",(()=>{v.unref();if(c){v.destroy()}if(!d){reject(new Error("Unexpected error: http2 request did not get a response"))}}));(0,a.writeRequestBody)(S,e)}))}getSession(e,t){var o;const r=this.sessionCache;const n=r.get(e)||[];if(n.length>0&&!t)return n[0];const i=(0,s.connect)(e);i.unref();const destroySessionCb=()=>{this.destroySession(i);this.deleteSessionFromCache(e,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSessionFromCache(e,i)));if((o=this.config)===null||o===void 0?void 0:o.sessionTimeout){i.setTimeout(this.config.sessionTimeout,destroySessionCb)}n.push(i);r.set(e,n);return i}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const o=this.sessionCache.get(e)||[];if(!o.includes(t)){return}this.sessionCache.set(e,o.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},87841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}e.on("socket",(r=>{if(r.connecting){const n=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);r.on("connect",(()=>{clearTimeout(n)}))}}))};t.setConnectionTimeout=setConnectionTimeout},39973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,o=0)=>{e.setTimeout(o,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${o} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},76422:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const r=o(12781);class Collector extends r.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},79879:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const r=o(76422);const streamCollector=e=>new Promise(((t,o)=>{const n=new r.Collector;e.pipe(n);e.on("error",(e=>{n.end();o(e)}));n.on("error",o);n.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},50449:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const r=o(12781);function writeRequestBody(e,t){const o=t.headers["Expect"]||t.headers["expect"];if(o==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof r.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},85659:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(96149);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},96149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},77138:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(96149);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},60535:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(96149);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},67109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},41720:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(85659),t);r.__exportStar(o(96149),t);r.__exportStar(o(77138),t);r.__exportStar(o(60535),t);r.__exportStar(o(67109),t);r.__exportStar(o(52142),t)},52142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},47682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},16971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{})}},94031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},50357:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(47682),t);r.__exportStar(o(16971),t);r.__exportStar(o(94031),t);r.__exportStar(o(33754),t)},33754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},84331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,r=null]=o.split("=");e=decodeURIComponent(e);if(r){r=decodeURIComponent(r)}if(!(e in t)){t[e]=r}else if(Array.isArray(t[e])){t[e].push(r)}else{t[e]=[t[e],r]}}}return t}t.parseQueryString=parseQueryString},94186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},82405:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const r=o(94186);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>r.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,o;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||r.THROTTLING_ERROR_CODES.includes(e.name)||((o=e.$retryable)===null||o===void 0?void 0:o.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return r.TRANSIENT_ERROR_CODES.includes(e.name)||r.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||r.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError},69591:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(44667);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},82470:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(44667);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},44667:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},25421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},65251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},25851:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(44667);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},34566:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(25851);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},84222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},55531:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(44667),t);r.__exportStar(o(65251),t);r.__exportStar(o(25851),t);r.__exportStar(o(34566),t);r.__exportStar(o(68226),t);r.__exportStar(o(20013),t);r.__exportStar(o(50094),t);r.__exportStar(o(41267),t)},68226:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(69591);const n=o(82470);const s=o(25421);const i=o(32042);const a=o(39184);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},20013:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(69591);const n=o(84222);const s=o(32042);const i=o(39184);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},32042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},50094:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(68226);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},39184:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},41267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45089:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const r=o(79329);class Client{constructor(e){this.middlewareStack=(0,r.constructStack)();this.config=e}send(e,t,o){const r=typeof t!=="function"?t:undefined;const n=typeof t==="function"?t:o;const s=e.resolveMiddleware(this.middlewareStack,this.config,r);if(n){s(e).then((e=>n(null,e.output)),(e=>n(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},36277:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const r=o(79329);class Command{constructor(){this.middlewareStack=(0,r.constructStack)()}}t.Command=Command},4940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},90794:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const r=o(4087);const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const r=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const f=l<10?`0${l}`:`${l}`;return`${n[r]}, ${u} ${s[o]} ${t} ${d}:${p}:${f} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,n,s,a,c,l,u,d]=t;const p=(0,r.strictParseShort)(stripLeadingZeroes(n));const f=parseDateValue(s,"month",1,12);const m=parseDateValue(a,"day",1,31);return buildDate(p,f,m,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const c=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const l=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=a.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,o,r,n,s,i,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(n),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(l)),parseMonthByShortName(o),parseDateValue(n.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,r.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,o,r)=>{const n=t-1;validateDayOfMonth(e,n,o);return new Date(Date.UTC(e,n,o,parseDateValue(r.hours,"hour",0,23),parseDateValue(r.minutes,"minute",0,59),parseDateValue(r.seconds,"seconds",0,60),parseMilliseconds(r.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+(0,r.strictParseShort)(stripLeadingZeroes(e));if(o<t){return o+100}return o};const u=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>u){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let r=d[t];if(t===1&&isLeapYear(e)){r=29}if(o>r){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,n)=>{const s=(0,r.strictParseByte)(stripLeadingZeroes(e));if(s<o||s>n){throw new TypeError(`${t} must be between ${o} and ${n}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,r.strictParseFloat32)("0."+e)*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},66835:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwDefaultError=void 0;const r=o(7381);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:n})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const a=new o({name:t.code||t.Code||n||i||"UnknowError",$fault:"client",$metadata:s});throw(0,r.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},50849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},74337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let o=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!o&&parseInt(e.substring(1,e.indexOf(".")))<14){o=true;process.emitWarning(`The AWS SDK for JavaScript (v3) will\n`+`no longer support Node.js ${e} on November 1, 2022.\n\n`+`To continue receiving updates to AWS services, bug fixes, and security\n`+`updates please upgrade to Node.js 14.x or later.\n\n`+`For details, please refer our blog post: https://a.co/48dbdYz`,`NodeDeprecationWarning`)}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},7381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};t.decorateServiceException=decorateServiceException},8283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},97533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},33010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const o="#text";for(const r in e){if(e.hasOwnProperty(r)&&e[r][o]!==undefined){e[r]=e[r][o]}else if(typeof e[r]==="object"&&e[r]!==null){e[r]=(0,t.getValueFromTextNode)(e[r])}}return e};t.getValueFromTextNode=getValueFromTextNode},29088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(45089),t);r.__exportStar(o(36277),t);r.__exportStar(o(4940),t);r.__exportStar(o(90794),t);r.__exportStar(o(66835),t);r.__exportStar(o(50849),t);r.__exportStar(o(74337),t);r.__exportStar(o(7381),t);r.__exportStar(o(8283),t);r.__exportStar(o(97533),t);r.__exportStar(o(33010),t);r.__exportStar(o(77191),t);r.__exportStar(o(16542),t);r.__exportStar(o(4087),t);r.__exportStar(o(10383),t);r.__exportStar(o(73652),t);r.__exportStar(o(8520),t)},77191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const o=new t;Object.setPrototypeOf(o,e.prototype);return o};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},16542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertMap=t.map=void 0;function map(e,t,o){let r;let n;let s;if(typeof t==="undefined"&&typeof o==="undefined"){r={};s=e}else{r=e;if(typeof t==="function"){n=t;s=o;return mapWithFilter(r,n,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){r[e]=s[e];continue}let[t,o]=s[e];if(typeof o==="function"){let n;const s=t===undefined&&(n=o())!=null;const i=typeof t==="function"&&!!t(void 0)||typeof t!=="function"&&!!t;if(s){r[e]=n}else if(i){r[e]=o()}}else{const n=t===undefined&&o!=null;const s=typeof t==="function"&&!!t(o)||typeof t!=="function"&&!!t;if(n||s){r[e]=o}}}return r}t.map=map;const convertMap=e=>{const t={};for(const[o,r]of Object.entries(e||{})){t[o]=[,r]}return t};t.convertMap=convertMap;const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,r])=>{if(Array.isArray(r)){e[o]=r}else{if(typeof r==="function"){e[o]=[t,r()]}else{e[o]=[t,r]}}return e}),{}))},4087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const o=e.toLowerCase();if(o==="false"||o==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(o==="false"){return false}if(o==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const o=parseFloat(e);if(!Number.isNaN(o)){if(String(o)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return o}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const r=(0,t.expectNumber)(e);if(r!==undefined&&!Number.isNaN(r)&&r!==Infinity&&r!==-Infinity){if(Math.abs(r)>o){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return r};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,o)=>{const r=(0,t.expectLong)(e);if(r!==undefined&&castInt(r,o)!==r){throw new TypeError(`Expected ${o}-bit integer, got ${e}`)}return r};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=(0,t.expectObject)(e);const r=Object.entries(o).filter((([,e])=>e!=null)).map((([e])=>e));if(r.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(r.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`)}return o};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const r=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(r);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},10383:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const r=o(8283);const resolvedPath=(e,t,o,n,s,i)=>{if(t!=null&&t[o]!==undefined){const t=n();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(s,i?t.split("/").map((e=>(0,r.extendedEncodeURIComponent)(e))).join("/"):(0,r.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};t.resolvedPath=resolvedPath},73652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},8520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const r=e.split(t);if(o===1){return r}const n=[];let s="";for(let e=0;e<r.length;e++){if(s===""){s=r[e]}else{s+=t+r[e]}if((e+1)%o===0){n.push(s);s=""}}if(s!==""){n.push(s)}return n}t.splitEvery=splitEvery},34590:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const r=o(84331);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:n,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,r.parseQueryString)(a)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:n,query:c}};t.parseUrl=parseUrl},85845:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const r=o(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,r.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},72724:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(85845),t)},18304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var o;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(o=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},79715:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(18304),t)},13130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},26738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const o="AWS_DEFAULTS_MODE";const r="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[o],configFileSelector:e=>e[r],default:"legacy"}},56017:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(8485),t)},8485:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const r=o(86507);const n=o(25898);const s=o(85443);const i=o(41720);const a=o(13130);const c=o(26738);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(r.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const o=typeof t==="function"?await t():t;switch(o===null||o===void 0?void 0:o.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o===null||o===void 0?void 0:o.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${o}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[a.AWS_EXECUTION_ENV]&&(process.env[a.AWS_REGION_ENV]||process.env[a.AWS_DEFAULT_REGION_ENV])){return(e=process.env[a.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[a.AWS_DEFAULT_REGION_ENV]}if(!process.env[a.ENV_IMDS_DISABLED]){try{const e=await(0,n.getInstanceMetadataEndpoint)();return(await(0,n.httpRequest)({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},61291:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(1014),t)},1014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},97330:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const r=o(85443);const n=o(22037);const s=o(77282);const i=o(54487);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:o})=>{const a=[["aws-sdk-js",o],[`os/${(0,n.platform)()}`,(0,n.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const c=(0,i.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,o])}if(s.env.AWS_EXECUTION_ENV){a.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const l=(0,r.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await l;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},54487:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},14291:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const r=o(36010);const fromUtf8=e=>{const t=(0,r.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},14723:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const r=o(6168);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,r.SelectorType.CONFIG),default:false}},42478:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const r=o(6168);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,r.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,r.SelectorType.ENV),configFileSelector:e=>(0,r.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,r.SelectorType.CONFIG),default:false}},47392:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(14723),t);r.__exportStar(o(42478),t);r.__exportStar(o(92108),t);r.__exportStar(o(92327),t)},92108:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const r=o(10236);const resolveCustomEndpointsConfig=e=>{var t,o;const{endpoint:n,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,r.normalizeProvider)(typeof n==="string"?s(n):n),isCustomEndpoint:true,useDualstackEndpoint:(0,r.normalizeProvider)((o=e.useDualstackEndpoint)!==null&&o!==void 0?o:false)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},92327:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const r=o(10236);const n=o(94159);const resolveEndpointsConfig=e=>{var t,o;const s=(0,r.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:false);const{endpoint:i,useFipsEndpoint:a,urlParser:c}=e;return{...e,tls:(o=e.tls)!==null&&o!==void 0?o:true,endpoint:i?(0,r.normalizeProvider)(typeof i==="string"?c(i):i):()=>(0,n.getEndpointFromRegion)({...e,useDualstackEndpoint:s,useFipsEndpoint:a}),isCustomEndpoint:!!i,useDualstackEndpoint:s}};t.resolveEndpointsConfig=resolveEndpointsConfig},94159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:o=true}=e;const r=await e.region();const n=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!n.test(r)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${o?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},56153:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(47392),t);r.__exportStar(o(85441),t);r.__exportStar(o(86258),t)},70422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},52844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const r=o(82440);const getRealRegion=e=>(0,r.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},85441:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(70422),t);r.__exportStar(o(60174),t)},82440:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},60174:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const r=o(52844);const n=o(82440);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,r.getRealRegion)(t)}const e=await t();return(0,r.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,n.isFipsRegion)(e)){return true}if(!o){return Promise.resolve(false)}return typeof o==="boolean"?Promise.resolve(o):o()}}};t.resolveRegionConfig=resolveRegionConfig},3566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},56057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>{var r;return(r=e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack"))))===null||r===void 0?void 0:r.hostname};t.getHostnameFromVariants=getHostnameFromVariants},26167:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const r=o(15280);const n=o(63877);const s=o(37642);const i=o(53517);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,f,m,g;const y=(0,s.getResolvedPartition)(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const E={useFipsEndpoint:t,useDualstackEndpoint:o};const v=(0,r.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const _=(0,r.getHostnameFromVariants)((f=l[y])===null||f===void 0?void 0:f.variants,E);const S=(0,n.getResolvedHostname)(h,{regionHostname:v,partitionHostname:_});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const w=(0,i.getResolvedSigningRegion)(S,{signingRegion:(m=c[h])===null||m===void 0?void 0:m.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...w&&{signingRegion:w},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},63877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},37642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var o;return(o=Object.keys(t||{}).find((o=>t[o].regions.includes(e))))!==null&&o!==void 0?o:"aws"};t.getResolvedPartition=getResolvedPartition},53517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:r})=>{if(t){return t}else if(r){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const r=e.match(t);if(r){return r[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},86258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(3566),t);r.__exportStar(o(56057),t);r.__exportStar(o(26167),t)},80255:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=t.ENV_EXPIRATION=t.ENV_SESSION=t.ENV_SECRET=t.ENV_KEY=void 0;const r=o(40440);t.ENV_KEY="AWS_ACCESS_KEY_ID";t.ENV_SECRET="AWS_SECRET_ACCESS_KEY";t.ENV_SESSION="AWS_SESSION_TOKEN";t.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";const fromEnv=()=>async()=>{const e=process.env[t.ENV_KEY];const o=process.env[t.ENV_SECRET];const n=process.env[t.ENV_SESSION];const s=process.env[t.ENV_EXPIRATION];if(e&&o){return{accessKeyId:e,secretAccessKey:o,...n&&{sessionToken:n},...s&&{expiration:new Date(s)}}}throw new r.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},15972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(80255),t)},34349:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(29439);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},29439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},99020:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(29439);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},45616:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(29439);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},84182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},40440:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(34349),t);r.__exportStar(o(29439),t);r.__exportStar(o(99020),t);r.__exportStar(o(45616),t);r.__exportStar(o(84182),t);r.__exportStar(o(85294),t)},85294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},3736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var o;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(o=t.Endpoint||(t.Endpoint={}))},18438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},21695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var o;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(o=t.EndpointMode||(t.EndpointMode={}))},97824:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const r=o(21695);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:r.EndpointMode.IPv4}},75232:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const r=o(60355);const n=o(57310);const s=o(81303);const i=o(91467);const a=o(72314);const c=o(49912);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:o}=(0,a.providerConfigFromInit)(e);return()=>(0,c.retry)((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(o)}),o)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,o)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){o.headers={...o.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const r=await(0,s.httpRequest)({...o,timeout:e});return r.toString()};const l="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const d={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:l,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,n.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new r.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in d)){throw new r.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new r.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},35813:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const r=o(60355);const n=o(81303);const s=o(91467);const i=o(72314);const a=o(49912);const c=o(41206);const l=o(54620);const u="/latest/meta-data/iam/security-credentials/";const d="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,l.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:o,maxRetries:r}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,o)=>{const r=(await(0,a.retry)((async()=>{let e;try{e=await getProfile(o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,a.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(r,o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,c.getInstanceMetadataEndpoint)();if(t){return getCredentials(r,{...e,timeout:o})}else{let n;try{n=(await getMetadataToken({...e,timeout:o})).toString()}catch(n){if((n===null||n===void 0?void 0:n.statusCode)===400){throw Object.assign(n,{message:"EC2 Metadata token request returned error"})}else if(n.message==="TimeoutError"||[403,404,405].includes(n.statusCode)){t=true}return getCredentials(r,{...e,timeout:o})}return getCredentials(r,{...e,headers:{"x-aws-ec2-metadata-token":n},timeout:o})}}};const getMetadataToken=async e=>(0,n.httpRequest)({...e,path:d,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,n.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await(0,n.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(o)}},25898:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const r=o(4351);r.__exportStar(o(75232),t);r.__exportStar(o(35813),t);r.__exportStar(o(72314),t);r.__exportStar(o(91178),t);var n=o(81303);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return n.httpRequest}});var s=o(41206);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},91467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},72314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:o=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:o});t.providerConfigFromInit=providerConfigFromInit},81303:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const r=o(60355);const n=o(14300);const s=o(13685);function httpRequest(e){return new Promise(((t,o)=>{var i;const a=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});a.on("error",(e=>{o(Object.assign(new r.ProviderError("Unable to connect to instance metadata service"),e));a.destroy()}));a.on("timeout",(()=>{o(new r.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){o(Object.assign(new r.ProviderError("Error response received from instance metadata service"),{statusCode:s}));a.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(n.Buffer.concat(i));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},49912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let o=e();for(let r=0;r<t;r++){o=o.catch(e)}return o};t.retry=retry},91178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const o=5*60;const r=5*60;const n="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=o+Math.floor(Math.random()*r);const a=new Date(Date.now()+i*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+n);const c=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...c?{originalExpiration:c}:{},expiration:a}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},41206:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const r=o(50251);const n=o(7020);const s=o(3736);const i=o(18438);const a=o(21695);const c=o(97824);const getInstanceMetadataEndpoint=async()=>(0,n.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,r.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,r.loadConfig)(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return s.Endpoint.IPv4;case a.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},54620:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const r=o(8473);const staticStabilityProvider=(e,t={})=>{const o=(t===null||t===void 0?void 0:t.logger)||console;let n;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,r.getExtendedInstanceMetadataCredentials)(t,o)}}catch(e){if(n){o.warn("Credential renew failed: ",e);t=(0,r.getExtendedInstanceMetadataCredentials)(n,o)}else{throw e}}n=t;return t}};t.staticStabilityProvider=staticStabilityProvider},60160:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const r=o(60355);const n=o(73857);const s=o(72040);const i=o(59419);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>(0,r.memoize)((0,r.chain)((0,n.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},73857:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const r=o(60355);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},72040:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const r=o(60355);const n=o(29738);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,n.getProfileName)(o);const{configFile:i,credentialsFile:a}=await(0,n.loadSharedConfigFiles)(o);const c=a[s]||{};const l=i[s]||{};const u=t==="config"?{...c,...l}:{...l,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},59419:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(60355);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,r.fromStatic)(e);t.fromStatic=fromStatic},50251:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(60160),t)},12941:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(33342);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},33342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},93627:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(33342);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},35162:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(33342);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},16412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},60355:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(12941),t);r.__exportStar(o(33342),t);r.__exportStar(o(93627),t);r.__exportStar(o(35162),t);r.__exportStar(o(16412),t);r.__exportStar(o(30715),t)},30715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},81599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,r=null]=o.split("=");e=decodeURIComponent(e);if(r){r=decodeURIComponent(r)}if(!(e in t)){t[e]=r}else if(Array.isArray(t[e])){t[e].push(r)}else{t[e]=[t[e],r]}}}return t}t.parseQueryString=parseQueryString},37639:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(85641);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},2061:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(85641);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},85641:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},52532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},6577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},68990:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(85641);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},55987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(68990);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},29473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},29738:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(85641),t);r.__exportStar(o(6577),t);r.__exportStar(o(68990),t);r.__exportStar(o(55987),t);r.__exportStar(o(27941),t);r.__exportStar(o(82683),t);r.__exportStar(o(33720),t);r.__exportStar(o(43646),t)},27941:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(37639);const n=o(2061);const s=o(52532);const i=o(68051);const a=o(39366);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},82683:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(37639);const n=o(29473);const s=o(68051);const i=o(39366);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},68051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},33720:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(27941);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},39366:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},43646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7020:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const r=o(81599);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:n,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,r.parseQueryString)(a)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:n,query:c}};t.parseUrl=parseUrl},55442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const r=o(89873);const n=o(95653);const fromIni=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);return(0,n.resolveProfileData)((0,r.getProfileName)(e),t,e)};t.fromIni=fromIni},74203:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(55442),t)},60853:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const r=o(50828);const n=o(89873);const s=o(82458);const i=o(95653);const isAssumeRoleProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(e)||isAssumeRoleWithProviderProfile(e));t.isAssumeRoleProfile=isAssumeRoleProfile;const isAssumeRoleWithSourceProfile=e=>typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";const isAssumeRoleWithProviderProfile=e=>typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";const resolveAssumeRoleCredentials=async(e,t,o,a={})=>{const c=t[e];if(!o.roleAssumer){throw new r.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,false)}const{source_profile:l}=c;if(l&&l in a){throw new r.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${(0,n.getProfileName)(o)}. Profiles visited: `+Object.keys(a).join(", "),false)}const u=l?(0,i.resolveProfileData)(l,t,o,{...a,[l]:true}):(0,s.resolveCredentialSource)(c.credential_source,e)();const d={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id};const{mfa_serial:p}=c;if(p){if(!o.mfaCodeProvider){throw new r.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}d.SerialNumber=p;d.TokenCode=await o.mfaCodeProvider(p)}const f=await u;return o.roleAssumer(f,d)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},82458:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const r=o(15972);const n=o(25898);const s=o(50828);const resolveCredentialSource=(e,t)=>{const o={EcsContainer:n.fromContainerMetadata,Ec2InstanceMetadata:n.fromInstanceMetadata,Environment:r.fromEnv};if(e in o){return o[e]()}else{throw new s.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},95653:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const r=o(50828);const n=o(60853);const s=o(59867);const i=o(33071);const a=o(58342);const resolveProfileData=async(e,t,o,c={})=>{const l=t[e];if(Object.keys(c).length>0&&(0,i.isStaticCredsProfile)(l)){return(0,i.resolveStaticCredentials)(l)}if((0,n.isAssumeRoleProfile)(l)){return(0,n.resolveAssumeRoleCredentials)(e,t,o,c)}if((0,i.isStaticCredsProfile)(l)){return(0,i.resolveStaticCredentials)(l)}if((0,a.isWebIdentityProfile)(l)){return(0,a.resolveWebIdentityCredentials)(l,o)}if((0,s.isSsoProfile)(l)){return(0,s.resolveSsoCredentials)(l)}throw new r.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},59867:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const r=o(26414);var n=o(26414);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return n.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:n,sso_role_name:s}=(0,r.validateSsoProfile)(e);return(0,r.fromSSO)({ssoStartUrl:t,ssoAccountId:o,ssoRegion:n,ssoRoleName:s})()};t.resolveSsoCredentials=resolveSsoCredentials},33071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStaticCredentials=t.isStaticCredsProfile=void 0;const isStaticCredsProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;t.isStaticCredsProfile=isStaticCredsProfile;const resolveStaticCredentials=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});t.resolveStaticCredentials=resolveStaticCredentials},58342:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const r=o(15646);const isWebIdentityProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;t.isWebIdentityProfile=isWebIdentityProfile;const resolveWebIdentityCredentials=async(e,t)=>(0,r.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},68971:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(4078);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},4078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},79977:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(4078);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},31583:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(4078);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},69049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},50828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(68971),t);r.__exportStar(o(4078),t);r.__exportStar(o(79977),t);r.__exportStar(o(31583),t);r.__exportStar(o(69049),t);r.__exportStar(o(39362),t)},39362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},76058:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(34388);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},69594:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(34388);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},34388:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},85430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},31024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},23955:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(34388);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},81834:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(23955);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},76540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},89873:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(34388),t);r.__exportStar(o(31024),t);r.__exportStar(o(23955),t);r.__exportStar(o(81834),t);r.__exportStar(o(53932),t);r.__exportStar(o(87172),t);r.__exportStar(o(96513),t);r.__exportStar(o(941),t)},53932:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(76058);const n=o(69594);const s=o(85430);const i=o(26842);const a=o(87474);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},87172:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(76058);const n=o(76540);const s=o(26842);const i=o(87474);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},26842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},96513:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(53932);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},87474:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},941:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15560:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const r=o(15972);const n=o(74203);const s=o(89969);const i=o(26414);const a=o(15646);const c=o(7661);const l=o(36433);const u=o(50626);const defaultProvider=(e={})=>(0,c.memoize)((0,c.chain)(...e.profile||process.env[l.ENV_PROFILE]?[]:[(0,r.fromEnv)()],(0,i.fromSSO)(e),(0,n.fromIni)(e),(0,s.fromProcess)(e),(0,a.fromTokenFile)(e),(0,u.remoteProvider)(e),(async()=>{throw new c.CredentialsProviderError("Could not load credentials from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.defaultProvider=defaultProvider},75531:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(15560),t)},50626:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const r=o(25898);const n=o(7661);t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";const remoteProvider=e=>{if(process.env[r.ENV_CMDS_RELATIVE_URI]||process.env[r.ENV_CMDS_FULL_URI]){return(0,r.fromContainerMetadata)(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new n.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return(0,r.fromInstanceMetadata)(e)};t.remoteProvider=remoteProvider},18927:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(33121);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},33121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},97359:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(33121);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},3539:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(33121);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},56402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},7661:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(18927),t);r.__exportStar(o(33121),t);r.__exportStar(o(97359),t);r.__exportStar(o(3539),t);r.__exportStar(o(56402),t);r.__exportStar(o(11632),t)},11632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},86390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(50687);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},45217:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(50687);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},50687:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},11628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},25734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},61120:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(50687);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},3865:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(61120);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},9679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},36433:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(50687),t);r.__exportStar(o(25734),t);r.__exportStar(o(61120),t);r.__exportStar(o(3865),t);r.__exportStar(o(24304),t);r.__exportStar(o(76947),t);r.__exportStar(o(38171),t);r.__exportStar(o(2963),t)},24304:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(86390);const n=o(45217);const s=o(11628);const i=o(55005);const a=o(69142);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},76947:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(86390);const n=o(9679);const s=o(55005);const i=o(69142);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},55005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},38171:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(24304);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},69142:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},2963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},72650:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const r=o(54651);const n=o(74926);const fromProcess=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);return(0,n.resolveProcessCredentials)((0,r.getProfileName)(e),t)};t.fromProcess=fromProcess},41104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValidatedProcessCredentials=void 0;const getValidatedProcessCredentials=(e,t)=>{if(t.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(t.AccessKeyId===undefined||t.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(t.Expiration){const o=new Date;const r=new Date(t.Expiration);if(r<o){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};t.getValidatedProcessCredentials=getValidatedProcessCredentials},89969:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(72650),t)},74926:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const r=o(32008);const n=o(32081);const s=o(73837);const i=o(41104);const resolveProcessCredentials=async(e,t)=>{const o=t[e];if(t[e]){const t=o["credential_process"];if(t!==undefined){const o=(0,s.promisify)(n.exec);try{const{stdout:r}=await o(t);let n;try{n=JSON.parse(r.trim())}catch(t){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,i.getValidatedProcessCredentials)(e,n)}catch(e){throw new r.CredentialsProviderError(e.message)}}else{throw new r.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}}else{throw new r.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)}};t.resolveProcessCredentials=resolveProcessCredentials},92657:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(62634);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},62634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},59554:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(62634);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},14556:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(62634);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},41048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},32008:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(92657),t);r.__exportStar(o(62634),t);r.__exportStar(o(59554),t);r.__exportStar(o(14556),t);r.__exportStar(o(41048),t);r.__exportStar(o(51298),t)},51298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},72824:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(10729);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},58360:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(10729);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},10729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},16662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},70489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},27645:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(10729);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},88360:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(27645);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},70288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},54651:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(10729),t);r.__exportStar(o(70489),t);r.__exportStar(o(27645),t);r.__exportStar(o(88360),t);r.__exportStar(o(45771),t);r.__exportStar(o(24099),t);r.__exportStar(o(49733),t);r.__exportStar(o(98198),t)},45771:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(72824);const n=o(58360);const s=o(16662);const i=o(34389);const a=o(496);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},24099:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(72824);const n=o(70288);const s=o(34389);const i=o(496);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},34389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},49733:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(45771);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},496:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},98198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},35959:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const r=o(75833);const n=o(61442);const s=o(32572);const i=o(94729);const a=o(48098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u}=e;if(!t&&!o&&!c&&!l){const t=await(0,n.parseKnownFiles)(e);const o=(0,n.getProfileName)(e);const c=t[o];if(!(0,s.isSsoProfile)(c)){throw new r.CredentialsProviderError(`Profile ${o} is not configured with SSO credentials.`)}const{sso_start_url:l,sso_account_id:d,sso_region:p,sso_role_name:f}=(0,a.validateSsoProfile)(c);return(0,i.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:d,ssoRegion:p,ssoRoleName:f,ssoClient:u})}else if(!t||!o||!c||!l){throw new r.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",'+' "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return(0,i.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u})}};t.fromSSO=fromSSO},26414:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(35959),t);r.__exportStar(o(32572),t);r.__exportStar(o(86623),t);r.__exportStar(o(48098),t)},32572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSsoProfile=void 0;const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");t.isSsoProfile=isSsoProfile},94729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const r=o(82666);const n=o(75833);const s=o(61442);const i=15*60*1e3;const a=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:o,ssoRoleName:c,ssoClient:l})=>{let u;const d=`To refresh this SSO session run aws sso login with the corresponding profile.`;try{u=await(0,s.getSSOTokenFromFile)(e)}catch(e){throw new n.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${d}`,a)}if(new Date(u.expiresAt).getTime()-Date.now()<=i){throw new n.CredentialsProviderError(`The SSO session associated with this profile has expired. ${d}`,a)}const{accessToken:p}=u;const f=l||new r.SSOClient({region:o});let m;try{m=await f.send(new r.GetRoleCredentialsCommand({accountId:t,roleName:c,accessToken:p}))}catch(e){throw n.CredentialsProviderError.from(e,a)}const{roleCredentials:{accessKeyId:g,secretAccessKey:y,sessionToken:h,expiration:E}={}}=m;if(!g||!y||!h||!E){throw new n.CredentialsProviderError("SSO returns an invalid temporary credential.",a)}return{accessKeyId:g,secretAccessKey:y,sessionToken:h,expiration:new Date(E)}};t.resolveSSOCredentials=resolveSSOCredentials},86623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const r=o(75833);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:n,sso_role_name:s}=e;if(!t||!o||!n||!s){throw new r.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", `+`"sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,false)}return e};t.validateSsoProfile=validateSsoProfile},19777:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(76620);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},76620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},14077:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(76620);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},6993:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(76620);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},55351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},75833:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(19777),t);r.__exportStar(o(76620),t);r.__exportStar(o(14077),t);r.__exportStar(o(6993),t);r.__exportStar(o(55351),t);r.__exportStar(o(26910),t)},26910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},450:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(33119);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},88806:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(33119);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},33119:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},56352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},7914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},44740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(33119);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},5024:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(44740);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},73380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},61442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(33119),t);r.__exportStar(o(7914),t);r.__exportStar(o(44740),t);r.__exportStar(o(5024),t);r.__exportStar(o(88121),t);r.__exportStar(o(32674),t);r.__exportStar(o(40865),t);r.__exportStar(o(94821),t)},88121:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(450);const n=o(88806);const s=o(56352);const i=o(51334);const a=o(5882);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},32674:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(450);const n=o(73380);const s=o(51334);const i=o(5882);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},51334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},40865:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(88121);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},5882:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},94821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},35614:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const r=o(71079);const n=o(57147);const s=o(47905);const i="AWS_WEB_IDENTITY_TOKEN_FILE";const a="AWS_ROLE_ARN";const c="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>resolveTokenFile(e);t.fromTokenFile=fromTokenFile;const resolveTokenFile=e=>{var t,o,l;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[i];const d=(o=e===null||e===void 0?void 0:e.roleArn)!==null&&o!==void 0?o:process.env[a];const p=(l=e===null||e===void 0?void 0:e.roleSessionName)!==null&&l!==void 0?l:process.env[c];if(!u||!d){throw new r.CredentialsProviderError("Web identity configuration not specified")}return(0,s.fromWebToken)({...e,webIdentityToken:(0,n.readFileSync)(u,{encoding:"ascii"}),roleArn:d,roleSessionName:p})()}},47905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const r=o(71079);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:o,webIdentityToken:n,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l){throw new r.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return l({RoleArn:t,RoleSessionName:o!==null&&o!==void 0?o:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};t.fromWebToken=fromWebToken},15646:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(35614),t);r.__exportStar(o(47905),t)},51070:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(20178);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},20178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},66373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(20178);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},49421:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(20178);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},36413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},71079:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(51070),t);r.__exportStar(o(20178),t);r.__exportStar(o(66373),t);r.__exportStar(o(49421),t);r.__exportStar(o(36413),t);r.__exportStar(o(78763),t)},78763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},97442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const r=o(34816);const n=o(14300);const s=o(6113);class Hash{constructor(e,t){this.hash=t?(0,s.createHmac)(e,castSourceData(t)):(0,s.createHash)(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(n.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,r.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,r.fromArrayBuffer)(e)}},76250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},34816:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const r=o(76250);const n=o(14300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!(0,r.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return n.Buffer.from(e,t,o)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?n.Buffer.from(e,t):n.Buffer.from(e)};t.fromString=fromString},69126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},42245:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const r=o(70223);const n="content-length";function contentLengthMiddleware(e){return t=>async o=>{const s=o.request;if(r.HttpRequest.isInstance(s)){const{body:t,headers:o}=s;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(n)===-1){try{const o=e(t);s.headers={...s.headers,[n]:String(o)}}catch(e){}}}return t({...o,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:o=>{o.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},53504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigValueProvider=void 0;const createConfigValueProvider=(e,t,o)=>{const configProvider=async()=>{var r;const n=(r=o[e])!==null&&r!==void 0?r:o[t];if(typeof n==="function"){return n()}return n};if(e==="endpoint"||t==="endpoint"){return async()=>{const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:o,port:r,path:n}=e;return`${t}//${o}${r?":"+r:""}${n}`}}return e}}return configProvider};t.createConfigValueProvider=createConfigValueProvider},62419:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveParams=t.getEndpointFromInstructions=void 0;const r=o(3589);const n=o(53504);const getEndpointFromInstructions=async(e,o,r,n)=>{const s=await(0,t.resolveParams)(e,o,r);if(typeof r.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const i=r.endpointProvider(s,n);return i};t.getEndpointFromInstructions=getEndpointFromInstructions;const resolveParams=async(e,t,o)=>{var s;const i={};const a=((s=t===null||t===void 0?void 0:t.getEndpointParameterInstructions)===null||s===void 0?void 0:s.call(t))||{};for(const[t,r]of Object.entries(a)){switch(r.type){case"staticContextParams":i[t]=r.value;break;case"contextParams":i[t]=e[r.name];break;case"clientContextParams":case"builtInParams":i[t]=await(0,n.createConfigValueProvider)(r.name,t,o)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(r))}}if(Object.keys(a).length===0){Object.assign(i,o)}if(String(o.serviceId).toLowerCase()==="s3"){await(0,r.resolveParamsForS3)(i)}return i};t.resolveParams=resolveParams},50197:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(62419),t);r.__exportStar(o(98289),t)},98289:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toEndpointV1=void 0;const r=o(2992);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return(0,r.parseUrl)(e.url)}return e}return(0,r.parseUrl)(e)};t.toEndpointV1=toEndpointV1},72639:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.endpointMiddleware=void 0;const r=o(62419);const endpointMiddleware=({config:e,instructions:t})=>(o,n)=>async s=>{var i,a;const c=await(0,r.getEndpointFromInstructions)(s.input,{getEndpointParameterInstructions(){return t}},{...e},n);n.endpointV2=c;n.authSchemes=(i=c.properties)===null||i===void 0?void 0:i.authSchemes;const l=(a=n.authSchemes)===null||a===void 0?void 0:a[0];if(l){n["signing_region"]=l.signingRegion;n["signing_service"]=l.signingName}return o({...s})};t.endpointMiddleware=endpointMiddleware},37981:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointPlugin=t.endpointMiddlewareOptions=void 0;const r=o(93631);const n=o(72639);t.endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:r.serializerMiddlewareOption.name};const getEndpointPlugin=(e,o)=>({applyToStack:r=>{r.addRelativeTo((0,n.endpointMiddleware)({config:e,instructions:o}),t.endpointMiddlewareOptions)}});t.getEndpointPlugin=getEndpointPlugin},5497:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(50197),t);r.__exportStar(o(72639),t);r.__exportStar(o(37981),t);r.__exportStar(o(13157),t);r.__exportStar(o(32521),t)},13157:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointConfig=void 0;const r=o(10236);const n=o(98289);const resolveEndpointConfig=e=>{var t,o,s;const i=(t=e.tls)!==null&&t!==void 0?t:true;const{endpoint:a}=e;const c=a!=null?async()=>(0,n.toEndpointV1)(await(0,r.normalizeProvider)(a)()):undefined;const l=!!a;return{...e,endpoint:c,tls:i,isCustomEndpoint:l,useDualstackEndpoint:(0,r.normalizeProvider)((o=e.useDualstackEndpoint)!==null&&o!==void 0?o:false),useFipsEndpoint:(0,r.normalizeProvider)((s=e.useFipsEndpoint)!==null&&s!==void 0?s:false)}};t.resolveEndpointConfig=resolveEndpointConfig},3589:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(18648),t)},18648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArnBucketName=t.isDnsCompatibleBucketName=t.S3_HOSTNAME_PATTERN=t.DOT_PATTERN=t.resolveParamsForS3=void 0;const resolveParamsForS3=async e=>{const o=(e===null||e===void 0?void 0:e.Bucket)||"";if(typeof e.Bucket==="string"){e.Bucket=o.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if((0,t.isArnBucketName)(o)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!(0,t.isDnsCompatibleBucketName)(o)||o.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||o.toLowerCase()!==o||o.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};t.resolveParamsForS3=resolveParamsForS3;const o=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const r=/(\d+\.){3}\d+/;const n=/\.\./;t.DOT_PATTERN=/\./;t.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;const isDnsCompatibleBucketName=e=>o.test(e)&&!r.test(e)&&!n.test(e);t.isDnsCompatibleBucketName=isDnsCompatibleBucketName;const isArnBucketName=e=>{const[t,o,r,n,s,i]=e.split(":");const a=t==="arn"&&e.split(":").length>=6;const c=[t,o,r,s,i].filter(Boolean).length===5;if(a&&!c){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return t==="arn"&&!!o&&!!r&&!!s&&!!i};t.isArnBucketName=isArnBucketName},32521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},22545:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const r=o(70223);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async o=>{if(!r.HttpRequest.isInstance(o.request))return t(o);const{request:n}=o;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"]){delete n.headers["host"];n.headers[":authority"]=""}else if(!n.headers["host"]){n.headers["host"]=n.hostname}return t(o)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:o=>{o.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},20014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(9754),t)},9754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async o=>{const r=await e(o);const{clientName:n,commandName:s,logger:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,dynamoDbDocumentClientOptions:l={}}=t;const{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:d}=l;if(!i){return r}if(typeof i.info==="function"){const{$metadata:e,...t}=r.output;i.info({clientName:n,commandName:s,input:(u!==null&&u!==void 0?u:a)(o.input),output:(d!==null&&d!==void 0?d:c)(t),metadata:e})}return r};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},85525:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const r=o(70223);const n="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async o=>{const{request:a}=o;if(!r.HttpRequest.isInstance(a)||e.runtime!=="node"||a.headers.hasOwnProperty(n)){return t(o)}const c=process.env[s];const l=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(l)){a.headers[n]=l}return t({...o,request:a})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:o=>{o.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},47328:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const r=o(99395);const n=o(533);class AdaptiveRetryStrategy extends n.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...n}=t!==null&&t!==void 0?t:{};super(e,n);this.rateLimiter=o!==null&&o!==void 0?o:new r.DefaultRateLimiter;this.mode=r.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},533:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const r=o(70223);const n=o(61921);const s=o(99395);const i=o(75840);const a=o(12568);const c=o(55940);const l=o(19572);const u=o(17154);class StandardRetryStrategy{constructor(e,t){var o,r,n;this.maxAttemptsProvider=e;this.mode=s.RETRY_MODES.STANDARD;this.retryDecider=(o=t===null||t===void 0?void 0:t.retryDecider)!==null&&o!==void 0?o:l.defaultRetryDecider;this.delayDecider=(r=t===null||t===void 0?void 0:t.delayDecider)!==null&&r!==void 0?r:c.defaultDelayDecider;this.retryQuota=(n=t===null||t===void 0?void 0:t.retryQuota)!==null&&n!==void 0?n:(0,a.getDefaultRetryQuota)(s.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=s.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,o){let a;let c=0;let l=0;const d=await this.getMaxAttempts();const{request:p}=t;if(r.HttpRequest.isInstance(p)){p.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(r.HttpRequest.isInstance(p)){p.headers[s.REQUEST_HEADER]=`attempt=${c+1}; max=${d}`}if(o===null||o===void 0?void 0:o.beforeRequest){await o.beforeRequest()}const{response:n,output:i}=await e(t);if(o===null||o===void 0?void 0:o.afterRequest){o.afterRequest(n)}this.retryQuota.releaseRetryTokens(a);i.$metadata.attempts=c+1;i.$metadata.totalRetryDelay=l;return{response:n,output:i}}catch(e){const t=(0,u.asSdkError)(e);c++;if(this.shouldRetry(t,c,d)){a=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,n.isThrottlingError)(t)?s.THROTTLING_RETRY_DELAY_BASE:s.DEFAULT_RETRY_DELAY_BASE,c);const o=getDelayFromRetryAfterHeader(t.$response);const r=Math.max(o||0,e);l+=r;await new Promise((e=>setTimeout(e,r)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!r.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const n=Number(o);if(!Number.isNaN(n))return n*1e3;const s=new Date(o);return s.getTime()-Date.now()}},76160:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const r=o(10236);const n=o(99395);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const o=e[t.ENV_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},configFileSelector:e=>{const o=e[t.CONFIG_MAX_ATTEMPTS];if(!o)return undefined;const r=parseInt(o);if(Number.isNaN(r)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return r},default:n.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const{retryStrategy:o}=e;const s=(0,r.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:n.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:s,retryStrategy:async()=>{if(o){return o}const t=await(0,r.normalizeProvider)(e.retryMode)();if(t===n.RETRY_MODES.ADAPTIVE){return new n.AdaptiveRetryStrategy(s)}return new n.StandardRetryStrategy(s)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:n.DEFAULT_RETRY_MODE}},12568:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const r=o(99395);const getDefaultRetryQuota=(e,t)=>{var o,n,s;const i=e;const a=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:r.NO_RETRY_INCREMENT;const c=(n=t===null||t===void 0?void 0:t.retryCost)!==null&&n!==void 0?n:r.RETRY_COST;const l=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:r.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l:c;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:a;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},55940:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const r=o(99395);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},96064:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(47328),t);r.__exportStar(o(533),t);r.__exportStar(o(76160),t);r.__exportStar(o(55940),t);r.__exportStar(o(43521),t);r.__exportStar(o(19572),t);r.__exportStar(o(11806),t)},43521:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const r=o(70223);const n=o(99395);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(r.HttpRequest.isInstance(o)){delete o.headers[n.INVOCATION_ID_HEADER];delete o.headers[n.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},19572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const r=o(61921);const defaultRetryDecider=e=>{if(!e){return false}return(0,r.isRetryableByTrait)(e)||(0,r.isClockSkewError)(e)||(0,r.isThrottlingError)(e)||(0,r.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},11806:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryAfterHint=t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const r=o(70223);const n=o(61921);const s=o(99395);const i=o(75840);const a=o(17154);const retryMiddleware=e=>(t,o)=>async n=>{let c=await e.retryStrategy();const l=await e.maxAttempts();if(isRetryStrategyV2(c)){c=c;let e=await c.acquireInitialRetryToken(o["partition_id"]);let u=new Error;let d=0;let p=0;const{request:f}=n;if(r.HttpRequest.isInstance(f)){f.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(r.HttpRequest.isInstance(f)){f.headers[s.REQUEST_HEADER]=`attempt=${d+1}; max=${l}`}const{response:o,output:i}=await t(n);c.recordSuccess(e);i.$metadata.attempts=d+1;i.$metadata.totalRetryDelay=p;return{response:o,output:i}}catch(t){const o=getRetyErrorInto(t);u=(0,a.asSdkError)(t);try{e=await c.refreshRetryTokenForRetry(e,o)}catch(e){if(!u.$metadata){u.$metadata={}}u.$metadata.attempts=d+1;u.$metadata.totalRetryDelay=p;throw u}d=e.getRetryCount();const r=e.getRetryDelay();p+=r;await new Promise((e=>setTimeout(e,r)))}}}else{c=c;if(c===null||c===void 0?void 0:c.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",c.mode]];return c.retry(t,n)}};t.retryMiddleware=retryMiddleware;const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetyErrorInto=e=>{const o={errorType:getRetryErrorType(e)};const r=(0,t.getRetryAfterHint)(e.$response);if(r){o.retryAfterHint=r}return o};const getRetryErrorType=e=>{if((0,n.isThrottlingError)(e))return"THROTTLING";if((0,n.isTransientError)(e))return"TRANSIENT";if((0,n.isServerError)(e))return"SERVER_ERROR";return"CLIENT_ERROR"};t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin;const getRetryAfterHint=e=>{if(!r.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const n=Number(o);if(!Number.isNaN(n))return new Date(n*1e3);const s=new Date(o);return s};t.getRetryAfterHint=getRetryAfterHint},17154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asSdkError=void 0;const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};t.asSdkError=asSdkError},55959:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const r=o(14935);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>(0,r.resolveAwsAuthConfig)({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},65648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(o,r)=>async r=>{const{response:n}=await o(r);try{const o=await t(n,e);return{response:n,output:o}}catch(e){Object.defineProperty(e,"$response",{value:n});throw e}};t.deserializerMiddleware=deserializerMiddleware},93631:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(65648),t);r.__exportStar(o(99328),t);r.__exportStar(o(19511),t)},99328:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const r=o(65648);const n=o(19511);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,s){return{applyToStack:i=>{i.add((0,r.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,n.serializerMiddleware)(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},19511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,r)=>async n=>{var s;const i=((s=r.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const a=await t(n.input,{...e,endpoint:i});return o({...n,request:a})};t.serializerMiddleware=serializerMiddleware},63061:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const r=o(46854);const n=o(96305);const s=o(87730);const i=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else if(e.regionInfoProvider){a=()=>(0,s.normalizeProvider)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([r,s])=>{const{signingRegion:a,signingService:c}=r;e.signingRegion=e.signingRegion||a||s;e.signingName=e.signingName||c||e.serviceId;const l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||n.SignatureV4;return new u(l)}))}else{a=async r=>{if(!r){throw new Error("Unexpected empty auth scheme config")}const s=r.signingScope;const a=r.signingName;e.signingRegion=e.signingRegion||s;e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const l=e.signerConstructor||n.SignatureV4;return new l(c)}}return{...e,systemClockOffset:r,signingEscapePath:o,credentials:t,signer:a}};t.resolveAwsAuthConfig=resolveAwsAuthConfig;const resolveSigV4AuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else{a=(0,s.normalizeProvider)(new n.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:o}))}return{...e,systemClockOffset:r,signingEscapePath:o,credentials:t,signer:a}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeCredentialProvider=e=>{if(typeof e==="function"){return(0,r.memoize)(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return(0,s.normalizeProvider)(e)}},14935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(63061),t);r.__exportStar(o(42509),t)},42509:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const r=o(81398);const n=o(68253);const s=o(35863);const awsAuthMiddleware=e=>(t,o)=>async function(i){var a,c,l;if(!r.HttpRequest.isInstance(i.request))return t(i);const u=(l=(c=(a=o.endpointV2)===null||a===void 0?void 0:a.properties)===null||c===void 0?void 0:c.authSchemes)===null||l===void 0?void 0:l[0];const d=await e.signer(u);const p=await t({...i,request:await d.sign(i.request,{signingDate:(0,n.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:o["signing_region"],signingService:o["signing_service"]})}).catch((t=>{var o;const r=(o=t.ServerTime)!==null&&o!==void 0?o:getDateHeader(t.$response);if(r){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(r,e.systemClockOffset)}throw t}));const f=getDateHeader(p.response);if(f){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(f,e.systemClockOffset)}return p};t.awsAuthMiddleware=awsAuthMiddleware;const getDateHeader=e=>{var t,o,n;return r.HttpResponse.isInstance(e)?(o=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&o!==void 0?o:(n=e.headers)===null||n===void 0?void 0:n.Date:undefined};t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:true};const getAwsAuthPlugin=e=>({applyToStack:o=>{o.addRelativeTo((0,t.awsAuthMiddleware)(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},68253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSkewCorrectedDate=void 0;const getSkewCorrectedDate=e=>new Date(Date.now()+e);t.getSkewCorrectedDate=getSkewCorrectedDate},35863:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const r=o(85301);const getUpdatedSystemClockOffset=(e,t)=>{const o=Date.parse(e);if((0,r.isClockSkewed)(o,t)){return o-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},85301:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const r=o(68253);const isClockSkewed=(e,t)=>Math.abs((0,r.getSkewCorrectedDate)(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},52014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(80978);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},80978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},39050:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(80978);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},20088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(80978);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},68714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},46854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(52014),t);r.__exportStar(o(80978),t);r.__exportStar(o(39050),t);r.__exportStar(o(20088),t);r.__exportStar(o(68714),t);r.__exportStar(o(59917),t)},59917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},7737:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},67462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{})}},75529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},81398:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(7737),t);r.__exportStar(o(67462),t);r.__exportStar(o(75529),t);r.__exportStar(o(18257),t)},18257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},70966:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const r=o(34380);const n=o(87730);const s=o(89258);const i=o(11674);const a=o(6580);const c=o(73351);const l=o(55390);const u=o(58355);const d=o(2100);const p=o(76387);const f=o(88856);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:o,service:r,sha256:s,uriEscapePath:i=true}){this.service=r;this.sha256=s;this.uriEscapePath=i;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=(0,n.normalizeProvider)(o);this.credentialProvider=(0,n.normalizeProvider)(t)}async presign(e,t={}){const{signingDate:o=new Date,expiresIn:r=3600,unsignableHeaders:n,unhoistableHeaders:c,signableHeaders:u,signingRegion:f,signingService:m}=t;const g=await this.credentialProvider();this.validateResolvedCredentials(g);const y=f!==null&&f!==void 0?f:await this.regionProvider();const{longDate:h,shortDate:E}=formatDate(o);if(r>s.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const v=(0,i.createScope)(E,y,m!==null&&m!==void 0?m:this.service);const _=(0,d.moveHeadersToQuery)((0,p.prepareRequest)(e),{unhoistableHeaders:c});if(g.sessionToken){_.query[s.TOKEN_QUERY_PARAM]=g.sessionToken}_.query[s.ALGORITHM_QUERY_PARAM]=s.ALGORITHM_IDENTIFIER;_.query[s.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${v}`;_.query[s.AMZ_DATE_QUERY_PARAM]=h;_.query[s.EXPIRES_QUERY_PARAM]=r.toString(10);const S=(0,a.getCanonicalHeaders)(_,n,u);_.query[s.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(S);_.query[s.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,v,this.getSigningKey(g,y,E,m),this.createCanonicalRequest(_,S,await(0,l.getPayloadHash)(e,this.sha256)));return _}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:o=new Date,priorSignature:n,signingRegion:a,signingService:c}){const u=a!==null&&a!==void 0?a:await this.regionProvider();const{shortDate:d,longDate:p}=formatDate(o);const f=(0,i.createScope)(d,u,c!==null&&c!==void 0?c:this.service);const m=await(0,l.getPayloadHash)({headers:{},body:t},this.sha256);const g=new this.sha256;g.update(e);const y=(0,r.toHex)(await g.digest());const h=[s.EVENT_ALGORITHM_IDENTIFIER,p,f,n,y,m].join("\n");return this.signString(h,{signingDate:o,signingRegion:u,signingService:c})}async signString(e,{signingDate:t=new Date,signingRegion:o,signingService:n}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const i=o!==null&&o!==void 0?o:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(s,i,a,n));c.update(e);return(0,r.toHex)(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:o,unsignableHeaders:r,signingRegion:n,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const f=n!==null&&n!==void 0?n:await this.regionProvider();const m=(0,p.prepareRequest)(e);const{longDate:g,shortDate:y}=formatDate(t);const h=(0,i.createScope)(y,f,c!==null&&c!==void 0?c:this.service);m.headers[s.AMZ_DATE_HEADER]=g;if(d.sessionToken){m.headers[s.TOKEN_HEADER]=d.sessionToken}const E=await(0,l.getPayloadHash)(m,this.sha256);if(!(0,u.hasHeader)(s.SHA256_HEADER,m.headers)&&this.applyChecksum){m.headers[s.SHA256_HEADER]=E}const v=(0,a.getCanonicalHeaders)(m,r,o);const _=await this.getSignature(g,h,this.getSigningKey(d,f,y,c),this.createCanonicalRequest(m,v,E));m.headers[s.AUTH_HEADER]=`${s.ALGORITHM_IDENTIFIER} `+`Credential=${d.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(v)}, `+`Signature=${_}`;return m}createCanonicalRequest(e,t,o){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,c.getCanonicalQuery)(e)}\n${r.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${r.join(";")}\n${o}`}async createStringToSign(e,t,o){const n=new this.sha256;n.update(o);const i=await n.digest();return`${s.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${(0,r.toHex)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const o of e.split("/")){if((o===null||o===void 0?void 0:o.length)===0)continue;if(o===".")continue;if(o===".."){t.pop()}else{t.push(o)}}const o=`${(e===null||e===void 0?void 0:e.startsWith("/"))?"/":""}${t.join("/")}${t.length>0&&(e===null||e===void 0?void 0:e.endsWith("/"))?"/":""}`;const r=encodeURIComponent(o);return r.replace(/%2F/g,"/")}return e}async getSignature(e,t,o,n){const s=await this.createStringToSign(e,t,n);const i=new this.sha256(await o);i.update(s);return(0,r.toHex)(await i.digest())}getSigningKey(e,t,o,r){return(0,i.getSigningKey)(this.sha256,e,o,t,r||this.service)}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=(0,f.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},17618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneQuery=t.cloneRequest=void 0;const cloneRequest=({headers:e,query:o,...r})=>({...r,headers:{...e},query:o?(0,t.cloneQuery)(o):undefined});t.cloneRequest=cloneRequest;const cloneQuery=e=>Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{});t.cloneQuery=cloneQuery},89258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MAX_PRESIGNED_TTL=t.KEY_TYPE_IDENTIFIER=t.MAX_CACHE_SIZE=t.UNSIGNED_PAYLOAD=t.EVENT_ALGORITHM_IDENTIFIER=t.ALGORITHM_IDENTIFIER_V4A=t.ALGORITHM_IDENTIFIER=t.UNSIGNABLE_PATTERNS=t.SEC_HEADER_PATTERN=t.PROXY_HEADER_PATTERN=t.ALWAYS_UNSIGNABLE_HEADERS=t.HOST_HEADER=t.TOKEN_HEADER=t.SHA256_HEADER=t.SIGNATURE_HEADER=t.GENERATED_HEADERS=t.DATE_HEADER=t.AMZ_DATE_HEADER=t.AUTH_HEADER=t.REGION_SET_PARAM=t.TOKEN_QUERY_PARAM=t.SIGNATURE_QUERY_PARAM=t.EXPIRES_QUERY_PARAM=t.SIGNED_HEADERS_QUERY_PARAM=t.AMZ_DATE_QUERY_PARAM=t.CREDENTIAL_QUERY_PARAM=t.ALGORITHM_QUERY_PARAM=void 0;t.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";t.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";t.AMZ_DATE_QUERY_PARAM="X-Amz-Date";t.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";t.EXPIRES_QUERY_PARAM="X-Amz-Expires";t.SIGNATURE_QUERY_PARAM="X-Amz-Signature";t.TOKEN_QUERY_PARAM="X-Amz-Security-Token";t.REGION_SET_PARAM="X-Amz-Region-Set";t.AUTH_HEADER="authorization";t.AMZ_DATE_HEADER=t.AMZ_DATE_QUERY_PARAM.toLowerCase();t.DATE_HEADER="date";t.GENERATED_HEADERS=[t.AUTH_HEADER,t.AMZ_DATE_HEADER,t.DATE_HEADER];t.SIGNATURE_HEADER=t.SIGNATURE_QUERY_PARAM.toLowerCase();t.SHA256_HEADER="x-amz-content-sha256";t.TOKEN_HEADER=t.TOKEN_QUERY_PARAM.toLowerCase();t.HOST_HEADER="host";t.ALWAYS_UNSIGNABLE_HEADERS={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};t.PROXY_HEADER_PATTERN=/^proxy-/;t.SEC_HEADER_PATTERN=/^sec-/;t.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];t.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";t.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";t.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";t.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";t.MAX_CACHE_SIZE=50;t.KEY_TYPE_IDENTIFIER="aws4_request";t.MAX_PRESIGNED_TTL=60*60*24*7},11674:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const r=o(34380);const n=o(89258);const s={};const i=[];const createScope=(e,t,o)=>`${e}/${t}/${o}/${n.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,o,a,c)=>{const l=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${o}:${a}:${c}:${(0,r.toHex)(l)}:${t.sessionToken}`;if(u in s){return s[u]}i.push(u);while(i.length>n.MAX_CACHE_SIZE){delete s[i.shift()]}let d=`AWS4${t.secretAccessKey}`;for(const t of[o,a,c,n.KEY_TYPE_IDENTIFIER]){d=await hmac(e,d,t)}return s[u]=d};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{i.length=0;Object.keys(s).forEach((e=>{delete s[e]}))};t.clearCredentialCache=clearCredentialCache;const hmac=(e,t,o)=>{const r=new e(t);r.update(o);return r.digest()}},6580:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const r=o(89258);const getCanonicalHeaders=({headers:e},t,o)=>{const n={};for(const s of Object.keys(e).sort()){if(e[s]==undefined){continue}const i=s.toLowerCase();if(i in r.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(i))||r.PROXY_HEADER_PATTERN.test(i)||r.SEC_HEADER_PATTERN.test(i)){if(!o||o&&!o.has(i)){continue}}n[i]=e[s].trim().replace(/\s+/g," ")}return n};t.getCanonicalHeaders=getCanonicalHeaders},73351:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const r=o(57952);const n=o(89258);const getCanonicalQuery=({query:e={}})=>{const t=[];const o={};for(const s of Object.keys(e).sort()){if(s.toLowerCase()===n.SIGNATURE_HEADER){continue}t.push(s);const i=e[s];if(typeof i==="string"){o[s]=`${(0,r.escapeUri)(s)}=${(0,r.escapeUri)(i)}`}else if(Array.isArray(i)){o[s]=i.slice(0).sort().reduce(((e,t)=>e.concat([`${(0,r.escapeUri)(s)}=${(0,r.escapeUri)(t)}`])),[]).join("&")}}return t.map((e=>o[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},55390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const r=o(69126);const n=o(34380);const s=o(89258);const getPayloadHash=async({headers:e,body:t},o)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===s.SHA256_HEADER){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||(0,r.isArrayBuffer)(t)){const e=new o;e.update(t);return(0,n.toHex)(await e.digest())}return s.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},58355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteHeader=t.getHeaderValue=t.hasHeader=void 0;const hasHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return true}}return false};t.hasHeader=hasHeader;const getHeaderValue=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return t[o]}}return undefined};t.getHeaderValue=getHeaderValue;const deleteHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){delete t[o]}}};t.deleteHeader=deleteHeader},96305:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const r=o(4351);r.__exportStar(o(70966),t);var n=o(6580);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return n.getCanonicalHeaders}});var s=o(73351);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return s.getCanonicalQuery}});var i=o(55390);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return i.getPayloadHash}});var a=o(2100);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=o(76387);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});r.__exportStar(o(11674),t)},2100:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const r=o(17618);const moveHeadersToQuery=(e,t={})=>{var o;const{headers:n,query:s={}}=typeof e.clone==="function"?e.clone():(0,r.cloneRequest)(e);for(const e of Object.keys(n)){const r=e.toLowerCase();if(r.slice(0,6)==="x-amz-"&&!((o=t.unhoistableHeaders)===null||o===void 0?void 0:o.has(r))){s[e]=n[e];delete n[e]}}return{...e,headers:n,query:s}};t.moveHeadersToQuery=moveHeadersToQuery},76387:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const r=o(17618);const n=o(89258);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():(0,r.cloneRequest)(e);for(const t of Object.keys(e.headers)){if(n.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};t.prepareRequest=prepareRequest},88856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>(0,t.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");t.iso8601=iso8601;const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};t.toDate=toDate},34380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHex=t.fromHex=void 0;const o={};const r={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}o[e]=t;r[t]=e}function fromHex(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 o=0;o<e.length;o+=2){const n=e.slice(o,o+2).toLowerCase();if(n in r){t[o/2]=r[n]}else{throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}}return t}t.fromHex=fromHex;function toHex(e){let t="";for(let r=0;r<e.byteLength;r++){t+=o[e[r]]}return t}t.toHex=toHex},87730:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(76596),t)},76596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},38399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let n=[];const s=new Set;const sort=e=>e.sort(((e,t)=>o[t.step]-o[e.step]||r[t.priority||"normal"]-r[e.priority||"normal"]));const removeByName=t=>{let o=false;const filterCb=e=>{if(e.name&&e.name===t){o=true;s.delete(t);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const removeByReference=t=>{let o=false;const filterCb=e=>{if(e.middleware===t){o=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));n.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const o=[];const r=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));n.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;r.push(t)}));r.forEach((e=>{if(e.toMiddleware){const o=s[e.toMiddleware];if(o===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){o.after.push(e)}if(e.relation==="before"){o.before.push(e)}}}));const i=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,o={})=>{const{name:r,override:n}=o;const i={step:"initialize",priority:"normal",middleware:t,...o};if(r){if(s.has(r)){if(!n)throw new Error(`Duplicate middleware name '${r}'`);const t=e.findIndex((e=>e.name===r));const o=e[t];if(o.step!==i.step||o.priority!==i.priority){throw new Error(`"${r}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(r)}e.push(i)},addRelativeTo:(e,t)=>{const{name:o,override:r}=t;const i={middleware:e,...t};if(o){if(s.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const e=n.findIndex((e=>e.name===o));const t=n[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}n.splice(e,1)}s.add(o)}n.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let o=false;const filterCb=e=>{const{tags:r,name:n}=e;if(r&&r.includes(t)){if(n)s.delete(n);o=true;return false}return true};e=e.filter(filterCb);n=n.filter(filterCb);return o},concat:e=>{const o=cloneTo((0,t.constructStack)());o.use(e);return o},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}return e}};return i};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const r={high:3,normal:2,low:1}},11461:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(38399),t)},36546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},28025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_REGEX=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},64688:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(36546),t);r.__exportStar(o(76236),t)},76236:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const r=o(70223);const n=o(28025);const userAgentMiddleware=e=>(t,o)=>async s=>{var i,a;const{request:c}=s;if(!r.HttpRequest.isInstance(c))return t(s);const{headers:l}=c;const u=((i=o===null||o===void 0?void 0:o.userAgent)===null||i===void 0?void 0:i.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const f=[...d,...u,...p].join(n.SPACE);const m=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(n.SPACE);if(e.runtime!=="browser"){if(m){l[n.X_AMZ_USER_AGENT]=l[n.X_AMZ_USER_AGENT]?`${l[n.USER_AGENT]} ${m}`:m}l[n.USER_AGENT]=f}else{l[n.X_AMZ_USER_AGENT]=f}return t({...s,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const o=e.indexOf("/");const r=e.substring(0,o);let s=e.substring(o+1);if(r==="api"){s=s.toLowerCase()}return[r,s,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(n.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},52175:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const r=o(74462);const n=o(46161);const s=o(63905);const i=o(5881);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>(0,r.memoize)((0,r.chain)((0,n.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},46161:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const r=o(74462);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},63905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const r=o(74462);const n=o(67387);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,n.getProfileName)(o);const{configFile:i,credentialsFile:a}=await(0,n.loadSharedConfigFiles)(o);const c=a[s]||{};const l=i[s]||{};const u=t==="config"?{...c,...l}:{...l,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new r.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},5881:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(74462);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,r.fromStatic)(e);t.fromStatic=fromStatic},87684:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(52175),t)},33647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},96225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const o of Object.keys(e)){const r=e[o];t[o]=Array.isArray(r)?r.join(","):r}return t};t.getTransformedHeaders=getTransformedHeaders},68805:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(2298),t);r.__exportStar(o(92533),t);r.__exportStar(o(72198),t)},2298:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const r=o(70223);const n=o(41597);const s=o(13685);const i=o(95687);const a=o(33647);const c=o(96225);const l=o(63598);const u=o(44751);const d=o(5248);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:o,httpAgent:r,httpsAgent:n}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:o,httpAgent:r||new s.Agent({keepAlive:a,maxSockets:c}),httpsAgent:n||new i.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,o,r;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(r=(o=this.config)===null||o===void 0?void 0:o.httpsAgent)===null||r===void 0?void 0:r.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((o,p)=>{if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";p(e);return}const f=e.protocol==="https:";const m=(0,n.buildQueryString)(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:m?`${e.path}?${m}`:e.path,port:e.port,agent:f?this.config.httpsAgent:this.config.httpAgent};const y=f?i.request:s.request;const h=y(g,(e=>{const t=new r.HttpResponse({statusCode:e.statusCode||-1,headers:(0,c.getTransformedHeaders)(e.headers),body:e});o({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));(0,l.setConnectionTimeout)(h,p,this.config.connectionTimeout);(0,u.setSocketTimeout)(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}(0,d.writeRequestBody)(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},92533:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const r=o(70223);const n=o(41597);const s=o(85158);const i=o(96225);const a=o(5248);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}));this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}const{requestTimeout:o,disableConcurrentStreams:c}=this.config;return new Promise(((l,u)=>{let d=false;if(t===null||t===void 0?void 0:t.aborted){d=true;const e=new Error("Request aborted");e.name="AbortError";u(e);return}const{hostname:p,method:f,port:m,protocol:g,path:y,query:h}=e;const E=`${g}//${p}${m?`:${m}`:""}`;const v=this.getSession(E,c||false);const reject=e=>{if(c){this.destroySession(v)}d=true;u(e)};const _=(0,n.buildQueryString)(h||{});const S=v.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:_?`${y}?${_}`:y,[s.constants.HTTP2_HEADER_METHOD]:f});v.ref();S.on("response",(e=>{const t=new r.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:S});d=true;l({response:t});if(c){v.close();this.deleteSessionFromCache(E,v)}}));if(o){S.setTimeout(o,(()=>{S.close();const e=new Error(`Stream timed out because of no activity for ${o} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{S.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}S.on("frameError",((e,t,o)=>{reject(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));S.on("error",reject);S.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${S.rstCode}.`))}));S.on("close",(()=>{v.unref();if(c){v.destroy()}if(!d){reject(new Error("Unexpected error: http2 request did not get a response"))}}));(0,a.writeRequestBody)(S,e)}))}getSession(e,t){var o;const r=this.sessionCache;const n=r.get(e)||[];if(n.length>0&&!t)return n[0];const i=(0,s.connect)(e);i.unref();const destroySessionCb=()=>{this.destroySession(i);this.deleteSessionFromCache(e,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSessionFromCache(e,i)));if((o=this.config)===null||o===void 0?void 0:o.sessionTimeout){i.setTimeout(this.config.sessionTimeout,destroySessionCb)}n.push(i);r.set(e,n);return i}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const o=this.sessionCache.get(e)||[];if(!o.includes(t)){return}this.sessionCache.set(e,o.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},63598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}e.on("socket",(r=>{if(r.connecting){const n=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);r.on("connect",(()=>{clearTimeout(n)}))}}))};t.setConnectionTimeout=setConnectionTimeout},44751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,o=0)=>{e.setTimeout(o,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${o} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},84362:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const r=o(12781);class Collector extends r.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},72198:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const r=o(84362);const streamCollector=e=>new Promise(((t,o)=>{const n=new r.Collector;e.pipe(n);e.on("error",(e=>{n.end();o(e)}));n.on("error",o);n.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},5248:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const r=o(12781);function writeRequestBody(e,t){const o=t.headers["Expect"]||t.headers["expect"];if(o==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof r.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},41597:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const r=o(87457);function buildQueryString(e){const t=[];for(let o of Object.keys(e).sort()){const n=e[o];o=(0,r.escapeUri)(o);if(Array.isArray(n)){for(let e=0,s=n.length;e<s;e++){t.push(`${o}=${(0,r.escapeUri)(n[e])}`)}}else{let e=o;if(n||typeof n==="string"){e+=`=${(0,r.escapeUri)(n)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},2812:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const r=o(9827);const escapeUriPath=e=>e.split("/").map(r.escapeUri).join("/");t.escapeUriPath=escapeUriPath},9827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUri=void 0;const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);t.escapeUri=escapeUri;const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},87457:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(9827),t);r.__exportStar(o(2812),t)},96875:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const r=o(81786);class CredentialsProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},81786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},22173:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const r=o(81786);class TokenProviderError extends r.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},51444:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const r=o(81786);function chain(...e){return()=>{let t=Promise.reject(new r.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},10529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},74462:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(96875),t);r.__exportStar(o(81786),t);r.__exportStar(o(22173),t);r.__exportStar(o(51444),t);r.__exportStar(o(10529),t);r.__exportStar(o(714),t)},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let r;let n;let s;let i=false;const coalesceProvider=async()=>{if(!n){n=e()}try{r=await n;s=true;i=false}finally{n=undefined}return r};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}return r}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){r=await coalesceProvider()}if(i){return r}if(o&&!o(r)){i=true;return r}if(t(r)){await coalesceProvider();return r}return r}};t.memoize=memoize},56779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},52872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{})}},92348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},70223:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(56779),t);r.__exportStar(o(52872),t);r.__exportStar(o(92348),t);r.__exportStar(o(85694),t)},85694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},43402:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const r=o(57952);function buildQueryString(e){const t=[];for(let o of Object.keys(e).sort()){const n=e[o];o=(0,r.escapeUri)(o);if(Array.isArray(n)){for(let e=0,s=n.length;e<s;e++){t.push(`${o}=${(0,r.escapeUri)(n[e])}`)}}else{let e=o;if(n||typeof n==="string"){e+=`=${(0,r.escapeUri)(n)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},47424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,r=null]=o.split("=");e=decodeURIComponent(e);if(r){r=decodeURIComponent(r)}if(!(e in t)){t[e]=r}else if(Array.isArray(t[e])){t[e].push(r)}else{t[e]=[t[e],r]}}}return t}t.parseQueryString=parseQueryString},7352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},61921:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isServerError=t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const r=o(7352);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>r.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,o;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||r.THROTTLING_ERROR_CODES.includes(e.name)||((o=e.$retryable)===null||o===void 0?void 0:o.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return r.TRANSIENT_ERROR_CODES.includes(e.name)||r.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||r.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError;const isServerError=e=>{var o;if(((o=e.$metadata)===null||o===void 0?void 0:o.httpStatusCode)!==undefined){const o=e.$metadata.httpStatusCode;if(500<=o&&o<=599&&!(0,t.isTransientError)(e)){return true}return false}return false};t.isServerError=isServerError},75216:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const r=o(71017);const n=o(97363);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},91569:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const r=o(71017);const n=o(97363);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,r.join)((0,n.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},97363:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const r=o(22037);const n=o(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${n.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;return(0,r.homedir)()};t.getHomeDir=getHomeDir},57498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},36776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},42992:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const r=o(6113);const n=o(71017);const s=o(97363);const getSSOTokenFilepath=e=>{const t=(0,r.createHash)("sha1");const o=t.update(e).digest("hex");return(0,n.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},18553:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const r=o(57147);const n=o(42992);const{readFile:s}=r.promises;const getSSOTokenFromFile=async e=>{const t=(0,n.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},5175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,r])=>({...e,[o.exec(t)[2]]:r})),{});t.getSsoSessionData=getSsoSessionData},67387:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(97363),t);r.__exportStar(o(36776),t);r.__exportStar(o(42992),t);r.__exportStar(o(18553),t);r.__exportStar(o(57871),t);r.__exportStar(o(96179),t);r.__exportStar(o(26533),t);r.__exportStar(o(84105),t)},57871:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const r=o(75216);const n=o(91569);const s=o(57498);const i=o(82806);const a=o(79242);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,n.getCredentialsFilepath)(),configFilepath:o=(0,r.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(o).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},96179:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const r=o(75216);const n=o(5175);const s=o(82806);const i=o(79242);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,r.getConfigFilepath)()).then(s.parseIni).then(n.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},82806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0].trim();const e=n[0]==="["&&n[n.length-1]==="]";if(e){r=n.substring(1,n.length-1);if(o.includes(r)){throw new Error(`Found invalid profile name "${r}"`)}}else if(r){const e=n.indexOf("=");const o=0;const s=n.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{};t[r][o]=s}}}return t};t.parseIni=parseIni},26533:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const r=o(57871);const parseKnownFiles=async e=>{const t=await(0,r.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},79242:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const r=o(57147);const{readFile:n}=r.promises;const s={};const slurpFile=e=>{if(!s[e]){s[e]=n(e,"utf8")}return s[e]};t.slurpFile=slurpFile},84105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75086:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const r=o(1968);const n=o(10236);const s=o(30342);const i=o(11424);const a=o(93590);const c=o(92019);const l=o(47080);const u=o(34120);const d=o(98201);const p=o(75772);const f=o(94799);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:o,service:r,sha256:s,uriEscapePath:i=true}){this.service=r;this.sha256=s;this.uriEscapePath=i;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=(0,n.normalizeProvider)(o);this.credentialProvider=(0,n.normalizeProvider)(t)}async presign(e,t={}){const{signingDate:o=new Date,expiresIn:r=3600,unsignableHeaders:n,unhoistableHeaders:c,signableHeaders:u,signingRegion:f,signingService:m}=t;const g=await this.credentialProvider();this.validateResolvedCredentials(g);const y=f!==null&&f!==void 0?f:await this.regionProvider();const{longDate:h,shortDate:E}=formatDate(o);if(r>s.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const v=(0,i.createScope)(E,y,m!==null&&m!==void 0?m:this.service);const _=(0,d.moveHeadersToQuery)((0,p.prepareRequest)(e),{unhoistableHeaders:c});if(g.sessionToken){_.query[s.TOKEN_QUERY_PARAM]=g.sessionToken}_.query[s.ALGORITHM_QUERY_PARAM]=s.ALGORITHM_IDENTIFIER;_.query[s.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${v}`;_.query[s.AMZ_DATE_QUERY_PARAM]=h;_.query[s.EXPIRES_QUERY_PARAM]=r.toString(10);const S=(0,a.getCanonicalHeaders)(_,n,u);_.query[s.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(S);_.query[s.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,v,this.getSigningKey(g,y,E,m),this.createCanonicalRequest(_,S,await(0,l.getPayloadHash)(e,this.sha256)));return _}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:o=new Date,priorSignature:n,signingRegion:a,signingService:c}){const u=a!==null&&a!==void 0?a:await this.regionProvider();const{shortDate:d,longDate:p}=formatDate(o);const f=(0,i.createScope)(d,u,c!==null&&c!==void 0?c:this.service);const m=await(0,l.getPayloadHash)({headers:{},body:t},this.sha256);const g=new this.sha256;g.update(e);const y=(0,r.toHex)(await g.digest());const h=[s.EVENT_ALGORITHM_IDENTIFIER,p,f,n,y,m].join("\n");return this.signString(h,{signingDate:o,signingRegion:u,signingService:c})}async signString(e,{signingDate:t=new Date,signingRegion:o,signingService:n}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const i=o!==null&&o!==void 0?o:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(s,i,a,n));c.update(e);return(0,r.toHex)(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:o,unsignableHeaders:r,signingRegion:n,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const f=n!==null&&n!==void 0?n:await this.regionProvider();const m=(0,p.prepareRequest)(e);const{longDate:g,shortDate:y}=formatDate(t);const h=(0,i.createScope)(y,f,c!==null&&c!==void 0?c:this.service);m.headers[s.AMZ_DATE_HEADER]=g;if(d.sessionToken){m.headers[s.TOKEN_HEADER]=d.sessionToken}const E=await(0,l.getPayloadHash)(m,this.sha256);if(!(0,u.hasHeader)(s.SHA256_HEADER,m.headers)&&this.applyChecksum){m.headers[s.SHA256_HEADER]=E}const v=(0,a.getCanonicalHeaders)(m,r,o);const _=await this.getSignature(g,h,this.getSigningKey(d,f,y,c),this.createCanonicalRequest(m,v,E));m.headers[s.AUTH_HEADER]=`${s.ALGORITHM_IDENTIFIER} `+`Credential=${d.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(v)}, `+`Signature=${_}`;return m}createCanonicalRequest(e,t,o){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,c.getCanonicalQuery)(e)}\n${r.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${r.join(";")}\n${o}`}async createStringToSign(e,t,o){const n=new this.sha256;n.update(o);const i=await n.digest();return`${s.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${(0,r.toHex)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const o of e.split("/")){if((o===null||o===void 0?void 0:o.length)===0)continue;if(o===".")continue;if(o===".."){t.pop()}else{t.push(o)}}const o=`${(e===null||e===void 0?void 0:e.startsWith("/"))?"/":""}${t.join("/")}${t.length>0&&(e===null||e===void 0?void 0:e.endsWith("/"))?"/":""}`;const r=encodeURIComponent(o);return r.replace(/%2F/g,"/")}return e}async getSignature(e,t,o,n){const s=await this.createStringToSign(e,t,n);const i=new this.sha256(await o);i.update(s);return(0,r.toHex)(await i.digest())}getSigningKey(e,t,o,r){return(0,i.getSigningKey)(this.sha256,e,o,t,r||this.service)}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=(0,f.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},53141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneQuery=t.cloneRequest=void 0;const cloneRequest=({headers:e,query:o,...r})=>({...r,headers:{...e},query:o?(0,t.cloneQuery)(o):undefined});t.cloneRequest=cloneRequest;const cloneQuery=e=>Object.keys(e).reduce(((t,o)=>{const r=e[o];return{...t,[o]:Array.isArray(r)?[...r]:r}}),{});t.cloneQuery=cloneQuery},30342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MAX_PRESIGNED_TTL=t.KEY_TYPE_IDENTIFIER=t.MAX_CACHE_SIZE=t.UNSIGNED_PAYLOAD=t.EVENT_ALGORITHM_IDENTIFIER=t.ALGORITHM_IDENTIFIER_V4A=t.ALGORITHM_IDENTIFIER=t.UNSIGNABLE_PATTERNS=t.SEC_HEADER_PATTERN=t.PROXY_HEADER_PATTERN=t.ALWAYS_UNSIGNABLE_HEADERS=t.HOST_HEADER=t.TOKEN_HEADER=t.SHA256_HEADER=t.SIGNATURE_HEADER=t.GENERATED_HEADERS=t.DATE_HEADER=t.AMZ_DATE_HEADER=t.AUTH_HEADER=t.REGION_SET_PARAM=t.TOKEN_QUERY_PARAM=t.SIGNATURE_QUERY_PARAM=t.EXPIRES_QUERY_PARAM=t.SIGNED_HEADERS_QUERY_PARAM=t.AMZ_DATE_QUERY_PARAM=t.CREDENTIAL_QUERY_PARAM=t.ALGORITHM_QUERY_PARAM=void 0;t.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";t.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";t.AMZ_DATE_QUERY_PARAM="X-Amz-Date";t.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";t.EXPIRES_QUERY_PARAM="X-Amz-Expires";t.SIGNATURE_QUERY_PARAM="X-Amz-Signature";t.TOKEN_QUERY_PARAM="X-Amz-Security-Token";t.REGION_SET_PARAM="X-Amz-Region-Set";t.AUTH_HEADER="authorization";t.AMZ_DATE_HEADER=t.AMZ_DATE_QUERY_PARAM.toLowerCase();t.DATE_HEADER="date";t.GENERATED_HEADERS=[t.AUTH_HEADER,t.AMZ_DATE_HEADER,t.DATE_HEADER];t.SIGNATURE_HEADER=t.SIGNATURE_QUERY_PARAM.toLowerCase();t.SHA256_HEADER="x-amz-content-sha256";t.TOKEN_HEADER=t.TOKEN_QUERY_PARAM.toLowerCase();t.HOST_HEADER="host";t.ALWAYS_UNSIGNABLE_HEADERS={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};t.PROXY_HEADER_PATTERN=/^proxy-/;t.SEC_HEADER_PATTERN=/^sec-/;t.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];t.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";t.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";t.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";t.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";t.MAX_CACHE_SIZE=50;t.KEY_TYPE_IDENTIFIER="aws4_request";t.MAX_PRESIGNED_TTL=60*60*24*7},11424:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const r=o(1968);const n=o(30342);const s={};const i=[];const createScope=(e,t,o)=>`${e}/${t}/${o}/${n.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,o,a,c)=>{const l=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${o}:${a}:${c}:${(0,r.toHex)(l)}:${t.sessionToken}`;if(u in s){return s[u]}i.push(u);while(i.length>n.MAX_CACHE_SIZE){delete s[i.shift()]}let d=`AWS4${t.secretAccessKey}`;for(const t of[o,a,c,n.KEY_TYPE_IDENTIFIER]){d=await hmac(e,d,t)}return s[u]=d};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{i.length=0;Object.keys(s).forEach((e=>{delete s[e]}))};t.clearCredentialCache=clearCredentialCache;const hmac=(e,t,o)=>{const r=new e(t);r.update(o);return r.digest()}},93590:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const r=o(30342);const getCanonicalHeaders=({headers:e},t,o)=>{const n={};for(const s of Object.keys(e).sort()){if(e[s]==undefined){continue}const i=s.toLowerCase();if(i in r.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(i))||r.PROXY_HEADER_PATTERN.test(i)||r.SEC_HEADER_PATTERN.test(i)){if(!o||o&&!o.has(i)){continue}}n[i]=e[s].trim().replace(/\s+/g," ")}return n};t.getCanonicalHeaders=getCanonicalHeaders},92019:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const r=o(39852);const n=o(30342);const getCanonicalQuery=({query:e={}})=>{const t=[];const o={};for(const s of Object.keys(e).sort()){if(s.toLowerCase()===n.SIGNATURE_HEADER){continue}t.push(s);const i=e[s];if(typeof i==="string"){o[s]=`${(0,r.escapeUri)(s)}=${(0,r.escapeUri)(i)}`}else if(Array.isArray(i)){o[s]=i.slice(0).sort().reduce(((e,t)=>e.concat([`${(0,r.escapeUri)(s)}=${(0,r.escapeUri)(t)}`])),[]).join("&")}}return t.map((e=>o[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},47080:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const r=o(2273);const n=o(1968);const s=o(30342);const getPayloadHash=async({headers:e,body:t},o)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===s.SHA256_HEADER){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||(0,r.isArrayBuffer)(t)){const e=new o;e.update(t);return(0,n.toHex)(await e.digest())}return s.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},34120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteHeader=t.getHeaderValue=t.hasHeader=void 0;const hasHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return true}}return false};t.hasHeader=hasHeader;const getHeaderValue=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return t[o]}}return undefined};t.getHeaderValue=getHeaderValue;const deleteHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){delete t[o]}}};t.deleteHeader=deleteHeader},37776:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const r=o(4351);r.__exportStar(o(75086),t);var n=o(93590);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return n.getCanonicalHeaders}});var s=o(92019);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return s.getCanonicalQuery}});var i=o(47080);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return i.getPayloadHash}});var a=o(98201);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=o(75772);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});r.__exportStar(o(11424),t)},98201:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const r=o(53141);const moveHeadersToQuery=(e,t={})=>{var o;const{headers:n,query:s={}}=typeof e.clone==="function"?e.clone():(0,r.cloneRequest)(e);for(const e of Object.keys(n)){const r=e.toLowerCase();if(r.slice(0,6)==="x-amz-"&&!((o=t.unhoistableHeaders)===null||o===void 0?void 0:o.has(r))){s[e]=n[e];delete n[e]}}return{...e,headers:n,query:s}};t.moveHeadersToQuery=moveHeadersToQuery},75772:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const r=o(53141);const n=o(30342);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():(0,r.cloneRequest)(e);for(const t of Object.keys(e.headers)){if(n.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};t.prepareRequest=prepareRequest},94799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>(0,t.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");t.iso8601=iso8601;const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};t.toDate=toDate},2273:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},49303:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const r=o(21244);const escapeUriPath=e=>e.split("/").map(r.escapeUri).join("/");t.escapeUriPath=escapeUriPath},21244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUri=void 0;const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);t.escapeUri=escapeUri;const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},39852:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(21244),t);r.__exportStar(o(49303),t)},78571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoOpLogger=void 0;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}t.NoOpLogger=NoOpLogger},36034:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const r=o(11461);class Client{constructor(e){this.middlewareStack=(0,r.constructStack)();this.config=e}send(e,t,o){const r=typeof t!=="function"?t:undefined;const n=typeof t==="function"?t:o;const s=e.resolveMiddleware(this.middlewareStack,this.config,r);if(n){s(e).then((e=>n(null,e.output)),(e=>n(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},4014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const r=o(11461);class Command{constructor(){this.middlewareStack=(0,r.constructStack)()}}t.Command=Command},78392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},24695:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const r=o(34014);const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const r=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const f=l<10?`0${l}`:`${l}`;return`${n[r]}, ${u} ${s[o]} ${t} ${d}:${p}:${f} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,n,s,a,c,l,u,d]=t;const p=(0,r.strictParseShort)(stripLeadingZeroes(n));const f=parseDateValue(s,"month",1,12);const m=parseDateValue(a,"day",1,31);return buildDate(p,f,m,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const c=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const l=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=a.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,o,r,n,s,i,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(n),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,o,n,s,i,a,c,l]=t;return buildDate((0,r.strictParseShort)(stripLeadingZeroes(l)),parseMonthByShortName(o),parseDateValue(n.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,r.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,o,r)=>{const n=t-1;validateDayOfMonth(e,n,o);return new Date(Date.UTC(e,n,o,parseDateValue(r.hours,"hour",0,23),parseDateValue(r.minutes,"minute",0,59),parseDateValue(r.seconds,"seconds",0,60),parseMilliseconds(r.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+(0,r.strictParseShort)(stripLeadingZeroes(e));if(o<t){return o+100}return o};const u=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>u){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let r=d[t];if(t===1&&isLeapYear(e)){r=29}if(o>r){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,n)=>{const s=(0,r.strictParseByte)(stripLeadingZeroes(e));if(s<o||s>n){throw new TypeError(`${t} must be between ${o} and ${n}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,r.strictParseFloat32)("0."+e)*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},47222:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwDefaultError=void 0;const r=o(57778);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:n})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const a=new o({name:t.code||t.Code||n||i||"UnknownError",$fault:"client",$metadata:s});throw(0,r.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},33088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},12363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let o=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!o&&parseInt(e.substring(1,e.indexOf(".")))<14){o=true}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},57778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};t.decorateServiceException=decorateServiceException},91927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},86457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},95830:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const o="#text";for(const r in e){if(e.hasOwnProperty(r)&&e[r][o]!==undefined){e[r]=e[r][o]}else if(typeof e[r]==="object"&&e[r]!==null){e[r]=(0,t.getValueFromTextNode)(e[r])}}return e};t.getValueFromTextNode=getValueFromTextNode},4963:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(78571),t);r.__exportStar(o(36034),t);r.__exportStar(o(4014),t);r.__exportStar(o(78392),t);r.__exportStar(o(24695),t);r.__exportStar(o(47222),t);r.__exportStar(o(33088),t);r.__exportStar(o(12363),t);r.__exportStar(o(57778),t);r.__exportStar(o(91927),t);r.__exportStar(o(86457),t);r.__exportStar(o(95830),t);r.__exportStar(o(93613),t);r.__exportStar(o(21599),t);r.__exportStar(o(34014),t);r.__exportStar(o(80308),t);r.__exportStar(o(38e3),t);r.__exportStar(o(48730),t)},93613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const o=new t;Object.setPrototypeOf(o,e.prototype);return o};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},21599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertMap=t.map=void 0;function map(e,t,o){let r;let n;let s;if(typeof t==="undefined"&&typeof o==="undefined"){r={};s=e}else{r=e;if(typeof t==="function"){n=t;s=o;return mapWithFilter(r,n,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){r[e]=s[e];continue}let[t,o]=s[e];if(typeof o==="function"){let n;const s=t===undefined&&(n=o())!=null;const i=typeof t==="function"&&!!t(void 0)||typeof t!=="function"&&!!t;if(s){r[e]=n}else if(i){r[e]=o()}}else{const n=t===undefined&&o!=null;const s=typeof t==="function"&&!!t(o)||typeof t!=="function"&&!!t;if(n||s){r[e]=o}}}return r}t.map=map;const convertMap=e=>{const t={};for(const[o,r]of Object.entries(e||{})){t[o]=[,r]}return t};t.convertMap=convertMap;const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,r])=>{if(Array.isArray(r)){e[o]=r}else{if(typeof r==="function"){e[o]=[t,r()]}else{e[o]=[t,r]}}return e}),{}))},34014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const o=e.toLowerCase();if(o==="false"||o==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(o==="false"){return false}if(o==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const o=parseFloat(e);if(!Number.isNaN(o)){if(String(o)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return o}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const r=(0,t.expectNumber)(e);if(r!==undefined&&!Number.isNaN(r)&&r!==Infinity&&r!==-Infinity){if(Math.abs(r)>o){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return r};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,o)=>{const r=(0,t.expectLong)(e);if(r!==undefined&&castInt(r,o)!==r){throw new TypeError(`Expected ${o}-bit integer, got ${e}`)}return r};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=(0,t.expectObject)(e);const r=Object.entries(o).filter((([,e])=>e!=null)).map((([e])=>e));if(r.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(r.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`)}return o};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const r=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(r);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},80308:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const r=o(91927);const resolvedPath=(e,t,o,n,s,i)=>{if(t!=null&&t[o]!==undefined){const t=n();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(s,i?t.split("/").map((e=>(0,r.extendedEncodeURIComponent)(e))).join("/"):(0,r.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};t.resolvedPath=resolvedPath},38e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},48730:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const r=e.split(t);if(o===1){return r}const n=[];let s="";for(let e=0;e<r.length;e++){if(s===""){s=r[e]}else{s+=t+r[e]}if((e+1)%o===0){n.push(s);s=""}}if(s!==""){n.push(s)}return n}t.splitEvery=splitEvery},92242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REFRESH_MESSAGE=t.EXPIRE_WINDOW_MS=void 0;t.EXPIRE_WINDOW_MS=5*60*1e3;t.REFRESH_MESSAGE=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`},85125:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSso=void 0;const r=o(74462);const n=o(67387);const s=o(92242);const i=o(93601);const a=o(28418);const c=o(2488);const l=o(48552);const u=new Date(0);const fromSso=(e={})=>async()=>{const t=await(0,n.parseKnownFiles)(e);const o=(0,n.getProfileName)(e);const d=t[o];if(!d){throw new r.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,false)}else if(!d["sso_session"]){throw new r.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`)}const p=d["sso_session"];const f=await(0,n.loadSsoSessionData)(e);const m=f[p];if(!m){throw new r.TokenProviderError(`Sso session '${p}' could not be found in shared credentials file.`,false)}for(const e of["sso_start_url","sso_region"]){if(!m[e]){throw new r.TokenProviderError(`Sso session '${p}' is missing required property '${e}'.`,false)}}const g=m["sso_start_url"];const y=m["sso_region"];let h;try{h=await(0,n.getSSOTokenFromFile)(p)}catch(e){throw new r.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${s.REFRESH_MESSAGE}`,false)}(0,c.validateTokenKey)("accessToken",h.accessToken);(0,c.validateTokenKey)("expiresAt",h.expiresAt);const{accessToken:E,expiresAt:v}=h;const _={token:E,expiration:new Date(v)};if(_.expiration.getTime()-Date.now()>s.EXPIRE_WINDOW_MS){return _}if(Date.now()-u.getTime()<30*1e3){(0,a.validateTokenExpiry)(_);return _}(0,c.validateTokenKey)("clientId",h.clientId,true);(0,c.validateTokenKey)("clientSecret",h.clientSecret,true);(0,c.validateTokenKey)("refreshToken",h.refreshToken,true);try{u.setTime(Date.now());const e=await(0,i.getNewSsoOidcToken)(h,y);(0,c.validateTokenKey)("accessToken",e.accessToken);(0,c.validateTokenKey)("expiresIn",e.expiresIn);const t=new Date(Date.now()+e.expiresIn*1e3);try{await(0,l.writeSSOTokenToFile)(p,{...h,accessToken:e.accessToken,expiresAt:t.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:t}}catch(e){(0,a.validateTokenExpiry)(_);return _}};t.fromSso=fromSso},63258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const r=o(74462);const fromStatic=({token:e})=>async()=>{if(!e||!e.token){throw new r.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return e};t.fromStatic=fromStatic},93601:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getNewSsoOidcToken=void 0;const r=o(54527);const n=o(99775);const getNewSsoOidcToken=(e,t)=>{const o=(0,n.getSsoOidcClient)(t);return o.send(new r.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};t.getNewSsoOidcToken=getNewSsoOidcToken},99775:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoOidcClient=void 0;const r=o(54527);const n={};const getSsoOidcClient=e=>{if(n[e]){return n[e]}const t=new r.SSOOIDCClient({region:e});n[e]=t;return t};t.getSsoOidcClient=getSsoOidcClient},52843:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(85125),t);r.__exportStar(o(63258),t);r.__exportStar(o(70195),t)},70195:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodeProvider=void 0;const r=o(74462);const n=o(85125);const nodeProvider=(e={})=>(0,r.memoize)((0,r.chain)((0,n.fromSso)(e),(async()=>{throw new r.TokenProviderError("Could not load token from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.nodeProvider=nodeProvider},28418:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenExpiry=void 0;const r=o(74462);const n=o(92242);const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now()){throw new r.TokenProviderError(`Token is expired. ${n.REFRESH_MESSAGE}`,false)}};t.validateTokenExpiry=validateTokenExpiry},2488:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenKey=void 0;const r=o(74462);const n=o(92242);const validateTokenKey=(e,t,o=false)=>{if(typeof t==="undefined"){throw new r.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${n.REFRESH_MESSAGE}`,false)}};t.validateTokenKey=validateTokenKey},48552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeSSOTokenToFile=void 0;const r=o(67387);const n=o(57147);const{writeFile:s}=n.promises;const writeSSOTokenToFile=(e,t)=>{const o=(0,r.getSSOTokenFilepath)(e);const n=JSON.stringify(t,null,2);return s(o,n)};t.writeSSOTokenToFile=writeSSOTokenToFile},52562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},67736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},13268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var o;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(o=t.EndpointURLScheme||(t.EndpointURLScheme={}))},37521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},61393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},10640:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(51821),t);r.__exportStar(o(92635),t);r.__exportStar(o(71301),t);r.__exportStar(o(21268),t);r.__exportStar(o(7192),t)},89029:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(52562),t);r.__exportStar(o(26913),t);r.__exportStar(o(65861),t);r.__exportStar(o(76527),t);r.__exportStar(o(48470),t);r.__exportStar(o(67736),t);r.__exportStar(o(13268),t);r.__exportStar(o(99385),t);r.__exportStar(o(37521),t);r.__exportStar(o(61393),t);r.__exportStar(o(10640),t);r.__exportStar(o(89910),t);r.__exportStar(o(36678),t);r.__exportStar(o(39931),t);r.__exportStar(o(42620),t);r.__exportStar(o(89546),t);r.__exportStar(o(80316),t);r.__exportStar(o(57835),t);r.__exportStar(o(91678),t);r.__exportStar(o(93818),t);r.__exportStar(o(51991),t);r.__exportStar(o(24296),t);r.__exportStar(o(59416),t);r.__exportStar(o(20134),t);r.__exportStar(o(34465),t)},89910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},42620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},91678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},93818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},59416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},34465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2992:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const r=o(47424);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:n,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,r.parseQueryString)(a)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:n,query:c}};t.parseUrl=parseUrl},18588:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=t.fromBase64=void 0;const r=o(36010);const n=/^[A-Za-z0-9+/]*={0,2}$/;function fromBase64(e){if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!n.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,r.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}t.fromBase64=fromBase64;function toBase64(e){return(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}t.toBase64=toBase64},58444:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const r=o(89748);const n=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!n.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,r.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},97727:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(58444),t);r.__exportStar(o(63439),t)},63439:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const r=o(89748);const toBase64=e=>(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");t.toBase64=toBase64},85086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},89748:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const r=o(85086);const n=o(14300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!(0,r.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return n.Buffer.from(e,t,o)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?n.Buffer.from(e,t):n.Buffer.from(e)};t.fromString=fromString},89190:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const r=o(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,r.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},74147:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(89190),t)},36010:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const r=o(69126);const n=o(14300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!(0,r.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return n.Buffer.from(e,t,o)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?n.Buffer.from(e,t):n.Buffer.from(e)};t.fromString=fromString},79509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var o;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(o=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},6168:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(79509),t)},16488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},28450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const o="AWS_DEFAULTS_MODE";const r="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[o],configFileSelector:e=>e[r],default:"legacy"}},74243:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(18238),t)},18238:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const r=o(56153);const n=o(74146);const s=o(87684);const i=o(74462);const a=o(16488);const c=o(28450);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(r.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const o=typeof t==="function"?await t():t;switch(o===null||o===void 0?void 0:o.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o===null||o===void 0?void 0:o.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${o}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[a.AWS_EXECUTION_ENV]&&(process.env[a.AWS_REGION_ENV]||process.env[a.AWS_DEFAULT_REGION_ENV])){return(e=process.env[a.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[a.AWS_DEFAULT_REGION_ENV]}if(!process.env[a.ENV_IMDS_DISABLED]){try{const e=await(0,n.getInstanceMetadataEndpoint)();return(await(0,n.httpRequest)({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},80546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var o;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(o=t.Endpoint||(t.Endpoint={}))},44390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},49225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var o;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(o=t.EndpointMode||(t.EndpointMode={}))},7509:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const r=o(49225);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:r.EndpointMode.IPv4}},73382:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const r=o(74462);const n=o(57310);const s=o(70410);const i=o(92135);const a=o(17575);const c=o(96807);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:o}=(0,a.providerConfigFromInit)(e);return()=>(0,c.retry)((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(o)}),o)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,o)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){o.headers={...o.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const r=await(0,s.httpRequest)({...o,timeout:e});return r.toString()};const l="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const d={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:l,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,n.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new r.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in d)){throw new r.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new r.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},56114:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const r=o(74462);const n=o(70410);const s=o(92135);const i=o(17575);const a=o(96807);const c=o(1753);const l=o(71740);const u="/latest/meta-data/iam/security-credentials/";const d="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,l.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:o,maxRetries:r}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,o)=>{const r=(await(0,a.retry)((async()=>{let e;try{e=await getProfile(o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,a.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(r,o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,c.getInstanceMetadataEndpoint)();if(t){return getCredentials(r,{...e,timeout:o})}else{let n;try{n=(await getMetadataToken({...e,timeout:o})).toString()}catch(n){if((n===null||n===void 0?void 0:n.statusCode)===400){throw Object.assign(n,{message:"EC2 Metadata token request returned error"})}else if(n.message==="TimeoutError"||[403,404,405].includes(n.statusCode)){t=true}return getCredentials(r,{...e,timeout:o})}return getCredentials(r,{...e,headers:{"x-aws-ec2-metadata-token":n},timeout:o})}}};const getMetadataToken=async e=>(0,n.httpRequest)({...e,path:d,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,n.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await(0,n.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(o)){throw new r.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(o)}},74146:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const r=o(4351);r.__exportStar(o(73382),t);r.__exportStar(o(56114),t);r.__exportStar(o(17575),t);r.__exportStar(o(33984),t);var n=o(70410);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return n.httpRequest}});var s=o(1753);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},92135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},17575:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:o=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:o});t.providerConfigFromInit=providerConfigFromInit},70410:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const r=o(74462);const n=o(14300);const s=o(13685);function httpRequest(e){return new Promise(((t,o)=>{var i;const a=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});a.on("error",(e=>{o(Object.assign(new r.ProviderError("Unable to connect to instance metadata service"),e));a.destroy()}));a.on("timeout",(()=>{o(new r.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){o(Object.assign(new r.ProviderError("Error response received from instance metadata service"),{statusCode:s}));a.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(n.Buffer.concat(i));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},96807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let o=e();for(let r=0;r<t;r++){o=o.catch(e)}return o};t.retry=retry},33984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},11629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const o=5*60;const r=5*60;const n="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=o+Math.floor(Math.random()*r);const a=new Date(Date.now()+i*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+n);const c=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...c?{originalExpiration:c}:{},expiration:a}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},1753:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const r=o(87684);const n=o(2992);const s=o(80546);const i=o(44390);const a=o(49225);const c=o(7509);const getInstanceMetadataEndpoint=async()=>(0,n.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,r.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,r.loadConfig)(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return s.Endpoint.IPv4;case a.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},71740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const r=o(11629);const staticStabilityProvider=(e,t={})=>{const o=(t===null||t===void 0?void 0:t.logger)||console;let n;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,r.getExtendedInstanceMetadataCredentials)(t,o)}}catch(e){if(n){o.warn("Credential renew failed: ",e);t=(0,r.getExtendedInstanceMetadataCredentials)(n,o)}else{throw e}}n=t;return t}};t.staticStabilityProvider=staticStabilityProvider},81809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debugId=void 0;t.debugId="endpoints"},27617:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(81809),t);r.__exportStar(o(46833),t)},46833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDebugString=void 0;function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}t.toDebugString=toDebugString},39205:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(37482),t);r.__exportStar(o(36563),t);r.__exportStar(o(57433),t)},46835:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(48079),t);r.__exportStar(o(34711),t);r.__exportStar(o(37482),t)},48079:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isVirtualHostableS3Bucket=void 0;const r=o(73442);const n=o(57373);const isVirtualHostableS3Bucket=(e,o=false)=>{if(o){for(const o of e.split(".")){if(!(0,t.isVirtualHostableS3Bucket)(o)){return false}}return true}if(!(0,n.isValidHostLabel)(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if((0,r.isIpAddress)(e)){return false}return true};t.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket},34711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseArn=void 0;const parseArn=e=>{const t=e.split(":");if(t.length<6)return null;const[o,r,n,s,i,...a]=t;if(o!=="arn"||r===""||n===""||a[0]==="")return null;return{partition:r,service:n,region:s,accountId:i,resourceId:a[0].includes("/")?a[0].split("/"):a}};t.parseArn=parseArn},37482:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.partition=void 0;const r=o(4351);const n=r.__importDefault(o(95367));const{partitions:s}=n.default;const i=s.find((e=>e.id==="aws"));const partition=e=>{for(const t of s){const{regions:o,outputs:r}=t;for(const[t,n]of Object.entries(o)){if(t===e){return{...r,...n}}}}for(const t of s){const{regionRegex:o,outputs:r}=t;if(new RegExp(o).test(e)){return{...r}}}if(!i){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...i.outputs}};t.partition=partition},55370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanEquals=void 0;const booleanEquals=(e,t)=>e===t;t.booleanEquals=booleanEquals},20767:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttr=void 0;const r=o(57433);const n=o(81844);const getAttr=(e,t)=>(0,n.getAttrPathList)(t).reduce(((o,n)=>{if(typeof o!=="object"){throw new r.EndpointError(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(o)){return o[parseInt(n)]}return o[n]}),e);t.getAttr=getAttr},81844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttrPathList=void 0;const r=o(57433);const getAttrPathList=e=>{const t=e.split(".");const o=[];for(const n of t){const t=n.indexOf("[");if(t!==-1){if(n.indexOf("]")!==n.length-1){throw new r.EndpointError(`Path: '${e}' does not end with ']'`)}const s=n.slice(t+1,-1);if(Number.isNaN(parseInt(s))){throw new r.EndpointError(`Invalid array index: '${s}' in path: '${e}'`)}if(t!==0){o.push(n.slice(0,t))}o.push(s)}else{o.push(n)}}return o};t.getAttrPathList=getAttrPathList},83188:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.aws=void 0;const r=o(4351);t.aws=r.__importStar(o(46835));r.__exportStar(o(55370),t);r.__exportStar(o(20767),t);r.__exportStar(o(78816),t);r.__exportStar(o(57373),t);r.__exportStar(o(29692),t);r.__exportStar(o(22780),t);r.__exportStar(o(55182),t);r.__exportStar(o(48305),t);r.__exportStar(o(6535),t)},73442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIpAddress=void 0;const o=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>o.test(e)||e.startsWith("[")&&e.endsWith("]");t.isIpAddress=isIpAddress},78816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSet=void 0;const isSet=e=>e!=null;t.isSet=isSet},57373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostLabel=void 0;const o=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,r=false)=>{if(!r){return o.test(e)}const n=e.split(".");for(const e of n){if(!(0,t.isValidHostLabel)(e)){return false}}return true};t.isValidHostLabel=isValidHostLabel},29692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.not=void 0;const not=e=>!e;t.not=not},22780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseURL=void 0;const r=o(89029);const n=o(73442);const s={[r.EndpointURLScheme.HTTP]:80,[r.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:o,protocol:r="",path:n="",query:s={}}=e;const i=new URL(`${r}//${t}${o?`:${o}`:""}${n}`);i.search=Object.entries(s).map((([e,t])=>`${e}=${t}`)).join("&");return i}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const o=t.href;const{host:i,hostname:a,pathname:c,protocol:l,search:u}=t;if(u){return null}const d=l.slice(0,-1);if(!Object.values(r.EndpointURLScheme).includes(d)){return null}const p=(0,n.isIpAddress)(a);const f=o.includes(`${i}:${s[d]}`)||typeof e==="string"&&e.includes(`${i}:${s[d]}`);const m=`${i}${f?`:${s[d]}`:``}`;return{scheme:d,authority:m,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}};t.parseURL=parseURL},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringEquals=void 0;const stringEquals=(e,t)=>e===t;t.stringEquals=stringEquals},48305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.substring=void 0;const substring=(e,t,o,r)=>{if(t>=o||e.length<o){return null}if(!r){return e.substring(t,o)}return e.substring(e.length-o,e.length-t)};t.substring=substring},6535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uriEncode=void 0;const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));t.uriEncode=uriEncode},36563:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpoint=void 0;const r=o(27617);const n=o(57433);const s=o(81114);const resolveEndpoint=(e,t)=>{var o,i,a,c,l,u;const{endpointParams:d,logger:p}=t;const{parameters:f,rules:m}=e;(i=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||i===void 0?void 0:i.call(o,r.debugId,`Initial EndpointParams: ${(0,r.toDebugString)(d)}`);const g=Object.entries(f).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(g.length>0){for(const[e,t]of g){d[e]=(a=d[e])!==null&&a!==void 0?a:t}}const y=Object.entries(f).filter((([,e])=>e.required)).map((([e])=>e));for(const e of y){if(d[e]==null){throw new n.EndpointError(`Missing required parameter: '${e}'`)}}const h=(0,s.evaluateRules)(m,{endpointParams:d,logger:p,referenceRecord:{}});if((c=t.endpointParams)===null||c===void 0?void 0:c.Endpoint){try{const e=new URL(t.endpointParams.Endpoint);const{protocol:o,port:r}=e;h.url.protocol=o;h.url.port=r}catch(e){}}(u=(l=t.logger)===null||l===void 0?void 0:l.debug)===null||u===void 0?void 0:u.call(l,r.debugId,`Resolved endpoint: ${(0,r.toDebugString)(h)}`);return h};t.resolveEndpoint=resolveEndpoint},82605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointError=void 0;class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}t.EndpointError=EndpointError},21261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},56083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57433:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(82605),t);r.__exportStar(o(21261),t);r.__exportStar(o(20312),t);r.__exportStar(o(56083),t);r.__exportStar(o(21767),t);r.__exportStar(o(41811),t)},41811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65075:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callFunction=void 0;const r=o(4351);const n=r.__importStar(o(83188));const s=o(82980);const callFunction=({fn:e,argv:t},o)=>{const r=t.map((e=>["boolean","number"].includes(typeof e)?e:(0,s.evaluateExpression)(e,"arg",o)));return e.split(".").reduce(((e,t)=>e[t]),n)(...r)};t.callFunction=callFunction},77851:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateCondition=void 0;const r=o(27617);const n=o(57433);const s=o(65075);const evaluateCondition=({assign:e,...t},o)=>{var i,a;if(e&&e in o.referenceRecord){throw new n.EndpointError(`'${e}' is already defined in Reference Record.`)}const c=(0,s.callFunction)(t,o);(a=(i=o.logger)===null||i===void 0?void 0:i.debug)===null||a===void 0?void 0:a.call(i,r.debugId,`evaluateCondition: ${(0,r.toDebugString)(t)} = ${(0,r.toDebugString)(c)}`);return{result:c===""?true:!!c,...e!=null&&{toAssign:{name:e,value:c}}}};t.evaluateCondition=evaluateCondition},59169:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateConditions=void 0;const r=o(27617);const n=o(77851);const evaluateConditions=(e=[],t)=>{var o,s;const i={};for(const a of e){const{result:e,toAssign:c}=(0,n.evaluateCondition)(a,{...t,referenceRecord:{...t.referenceRecord,...i}});if(!e){return{result:e}}if(c){i[c.name]=c.value;(s=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||s===void 0?void 0:s.call(o,r.debugId,`assign: ${c.name} := ${(0,r.toDebugString)(c.value)}`)}}return{result:true,referenceRecord:i}};t.evaluateConditions=evaluateConditions},35324:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateEndpointRule=void 0;const r=o(27617);const n=o(59169);const s=o(88268);const i=o(34973);const a=o(23602);const evaluateEndpointRule=(e,t)=>{var o,c;const{conditions:l,endpoint:u}=e;const{result:d,referenceRecord:p}=(0,n.evaluateConditions)(l,t);if(!d){return}const f={...t,referenceRecord:{...t.referenceRecord,...p}};const{url:m,properties:g,headers:y}=u;(c=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||c===void 0?void 0:c.call(o,r.debugId,`Resolving endpoint from template: ${(0,r.toDebugString)(u)}`);return{...y!=undefined&&{headers:(0,s.getEndpointHeaders)(y,f)},...g!=undefined&&{properties:(0,i.getEndpointProperties)(g,f)},url:(0,a.getEndpointUrl)(m,f)}};t.evaluateEndpointRule=evaluateEndpointRule},12110:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateErrorRule=void 0;const r=o(57433);const n=o(59169);const s=o(82980);const evaluateErrorRule=(e,t)=>{const{conditions:o,error:i}=e;const{result:a,referenceRecord:c}=(0,n.evaluateConditions)(o,t);if(!a){return}throw new r.EndpointError((0,s.evaluateExpression)(i,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))};t.evaluateErrorRule=evaluateErrorRule},82980:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateExpression=void 0;const r=o(57433);const n=o(65075);const s=o(57535);const i=o(68810);const evaluateExpression=(e,t,o)=>{if(typeof e==="string"){return(0,s.evaluateTemplate)(e,o)}else if(e["fn"]){return(0,n.callFunction)(e,o)}else if(e["ref"]){return(0,i.getReferenceValue)(e,o)}throw new r.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};t.evaluateExpression=evaluateExpression},59738:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateRules=void 0;const r=o(57433);const n=o(35324);const s=o(12110);const i=o(26587);const evaluateRules=(e,t)=>{for(const o of e){if(o.type==="endpoint"){const e=(0,n.evaluateEndpointRule)(o,t);if(e){return e}}else if(o.type==="error"){(0,s.evaluateErrorRule)(o,t)}else if(o.type==="tree"){const e=(0,i.evaluateTreeRule)(o,t);if(e){return e}}else{throw new r.EndpointError(`Unknown endpoint rule: ${o}`)}}throw new r.EndpointError(`Rules evaluation failed`)};t.evaluateRules=evaluateRules},57535:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTemplate=void 0;const r=o(83188);const evaluateTemplate=(e,t)=>{const o=[];const n={...t.endpointParams,...t.referenceRecord};let s=0;while(s<e.length){const t=e.indexOf("{",s);if(t===-1){o.push(e.slice(s));break}o.push(e.slice(s,t));const i=e.indexOf("}",t);if(i===-1){o.push(e.slice(t));break}if(e[t+1]==="{"&&e[i+1]==="}"){o.push(e.slice(t+1,i));s=i+2}const a=e.substring(t+1,i);if(a.includes("#")){const[e,t]=a.split("#");o.push((0,r.getAttr)(n[e],t))}else{o.push(n[a])}s=i+1}return o.join("")};t.evaluateTemplate=evaluateTemplate},26587:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTreeRule=void 0;const r=o(59169);const n=o(59738);const evaluateTreeRule=(e,t)=>{const{conditions:o,rules:s}=e;const{result:i,referenceRecord:a}=(0,r.evaluateConditions)(o,t);if(!i){return}return(0,n.evaluateRules)(s,{...t,referenceRecord:{...t.referenceRecord,...a}})};t.evaluateTreeRule=evaluateTreeRule},88268:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointHeaders=void 0;const r=o(57433);const n=o(82980);const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[o,s])=>({...e,[o]:s.map((e=>{const s=(0,n.evaluateExpression)(e,"Header value entry",t);if(typeof s!=="string"){throw new r.EndpointError(`Header '${o}' value '${s}' is not a string`)}return s}))})),{});t.getEndpointHeaders=getEndpointHeaders},34973:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperties=void 0;const r=o(42978);const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[o,n])=>({...e,[o]:(0,r.getEndpointProperty)(n,t)})),{});t.getEndpointProperties=getEndpointProperties},42978:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperty=void 0;const r=o(57433);const n=o(57535);const s=o(34973);const getEndpointProperty=(e,o)=>{if(Array.isArray(e)){return e.map((e=>(0,t.getEndpointProperty)(e,o)))}switch(typeof e){case"string":return(0,n.evaluateTemplate)(e,o);case"object":if(e===null){throw new r.EndpointError(`Unexpected endpoint property: ${e}`)}return(0,s.getEndpointProperties)(e,o);case"boolean":return e;default:throw new r.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};t.getEndpointProperty=getEndpointProperty},23602:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrl=void 0;const r=o(57433);const n=o(82980);const getEndpointUrl=(e,t)=>{const o=(0,n.evaluateExpression)(e,"Endpoint URL",t);if(typeof o==="string"){try{return new URL(o)}catch(e){console.error(`Failed to construct URL with ${o}`,e);throw e}}throw new r.EndpointError(`Endpoint URL must be a string, got ${typeof o}`)};t.getEndpointUrl=getEndpointUrl},68810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getReferenceValue=void 0;const getReferenceValue=({ref:e},t)=>{const o={...t.endpointParams,...t.referenceRecord};return o[e]};t.getReferenceValue=getReferenceValue},81114:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(59738),t)},1968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHex=t.fromHex=void 0;const o={};const r={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}o[e]=t;r[t]=e}function fromHex(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 o=0;o<e.length;o+=2){const n=e.slice(o,o+2).toLowerCase();if(n in r){t[o/2]=r[n]}else{throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}}return t}t.fromHex=fromHex;function toHex(e){let t="";for(let r=0;r<e.byteLength;r++){t+=o[e[r]]}return t}t.toHex=toHex},10236:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(77776),t)},77776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},66968:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const r=o(6514);const n=o(258);const s=o(43449);class AdaptiveRetryStrategy{constructor(e,t){this.maxAttemptsProvider=e;this.mode=r.RETRY_MODES.ADAPTIVE;const{rateLimiter:o}=t!==null&&t!==void 0?t:{};this.rateLimiter=o!==null&&o!==void 0?o:new n.DefaultRateLimiter;this.standardRetryStrategy=new s.StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const r=o(61921);class DefaultRateLimiter{constructor(e){var t,o,r,n,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(o=e===null||e===void 0?void 0:e.minCapacity)!==null&&o!==void 0?o:1;this.minFillRate=(r=e===null||e===void 0?void 0:e.minFillRate)!==null&&r!==void 0?r:.5;this.scaleConstant=(n=e===null||e===void 0?void 0:e.scaleConstant)!==null&&n!==void 0?n:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,r.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},43449:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const r=o(6514);const n=o(65056);const s=o(41360);class StandardRetryStrategy{constructor(e){this.maxAttemptsProvider=e;this.mode=r.RETRY_MODES.STANDARD;this.retryToken=(0,s.getDefaultRetryToken)(n.INITIAL_RETRY_TOKENS,n.DEFAULT_RETRY_DELAY_BASE);this.maxAttemptsProvider=e}async acquireInitialRetryToken(e){return this.retryToken}async refreshRetryTokenForRetry(e,t){const o=await this.getMaxAttempts();if(this.shouldRetry(e,t,o)){e.getRetryTokenCount(t);return e}throw new Error("No retry token available")}recordSuccess(e){this.retryToken.releaseRetryTokens(e.getLastRetryCost())}async getMaxAttempts(){let e;try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${r.DEFAULT_MAX_ATTEMPTS}`);return r.DEFAULT_MAX_ATTEMPTS}}shouldRetry(e,t,o){const r=e.getRetryCount();return r<o&&e.hasRetryTokens(t.errorType)&&this.isRetryableError(t.errorType)}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}t.StandardRetryStrategy=StandardRetryStrategy},6514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var o;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(o=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE="STANDARD"},65056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},44763:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryBackoffStrategy=void 0;const r=o(65056);const getDefaultRetryBackoffStrategy=()=>{let e=r.DEFAULT_RETRY_DELAY_BASE;const computeNextBackoffDelay=t=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};t.getDefaultRetryBackoffStrategy=getDefaultRetryBackoffStrategy},41360:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryToken=void 0;const r=o(65056);const n=o(44763);const getDefaultRetryToken=(e,t,o,s)=>{var i,a,c;const l=e;const u=(i=s===null||s===void 0?void 0:s.retryCost)!==null&&i!==void 0?i:r.RETRY_COST;const d=(a=s===null||s===void 0?void 0:s.timeoutRetryCost)!==null&&a!==void 0?a:r.TIMEOUT_RETRY_COST;const p=(c=s===null||s===void 0?void 0:s.retryBackoffStrategy)!==null&&c!==void 0?c:(0,n.getDefaultRetryBackoffStrategy)();let f=e;let m=Math.min(r.MAXIMUM_RETRY_DELAY,t);let g=undefined;let y=o!==null&&o!==void 0?o:0;const getCapacityAmount=e=>e==="TRANSIENT"?d:u;const getRetryCount=()=>y;const getRetryDelay=()=>m;const getLastRetryCost=()=>g;const hasRetryTokens=e=>getCapacityAmount(e)<=f;const getRetryTokenCount=e=>{const t=e.errorType;if(!hasRetryTokens(t)){throw new Error("No retry token available")}const o=getCapacityAmount(t);const n=t==="THROTTLING"?r.THROTTLING_RETRY_DELAY_BASE:r.DEFAULT_RETRY_DELAY_BASE;p.setDelayBase(n);const s=p.computeNextBackoffDelay(y);if(e.retryAfterHint){const t=e.retryAfterHint.getTime()-Date.now();m=Math.max(t||0,s)}else{m=s}y++;g=o;f-=o;return o};const releaseRetryTokens=e=>{f+=e!==null&&e!==void 0?e:r.NO_RETRY_INCREMENT;f=Math.min(f,l)};return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getLastRetryCost:getLastRetryCost,hasRetryTokens:hasRetryTokens,getRetryTokenCount:getRetryTokenCount,releaseRetryTokens:releaseRetryTokens}};t.getDefaultRetryToken=getDefaultRetryToken},99395:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(66968),t);r.__exportStar(o(258),t);r.__exportStar(o(43449),t);r.__exportStar(o(6514),t);r.__exportStar(o(65056),t);r.__exportStar(o(91318),t)},91318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15774:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const r=o(24652);const escapeUriPath=e=>e.split("/").map(r.escapeUri).join("/");t.escapeUriPath=escapeUriPath},24652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUri=void 0;const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);t.escapeUri=escapeUri;const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},57952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(24652),t);r.__exportStar(o(15774),t)},98095:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const r=o(87684);const n=o(22037);const s=o(77282);const i=o(68390);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:o})=>{const a=[["aws-sdk-js",o],[`os/${(0,n.platform)()}`,(0,n.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const c=(0,i.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,o])}if(s.env.AWS_EXECUTION_ENV){a.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const l=(0,r.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await l;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},68390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},66278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const r=o(91141);const fromUtf8=e=>{const t=(0,r.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>(0,r.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},55815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},91141:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const r=o(55815);const n=o(14300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!(0,r.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return n.Buffer.from(e,t,o)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?n.Buffer.from(e,t):n.Buffer.from(e)};t.fromString=fromString},38880:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const r=o(92105);const n=o(36001);const s=o(4996);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:s.WaiterState.ABORTED})}));const createWaiter=async(e,t,o)=>{const i={...s.waiterServiceDefaults,...e};(0,n.validateWaiterOptions)(i);const a=[(0,r.runPolling)(i,t,o)];if(e.abortController){a.push(abortTimeout(e.abortController.signal))}if(e.abortSignal){a.push(abortTimeout(e.abortSignal))}return Promise.race(a)};t.createWaiter=createWaiter},21627:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(38880),t);r.__exportStar(o(4996),t)},92105:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const r=o(17397);const n=o(4996);const exponentialBackoffWithJitter=(e,t,o,r)=>{if(r>o)return t;const n=e*2**(r-1);return randomInRange(e,n)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:t,maxWaitTime:o,abortController:s,client:i,abortSignal:a},c,l)=>{var u;const{state:d,reason:p}=await l(i,c);if(d!==n.WaiterState.RETRY){return{state:d,reason:p}}let f=1;const m=Date.now()+o*1e3;const g=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=s===null||s===void 0?void 0:s.signal)===null||u===void 0?void 0:u.aborted)||(a===null||a===void 0?void 0:a.aborted)){return{state:n.WaiterState.ABORTED}}const o=exponentialBackoffWithJitter(e,t,g,f);if(Date.now()+o*1e3>m){return{state:n.WaiterState.TIMEOUT}}await(0,r.sleep)(o);const{state:d,reason:p}=await l(i,c);if(d!==n.WaiterState.RETRY){return{state:d,reason:p}}f+=1}};t.runPolling=runPolling},36001:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=o(4351);r.__exportStar(o(17397),t);r.__exportStar(o(23931),t)},17397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sleep=void 0;const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));t.sleep=sleep},23931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateWaiterOptions=void 0;const validateWaiterOptions=e=>{if(e.maxWaitTime<1){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<1){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<1){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};t.validateWaiterOptions=validateWaiterOptions},4996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkExceptions=t.WaiterState=t.waiterServiceDefaults=void 0;t.waiterServiceDefaults={minDelay:2,maxDelay:120};var o;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(o=t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===o.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);t.name="AbortError";throw t}else if(e.state===o.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);t.name="TimeoutError";throw t}else if(e.state!==o.SUCCESS){throw new Error(`${JSON.stringify({result:e})}`)}return e};t.checkExceptions=checkExceptions},81040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function once(e,t,{signal:o}={}){return new Promise(((r,n)=>{function cleanup(){o===null||o===void 0?void 0:o.removeEventListener("abort",cleanup);e.removeListener(t,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();r(e)}function onError(e){cleanup();n(e)}o===null||o===void 0?void 0:o.addEventListener("abort",cleanup);e.on(t,onEvent);e.on("error",onError)}))}t["default"]=once},49690:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const n=o(82361);const s=r(o(38237));const i=r(o(66570));const a=s.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends n.EventEmitter{constructor(e,t){super();let o=t;if(typeof e==="function"){this.callback=e}else if(e){o=e}this.timeout=null;if(o&&typeof o.timeout==="number"){this.timeout=o.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const o=Object.assign({},t);if(typeof o.secureEndpoint!=="boolean"){o.secureEndpoint=isSecureEndpoint()}if(o.host==null){o.host="localhost"}if(o.port==null){o.port=o.secureEndpoint?443:80}if(o.protocol==null){o.protocol=o.secureEndpoint?"https:":"http:"}if(o.host&&o.path){delete o.path}delete o.agent;delete o.hostname;delete o._defaultAgent;delete o.defaultPort;delete o.createConnection;e._last=true;e.shouldKeepAlive=false;let r=false;let n=null;const s=o.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{n=null;r=true;const e=new Error(`A "socket" was not created for HTTP request before ${s}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(r)return;if(n!==null){clearTimeout(n);n=null}onerror(e)};const onsocket=t=>{if(r)return;if(n!=null){clearTimeout(n);n=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,o);return}if(t){t.once("free",(()=>{this.freeSocket(t,o)}));e.onSocket(t);return}const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(s)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){a("Converting legacy callback function to promise");this.promisifiedCallback=i.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof s==="number"&&s>0){n=setTimeout(ontimeout,s)}if("port"in o&&typeof o.port!=="number"){o.port=Number(o.port)}try{a("Resolving socket for %o request: %o",o.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,o)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},66570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,o){return new Promise(((r,n)=>{e.call(this,t,o,((e,t)=>{if(e){n(e)}else{r(t)}}))}))}}t["default"]=promisify},28222:(e,t,o)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let r=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}r++;if(e==="%c"){n=r}}));t.splice(n,0,o)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=o(46243)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},46243:(e,t,o)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=o(80900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let o=0;o<e.length;o++){t=(t<<5)-t+e.charCodeAt(o);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let o=null;let r;let n;function debug(...e){if(!debug.enabled){return}const o=debug;const r=Number(new Date);const n=r-(t||r);o.diff=n;o.prev=t;o.curr=r;t=r;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,r)=>{if(t==="%%"){return"%"}s++;const n=createDebug.formatters[r];if(typeof n==="function"){const r=e[s];t=n.call(o,r);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(o,e);const i=o.log||createDebug.log;i.apply(o,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(o!==null){return o}if(r!==createDebug.namespaces){r=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{o=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const o=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);o.log=this.log;return o}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const o=(typeof e==="string"?e:"").split(/[\s,]+/);const r=o.length;for(t=0;t<r;t++){if(!o[t]){continue}e=o[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let o;for(t=0,o=createDebug.skips.length;t<o;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,o=createDebug.names.length;t<o;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},38237:(e,t,o)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=o(28222)}else{e.exports=o(35332)}},35332:(e,t,o)=>{const r=o(76224);const n=o(73837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=o(59318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const o=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[o]=r;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:o,useColors:r}=this;if(r){const r=this.color;const n="[3"+(r<8?r:"8;5;"+r);const s=` ${n};1m${o} [0m`;t[0]=s+t[0].split("\n").join("\n"+s);t.push(n+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+o+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const o=Object.keys(t.inspectOpts);for(let r=0;r<o.length;r++){e.inspectOpts[o[r]]=t.inspectOpts[o[r]]}}e.exports=o(46243)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},85107:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var n=r(o(59323));var s=r(o(29591));var i=r(o(2586));var a=r(o(31227));var c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=getStrictDecoder(i.default);t.decodeHTMLStrict=getStrictDecoder(n.default);function getStrictDecoder(e){var t=getReplacer(e);return function(e){return String(e).replace(c,t)}}var sorter=function(e,t){return e<t?1:-1};t.decodeHTML=function(){var e=Object.keys(s.default).sort(sorter);var t=Object.keys(n.default).sort(sorter);for(var o=0,r=0;o<t.length;o++){if(e[r]===t[o]){t[o]+=";?";r++}else{t[o]+=";"}}var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g");var a=getReplacer(n.default);function replacer(e){if(e.substr(-1)!==";")e+=";";return a(e)}return function(e){return String(e).replace(i,replacer)}}();function getReplacer(e){return function replace(t){if(t.charAt(1)==="#"){var o=t.charAt(2);if(o==="X"||o==="x"){return a.default(parseInt(t.substr(3),16))}return a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}},31227:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(o(33600));var s=String.fromCodePoint||function(e){var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function decodeCodePoint(e){if(e>=55296&&e<=57343||e>1114111){return"<22>"}if(e in n.default){e=n.default[e]}return s(e)}t["default"]=decodeCodePoint},2006:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var n=r(o(2586));var s=getInverseObj(n.default);var i=getInverseReplacer(s);t.encodeXML=getASCIIEncoder(s);var a=r(o(59323));var c=getInverseObj(a.default);var l=getInverseReplacer(c);t.encodeHTML=getInverse(c,l);t.encodeNonAsciiHTML=getASCIIEncoder(c);function getInverseObj(e){return Object.keys(e).sort().reduce((function(t,o){t[e[o]]="&"+o+";";return t}),{})}function getInverseReplacer(e){var t=[];var o=[];for(var r=0,n=Object.keys(e);r<n.length;r++){var s=n[r];if(s.length===1){t.push("\\"+s)}else{o.push(s)}}t.sort();for(var i=0;i<t.length-1;i++){var a=i;while(a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1)){a+=1}var c=1+a-i;if(c<3)continue;t.splice(i,c,t[i]+"-"+t[a])}o.unshift("["+t.join("")+"]");return new RegExp(o.join("|"),"g")}var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;var d=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function singleCharReplacer(e){return"&#x"+(e.length>1?d(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function getInverse(e,t){return function(o){return o.replace(t,(function(t){return e[t]})).replace(u,singleCharReplacer)}}var p=new RegExp(i.source+"|"+u.source,"g");function escape(e){return e.replace(p,singleCharReplacer)}t.escape=escape;function escapeUTF8(e){return e.replace(i,singleCharReplacer)}t.escapeUTF8=escapeUTF8;function getASCIIEncoder(e){return function(t){return t.replace(p,(function(t){return e[t]||singleCharReplacer(t)}))}}},3e3:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var r=o(85107);var n=o(2006);function decode(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)}t.decode=decode;function decodeStrict(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)}t.decodeStrict=decodeStrict;function encode(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}t.encode=encode;var s=o(2006);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return s.encodeXML}});Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return s.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return s.encodeNonAsciiHTML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return s.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return s.escapeUTF8}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return s.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return s.encodeHTML}});var i=o(85107);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return i.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return i.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return i.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return i.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return i.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return i.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return i.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return i.decodeXML}})},35152:(e,t,o)=>{"use strict";const r=o(38280).buildOptions;const n={attributeNamePrefix:"@_",attrNodeName:false,textNodeName:"#text",ignoreAttributes:true,cdataTagName:false,cdataPositionChar:"\\c",format:false,indentBy:" ",supressEmptyNode:false,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}};const s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function Parser(e){this.options=r(e,n,s);if(this.options.ignoreAttributes||this.options.attrNodeName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}if(this.options.cdataTagName){this.isCDATA=isCDATA}else{this.isCDATA=function(){return false}}this.replaceCDATAstr=replaceCDATAstr;this.replaceCDATAarr=replaceCDATAarr;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}if(this.options.supressEmptyNode){this.buildTextNode=buildEmptyTextNode;this.buildObjNode=buildEmptyObjNode}else{this.buildTextNode=buildTextValNode;this.buildObjNode=buildObjectNode}this.buildTextValNode=buildTextValNode;this.buildObjectNode=buildObjectNode}Parser.prototype.parse=function(e){return this.j2x(e,0).val};Parser.prototype.j2x=function(e,t){let o="";let r="";const n=Object.keys(e);const s=n.length;for(let i=0;i<s;i++){const s=n[i];if(typeof e[s]==="undefined"){}else if(e[s]===null){r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar}else if(e[s]instanceof Date){r+=this.buildTextNode(e[s],s,"",t)}else if(typeof e[s]!=="object"){const n=this.isAttribute(s);if(n){o+=" "+n+'="'+this.options.attrValueProcessor(""+e[s])+'"'}else if(this.isCDATA(s)){if(e[this.options.textNodeName]){r+=this.replaceCDATAstr(e[this.options.textNodeName],e[s])}else{r+=this.replaceCDATAstr("",e[s])}}else{if(s===this.options.textNodeName){if(e[this.options.cdataTagName]){}else{r+=this.options.tagValueProcessor(""+e[s])}}else{r+=this.buildTextNode(e[s],s,"",t)}}}else if(Array.isArray(e[s])){if(this.isCDATA(s)){r+=this.indentate(t);if(e[this.options.textNodeName]){r+=this.replaceCDATAarr(e[this.options.textNodeName],e[s])}else{r+=this.replaceCDATAarr("",e[s])}}else{const o=e[s].length;for(let n=0;n<o;n++){const o=e[s][n];if(typeof o==="undefined"){}else if(o===null){r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar}else if(typeof o==="object"){const e=this.j2x(o,t+1);r+=this.buildObjNode(e.val,s,e.attrStr,t)}else{r+=this.buildTextNode(o,s,"",t)}}}}else{if(this.options.attrNodeName&&s===this.options.attrNodeName){const t=Object.keys(e[s]);const r=t.length;for(let n=0;n<r;n++){o+=" "+t[n]+'="'+this.options.attrValueProcessor(""+e[s][t[n]])+'"'}}else{const o=this.j2x(e[s],t+1);r+=this.buildObjNode(o.val,s,o.attrStr,t)}}}return{attrStr:o,val:r}};function replaceCDATAstr(e,t){e=this.options.tagValueProcessor(""+e);if(this.options.cdataPositionChar===""||e===""){return e+"<![CDATA["+t+"]]"+this.tagEndChar}else{return e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}}function replaceCDATAarr(e,t){e=this.options.tagValueProcessor(""+e);if(this.options.cdataPositionChar===""||e===""){return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar}else{for(let o in t){e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[o]+"]]>")}return e+this.newLine}}function buildObjectNode(e,t,o,r){if(o&&!e.includes("<")){return this.indentate(r)+"<"+t+o+">"+e+"</"+t+this.tagEndChar}else{return this.indentate(r)+"<"+t+o+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}}function buildEmptyObjNode(e,t,o,r){if(e!==""){return this.buildObjectNode(e,t,o,r)}else{return this.indentate(r)+"<"+t+o+"/"+this.tagEndChar}}function buildTextValNode(e,t,o,r){return this.indentate(r)+"<"+t+o+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function buildEmptyTextNode(e,t,o,r){if(e!==""){return this.buildTextValNode(e,t,o,r)}else{return this.indentate(r)+"<"+t+o+"/"+this.tagEndChar}}function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)){return e.substr(this.attrPrefixLen)}else{return false}}function isCDATA(e){return e===this.options.cdataTagName}e.exports=Parser},41901:(e,t,o)=>{"use strict";const char=function(e){return String.fromCharCode(e)};const r={nilChar:char(176),missingChar:char(201),nilPremitive:char(175),missingPremitive:char(200),emptyChar:char(178),emptyValue:char(177),boundryChar:char(179),objStart:char(198),arrStart:char(204),arrayEnd:char(185)};const n=[r.nilChar,r.nilPremitive,r.missingChar,r.missingPremitive,r.boundryChar,r.emptyChar,r.emptyValue,r.arrayEnd,r.objStart,r.arrStart];const _e=function(e,t,o){if(typeof t==="string"){if(e&&e[0]&&e[0].val!==undefined){return getValue(e[0].val,t)}else{return getValue(e,t)}}else{const n=hasData(e);if(n===true){let n="";if(Array.isArray(t)){n+=r.arrStart;const s=t[0];const i=e.length;if(typeof s==="string"){for(let t=0;t<i;t++){const o=getValue(e[t].val,s);n=processValue(n,o)}}else{for(let t=0;t<i;t++){const r=_e(e[t],s,o);n=processValue(n,r)}}n+=r.arrayEnd}else{n+=r.objStart;const s=Object.keys(t);if(Array.isArray(e)){e=e[0]}for(let r in s){const i=s[r];let a;if(!o.ignoreAttributes&&e.attrsMap&&e.attrsMap[i]){a=_e(e.attrsMap[i],t[i],o)}else if(i===o.textNodeName){a=_e(e.val,t[i],o)}else{a=_e(e.child[i],t[i],o)}n=processValue(n,a)}}return n}else{return n}}};const getValue=function(e){switch(e){case undefined:return r.missingPremitive;case null:return r.nilPremitive;case"":return r.emptyValue;default:return e}};const processValue=function(e,t){if(!isAppChar(t[0])&&!isAppChar(e[e.length-1])){e+=r.boundryChar}return e+t};const isAppChar=function(e){return n.indexOf(e)!==-1};function hasData(e){if(e===undefined){return r.missingChar}else if(e===null){return r.nilChar}else if(e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)){return r.emptyChar}else{return true}}const s=o(6712);const i=o(38280).buildOptions;const convert2nimn=function(e,t,o){o=i(o,s.defaultOptions,s.props);return _e(e,t,o)};t.convert2nimn=convert2nimn},88270:(e,t,o)=>{"use strict";const r=o(38280);const convertToJson=function(e,t,o){const n={};if((!e.child||r.isEmptyObject(e.child))&&(!e.attrsMap||r.isEmptyObject(e.attrsMap))){return r.isExist(e.val)?e.val:""}if(r.isExist(e.val)&&!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){const s=r.isTagNameInArrayMode(e.tagname,t.arrayMode,o);n[t.textNodeName]=s?[e.val]:e.val}r.merge(n,e.attrsMap,t.arrayMode);const s=Object.keys(e.child);for(let i=0;i<s.length;i++){const a=s[i];if(e.child[a]&&e.child[a].length>1){n[a]=[];for(let o in e.child[a]){if(e.child[a].hasOwnProperty(o)){n[a].push(convertToJson(e.child[a][o],t,a))}}}else{const s=convertToJson(e.child[a][0],t,a);const i=t.arrayMode===true&&typeof s==="object"||r.isTagNameInArrayMode(a,t.arrayMode,o);n[a]=i?[s]:s}}return n};t.convertToJson=convertToJson},16014:(e,t,o)=>{"use strict";const r=o(38280);const n=o(38280).buildOptions;const s=o(6712);const convertToJsonString=function(e,t){t=n(t,s.defaultOptions,s.props);t.indentBy=t.indentBy||"";return _cToJsonStr(e,t,0)};const _cToJsonStr=function(e,t,o){let n="{";const s=Object.keys(e.child);for(let o=0;o<s.length;o++){var i=s[o];if(e.child[i]&&e.child[i].length>1){n+='"'+i+'" : [ ';for(var a in e.child[i]){n+=_cToJsonStr(e.child[i][a],t)+" , "}n=n.substr(0,n.length-1)+" ] "}else{n+='"'+i+'" : '+_cToJsonStr(e.child[i][0],t)+" ,"}}r.merge(n,e.attrsMap);if(r.isEmptyObject(n)){return r.isExist(e.val)?e.val:""}else{if(r.isExist(e.val)){if(!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){n+='"'+t.textNodeName+'" : '+stringval(e.val)}}}if(n[n.length-1]===","){n=n.substr(0,n.length-2)}return n+"}"};function stringval(e){if(e===true||e===false||!isNaN(e)){return e}else{return'"'+e+'"'}}function indentate(e,t){return e.indentBy.repeat(t)}t.convertToJsonString=convertToJsonString},27448:(e,t,o)=>{"use strict";const r=o(88270);const n=o(6712);const s=o(6712);const i=o(38280).buildOptions;const a=o(61739);t.parse=function(e,t,o){if(o){if(o===true)o={};const t=a.validate(e,o);if(t!==true){throw Error(t.err.msg)}}t=i(t,s.defaultOptions,s.props);const c=n.getTraversalObj(e,t);return r.convertToJson(c,t)};t.convertTonimn=o(41901).convert2nimn;t.getTraversalObj=n.getTraversalObj;t.convertToJson=r.convertToJson;t.convertToJsonString=o(16014).convertToJsonString;t.validate=a.validate;t.j2xParser=o(35152);t.parseToNimn=function(e,o,r){return t.convertTonimn(t.getTraversalObj(e,r),o,r)};function print(e,t){if(e){console.log(t+"{");console.log(t+' "tagName": "'+e.tagname+'", ');if(e.parent){console.log(t+' "parent": "'+e.parent.tagname+'", ')}console.log(t+' "val": "'+e.val+'", ');console.log(t+' "attrs": '+JSON.stringify(e.attrsMap,null,4)+", ");if(e.child){console.log(t+'"child": {');const o=t+t;Object.keys(e.child).forEach((function(r){const n=e.child[r];if(Array.isArray(n)){console.log(t+'"'+r+'" :[');n.forEach((function(e,t){print(e,o)}));console.log(t+"],")}else{console.log(t+' "'+r+'" : {');print(n,o);console.log(t+"},")}}));console.log(t+"},")}console.log(t+"},")}}},38280:(e,t)=>{"use strict";const o=":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";const r=o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const n="["+o+"]["+r+"]*";const s=new RegExp("^"+n+"$");const getAllMatches=function(e,t){const o=[];let r=t.exec(e);while(r){const n=[];const s=r.length;for(let e=0;e<s;e++){n.push(r[e])}o.push(n);r=t.exec(e)}return o};const isName=function(e){const t=s.exec(e);return!(t===null||typeof t==="undefined")};t.isExist=function(e){return typeof e!=="undefined"};t.isEmptyObject=function(e){return Object.keys(e).length===0};t.merge=function(e,t,o){if(t){const r=Object.keys(t);const n=r.length;for(let s=0;s<n;s++){if(o==="strict"){e[r[s]]=[t[r[s]]]}else{e[r[s]]=t[r[s]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.buildOptions=function(e,t,o){var r={};if(!e){return t}for(let n=0;n<o.length;n++){if(e[o[n]]!==undefined){r[o[n]]=e[o[n]]}else{r[o[n]]=t[o[n]]}}return r};t.isTagNameInArrayMode=function(e,t,o){if(t===false){return false}else if(t instanceof RegExp){return t.test(e)}else if(typeof t==="function"){return!!t(e,o)}return t==="strict"};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=n},61739:(e,t,o)=>{"use strict";const r=o(38280);const n={allowBooleanAttributes:false};const s=["allowBooleanAttributes"];t.validate=function(e,t){t=r.buildOptions(t,n,s);const o=[];let i=false;let a=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let r=0;r<e.length;r++){if(e[r]==="<"&&e[r+1]==="?"){r+=2;r=readPI(e,r);if(r.err)return r}else if(e[r]==="<"){r++;if(e[r]==="!"){r=readCommentAndCDATA(e,r);continue}else{let n=false;if(e[r]==="/"){n=true;r++}let s="";for(;r<e.length&&e[r]!==">"&&e[r]!==" "&&e[r]!=="\t"&&e[r]!=="\n"&&e[r]!=="\r";r++){s+=e[r]}s=s.trim();if(s[s.length-1]==="/"){s=s.substring(0,s.length-1);r--}if(!validateTagName(s)){let t;if(s.trim().length===0){t="There is an unnecessary space between tag name and backward slash '</ ..'."}else{t="Tag '"+s+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,r))}const c=readAttributeStr(e,r);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+s+"' have open quote.",getLineNumberForPosition(e,r))}let l=c.value;r=c.index;if(l[l.length-1]==="/"){l=l.substring(0,l.length-1);const o=validateAttributeString(l,t);if(o===true){i=true}else{return getErrorObject(o.err.code,o.err.msg,getLineNumberForPosition(e,r-l.length+o.err.line))}}else if(n){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+s+"' doesn't have proper closing.",getLineNumberForPosition(e,r))}else if(l.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+s+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,r))}else{const t=o.pop();if(s!==t){return getErrorObject("InvalidTag","Closing tag '"+t+"' is expected inplace of '"+s+"'.",getLineNumberForPosition(e,r))}if(o.length==0){a=true}}}else{const n=validateAttributeString(l,t);if(n!==true){return getErrorObject(n.err.code,n.err.msg,getLineNumberForPosition(e,r-l.length+n.err.line))}if(a===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,r))}else{o.push(s)}i=true}for(r++;r<e.length;r++){if(e[r]==="<"){if(e[r+1]==="!"){r++;r=readCommentAndCDATA(e,r);continue}else if(e[r+1]==="?"){r=readPI(e,++r);if(r.err)return r}else{break}}else if(e[r]==="&"){const t=validateAmpersand(e,r);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,r));r=t}}if(e[r]==="<"){r--}}}else{if(e[r]===" "||e[r]==="\t"||e[r]==="\n"||e[r]==="\r"){continue}return getErrorObject("InvalidChar","char '"+e[r]+"' is not expected.",getLineNumberForPosition(e,r))}}if(!i){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(o.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(o,null,4).replace(/\r?\n/g,"")+"' found.",1)}return true};function readPI(e,t){var o=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){var r=e.substr(o,t-o);if(t>5&&r==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++){if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let o=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){o++}else if(e[t]===">"){o--;if(o===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++){if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}}return t}var i='"';var a="'";function readAttributeStr(e,t){let o="";let r="";let n=false;for(;t<e.length;t++){if(e[t]===i||e[t]===a){if(r===""){r=e[t]}else if(r!==e[t]){continue}else{r=""}}else if(e[t]===">"){if(r===""){n=true;break}}o+=e[t]}if(r!==""){return false}return{value:o,index:t,tagClosed:n}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const o=r.getAllMatches(e,c);const n={};for(let r=0;r<o.length;r++){if(o[r][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+o[r][2]+"' has no space in starting.",getPositionFromMatch(e,o[r][0]))}else if(o[r][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+o[r][2]+"' is not allowed.",getPositionFromMatch(e,o[r][0]))}const s=o[r][2];if(!validateAttrName(s)){return getErrorObject("InvalidAttr","Attribute '"+s+"' is an invalid name.",getPositionFromMatch(e,o[r][0]))}if(!n.hasOwnProperty(s)){n[s]=1}else{return getErrorObject("InvalidAttr","Attribute '"+s+"' is repeated.",getPositionFromMatch(e,o[r][0]))}}return true}function validateNumberAmpersand(e,t){let o=/\d/;if(e[t]==="x"){t++;o=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(o))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let o=0;for(;t<e.length;t++,o++){if(e[t].match(/\w/)&&o<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,o){return{err:{code:e,msg:t,line:o}}}function validateAttrName(e){return r.isName(e)}function validateTagName(e){return r.isName(e)}function getLineNumberForPosition(e,t){var o=e.substring(0,t).split(/\r?\n/);return o.length}function getPositionFromMatch(e,t){return e.indexOf(t)+t.length}},49539:e=>{"use strict";e.exports=function(e,t,o){this.tagname=e;this.parent=t;this.child={};this.attrsMap={};this.val=o;this.addChild=function(e){if(Array.isArray(this.child[e.tagname])){this.child[e.tagname].push(e)}else{this.child[e.tagname]=[e]}}}},6712:(e,t,o)=>{"use strict";const r=o(38280);const n=o(38280).buildOptions;const s=o(49539);const i="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const a={attributeNamePrefix:"@_",attrNodeName:false,textNodeName:"#text",ignoreAttributes:true,ignoreNameSpace:false,allowBooleanAttributes:false,parseNodeValue:true,parseAttributeValue:false,arrayMode:false,trimValues:true,cdataTagName:false,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;const c=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];t.props=c;function processTagValue(e,t,o){if(t){if(o.trimValues){t=t.trim()}t=o.tagValueProcessor(t,e);t=parseValue(t,o.parseNodeValue,o.parseTrueNumberOnly)}return t}function resolveNameSpace(e,t){if(t.ignoreNameSpace){const t=e.split(":");const o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=o+t[1]}}return e}function parseValue(e,t,o){if(t&&typeof e==="string"){let t;if(e.trim()===""||isNaN(e)){t=e==="true"?true:e==="false"?false:e}else{if(e.indexOf("0x")!==-1){t=Number.parseInt(e,16)}else if(e.indexOf(".")!==-1){t=Number.parseFloat(e);e=e.replace(/\.?0+$/,"")}else{t=Number.parseInt(e,10)}if(o){t=String(t)===e?t:e}}return t}else{if(r.isExist(e)){return e}else{return""}}}const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function buildAttributesMap(e,t){if(!t.ignoreAttributes&&typeof e==="string"){e=e.replace(/\r?\n/g," ");const o=r.getAllMatches(e,l);const n=o.length;const s={};for(let e=0;e<n;e++){const r=resolveNameSpace(o[e][1],t);if(r.length){if(o[e][4]!==undefined){if(t.trimValues){o[e][4]=o[e][4].trim()}o[e][4]=t.attrValueProcessor(o[e][4],r);s[t.attributeNamePrefix+r]=parseValue(o[e][4],t.parseAttributeValue,t.parseTrueNumberOnly)}else if(t.allowBooleanAttributes){s[t.attributeNamePrefix+r]=true}}}if(!Object.keys(s).length){return}if(t.attrNodeName){const e={};e[t.attrNodeName]=s;return e}return s}}const getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n");t=n(t,a,c);const o=new s("!xml");let i=o;let l="";for(let o=0;o<e.length;o++){const n=e[o];if(n==="<"){if(e[o+1]==="/"){const n=findClosingIndex(e,">",o,"Closing Tag is not closed.");let s=e.substring(o+2,n).trim();if(t.ignoreNameSpace){const e=s.indexOf(":");if(e!==-1){s=s.substr(e+1)}}if(i){if(i.val){i.val=r.getValue(i.val)+""+processTagValue(s,l,t)}else{i.val=processTagValue(s,l,t)}}if(t.stopNodes.length&&t.stopNodes.includes(i.tagname)){i.child=[];if(i.attrsMap==undefined){i.attrsMap={}}i.val=e.substr(i.startIndex+1,o-i.startIndex-1)}i=i.parent;l="";o=n}else if(e[o+1]==="?"){o=findClosingIndex(e,"?>",o,"Pi Tag is not closed.")}else if(e.substr(o+1,3)==="!--"){o=findClosingIndex(e,"--\x3e",o,"Comment is not closed.")}else if(e.substr(o+1,2)==="!D"){const t=findClosingIndex(e,">",o,"DOCTYPE is not closed.");const r=e.substring(o,t);if(r.indexOf("[")>=0){o=e.indexOf("]>",o)+1}else{o=t}}else if(e.substr(o+1,2)==="!["){const n=findClosingIndex(e,"]]>",o,"CDATA is not closed.")-2;const a=e.substring(o+9,n);if(l){i.val=r.getValue(i.val)+""+processTagValue(i.tagname,l,t);l=""}if(t.cdataTagName){const e=new s(t.cdataTagName,i,a);i.addChild(e);i.val=r.getValue(i.val)+t.cdataPositionChar;if(a){e.val=a}}else{i.val=(i.val||"")+(a||"")}o=n+2}else{const n=closingIndexForOpeningTag(e,o+1);let a=n.data;const c=n.index;const u=a.indexOf(" ");let d=a;let p=true;if(u!==-1){d=a.substr(0,u).replace(/\s\s*$/,"");a=a.substr(u+1)}if(t.ignoreNameSpace){const e=d.indexOf(":");if(e!==-1){d=d.substr(e+1);p=d!==n.data.substr(e+1)}}if(i&&l){if(i.tagname!=="!xml"){i.val=r.getValue(i.val)+""+processTagValue(i.tagname,l,t)}}if(a.length>0&&a.lastIndexOf("/")===a.length-1){if(d[d.length-1]==="/"){d=d.substr(0,d.length-1);a=d}else{a=a.substr(0,a.length-1)}const e=new s(d,i,"");if(d!==a){e.attrsMap=buildAttributesMap(a,t)}i.addChild(e)}else{const e=new s(d,i);if(t.stopNodes.length&&t.stopNodes.includes(e.tagname)){e.startIndex=c}if(d!==a&&p){e.attrsMap=buildAttributesMap(a,t)}i.addChild(e);i=e}l="";o=c}}else{l+=e[o]}}return o};function closingIndexForOpeningTag(e,t){let o;let r="";for(let n=t;n<e.length;n++){let t=e[n];if(o){if(t===o)o=""}else if(t==='"'||t==="'"){o=t}else if(t===">"){return{data:r,index:n}}else if(t==="\t"){t=" "}r+=t}}function findClosingIndex(e,t,o,r){const n=e.indexOf(t,o);if(n===-1){throw new Error(r)}else{return n+t.length-1}}t.getTraversalObj=getTraversalObj},31621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const o=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(o+e);const n=t.indexOf("--");return r!==-1&&(n===-1||r<n)}},77492:function(e,t,o){"use strict";var r=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(o(41808));const i=n(o(24404));const a=n(o(57310));const c=n(o(38237));const l=n(o(81040));const u=o(49690);const d=(0,c.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends u.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}d("Creating new HttpProxyAgent instance: %o",t);super(t);const o=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(o.protocol);o.host=o.hostname||o.host;if(typeof o.port==="string"){o.port=parseInt(o.port,10)}if(!o.port&&o.host){o.port=this.secureProxy?443:80}if(o.host&&o.path){delete o.path;delete o.pathname}this.proxy=o}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:o,secureProxy:r}=this;const n=a.default.parse(e.path);if(!n.protocol){n.protocol="http:"}if(!n.hostname){n.hostname=t.hostname||t.host||null}if(n.port==null&&typeof t.port){n.port=String(t.port)}if(n.port==="80"){n.port=""}e.path=a.default.format(n);if(o.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(o.auth).toString("base64")}`)}let c;if(r){d("Creating `tls.Socket`: %o",o);c=i.default.connect(o)}else{d("Creating `net.Socket`: %o",o);c=s.default.connect(o)}if(e._header){let t;let o;d("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){d("Patching connection write() output buffer with updated header");t=e.output[0];o=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(o);d("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){d("Patching connection write() output buffer with updated header");t=e.outputData[0].data;o=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(o);d("Output buffer: %o",e.outputData[0].data)}}yield(0,l.default)(c,"connect");return c}))}}t["default"]=HttpProxyAgent},23764:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const n=r(o(77492));function createHttpProxyAgent(e){return new n.default(e)}(function(e){e.HttpProxyAgent=n.default;e.prototype=n.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},15098:function(e,t,o){"use strict";var r=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(o(41808));const i=n(o(24404));const a=n(o(57310));const c=n(o(39491));const l=n(o(38237));const u=o(49690);const d=n(o(595));const p=l.default("https-proxy-agent:agent");class HttpsProxyAgent extends u.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}p("creating new HttpsProxyAgent instance: %o",t);super(t);const o=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(o.protocol);o.host=o.hostname||o.host;if(typeof o.port==="string"){o.port=parseInt(o.port,10)}if(!o.port&&o.host){o.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in o)){o.ALPNProtocols=["http 1.1"]}if(o.host&&o.path){delete o.path;delete o.pathname}this.proxy=o}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:o,secureProxy:r}=this;let n;if(r){p("Creating `tls.Socket`: %o",o);n=i.default.connect(o)}else{p("Creating `net.Socket`: %o",o);n=s.default.connect(o)}const a=Object.assign({},o.headers);const l=`${t.host}:${t.port}`;let u=`CONNECT ${l} HTTP/1.1\r\n`;if(o.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(o.auth).toString("base64")}`}let{host:f,port:m,secureEndpoint:g}=t;if(!isDefaultPort(m,g)){f+=`:${m}`}a.Host=f;a.Connection="close";for(const e of Object.keys(a)){u+=`${e}: ${a[e]}\r\n`}const y=d.default(n);n.write(`${u}\r\n`);const{statusCode:h,buffered:E}=yield y;if(h===200){e.once("socket",resume);if(t.secureEndpoint){p("Upgrading socket connection to TLS");const e=t.servername||t.host;return i.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:n,servername:e}))}return n}n.destroy();const v=new s.default.Socket({writable:false});v.readable=true;e.once("socket",(e=>{p("replaying proxy buffer for failed request");c.default(e.listenerCount("data")>0);e.push(E);e.push(null)}));return v}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const o={};let r;for(r in e){if(!t.includes(r)){o[r]=e[r]}}return o}},77219:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const n=r(o(15098));function createHttpsProxyAgent(e){return new n.default(e)}(function(e){e.HttpsProxyAgent=n.default;e.prototype=n.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},595:function(e,t,o){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=r(o(38237));const s=n.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,o)=>{let r=0;const n=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){s("onclose had error %o",e)}function onend(){s("onend")}function onerror(e){cleanup();s("onerror %o",e);o(e)}function ondata(e){n.push(e);r+=e.length;const o=Buffer.concat(n,r);const i=o.indexOf("\r\n\r\n");if(i===-1){s("have not received end of HTTP headers yet...");read();return}const a=o.toString("ascii",0,o.indexOf("\r\n"));const c=+a.split(" ")[1];s("got proxy server response: %o",a);t({statusCode:c,buffered:o})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},80900:e=>{var t=1e3;var o=t*60;var r=o*60;var n=r*24;var s=n*7;var i=n*365.25;e.exports=function(e,t){t=t||{};var o=typeof e;if(o==="string"&&e.length>0){return parse(e)}else if(o==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=n){return Math.round(e/n)+"d"}if(s>=r){return Math.round(e/r)+"h"}if(s>=o){return Math.round(e/o)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=n){return plural(e,s,n,"day")}if(s>=r){return plural(e,s,r,"hour")}if(s>=o){return plural(e,s,o,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,o,r){var n=t>=o*1.5;return Math.round(e/o)+" "+r+(n?"s":"")}},14526:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/;const o=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const r={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function toNumber(e,n={}){n=Object.assign({},r,n);if(!e||typeof e!=="string")return e;let s=e.trim();if(n.skipLike!==undefined&&n.skipLike.test(s))return e;else if(n.hex&&t.test(s)){return Number.parseInt(s,16)}else{const t=o.exec(s);if(t){const o=t[1];const r=t[2];let i=trimZeros(t[3]);const a=t[4]||t[6];if(!n.leadingZeros&&r.length>0&&o&&s[2]!==".")return e;else if(!n.leadingZeros&&r.length>0&&!o&&s[1]!==".")return e;else{const t=Number(s);const c=""+t;if(c.search(/[eE]/)!==-1){if(n.eNotation)return t;else return e}else if(a){if(n.eNotation)return t;else return e}else if(s.indexOf(".")!==-1){if(c==="0"&&i==="")return t;else if(c===i)return t;else if(o&&c==="-"+i)return t;else return e}if(r){if(i===c)return t;else if(o+i===c)return t;else return e}if(s===c)return t;else if(s===o+c)return t;return e}}else{return e}}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substr(0,e.length-1);return e}return e}e.exports=toNumber},59318:(e,t,o)=>{"use strict";const r=o(22037);const n=o(76224);const s=o(31621);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const o=a||0;if(i.TERM==="dumb"){return o}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return o}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},4351:e=>{var t;var o;var r;var n;var s;var i;var a;var c;var l;var u;var d;var p;var f;var m;var g;var y;var h;var E;var v;var _;var S;var w;var P;var b;var C;(function(t){var o=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(o,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(o,createExporter(e.exports)))}else{t(createExporter(o))}function createExporter(e,t){if(e!==o){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(o,r){return e[o]=t?t(o,r):r}}})((function(e){var R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");R(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};r=function(e,t){var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)o[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++){if(t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n]))o[r[n]]=e[r[n]]}return o};n=function(e,t,o,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)if(i=e[a])s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s;return n>3&&s&&Object.defineProperty(t,o,s),s};s=function(e,t){return function(o,r){t(o,r,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};c=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,n&&(s=i[0]&2?n["return"]:i[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;if(n=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;n=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(i[0]===6&&o.label<s[1]){o.label=s[1];s=i;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(i);break}if(s[2])o.ops.pop();o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e];n=0}finally{r=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};l=function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))C(t,e,o)};C=Object.create?function(e,t,o,r){if(r===undefined)r=o;var n=Object.getOwnPropertyDescriptor(t,o);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,r,n)}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]};u=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};d=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var r=o.call(e),n,s=[],i;try{while((t===void 0||t-- >0)&&!(n=r.next()).done)s.push(n.value)}catch(e){i={error:e}}finally{try{if(n&&!n.done&&(o=r["return"]))o.call(r)}finally{if(i)throw i.error}}return s};p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e};f=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<o;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,n++)r[n]=s[i];return r};m=function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++){if(s||!(r in t)){if(!s)s=Array.prototype.slice.call(t,0,r);s[r]=t[r]}}return e.concat(s||Array.prototype.slice.call(t))};g=function(e){return this instanceof g?(this.v=e,this):new g(e)};y=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o.apply(e,t||[]),n,s=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(r[e])n[e]=function(t){return new Promise((function(o,r){s.push([e,t,o,r])>1||resume(e,t)}))}}function resume(e,t){try{step(r[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof g?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};h=function(e){var t,o;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,n){t[r]=e[r]?function(t){return(o=!o)?{value:g(e[r](t)),done:r==="return"}:n?n(t):t}:n}};E=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof u==="function"?u(e):e[Symbol.iterator](),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(t){o[t]=e[t]&&function(o){return new Promise((function(r,n){o=e[t](o),settle(r,n,o.done,o.value)}))}}function settle(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}};v=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))C(t,e,o);x(t,e);return t};S=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,o,r){if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?r:o==="a"?r.call(e):r?r.value:t.get(e)};P=function(e,t,o,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(e,o):n?n.value=o:t.set(e,o),o};b=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",o);e("__rest",r);e("__decorate",n);e("__param",s);e("__metadata",i);e("__awaiter",a);e("__generator",c);e("__exportStar",l);e("__createBinding",C);e("__values",u);e("__read",d);e("__spread",p);e("__spreadArrays",f);e("__spreadArray",m);e("__await",g);e("__asyncGenerator",y);e("__asyncDelegator",h);e("__asyncValues",E);e("__makeTemplateObject",v);e("__importStar",_);e("__importDefault",S);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",P);e("__classPrivateFieldIn",b)}))},74294:(e,t,o)=>{e.exports=o(54219)},54219:(e,t,o)=>{"use strict";var r=o(41808);var n=o(24404);var s=o(13685);var i=o(95687);var a=o(82361);var c=o(39491);var l=o(73837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,o,r,n){var s=toOptions(o,r,n);for(var i=0,a=t.requests.length;i<a;++i){var c=t.requests[i];if(c.host===s.host&&c.port===s.port){t.requests.splice(i,1);c.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}l.inherits(TunnelingAgent,a.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,o,r){var n=this;var s=mergeOptions({request:e},n.options,toOptions(t,o,r));if(n.sockets.length>=this.maxSockets){n.requests.push(s);return}n.createSocket(s,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,s)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var o=this;var r={};o.sockets.push(r);var n=mergeOptions({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}u("making CONNECT request");var s=o.request(n);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,o){process.nextTick((function(){onConnect(e,t,o)}))}function onConnect(n,i,a){s.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);o.removeSocket(r);return}if(a.length>0){u("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);o.removeSocket(r);return}u("tunneling connection has established");o.sockets[o.sockets.indexOf(r)]=i;return t(i)}function onError(t){s.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, "+"cause="+t.message);n.code="ECONNRESET";e.request.emit("error",n);o.removeSocket(r)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var o=this.requests.shift();if(o){this.createSocket(o,(function(e){o.request.onSocket(e)}))}};function createSecureSocket(e,t){var o=this;TunnelingAgent.prototype.createSocket.call(o,e,(function(r){var s=e.request.getHeader("host");var i=mergeOptions({},o.options,{socket:r,servername:s?s.replace(/:.*$/,""):e.host});var a=n.connect(0,i);o.sockets[o.sockets.indexOf(r)]=a;t(a)}))}function toOptions(e,t,o){if(typeof e==="string"){return{host:e,port:t,localAddress:o}}return e}function mergeOptions(e){for(var t=1,o=arguments.length;t<o;++t){var r=arguments[t];if(typeof r==="object"){var n=Object.keys(r);for(var s=0,i=n.length;s<i;++s){var a=n[s];if(r[a]!==undefined){e[a]=r[a]}}}}return e}var u;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){u=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{u=function(){}}t.debug=u},75840:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return d.default}});var r=_interopRequireDefault(o(78628));var n=_interopRequireDefault(o(86409));var s=_interopRequireDefault(o(85122));var i=_interopRequireDefault(o(79120));var a=_interopRequireDefault(o(25332));var c=_interopRequireDefault(o(81595));var l=_interopRequireDefault(o(66900));var u=_interopRequireDefault(o(18950));var d=_interopRequireDefault(o(62746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return r.default.createHash("md5").update(e).digest()}var n=md5;t["default"]=n},25332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o="00000000-0000-0000-0000-000000000000";t["default"]=o},62746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,r.default)(e)){throw TypeError("Invalid UUID")}let t;const o=new Uint8Array(16);o[0]=(t=parseInt(e.slice(0,8),16))>>>24;o[1]=t>>>16&255;o[2]=t>>>8&255;o[3]=t&255;o[4]=(t=parseInt(e.slice(9,13),16))>>>8;o[5]=t&255;o[6]=(t=parseInt(e.slice(14,18),16))>>>8;o[7]=t&255;o[8]=(t=parseInt(e.slice(19,23),16))>>>8;o[9]=t&255;o[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;o[11]=t/4294967296&255;o[12]=t>>>24&255;o[13]=t>>>16&255;o[14]=t>>>8&255;o[15]=t&255;return o}var n=parse;t["default"]=n},40814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=o},50807:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var r=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=new Uint8Array(256);let s=n.length;function rng(){if(s>n.length-16){r.default.randomFillSync(n);s=0}return n.slice(s,s+=16)}},85274:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return r.default.createHash("sha1").update(e).digest()}var n=sha1;t["default"]=n},18950:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=[];for(let e=0;e<256;++e){n.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const o=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,r.default)(o)){throw TypeError("Stringified UUID is invalid")}return o}var s=stringify;t["default"]=s},78628:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(50807));var n=_interopRequireDefault(o(18950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let s;let i;let a=0;let c=0;function v1(e,t,o){let l=t&&o||0;const u=t||new Array(16);e=e||{};let d=e.node||s;let p=e.clockseq!==undefined?e.clockseq:i;if(d==null||p==null){const t=e.random||(e.rng||r.default)();if(d==null){d=s=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=i=(t[6]<<8|t[7])&16383}}let f=e.msecs!==undefined?e.msecs:Date.now();let m=e.nsecs!==undefined?e.nsecs:c+1;const g=f-a+(m-c)/1e4;if(g<0&&e.clockseq===undefined){p=p+1&16383}if((g<0||f>a)&&e.nsecs===undefined){m=0}if(m>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=f;c=m;i=p;f+=122192928e5;const y=((f&268435455)*1e4+m)%4294967296;u[l++]=y>>>24&255;u[l++]=y>>>16&255;u[l++]=y>>>8&255;u[l++]=y&255;const h=f/4294967296*1e4&268435455;u[l++]=h>>>8&255;u[l++]=h&255;u[l++]=h>>>24&15|16;u[l++]=h>>>16&255;u[l++]=p>>>8|128;u[l++]=p&255;for(let e=0;e<6;++e){u[l+e]=d[e]}return t||(0,n.default)(u)}var l=v1;t["default"]=l},86409:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(65998));var n=_interopRequireDefault(o(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("v3",48,n.default);var i=s;t["default"]=i},65998:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var r=_interopRequireDefault(o(18950));var n=_interopRequireDefault(o(62746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let o=0;o<e.length;++o){t.push(e.charCodeAt(o))}return t}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=s;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=i;function _default(e,t,o){function generateUUID(e,s,i,a){if(typeof e==="string"){e=stringToBytes(e)}if(typeof s==="string"){s=(0,n.default)(s)}if(s.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let c=new Uint8Array(16+e.length);c.set(s);c.set(e,s.length);c=o(c);c[6]=c[6]&15|t;c[8]=c[8]&63|128;if(i){a=a||0;for(let e=0;e<16;++e){i[a+e]=c[e]}return i}return(0,r.default)(c)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=s;generateUUID.URL=i;return generateUUID}},85122:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(50807));var n=_interopRequireDefault(o(18950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,o){e=e||{};const s=e.random||(e.rng||r.default)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){o=o||0;for(let e=0;e<16;++e){t[o+e]=s[e]}return t}return(0,n.default)(s)}var s=v4;t["default"]=s},79120:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(65998));var n=_interopRequireDefault(o(85274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("v5",80,n.default);var i=s;t["default"]=i},66900:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(40814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&r.default.test(e)}var n=validate;t["default"]=n},81595:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=_interopRequireDefault(o(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,r.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var n=version;t["default"]=n},36949:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getRegistriesData=t.getAccountIDs=t.getRegion=t.isPubECR=t.isECR=void 0;const a=s(o(42186));const c=o(8923);const l=o(42308);const u=o(68805);const d=o(23764);const p=o(77219);const f=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;const isECR=e=>f.test(e)||(0,t.isPubECR)(e);t.isECR=isECR;const isPubECR=e=>e==="public.ecr.aws";t.isPubECR=isPubECR;const getRegion=e=>{if((0,t.isPubECR)(e)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const o=e.match(f);if(!o){return""}return o[3]};t.getRegion=getRegion;const getAccountIDs=e=>{if((0,t.isPubECR)(e)){return[]}const o=e.match(f);if(!o){return[]}const r=[o[2]];if(process.env.AWS_ACCOUNT_IDS){r.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return r.filter(((e,t)=>r.indexOf(e)===t))};t.getAccountIDs=getAccountIDs;const getRegistriesData=(e,o,r)=>i(void 0,void 0,void 0,(function*(){const n=(0,t.getRegion)(e);const s=(0,t.getAccountIDs)(e);const i={};if(s.length>0){a.debug(`Requesting AWS ECR auth token for ${s.join(", ")}`);i["registryIds"]=s}let f;const m=process.env.http_proxy||process.env.HTTP_PROXY||"";if(m){a.debug(`Using http proxy ${m}`);f=new d.HttpProxyAgent(m)}let g;const y=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(y){a.debug(`Using https proxy ${y}`);g=new p.HttpsProxyAgent(y)}const h=o&&r?{accessKeyId:o,secretAccessKey:r}:undefined;if((0,t.isPubECR)(e)){a.info(`AWS Public ECR detected with ${n} region`);const e=new l.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:h,region:n,requestHandler:new u.NodeHttpHandler({httpAgent:f,httpsAgent:g})});const t=yield e.getAuthorizationToken(i);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const o=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const r=o.split(":",2);a.setSecret(r[0]);a.setSecret(r[1]);return[{registry:"public.ecr.aws",username:r[0],password:r[1]}]}else{a.info(`AWS ECR detected with ${n} region`);const e=new c.ECR({customUserAgent:"docker-login-action",credentials:h,region:n,requestHandler:new u.NodeHttpHandler({httpAgent:f,httpsAgent:g})});const t=yield e.getAuthorizationToken(i);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const o=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const r=t.split(":",2);a.setSecret(r[0]);a.setSecret(r[1]);o.push({registry:e.proxyEndpoint||"",username:r[0],password:r[1]})}return o}}));t.getRegistriesData=getRegistriesData},98954:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=void 0;const i=s(o(42186));function getInputs(){return{registry:i.getInput("registry"),username:i.getInput("username"),password:i.getInput("password"),ecr:i.getInput("ecr"),logout:i.getBooleanInput("logout")}}t.getInputs=getInputs},6512:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.loginECR=t.loginStandard=t.logout=t.login=void 0;const a=s(o(36949));const c=s(o(42186));const l=s(o(71514));function login(e,t,o,r){return i(this,void 0,void 0,(function*(){if(/true/i.test(r)||r=="auto"&&a.isECR(e)){yield loginECR(e,t,o)}else{yield loginStandard(e,t,o)}}))}t.login=login;function logout(e){return i(this,void 0,void 0,(function*(){yield l.getExecOutput("docker",["logout",e],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){c.warning(e.stderr.trim())}}))}))}t.logout=logout;function loginStandard(e,t,o){return i(this,void 0,void 0,(function*(){if(!t||!o){throw new Error("Username and password required")}const r=["login","--password-stdin"];r.push("--username",t);r.push(e);if(e){c.info(`Logging into ${e}...`)}else{c.info(`Logging into Docker Hub...`)}yield l.getExecOutput("docker",r,{ignoreReturnCode:true,silent:true,input:Buffer.from(o)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info(`Login Succeeded!`)}))}))}t.loginStandard=loginStandard;function loginECR(e,t,o){return i(this,void 0,void 0,(function*(){c.info(`Retrieving registries data through AWS SDK...`);const r=yield a.getRegistriesData(e,t,o);for(const e of r){c.info(`Logging into ${e.registry}...`);yield l.getExecOutput("docker",["login","--password-stdin","--username",e.username,e.registry],{ignoreReturnCode:true,silent:true,input:Buffer.from(e.password)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info("Login Succeeded!")}))}}))}t.loginECR=loginECR},70399:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,o,r){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;const a=s(o(42186));const c=s(o(98954));const l=s(o(6512));const u=s(o(80963));function run(){return i(this,void 0,void 0,(function*(){try{const e=c.getInputs();u.setRegistry(e.registry);u.setLogout(e.logout);yield l.login(e.registry,e.username,e.password,e.ecr)}catch(e){a.setFailed(e.message)}}))}t.run=run;function logout(){return i(this,void 0,void 0,(function*(){if(!u.logout){return}yield l.logout(u.registry)}))}if(!u.IsPost){run()}else{logout()}},80963:function(e,t,o){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){if(r===undefined)r=o;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))r(t,e,o);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.setLogout=t.setRegistry=t.logout=t.registry=t.IsPost=void 0;const i=s(o(42186));t.IsPost=!!process.env["STATE_isPost"];t.registry=process.env["STATE_registry"]||"";t.logout=/true/i.test(process.env["STATE_logout"]||"");function setRegistry(e){i.saveState("registry",e)}t.setRegistry=setRegistry;function setLogout(e){i.saveState("logout",e)}t.setLogout=setLogout;if(!t.IsPost){i.saveState("isPost","true")}},87578:module=>{module.exports=eval("require")("aws-crt")},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},85158:e=>{"use strict";e.exports=require("http2")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},77282:e=>{"use strict";e.exports=require("process")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},39512:e=>{"use strict";e.exports=require("timers")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},25929:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.186.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.186.0","@aws-sdk/config-resolver":"3.186.0","@aws-sdk/credential-provider-node":"3.186.0","@aws-sdk/fetch-http-handler":"3.186.0","@aws-sdk/hash-node":"3.186.0","@aws-sdk/invalid-dependency":"3.186.0","@aws-sdk/middleware-content-length":"3.186.0","@aws-sdk/middleware-host-header":"3.186.0","@aws-sdk/middleware-logger":"3.186.0","@aws-sdk/middleware-recursion-detection":"3.186.0","@aws-sdk/middleware-retry":"3.186.0","@aws-sdk/middleware-serde":"3.186.0","@aws-sdk/middleware-signing":"3.186.0","@aws-sdk/middleware-stack":"3.186.0","@aws-sdk/middleware-user-agent":"3.186.0","@aws-sdk/node-config-provider":"3.186.0","@aws-sdk/node-http-handler":"3.186.0","@aws-sdk/protocol-http":"3.186.0","@aws-sdk/smithy-client":"3.186.0","@aws-sdk/types":"3.186.0","@aws-sdk/url-parser":"3.186.0","@aws-sdk/util-base64-browser":"3.186.0","@aws-sdk/util-base64-node":"3.186.0","@aws-sdk/util-body-length-browser":"3.186.0","@aws-sdk/util-body-length-node":"3.186.0","@aws-sdk/util-defaults-mode-browser":"3.186.0","@aws-sdk/util-defaults-mode-node":"3.186.0","@aws-sdk/util-user-agent-browser":"3.186.0","@aws-sdk/util-user-agent-node":"3.186.0","@aws-sdk/util-utf8-browser":"3.186.0","@aws-sdk/util-utf8-node":"3.186.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.186.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}')},9718:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.231.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}')},55115:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.231.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/credential-provider-node":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-sdk-sts":"3.226.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-signing":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","fast-xml-parser":"4.0.11","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}')},4289:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.231.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.231.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/credential-provider-node":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-signing":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","@aws-sdk/util-waiter":"3.226.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')},69722:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso-oidc","description":"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native","version":"3.231.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso-oidc"}}')},91092:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.186.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.186.0","@aws-sdk/fetch-http-handler":"3.186.0","@aws-sdk/hash-node":"3.186.0","@aws-sdk/invalid-dependency":"3.186.0","@aws-sdk/middleware-content-length":"3.186.0","@aws-sdk/middleware-host-header":"3.186.0","@aws-sdk/middleware-logger":"3.186.0","@aws-sdk/middleware-recursion-detection":"3.186.0","@aws-sdk/middleware-retry":"3.186.0","@aws-sdk/middleware-serde":"3.186.0","@aws-sdk/middleware-stack":"3.186.0","@aws-sdk/middleware-user-agent":"3.186.0","@aws-sdk/node-config-provider":"3.186.0","@aws-sdk/node-http-handler":"3.186.0","@aws-sdk/protocol-http":"3.186.0","@aws-sdk/smithy-client":"3.186.0","@aws-sdk/types":"3.186.0","@aws-sdk/url-parser":"3.186.0","@aws-sdk/util-base64-browser":"3.186.0","@aws-sdk/util-base64-node":"3.186.0","@aws-sdk/util-body-length-browser":"3.186.0","@aws-sdk/util-body-length-node":"3.186.0","@aws-sdk/util-defaults-mode-browser":"3.186.0","@aws-sdk/util-defaults-mode-node":"3.186.0","@aws-sdk/util-user-agent-browser":"3.186.0","@aws-sdk/util-user-agent-node":"3.186.0","@aws-sdk/util-utf8-browser":"3.186.0","@aws-sdk/util-utf8-node":"3.186.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.186.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}')},7947:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.186.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.186.0","@aws-sdk/credential-provider-node":"3.186.0","@aws-sdk/fetch-http-handler":"3.186.0","@aws-sdk/hash-node":"3.186.0","@aws-sdk/invalid-dependency":"3.186.0","@aws-sdk/middleware-content-length":"3.186.0","@aws-sdk/middleware-host-header":"3.186.0","@aws-sdk/middleware-logger":"3.186.0","@aws-sdk/middleware-recursion-detection":"3.186.0","@aws-sdk/middleware-retry":"3.186.0","@aws-sdk/middleware-sdk-sts":"3.186.0","@aws-sdk/middleware-serde":"3.186.0","@aws-sdk/middleware-signing":"3.186.0","@aws-sdk/middleware-stack":"3.186.0","@aws-sdk/middleware-user-agent":"3.186.0","@aws-sdk/node-config-provider":"3.186.0","@aws-sdk/node-http-handler":"3.186.0","@aws-sdk/protocol-http":"3.186.0","@aws-sdk/smithy-client":"3.186.0","@aws-sdk/types":"3.186.0","@aws-sdk/url-parser":"3.186.0","@aws-sdk/util-base64-browser":"3.186.0","@aws-sdk/util-base64-node":"3.186.0","@aws-sdk/util-body-length-browser":"3.186.0","@aws-sdk/util-body-length-node":"3.186.0","@aws-sdk/util-defaults-mode-browser":"3.186.0","@aws-sdk/util-defaults-mode-node":"3.186.0","@aws-sdk/util-user-agent-browser":"3.186.0","@aws-sdk/util-user-agent-node":"3.186.0","@aws-sdk/util-utf8-browser":"3.186.0","@aws-sdk/util-utf8-node":"3.186.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.186.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}')},95367:e=>{"use strict";e.exports=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}}],"version":"1.1"}')},33600:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},59323:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},29591:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2586:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var o=__webpack_module_cache__[e]={exports:{}};var r=true;try{__webpack_modules__[e].call(o.exports,o,o.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(70399);module.exports=__webpack_exports__})();
|
||
//# sourceMappingURL=index.js.map |