mirror of
https://gitea.com/docker/login-action.git
synced 2024-11-25 19:09:38 +01:00
6401d70aab
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
17 lines
No EOL
747 KiB
JavaScript
Generated
17 lines
No EOL
747 KiB
JavaScript
Generated
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(n(2037));const a=n(5278);function issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}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")}},2186:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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=n(7351);const c=n(717);const l=n(5278);const u=i(n(2037));const d=i(n(1017));const p=n(8041);var m;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(m=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=l.toCommandValue(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}a.issueCommand("set-env",{name:e},n)}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 n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const r=getInput(e,t);if(n.includes(r))return true;if(o.includes(r))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 n=process.env["GITHUB_OUTPUT"]||"";if(n){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=m.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 s(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){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 s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var f=n(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return f.summary}});var g=n(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=n(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,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const s=i(n(7147));const a=i(n(2037));const c=n(5840);const l=n(5278);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}s.appendFileSync(n,`${l.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${c.v4()}`;const o=l.toCommandValue(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${a.EOL}${o}${a.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=n(6255);const i=n(5526);const s=n(2186);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],n)}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 o(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const o=yield n.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 r=(t=o.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return o(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}s.debug(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);s.setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=i(n(1017));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,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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 r=n(2037);const i=n(7147);const{access:s,appendFile:a,writeFile:c}=i.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 o(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 s(e,i.constants.R_OK|i.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,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}</${e}>`}write(e){return o(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?c:a;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(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(r.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(n,o);return this.addRaw(r).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:n,colspan:o,rowspan:r}=e;const i=t?"th":"td";const s=Object.assign(Object.assign({},o&&{colspan:o}),r&&{rowspan:r});return this.wrap(i,n,s)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:r}=n||{};const i=Object.assign(Object.assign({},o&&{width:o}),r&&{height:r});const s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const r=this.wrap(o,e);return this.addRaw(r).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 n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).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},1514:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=n(1576);const c=i(n(8159));function exec(e,t,n){return s(this,void 0,void 0,(function*(){const o=c.argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=o[0];t=o.slice(1).concat(t||[]);const i=new c.ToolRunner(r,t,n);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var o,r;return s(this,void 0,void 0,(function*(){let i="";let s="";const c=new a.StringDecoder("utf8");const l=new a.StringDecoder("utf8");const u=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const d=(r=n===null||n===void 0?void 0:n.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{s+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{i+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const m=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:p}));i+=c.end();s+=l.end();return{exitCode:m,stdout:i,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=i(n(2037));const c=i(n(2361));const l=i(n(2081));const u=i(n(1017));const d=i(n(7436));const p=i(n(1962));const m=n(9512);const f=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let r=t?"":"[command]";if(f){if(this._isCmdFile()){r+=n;for(const e of o){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${n}"`;for(const e of o){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(n);for(const e of o){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=n;for(const e of o){r+=` ${e}`}}return r}_processLineBuffer(e,t,n){try{let o=t+e.toString();let r=o.indexOf(a.EOL);while(r>-1){const e=o.substring(0,r);n(e);o=o.substring(r+a.EOL.length);r=o.indexOf(a.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}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 n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let r=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(r&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){r=true;o+='"'}else{r=false}}o+='"';return o.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 n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=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 n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return s(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&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)=>s(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 n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+a.EOL)}const o=new ExecState(n,this.toolPath);o.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 r=this._getSpawnFileName();const i=l.spawn(r,this._getSpawnArgs(n),this._getSpawnOptions(this.options,r));let s="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(i.stderr){i.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));i.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));i.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}i.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let o=false;let r="";function append(e){if(o&&e!=='"'){r+="\\"}r+=e;o=false}for(let i=0;i<e.length;i++){const s=e.charAt(i);if(s==='"'){if(!o){n=!n}else{append(s)}continue}if(s==="\\"&&o){append(s);continue}if(s==="\\"&&n){o=true;continue}if(s===" "&&!n){if(r.length>0){t.push(r);r=""}continue}append(s)}if(r.length>0){t.push(r.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=m.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()}}},5526:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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 n(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 n(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 n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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=i(n(3685));const c=i(n(5687));const l=i(n(9835));const u=i(n(4294));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 m;(function(e){e["ApplicationJson"]="application/json"})(m=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[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 v=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 s(this,void 0,void 0,(function*(){return new Promise((e=>s(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,n){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=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return s(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e,t={}){return s(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,m.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return s(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.post(e,o,n);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,n={}){return s(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.put(e,o,n);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,n={}){return s(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.patch(e,o,n);return this._processResponse(r,this.requestOptions)}))}request(e,t,n,o){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let i=this._prepareRequest(e,r,o);const s=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(i,n);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,i,n)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&f.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const s=c.message.headers["location"];if(!s){break}const a=new URL(s);if(r.protocol==="https:"&&r.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!==r.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}i=this._prepareRequest(e,a,o);c=yield this.requestRaw(i,n);t--}if(!c.message.statusCode||!g.includes(c.message.statusCode)){return c}a+=1;if(a<s){yield c.readBody();yield this._performExponentialBackoff(a)}}while(a<s);return c}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const r=o.parsedUrl.protocol==="https:";o.httpModule=r?c:a;const i=r?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):i;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||o||n}_getAgent(e){let t;const n=l.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(this._keepAlive&&!o){t=this._agent}if(t){return t}const r=e.protocol==="https:";let i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const s=n.protocol==="https:";if(r){o=s?u.httpsOverHttps:u.httpsOverHttp}else{o=s?u.httpOverHttps:u.httpOverHttp}t=o(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=r?new c.Agent(e):new a.Agent(e);this._agent=t}if(!t){t=r?c.globalAgent:a.globalAgent}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(h,e);const t=v*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((n,o)=>s(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const i={statusCode:r,result:null,headers:{}};if(r===d.NotFound){n(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(r>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=i.result;o(t)}else{n(i)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},9835:(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 n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){return new URL(n)}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 n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const o=[e.hostname.toUpperCase()];if(typeof n==="number"){o.push(`${o[0]}:${n}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(o.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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=i(n(7147));const l=i(n(1017));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 s(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,n=false){return s(this,void 0,void 0,(function*(){const o=n?yield t.stat(e):yield t.lstat(e);return o.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,n){return s(this,void 0,void 0,(function*(){let o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(o)){return e}}}const r=e;for(const i of n){e=r+i;o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const n=l.dirname(e);const o=l.basename(e).toUpperCase();for(const r of yield t.readdir(n)){if(o===r.toUpperCase()){e=l.join(n,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(o)){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},7436:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.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=n(9491);const c=i(n(2081));const l=i(n(1017));const u=n(3837);const d=i(n(1962));const p=u.promisify(c.exec);const m=u.promisify(c.execFile);function cp(e,t,n={}){return s(this,void 0,void 0,(function*(){const{force:o,recursive:r,copySourceDirectory:i}=readCopyOptions(n);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!o){return}const a=s&&s.isDirectory()&&i?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(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,o)}}else{if(l.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,o)}}))}t.cp=cp;function mv(e,t,n={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let o=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));o=yield d.exists(t)}if(o){if(n.force==null||n.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 s(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 m(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(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 s(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 n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return s(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 n=yield d.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(l.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){n.push(e)}}}const o=[];for(const r of n){const n=yield d.tryGetExecutablePath(l.join(r,e),t);if(n){o.push(n)}}return o}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return s(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const r=yield d.readdir(e);for(const i of r){const r=`${e}/${i}`;const s=`${t}/${i}`;const a=yield d.lstat(r);if(a.isDirectory()){yield cpDirRecursive(r,s,n,o)}else{yield copyFile(r,s,o)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,n){return s(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 n=yield d.readlink(e);yield d.symlink(n,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||n){yield d.copyFile(e,t)}}))}},6087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const o=n(9464);const r=n(6517);const i=n(5490);const s=n(9633);const a=n(467);const c=n(2528);const l=n(2776);const u=n(7670);const d=n(8696);const p=n(2218);const m=n(2674);const f=n(6518);const g=n(3189);const y=n(8562);const h=n(3675);const v=n(575);const w=n(6486);const E=n(6805);const S=n(3753);const C=n(1796);const x=n(9869);const R=n(6689);const _=n(7429);const b=n(608);class ECRPUBLIC extends b.ECRPUBLICClient{batchCheckLayerAvailability(e,t,n){const r=new o.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}batchDeleteImage(e,t,n){const o=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}completeLayerUpload(e,t,n){const o=new i.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createRepository(e,t,n){const o=new s.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepository(e,t,n){const o=new a.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepositoryPolicy(e,t,n){const o=new c.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImages(e,t,n){const o=new l.DescribeImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageTags(e,t,n){const o=new u.DescribeImageTagsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRegistries(e,t,n){const o=new d.DescribeRegistriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRepositories(e,t,n){const o=new p.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAuthorizationToken(e,t,n){const o=new m.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryCatalogData(e,t,n){const o=new f.GetRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryCatalogData(e,t,n){const o=new g.GetRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryPolicy(e,t,n){const o=new y.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}initiateLayerUpload(e,t,n){const o=new h.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listTagsForResource(e,t,n){const o=new v.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImage(e,t,n){const o=new w.PutImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryCatalogData(e,t,n){const o=new E.PutRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRepositoryCatalogData(e,t,n){const o=new S.PutRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}setRepositoryPolicy(e,t,n){const o=new C.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}tagResource(e,t,n){const o=new x.TagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}untagResource(e,t,n){const o=new R.UntagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}uploadLayerPart(e,t,n){const o=new _.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.ECRPUBLIC=ECRPUBLIC},608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=void 0;const o=n(6153);const r=n(2245);const i=n(2545);const s=n(14);const a=n(6064);const c=n(4935);const l=n(4688);const u=n(4963);const d=n(9324);class ECRPUBLICClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const n=o.resolveRegionConfig(t);const u=o.resolveEndpointsConfig(n);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveAwsAuthConfig(m);const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getAwsAuthPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},9464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class BatchCheckLayerAvailabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="BatchCheckLayerAvailabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchCheckLayerAvailabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchCheckLayerAvailabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},6517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class BatchDeleteImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="BatchDeleteImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchDeleteImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchDeleteImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchDeleteImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchDeleteImageCommand(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},5490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class CompleteLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="CompleteLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CompleteLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CompleteLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1CompleteLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CompleteLayerUploadCommand(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},9633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class CreateRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="CreateRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreateRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreateRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreateRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreateRepositoryCommand(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DeleteRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryCommand(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},2528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DeleteRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},7670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DescribeImageTagsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeImageTagsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageTagsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageTagsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageTagsCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageTagsCommand(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},2776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DescribeImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImagesCommand(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},8696:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DescribeRegistriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeRegistriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRegistriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRegistriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRegistriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRegistriesCommand(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},2218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class DescribeRepositoriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeRepositoriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRepositoriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRepositoriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRepositoriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRepositoriesCommand(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},2674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class GetAuthorizationTokenCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetAuthorizationTokenCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetAuthorizationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetAuthorizationTokenResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetAuthorizationTokenCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetAuthorizationTokenCommand(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},6518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class GetRegistryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRegistryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryCatalogDataCommand(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},3189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class GetRepositoryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRepositoryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryCatalogDataCommand(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class GetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryPolicyCommand(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},3675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class InitiateLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="InitiateLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.InitiateLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.InitiateLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1InitiateLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1InitiateLayerUploadCommand(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class ListTagsForResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="ListTagsForResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListTagsForResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListTagsForResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListTagsForResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListTagsForResourceCommand(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},6486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class PutImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageCommand(e,t)}}t.PutImageCommand=PutImageCommand},6805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class PutRegistryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutRegistryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryCatalogDataCommand(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},3753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class PutRepositoryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutRepositoryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRepositoryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRepositoryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRepositoryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRepositoryCatalogDataCommand(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},1796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class SetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="SetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.SetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.SetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1SetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1SetRepositoryPolicyCommand(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},9869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class TagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="TagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.TagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1TagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1TagResourceCommand(e,t)}}t.TagResourceCommand=TagResourceCommand},6689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class UntagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="UntagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UntagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1UntagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UntagResourceCommand(e,t)}}t.UntagResourceCommand=UntagResourceCommand},7429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const o=n(3631);const r=n(4963);const i=n(8818);const s=n(4170);class UploadLayerPartCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="UploadLayerPartCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UploadLayerPartRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UploadLayerPartResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1UploadLayerPartCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UploadLayerPartCommand(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},5506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9464),t);o.__exportStar(n(6517),t);o.__exportStar(n(5490),t);o.__exportStar(n(9633),t);o.__exportStar(n(467),t);o.__exportStar(n(2528),t);o.__exportStar(n(7670),t);o.__exportStar(n(2776),t);o.__exportStar(n(8696),t);o.__exportStar(n(2218),t);o.__exportStar(n(2674),t);o.__exportStar(n(6518),t);o.__exportStar(n(3189),t);o.__exportStar(n(8562),t);o.__exportStar(n(3675),t);o.__exportStar(n(575),t);o.__exportStar(n(6486),t);o.__exportStar(n(6805),t);o.__exportStar(n(3753),t);o.__exportStar(n(1796),t);o.__exportStar(n(9869),t);o.__exportStar(n(6689),t);o.__exportStar(n(7429),t)},8593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const o=n(6153);const r={};const i={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-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)=>o.getRegionInfo(e,{...t,signingService:"ecr-public",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const o=n(4351);o.__exportStar(n(6087),t);o.__exportStar(n(608),t);o.__exportStar(n(5506),t);o.__exportStar(n(183),t);o.__exportStar(n(5945),t);var r=n(8278);Object.defineProperty(t,"ECRPUBLICServiceException",{enumerable:true,get:function(){return r.ECRPUBLICServiceException}})},8278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const o=n(4963);class ECRPUBLICServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8818),t)},8818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RegistryAliasStatus=t.DescribeRegistriesRequest=t.DescribeImageTagsResponse=t.ImageTagDetail=t.ReferencedImageDetail=t.DescribeImageTagsRequest=t.ImageNotFoundException=t.DescribeImagesResponse=t.ImageDetail=t.DescribeImagesRequest=t.RepositoryPolicyNotFoundException=t.DeleteRepositoryPolicyResponse=t.DeleteRepositoryPolicyRequest=t.RepositoryNotEmptyException=t.DeleteRepositoryResponse=t.DeleteRepositoryRequest=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.CreateRepositoryResponse=t.Repository=t.RepositoryCatalogData=t.CreateRepositoryRequest=t.Tag=t.RepositoryCatalogDataInput=t.UploadNotFoundException=t.UnsupportedCommandException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.CompleteLayerUploadResponse=t.CompleteLayerUploadRequest=t.BatchDeleteImageResponse=t.ImageFailure=t.ImageFailureCode=t.BatchDeleteImageRequest=t.ImageIdentifier=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.BatchCheckLayerAvailabilityResponse=t.Layer=t.LayerAvailability=t.LayerFailure=t.LayerFailureCode=t.BatchCheckLayerAvailabilityRequest=t.AuthorizationData=void 0;t.UploadLayerPartResponse=t.UploadLayerPartRequest=t.UntagResourceResponse=t.UntagResourceRequest=t.TagResourceResponse=t.TagResourceRequest=t.SetRepositoryPolicyResponse=t.SetRepositoryPolicyRequest=t.PutRepositoryCatalogDataResponse=t.PutRepositoryCatalogDataRequest=t.PutRegistryCatalogDataResponse=t.PutRegistryCatalogDataRequest=t.ReferencedImagesNotFoundException=t.PutImageResponse=t.PutImageRequest=t.ListTagsForResourceResponse=t.ListTagsForResourceRequest=t.LayersNotFoundException=t.InvalidLayerPartException=t.InitiateLayerUploadResponse=t.InitiateLayerUploadRequest=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.Image=t.GetRepositoryPolicyResponse=t.GetRepositoryPolicyRequest=t.GetRepositoryCatalogDataResponse=t.GetRepositoryCatalogDataRequest=t.GetRegistryCatalogDataResponse=t.RegistryCatalogData=t.GetRegistryCatalogDataRequest=t.GetAuthorizationTokenResponse=t.GetAuthorizationTokenRequest=t.DescribeRepositoriesResponse=t.DescribeRepositoriesRequest=t.DescribeRegistriesResponse=t.Registry=t.RegistryAlias=void 0;const o=n(8278);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.AuthorizationData||(t.AuthorizationData={}));var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.BatchCheckLayerAvailabilityRequest||(t.BatchCheckLayerAvailabilityRequest={}));var s;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(s=t.LayerFailureCode||(t.LayerFailureCode={}));var a;(function(e){e.filterSensitiveLog=e=>({...e})})(a=t.LayerFailure||(t.LayerFailure={}));var c;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(c=t.LayerAvailability||(t.LayerAvailability={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.Layer||(t.Layer={}));var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.BatchCheckLayerAvailabilityResponse||(t.BatchCheckLayerAvailabilityResponse={}));class InvalidParameterException extends o.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 o.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 o.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 o.ECRPUBLICServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.ImageIdentifier||(t.ImageIdentifier={}));var p;(function(e){e.filterSensitiveLog=e=>({...e})})(p=t.BatchDeleteImageRequest||(t.BatchDeleteImageRequest={}));var m;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(m=t.ImageFailureCode||(t.ImageFailureCode={}));var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.ImageFailure||(t.ImageFailure={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.BatchDeleteImageResponse||(t.BatchDeleteImageResponse={}));var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.CompleteLayerUploadRequest||(t.CompleteLayerUploadRequest={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.CompleteLayerUploadResponse||(t.CompleteLayerUploadResponse={}));class EmptyUploadException extends o.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 o.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 o.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 o.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 o.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 o.ECRPUBLICServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.RepositoryCatalogDataInput||(t.RepositoryCatalogDataInput={}));var w;(function(e){e.filterSensitiveLog=e=>({...e})})(w=t.Tag||(t.Tag={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.CreateRepositoryRequest||(t.CreateRepositoryRequest={}));var S;(function(e){e.filterSensitiveLog=e=>({...e})})(S=t.RepositoryCatalogData||(t.RepositoryCatalogData={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.Repository||(t.Repository={}));var x;(function(e){e.filterSensitiveLog=e=>({...e})})(x=t.CreateRepositoryResponse||(t.CreateRepositoryResponse={}));class InvalidTagParameterException extends o.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 o.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 o.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 o.ECRPUBLICServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.DeleteRepositoryRequest||(t.DeleteRepositoryRequest={}));var _;(function(e){e.filterSensitiveLog=e=>({...e})})(_=t.DeleteRepositoryResponse||(t.DeleteRepositoryResponse={}));class RepositoryNotEmptyException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;var b;(function(e){e.filterSensitiveLog=e=>({...e})})(b=t.DeleteRepositoryPolicyRequest||(t.DeleteRepositoryPolicyRequest={}));var P;(function(e){e.filterSensitiveLog=e=>({...e})})(P=t.DeleteRepositoryPolicyResponse||(t.DeleteRepositoryPolicyResponse={}));class RepositoryPolicyNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;var I;(function(e){e.filterSensitiveLog=e=>({...e})})(I=t.DescribeImagesRequest||(t.DescribeImagesRequest={}));var A;(function(e){e.filterSensitiveLog=e=>({...e})})(A=t.ImageDetail||(t.ImageDetail={}));var T;(function(e){e.filterSensitiveLog=e=>({...e})})(T=t.DescribeImagesResponse||(t.DescribeImagesResponse={}));class ImageNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;var N;(function(e){e.filterSensitiveLog=e=>({...e})})(N=t.DescribeImageTagsRequest||(t.DescribeImageTagsRequest={}));var L;(function(e){e.filterSensitiveLog=e=>({...e})})(L=t.ReferencedImageDetail||(t.ReferencedImageDetail={}));var D;(function(e){e.filterSensitiveLog=e=>({...e})})(D=t.ImageTagDetail||(t.ImageTagDetail={}));var O;(function(e){e.filterSensitiveLog=e=>({...e})})(O=t.DescribeImageTagsResponse||(t.DescribeImageTagsResponse={}));var z;(function(e){e.filterSensitiveLog=e=>({...e})})(z=t.DescribeRegistriesRequest||(t.DescribeRegistriesRequest={}));var j;(function(e){e["ACTIVE"]="ACTIVE";e["PENDING"]="PENDING";e["REJECTED"]="REJECTED"})(j=t.RegistryAliasStatus||(t.RegistryAliasStatus={}));var M;(function(e){e.filterSensitiveLog=e=>({...e})})(M=t.RegistryAlias||(t.RegistryAlias={}));var k;(function(e){e.filterSensitiveLog=e=>({...e})})(k=t.Registry||(t.Registry={}));var F;(function(e){e.filterSensitiveLog=e=>({...e})})(F=t.DescribeRegistriesResponse||(t.DescribeRegistriesResponse={}));var U;(function(e){e.filterSensitiveLog=e=>({...e})})(U=t.DescribeRepositoriesRequest||(t.DescribeRepositoriesRequest={}));var q;(function(e){e.filterSensitiveLog=e=>({...e})})(q=t.DescribeRepositoriesResponse||(t.DescribeRepositoriesResponse={}));var $;(function(e){e.filterSensitiveLog=e=>({...e})})($=t.GetAuthorizationTokenRequest||(t.GetAuthorizationTokenRequest={}));var G;(function(e){e.filterSensitiveLog=e=>({...e})})(G=t.GetAuthorizationTokenResponse||(t.GetAuthorizationTokenResponse={}));var H;(function(e){e.filterSensitiveLog=e=>({...e})})(H=t.GetRegistryCatalogDataRequest||(t.GetRegistryCatalogDataRequest={}));var B;(function(e){e.filterSensitiveLog=e=>({...e})})(B=t.RegistryCatalogData||(t.RegistryCatalogData={}));var V;(function(e){e.filterSensitiveLog=e=>({...e})})(V=t.GetRegistryCatalogDataResponse||(t.GetRegistryCatalogDataResponse={}));var W;(function(e){e.filterSensitiveLog=e=>({...e})})(W=t.GetRepositoryCatalogDataRequest||(t.GetRepositoryCatalogDataRequest={}));var K;(function(e){e.filterSensitiveLog=e=>({...e})})(K=t.GetRepositoryCatalogDataResponse||(t.GetRepositoryCatalogDataResponse={}));var J;(function(e){e.filterSensitiveLog=e=>({...e})})(J=t.GetRepositoryPolicyRequest||(t.GetRepositoryPolicyRequest={}));var Y;(function(e){e.filterSensitiveLog=e=>({...e})})(Y=t.GetRepositoryPolicyResponse||(t.GetRepositoryPolicyResponse={}));var X;(function(e){e.filterSensitiveLog=e=>({...e})})(X=t.Image||(t.Image={}));class ImageAlreadyExistsException extends o.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 o.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 o.ECRPUBLICServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;var Q;(function(e){e.filterSensitiveLog=e=>({...e})})(Q=t.InitiateLayerUploadRequest||(t.InitiateLayerUploadRequest={}));var Z;(function(e){e.filterSensitiveLog=e=>({...e})})(Z=t.InitiateLayerUploadResponse||(t.InitiateLayerUploadResponse={}));class InvalidLayerPartException extends o.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 o.ECRPUBLICServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;var ee;(function(e){e.filterSensitiveLog=e=>({...e})})(ee=t.ListTagsForResourceRequest||(t.ListTagsForResourceRequest={}));var te;(function(e){e.filterSensitiveLog=e=>({...e})})(te=t.ListTagsForResourceResponse||(t.ListTagsForResourceResponse={}));var ne;(function(e){e.filterSensitiveLog=e=>({...e})})(ne=t.PutImageRequest||(t.PutImageRequest={}));var oe;(function(e){e.filterSensitiveLog=e=>({...e})})(oe=t.PutImageResponse||(t.PutImageResponse={}));class ReferencedImagesNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;var re;(function(e){e.filterSensitiveLog=e=>({...e})})(re=t.PutRegistryCatalogDataRequest||(t.PutRegistryCatalogDataRequest={}));var ie;(function(e){e.filterSensitiveLog=e=>({...e})})(ie=t.PutRegistryCatalogDataResponse||(t.PutRegistryCatalogDataResponse={}));var se;(function(e){e.filterSensitiveLog=e=>({...e})})(se=t.PutRepositoryCatalogDataRequest||(t.PutRepositoryCatalogDataRequest={}));var ae;(function(e){e.filterSensitiveLog=e=>({...e})})(ae=t.PutRepositoryCatalogDataResponse||(t.PutRepositoryCatalogDataResponse={}));var ce;(function(e){e.filterSensitiveLog=e=>({...e})})(ce=t.SetRepositoryPolicyRequest||(t.SetRepositoryPolicyRequest={}));var le;(function(e){e.filterSensitiveLog=e=>({...e})})(le=t.SetRepositoryPolicyResponse||(t.SetRepositoryPolicyResponse={}));var ue;(function(e){e.filterSensitiveLog=e=>({...e})})(ue=t.TagResourceRequest||(t.TagResourceRequest={}));var de;(function(e){e.filterSensitiveLog=e=>({...e})})(de=t.TagResourceResponse||(t.TagResourceResponse={}));var pe;(function(e){e.filterSensitiveLog=e=>({...e})})(pe=t.UntagResourceRequest||(t.UntagResourceRequest={}));var me;(function(e){e.filterSensitiveLog=e=>({...e})})(me=t.UntagResourceResponse||(t.UntagResourceResponse={}));var fe;(function(e){e.filterSensitiveLog=e=>({...e})})(fe=t.UploadLayerPartRequest||(t.UploadLayerPartRequest={}));var ge;(function(e){e.filterSensitiveLog=e=>({...e})})(ge=t.UploadLayerPartResponse||(t.UploadLayerPartResponse={}))},9634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const o=n(7670);const r=n(6087);const i=n(608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageTagsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImageTags(t,...n);async function*paginateDescribeImageTags(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeImageTags=paginateDescribeImageTags},4128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const o=n(2776);const r=n(6087);const i=n(608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImages(t,...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeImages=paginateDescribeImages},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRegistries=void 0;const o=n(8696);const r=n(6087);const i=n(608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRegistriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRegistries(t,...n);async function*paginateDescribeRegistries(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeRegistries=paginateDescribeRegistries},5474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const o=n(2218);const r=n(6087);const i=n(608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRepositories(t,...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},3463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9634),t);o.__exportStar(n(4128),t);o.__exportStar(n(1720),t);o.__exportStar(n(5474),t);o.__exportStar(n(3463),t)},4170:(e,t,n)=>{"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 o=n(223);const r=n(4963);const i=n(8278);const s=n(8818);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchCheckLayerAvailability"};let o;o=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchDeleteImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CompleteLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CreateRepository"};let o;o=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepository"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImages"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImageTags"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageTagsCommand=serializeAws_json1_1DescribeImageTagsCommand;const serializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRegistries"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRegistriesCommand=serializeAws_json1_1DescribeRegistriesCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRepositories"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetAuthorizationToken"};let o;o=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRegistryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryCatalogDataCommand=serializeAws_json1_1GetRegistryCatalogDataCommand;const serializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryCatalogDataCommand=serializeAws_json1_1GetRepositoryCatalogDataCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.InitiateLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.ListTagsForResource"};let o;o=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutImage"};let o;o=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRegistryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryCatalogDataCommand=serializeAws_json1_1PutRegistryCatalogDataCommand;const serializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRepositoryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRepositoryCatalogDataCommand=serializeAws_json1_1PutRepositoryCatalogDataCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.SetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.TagResource"};let o;o=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UntagResource"};let o;o=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UploadLayerPart"};let o;o=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};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 n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchDeleteImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CompleteLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(n,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageTagsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageTagsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageTagsCommand=deserializeAws_json1_1DescribeImageTagsCommand;const deserializeAws_json1_1DescribeImageTagsCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRegistriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistriesCommand=deserializeAws_json1_1DescribeRegistriesCommand;const deserializeAws_json1_1DescribeRegistriesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryCatalogDataCommand=deserializeAws_json1_1GetRegistryCatalogDataCommand;const deserializeAws_json1_1GetRegistryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=deserializeAws_json1_1GetRepositoryCatalogDataCommand;const deserializeAws_json1_1GetRepositoryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1InitiateLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListTagsForResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryCatalogDataCommand=deserializeAws_json1_1PutRegistryCatalogDataCommand;const deserializeAws_json1_1PutRegistryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRepositoryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=deserializeAws_json1_1PutRepositoryCatalogDataCommand;const deserializeAws_json1_1PutRepositoryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1SetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1TagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UntagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UploadLayerPartResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const a=n.body;o=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1EmptyUploadException(n,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageAlreadyExistsException(n,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageDigestDoesNotMatchException(n,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageNotFoundException(n,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageTagAlreadyExistsException(n,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerException(n,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerPartException(n,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidParameterException(n,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidTagParameterException(n,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerAlreadyExistsException(n,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerPartTooSmallException(n,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayersNotFoundException(n,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LimitExceededException(n,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ReferencedImagesNotFoundException(n,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RegistryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RegistryNotFoundException(n,t);const i=new s.RegistryNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryAlreadyExistsException(n,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotEmptyException(n,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotFoundException(n,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryPolicyNotFoundException(n,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ServerException(n,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1TooManyTagsException(n,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1UnsupportedCommandExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedCommandException(n,t);const i=new s.UnsupportedCommandException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UploadNotFoundException(n,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const serializeAws_json1_1ArchitectureList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.catalogData!==undefined&&e.catalogData!==null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageTagsRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeRegistriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken}});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryNames!==undefined&&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!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ImageIdentifier(e,t)}));const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1OperatingSystemList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageManifest!==undefined&&e.imageManifest!==null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!==undefined&&e.imageManifestMediaType!==null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryCatalogDataRequest=(e,t)=>({...e.displayName!==undefined&&e.displayName!==null&&{displayName:e.displayName}});const serializeAws_json1_1PutRepositoryCatalogDataRequest=(e,t)=>({...e.catalogData!==undefined&&e.catalogData!==null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1RepositoryCatalogDataInput=(e,t)=>({...e.aboutText!==undefined&&e.aboutText!==null&&{aboutText:e.aboutText},...e.architectures!==undefined&&e.architectures!==null&&{architectures:serializeAws_json1_1ArchitectureList(e.architectures,t)},...e.description!==undefined&&e.description!==null&&{description:e.description},...e.logoImageBlob!==undefined&&e.logoImageBlob!==null&&{logoImageBlob:t.base64Encoder(e.logoImageBlob)},...e.operatingSystems!==undefined&&e.operatingSystems!==null&&{operatingSystems:serializeAws_json1_1OperatingSystemList(e.operatingSystems,t)},...e.usageText!==undefined&&e.usageText!==null&&{usageText:e.usageText}});const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!==undefined&&e.Key!==null&&{Key:e.Key},...e.Value!==undefined&&e.Value!==null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1Tag(e,t)}));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tagKeys!==undefined&&e.tagKeys!==null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!==undefined&&e.layerPartBlob!==null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!==undefined&&e.partFirstByte!==null&&{partFirstByte:e.partFirstByte},...e.partLastByte!==undefined&&e.partLastByte!==null&&{partLastByte:e.partLastByte},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const deserializeAws_json1_1ArchitectureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:r.expectString(e.authorizationToken),expiresAt:e.expiresAt!==undefined&&e.expiresAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.expiresAt))):undefined});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!==undefined&&e.layers!==null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:r.expectString(e.layerDigest),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined,repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!==undefined&&e.imageDetails!==null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribeImageTagsResponse=(e,t)=>({imageTagDetails:e.imageTagDetails!==undefined&&e.imageTagDetails!==null?deserializeAws_json1_1ImageTagDetailList(e.imageTagDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribeRegistriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),registries:e.registries!==undefined&&e.registries!==null?deserializeAws_json1_1RegistryList(e.registries,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),repositories:e.repositories!==undefined&&e.repositories!==null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!==undefined&&e.authorizationData!==null?deserializeAws_json1_1AuthorizationData(e.authorizationData,t):undefined});const deserializeAws_json1_1GetRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!==undefined&&e.registryCatalogData!==null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1GetRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:r.expectString(e.imageManifest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return n};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return n};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:r.expectString(e.imageDigest),imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return n};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagDetail=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,imageDetail:e.imageDetail!==undefined&&e.imageDetail!==null?deserializeAws_json1_1ReferencedImageDetail(e.imageDetail,t):undefined,imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageTagDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageTagDetail(e,t)}));return n};const deserializeAws_json1_1ImageTagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:r.expectLong(e.partSize),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:r.expectLong(e.lastValidByteReceived),message:r.expectString(e.message),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:r.expectString(e.layerAvailability),layerDigest:r.expectString(e.layerDigest),layerSize:r.expectLong(e.layerSize),mediaType:r.expectString(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return n};const deserializeAws_json1_1LayerList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return n};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1OperatingSystemList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!==undefined&&e.image!==null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!==undefined&&e.registryCatalogData!==null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1PutRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1ReferencedImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Registry=(e,t)=>({aliases:e.aliases!==undefined&&e.aliases!==null?deserializeAws_json1_1RegistryAliasList(e.aliases,t):undefined,registryArn:r.expectString(e.registryArn),registryId:r.expectString(e.registryId),registryUri:r.expectString(e.registryUri),verified:r.expectBoolean(e.verified)});const deserializeAws_json1_1RegistryAlias=(e,t)=>({defaultRegistryAlias:r.expectBoolean(e.defaultRegistryAlias),name:r.expectString(e.name),primaryRegistryAlias:r.expectBoolean(e.primaryRegistryAlias),status:r.expectString(e.status)});const deserializeAws_json1_1RegistryAliasList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryAlias(e,t)}));return n};const deserializeAws_json1_1RegistryCatalogData=(e,t)=>({displayName:r.expectString(e.displayName)});const deserializeAws_json1_1RegistryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Registry(e,t)}));return n};const deserializeAws_json1_1RegistryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,registryId:r.expectString(e.registryId),repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),repositoryUri:r.expectString(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryCatalogData=(e,t)=>({aboutText:r.expectString(e.aboutText),architectures:e.architectures!==undefined&&e.architectures!==null?deserializeAws_json1_1ArchitectureList(e.architectures,t):undefined,description:r.expectString(e.description),logoUrl:r.expectString(e.logoUrl),marketplaceCertified:r.expectBoolean(e.marketplaceCertified),operatingSystems:e.operatingSystems!==undefined&&e.operatingSystems!==null?deserializeAws_json1_1OperatingSystemList(e.operatingSystems,t):undefined,usageText:r.expectString(e.usageText)});const deserializeAws_json1_1RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return n};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ServerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Tag=(e,t)=>({Key:r.expectString(e.Key),Value:r.expectString(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return n};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedCommandException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:r.expectLong(e.lastByteReceived),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:r.expectString(e.message)});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"]}};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,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}return""}},9324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(5929));const i=n(2209);const s=n(6153);const a=n(5531);const c=n(7442);const l=n(6064);const u=n(7684);const d=n(8805);const p=n(8588);const m=n(4147);const f=n(8095);const g=n(6278);const y=n(6746);const h=n(4963);const v=n(4243);const getRuntimeConfig=e=>{var t,n,o,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(n=e===null||e===void 0?void 0:e.base64Encoder)!==null&&n!==void 0?n:p.toBase64,bodyLengthChecker:(o=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&o!==void 0?o:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.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:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},6746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(2992);const r=n(8593);const getRuntimeConfig=e=>{var t,n,i,s,a;return{apiVersion:"2020-10-30",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(n=e===null||e===void 0?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"ECR PUBLIC",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:o.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},9167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const o=n(3804);const r=n(5511);const i=n(8859);const s=n(9728);const a=n(9003);const c=n(1454);const l=n(5074);const u=n(8981);const d=n(3793);const p=n(1424);const m=n(8651);const f=n(6828);const g=n(9694);const y=n(2987);const h=n(5353);const v=n(1484);const w=n(6166);const E=n(1200);const S=n(5828);const C=n(1401);const x=n(8469);const R=n(7006);const _=n(6653);const b=n(2741);const P=n(6330);const I=n(6936);const A=n(3854);const T=n(7403);const N=n(6844);const L=n(7935);const D=n(6495);const O=n(4444);const z=n(7928);const j=n(9529);const M=n(3350);const k=n(8300);const F=n(7984);const U=n(5905);const q=n(2665);const $=n(7225);const G=n(5825);const H=n(3391);class ECR extends H.ECRClient{batchCheckLayerAvailability(e,t,n){const r=new o.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}batchDeleteImage(e,t,n){const o=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}batchGetImage(e,t,n){const o=new i.BatchGetImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}batchGetRepositoryScanningConfiguration(e,t,n){const o=new s.BatchGetRepositoryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}completeLayerUpload(e,t,n){const o=new a.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createPullThroughCacheRule(e,t,n){const o=new c.CreatePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createRepository(e,t,n){const o=new l.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteLifecyclePolicy(e,t,n){const o=new u.DeleteLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deletePullThroughCacheRule(e,t,n){const o=new d.DeletePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRegistryPolicy(e,t,n){const o=new p.DeleteRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepository(e,t,n){const o=new m.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepositoryPolicy(e,t,n){const o=new f.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageReplicationStatus(e,t,n){const o=new g.DescribeImageReplicationStatusCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImages(e,t,n){const o=new h.DescribeImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageScanFindings(e,t,n){const o=new y.DescribeImageScanFindingsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describePullThroughCacheRules(e,t,n){const o=new v.DescribePullThroughCacheRulesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRegistry(e,t,n){const o=new w.DescribeRegistryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRepositories(e,t,n){const o=new E.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAuthorizationToken(e,t,n){const o=new S.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getDownloadUrlForLayer(e,t,n){const o=new C.GetDownloadUrlForLayerCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getLifecyclePolicy(e,t,n){const o=new x.GetLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getLifecyclePolicyPreview(e,t,n){const o=new R.GetLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryPolicy(e,t,n){const o=new _.GetRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryScanningConfiguration(e,t,n){const o=new b.GetRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryPolicy(e,t,n){const o=new P.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}initiateLayerUpload(e,t,n){const o=new I.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listImages(e,t,n){const o=new A.ListImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listTagsForResource(e,t,n){const o=new T.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImage(e,t,n){const o=new N.PutImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImageScanningConfiguration(e,t,n){const o=new L.PutImageScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImageTagMutability(e,t,n){const o=new D.PutImageTagMutabilityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putLifecyclePolicy(e,t,n){const o=new O.PutLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryPolicy(e,t,n){const o=new z.PutRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryScanningConfiguration(e,t,n){const o=new j.PutRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putReplicationConfiguration(e,t,n){const o=new M.PutReplicationConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}setRepositoryPolicy(e,t,n){const o=new k.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}startImageScan(e,t,n){const o=new F.StartImageScanCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}startLifecyclePolicyPreview(e,t,n){const o=new U.StartLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}tagResource(e,t,n){const o=new q.TagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}untagResource(e,t,n){const o=new $.UntagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}uploadLayerPart(e,t,n){const o=new G.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.ECR=ECR},3391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=void 0;const o=n(6153);const r=n(2245);const i=n(2545);const s=n(14);const a=n(6064);const c=n(4935);const l=n(4688);const u=n(4963);const d=n(869);class ECRClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const n=o.resolveRegionConfig(t);const u=o.resolveEndpointsConfig(n);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveAwsAuthConfig(m);const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getAwsAuthPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},3804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class BatchCheckLayerAvailabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchCheckLayerAvailabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchCheckLayerAvailabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchCheckLayerAvailabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},5511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class BatchDeleteImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchDeleteImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchDeleteImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchDeleteImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchDeleteImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchDeleteImageCommand(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},8859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class BatchGetImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchGetImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchGetImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchGetImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchGetImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchGetImageCommand(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},9728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class BatchGetRepositoryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchGetRepositoryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},9003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class CompleteLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CompleteLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CompleteLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CompleteLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1CompleteLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CompleteLayerUploadCommand(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},1454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class CreatePullThroughCacheRuleCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CreatePullThroughCacheRuleCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreatePullThroughCacheRuleRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreatePullThroughCacheRuleResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreatePullThroughCacheRuleCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreatePullThroughCacheRuleCommand(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class CreateRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CreateRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreateRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreateRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreateRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreateRepositoryCommand(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},8981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DeleteLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteLifecyclePolicyCommand(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},3793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DeletePullThroughCacheRuleCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeletePullThroughCacheRuleCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeletePullThroughCacheRuleRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeletePullThroughCacheRuleResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeletePullThroughCacheRuleCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeletePullThroughCacheRuleCommand(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},1424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DeleteRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRegistryPolicyCommand(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},8651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DeleteRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryCommand(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},6828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DeleteRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},9694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribeImageReplicationStatusCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImageReplicationStatusCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageReplicationStatusRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageReplicationStatusResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageReplicationStatusCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageReplicationStatusCommand(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},2987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribeImageScanFindingsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImageScanFindingsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageScanFindingsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageScanFindingsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageScanFindingsCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageScanFindingsCommand(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},5353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribeImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImagesCommand(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},1484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribePullThroughCacheRulesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribePullThroughCacheRulesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribePullThroughCacheRulesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribePullThroughCacheRulesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribePullThroughCacheRulesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribePullThroughCacheRulesCommand(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},6166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribeRegistryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeRegistryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRegistryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRegistryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRegistryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRegistryCommand(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},1200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class DescribeRepositoriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeRepositoriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRepositoriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRepositoriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRepositoriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRepositoriesCommand(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},5828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetAuthorizationTokenCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetAuthorizationTokenCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetAuthorizationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetAuthorizationTokenResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetAuthorizationTokenCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetAuthorizationTokenCommand(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},1401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetDownloadUrlForLayerCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetDownloadUrlForLayerCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetDownloadUrlForLayerRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetDownloadUrlForLayerResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetDownloadUrlForLayerCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetDownloadUrlForLayerCommand(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},8469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetLifecyclePolicyCommand(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},7006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetLifecyclePolicyPreviewCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetLifecyclePolicyPreviewCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetLifecyclePolicyPreviewRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyPreviewResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetLifecyclePolicyPreviewCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},6653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryPolicyCommand(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},2741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetRegistryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRegistryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryScanningConfigurationCommand(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},6330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class GetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryPolicyCommand(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class InitiateLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="InitiateLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.InitiateLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.InitiateLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1InitiateLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1InitiateLayerUploadCommand(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class ListImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="ListImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListImagesCommand(e,t)}}t.ListImagesCommand=ListImagesCommand},7403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class ListTagsForResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="ListTagsForResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListTagsForResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListTagsForResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListTagsForResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListTagsForResourceCommand(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},6844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageCommand(e,t)}}t.PutImageCommand=PutImageCommand},7935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutImageScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageScanningConfigurationCommand(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},6495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutImageTagMutabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageTagMutabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageTagMutabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageTagMutabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageTagMutabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageTagMutabilityCommand(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},4444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutLifecyclePolicyCommand(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},7928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryPolicyCommand(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},9529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutRegistryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutRegistryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryScanningConfigurationCommand(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},3350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class PutReplicationConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutReplicationConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutReplicationConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutReplicationConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutReplicationConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutReplicationConfigurationCommand(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},8300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class SetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="SetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.SetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.SetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1SetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1SetRepositoryPolicyCommand(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},7984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class StartImageScanCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="StartImageScanCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.StartImageScanRequest.filterSensitiveLog,outputFilterSensitiveLog:i.StartImageScanResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1StartImageScanCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1StartImageScanCommand(e,t)}}t.StartImageScanCommand=StartImageScanCommand},5905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class StartLifecyclePolicyPreviewCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="StartLifecyclePolicyPreviewCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.StartLifecyclePolicyPreviewRequest.filterSensitiveLog,outputFilterSensitiveLog:i.StartLifecyclePolicyPreviewResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1StartLifecyclePolicyPreviewCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},2665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class TagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="TagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.TagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1TagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1TagResourceCommand(e,t)}}t.TagResourceCommand=TagResourceCommand},7225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class UntagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="UntagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UntagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1UntagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UntagResourceCommand(e,t)}}t.UntagResourceCommand=UntagResourceCommand},5825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const o=n(3631);const r=n(4963);const i=n(9088);const s=n(6704);class UploadLayerPartCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="UploadLayerPartCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UploadLayerPartRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UploadLayerPartResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_json1_1UploadLayerPartCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UploadLayerPartCommand(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},7407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(3804),t);o.__exportStar(n(5511),t);o.__exportStar(n(8859),t);o.__exportStar(n(9728),t);o.__exportStar(n(9003),t);o.__exportStar(n(1454),t);o.__exportStar(n(5074),t);o.__exportStar(n(8981),t);o.__exportStar(n(3793),t);o.__exportStar(n(1424),t);o.__exportStar(n(8651),t);o.__exportStar(n(6828),t);o.__exportStar(n(9694),t);o.__exportStar(n(2987),t);o.__exportStar(n(5353),t);o.__exportStar(n(1484),t);o.__exportStar(n(6166),t);o.__exportStar(n(1200),t);o.__exportStar(n(5828),t);o.__exportStar(n(1401),t);o.__exportStar(n(8469),t);o.__exportStar(n(7006),t);o.__exportStar(n(6653),t);o.__exportStar(n(2741),t);o.__exportStar(n(6330),t);o.__exportStar(n(6936),t);o.__exportStar(n(3854),t);o.__exportStar(n(7403),t);o.__exportStar(n(6844),t);o.__exportStar(n(7935),t);o.__exportStar(n(6495),t);o.__exportStar(n(4444),t);o.__exportStar(n(7928),t);o.__exportStar(n(9529),t);o.__exportStar(n(3350),t);o.__exportStar(n(8300),t);o.__exportStar(n(7984),t);o.__exportStar(n(5905),t);o.__exportStar(n(2665),t);o.__exportStar(n(7225),t);o.__exportStar(n(5825),t)},3070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const o=n(6153);const r={"af-south-1":{variants:[{hostname:"api.ecr.af-south-1.amazonaws.com",tags:[]}],signingRegion:"af-south-1"},"ap-east-1":{variants:[{hostname:"api.ecr.ap-east-1.amazonaws.com",tags:[]}],signingRegion:"ap-east-1"},"ap-northeast-1":{variants:[{hostname:"api.ecr.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"api.ecr.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-northeast-3":{variants:[{hostname:"api.ecr.ap-northeast-3.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-3"},"ap-south-1":{variants:[{hostname:"api.ecr.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"api.ecr.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"api.ecr.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ap-southeast-3":{variants:[{hostname:"api.ecr.ap-southeast-3.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-3"},"ca-central-1":{variants:[{hostname:"api.ecr.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"cn-north-1":{variants:[{hostname:"api.ecr.cn-north-1.amazonaws.com.cn",tags:[]}],signingRegion:"cn-north-1"},"cn-northwest-1":{variants:[{hostname:"api.ecr.cn-northwest-1.amazonaws.com.cn",tags:[]}],signingRegion:"cn-northwest-1"},"eu-central-1":{variants:[{hostname:"api.ecr.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"api.ecr.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-south-1":{variants:[{hostname:"api.ecr.eu-south-1.amazonaws.com",tags:[]}],signingRegion:"eu-south-1"},"eu-west-1":{variants:[{hostname:"api.ecr.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"api.ecr.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"api.ecr.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"me-south-1":{variants:[{hostname:"api.ecr.me-south-1.amazonaws.com",tags:[]}],signingRegion:"me-south-1"},"sa-east-1":{variants:[{hostname:"api.ecr.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"api.ecr.us-east-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-east-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"api.ecr.us-east-2.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-east-2.amazonaws.com",tags:["fips"]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"api.ecr.us-gov-east-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-gov-east-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"api.ecr.us-gov-west-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-gov-west-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-gov-west-1"},"us-iso-east-1":{variants:[{hostname:"api.ecr.us-iso-east-1.c2s.ic.gov",tags:[]}],signingRegion:"us-iso-east-1"},"us-iso-west-1":{variants:[{hostname:"api.ecr.us-iso-west-1.c2s.ic.gov",tags:[]}],signingRegion:"us-iso-west-1"},"us-isob-east-1":{variants:[{hostname:"api.ecr.us-isob-east-1.sc2s.sgov.gov",tags:[]}],signingRegion:"us-isob-east-1"},"us-west-1":{variants:[{hostname:"api.ecr.us-west-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-west-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-west-1"},"us-west-2":{variants:[{hostname:"api.ecr.us-west-2.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-west-2.amazonaws.com",tags:["fips"]}],signingRegion:"us-west-2"}};const i={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","dkr-us-east-1","dkr-us-east-2","dkr-us-west-1","dkr-us-west-2","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","fips-dkr-us-east-1","fips-dkr-us-east-2","fips-dkr-us-west-1","fips-dkr-us-west-2","fips-us-east-1","fips-us-east-2","fips-us-west-1","fips-us-west-2","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.{region}.amazonaws.com",tags:[]},{hostname:"ecr-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.amazonaws.com.cn",tags:[]},{hostname:"api.ecr-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"api.ecr.{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.{region}.c2s.ic.gov",tags:[]},{hostname:"api.ecr-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.sc2s.sgov.gov",tags:[]},{hostname:"api.ecr-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["dkr-us-gov-east-1","dkr-us-gov-west-1","fips-dkr-us-gov-east-1","fips-dkr-us-gov-west-1","fips-us-gov-east-1","fips-us-gov-west-1","us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.amazonaws.com",tags:[]},{hostname:"ecr-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>o.getRegionInfo(e,{...t,signingService:"ecr",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},8923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const o=n(4351);o.__exportStar(n(9167),t);o.__exportStar(n(3391),t);o.__exportStar(n(7407),t);o.__exportStar(n(4692),t);o.__exportStar(n(5356),t);o.__exportStar(n(8406),t);var r=n(1610);Object.defineProperty(t,"ECRServiceException",{enumerable:true,get:function(){return r.ECRServiceException}})},1610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const o=n(4963);class ECRServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},4692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9088),t)},9088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.CreateRepositoryResponse=t.Repository=t.CreateRepositoryRequest=t.Tag=t.ImageTagMutability=t.ImageScanningConfiguration=t.EncryptionConfiguration=t.EncryptionType=t.UnsupportedUpstreamRegistryException=t.PullThroughCacheRuleAlreadyExistsException=t.LimitExceededException=t.CreatePullThroughCacheRuleResponse=t.CreatePullThroughCacheRuleRequest=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.CompleteLayerUploadResponse=t.CompleteLayerUploadRequest=t.ValidationException=t.BatchGetRepositoryScanningConfigurationResponse=t.RepositoryScanningConfiguration=t.ScanFrequency=t.ScanningRepositoryFilter=t.ScanningRepositoryFilterType=t.RepositoryScanningConfigurationFailure=t.ScanningConfigurationFailureCode=t.BatchGetRepositoryScanningConfigurationRequest=t.BatchGetImageResponse=t.Image=t.BatchGetImageRequest=t.BatchDeleteImageResponse=t.ImageFailure=t.ImageFailureCode=t.BatchDeleteImageRequest=t.ImageIdentifier=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=t.BatchCheckLayerAvailabilityResponse=t.Layer=t.LayerAvailability=t.LayerFailure=t.LayerFailureCode=t.BatchCheckLayerAvailabilityRequest=void 0;t.DescribePullThroughCacheRulesResponse=t.PullThroughCacheRule=t.DescribePullThroughCacheRulesRequest=t.ScanNotFoundException=t.DescribeImageScanFindingsResponse=t.ImageScanFindings=t.ImageScanFinding=t.Attribute=t.EnhancedImageScanFinding=t.ScoreDetails=t.CvssScoreDetails=t.CvssScoreAdjustment=t.Resource=t.ResourceDetails=t.AwsEcrContainerImageDetails=t.Remediation=t.Recommendation=t.PackageVulnerabilityDetails=t.VulnerablePackage=t.CvssScore=t.DescribeImageScanFindingsRequest=t.DescribeImagesResponse=t.ImageDetail=t.ImageScanStatus=t.ScanStatus=t.ImageScanFindingsSummary=t.FindingSeverity=t.DescribeImagesRequest=t.DescribeImagesFilter=t.TagStatus=t.ImageNotFoundException=t.DescribeImageReplicationStatusResponse=t.ImageReplicationStatus=t.ReplicationStatus=t.DescribeImageReplicationStatusRequest=t.RepositoryPolicyNotFoundException=t.DeleteRepositoryPolicyResponse=t.DeleteRepositoryPolicyRequest=t.RepositoryNotEmptyException=t.DeleteRepositoryResponse=t.DeleteRepositoryRequest=t.RegistryPolicyNotFoundException=t.DeleteRegistryPolicyResponse=t.DeleteRegistryPolicyRequest=t.PullThroughCacheRuleNotFoundException=t.DeletePullThroughCacheRuleResponse=t.DeletePullThroughCacheRuleRequest=t.LifecyclePolicyNotFoundException=t.DeleteLifecyclePolicyResponse=t.DeleteLifecyclePolicyRequest=void 0;t.PutImageScanningConfigurationRequest=t.ReferencedImagesNotFoundException=t.PutImageResponse=t.PutImageRequest=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.ListTagsForResourceResponse=t.ListTagsForResourceRequest=t.ListImagesResponse=t.ListImagesRequest=t.ListImagesFilter=t.InitiateLayerUploadResponse=t.InitiateLayerUploadRequest=t.GetRepositoryPolicyResponse=t.GetRepositoryPolicyRequest=t.GetRegistryScanningConfigurationResponse=t.RegistryScanningConfiguration=t.ScanType=t.RegistryScanningRule=t.GetRegistryScanningConfigurationRequest=t.GetRegistryPolicyResponse=t.GetRegistryPolicyRequest=t.LifecyclePolicyPreviewNotFoundException=t.GetLifecyclePolicyPreviewResponse=t.LifecyclePolicyPreviewSummary=t.LifecyclePolicyPreviewStatus=t.LifecyclePolicyPreviewResult=t.LifecyclePolicyRuleAction=t.ImageActionType=t.GetLifecyclePolicyPreviewRequest=t.LifecyclePolicyPreviewFilter=t.GetLifecyclePolicyResponse=t.GetLifecyclePolicyRequest=t.LayersNotFoundException=t.LayerInaccessibleException=t.GetDownloadUrlForLayerResponse=t.GetDownloadUrlForLayerRequest=t.GetAuthorizationTokenResponse=t.AuthorizationData=t.GetAuthorizationTokenRequest=t.DescribeRepositoriesResponse=t.DescribeRepositoriesRequest=t.DescribeRegistryResponse=t.ReplicationConfiguration=t.ReplicationRule=t.RepositoryFilter=t.RepositoryFilterType=t.ReplicationDestination=t.DescribeRegistryRequest=void 0;t.UploadLayerPartResponse=t.UploadLayerPartRequest=t.InvalidLayerPartException=t.UntagResourceResponse=t.UntagResourceRequest=t.TagResourceResponse=t.TagResourceRequest=t.StartLifecyclePolicyPreviewResponse=t.StartLifecyclePolicyPreviewRequest=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.StartImageScanResponse=t.StartImageScanRequest=t.SetRepositoryPolicyResponse=t.SetRepositoryPolicyRequest=t.PutReplicationConfigurationResponse=t.PutReplicationConfigurationRequest=t.PutRegistryScanningConfigurationResponse=t.PutRegistryScanningConfigurationRequest=t.PutRegistryPolicyResponse=t.PutRegistryPolicyRequest=t.PutLifecyclePolicyResponse=t.PutLifecyclePolicyRequest=t.PutImageTagMutabilityResponse=t.PutImageTagMutabilityRequest=t.PutImageScanningConfigurationResponse=void 0;const o=n(1610);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.BatchCheckLayerAvailabilityRequest||(t.BatchCheckLayerAvailabilityRequest={}));var i;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(i=t.LayerFailureCode||(t.LayerFailureCode={}));var s;(function(e){e.filterSensitiveLog=e=>({...e})})(s=t.LayerFailure||(t.LayerFailure={}));var a;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(a=t.LayerAvailability||(t.LayerAvailability={}));var c;(function(e){e.filterSensitiveLog=e=>({...e})})(c=t.Layer||(t.Layer={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.BatchCheckLayerAvailabilityResponse||(t.BatchCheckLayerAvailabilityResponse={}));class InvalidParameterException extends o.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 o.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 o.ECRServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.ImageIdentifier||(t.ImageIdentifier={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.BatchDeleteImageRequest||(t.BatchDeleteImageRequest={}));var p;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(p=t.ImageFailureCode||(t.ImageFailureCode={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.ImageFailure||(t.ImageFailure={}));var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.BatchDeleteImageResponse||(t.BatchDeleteImageResponse={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.BatchGetImageRequest||(t.BatchGetImageRequest={}));var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.Image||(t.Image={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.BatchGetImageResponse||(t.BatchGetImageResponse={}));var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.BatchGetRepositoryScanningConfigurationRequest||(t.BatchGetRepositoryScanningConfigurationRequest={}));var w;(function(e){e["REPOSITORY_NOT_FOUND"]="REPOSITORY_NOT_FOUND"})(w=t.ScanningConfigurationFailureCode||(t.ScanningConfigurationFailureCode={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.RepositoryScanningConfigurationFailure||(t.RepositoryScanningConfigurationFailure={}));var S;(function(e){e["WILDCARD"]="WILDCARD"})(S=t.ScanningRepositoryFilterType||(t.ScanningRepositoryFilterType={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.ScanningRepositoryFilter||(t.ScanningRepositoryFilter={}));var x;(function(e){e["CONTINUOUS_SCAN"]="CONTINUOUS_SCAN";e["MANUAL"]="MANUAL";e["SCAN_ON_PUSH"]="SCAN_ON_PUSH"})(x=t.ScanFrequency||(t.ScanFrequency={}));var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.RepositoryScanningConfiguration||(t.RepositoryScanningConfiguration={}));var _;(function(e){e.filterSensitiveLog=e=>({...e})})(_=t.BatchGetRepositoryScanningConfigurationResponse||(t.BatchGetRepositoryScanningConfigurationResponse={}));class ValidationException extends o.ECRServiceException{constructor(e){super({name:"ValidationException",$fault:"client",...e});this.name="ValidationException";this.$fault="client";Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;var b;(function(e){e.filterSensitiveLog=e=>({...e})})(b=t.CompleteLayerUploadRequest||(t.CompleteLayerUploadRequest={}));var P;(function(e){e.filterSensitiveLog=e=>({...e})})(P=t.CompleteLayerUploadResponse||(t.CompleteLayerUploadResponse={}));class EmptyUploadException extends o.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 o.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 o.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 o.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 o.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 o.ECRServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;var I;(function(e){e.filterSensitiveLog=e=>({...e})})(I=t.CreatePullThroughCacheRuleRequest||(t.CreatePullThroughCacheRuleRequest={}));var A;(function(e){e.filterSensitiveLog=e=>({...e})})(A=t.CreatePullThroughCacheRuleResponse||(t.CreatePullThroughCacheRuleResponse={}));class LimitExceededException extends o.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 o.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 o.ECRServiceException{constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});this.name="UnsupportedUpstreamRegistryException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;var T;(function(e){e["AES256"]="AES256";e["KMS"]="KMS"})(T=t.EncryptionType||(t.EncryptionType={}));var N;(function(e){e.filterSensitiveLog=e=>({...e})})(N=t.EncryptionConfiguration||(t.EncryptionConfiguration={}));var L;(function(e){e.filterSensitiveLog=e=>({...e})})(L=t.ImageScanningConfiguration||(t.ImageScanningConfiguration={}));var D;(function(e){e["IMMUTABLE"]="IMMUTABLE";e["MUTABLE"]="MUTABLE"})(D=t.ImageTagMutability||(t.ImageTagMutability={}));var O;(function(e){e.filterSensitiveLog=e=>({...e})})(O=t.Tag||(t.Tag={}));var z;(function(e){e.filterSensitiveLog=e=>({...e})})(z=t.CreateRepositoryRequest||(t.CreateRepositoryRequest={}));var j;(function(e){e.filterSensitiveLog=e=>({...e})})(j=t.Repository||(t.Repository={}));var M;(function(e){e.filterSensitiveLog=e=>({...e})})(M=t.CreateRepositoryResponse||(t.CreateRepositoryResponse={}));class InvalidTagParameterException extends o.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 o.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 o.ECRServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;var k;(function(e){e.filterSensitiveLog=e=>({...e})})(k=t.DeleteLifecyclePolicyRequest||(t.DeleteLifecyclePolicyRequest={}));var F;(function(e){e.filterSensitiveLog=e=>({...e})})(F=t.DeleteLifecyclePolicyResponse||(t.DeleteLifecyclePolicyResponse={}));class LifecyclePolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;var U;(function(e){e.filterSensitiveLog=e=>({...e})})(U=t.DeletePullThroughCacheRuleRequest||(t.DeletePullThroughCacheRuleRequest={}));var q;(function(e){e.filterSensitiveLog=e=>({...e})})(q=t.DeletePullThroughCacheRuleResponse||(t.DeletePullThroughCacheRuleResponse={}));class PullThroughCacheRuleNotFoundException extends o.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});this.name="PullThroughCacheRuleNotFoundException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;var $;(function(e){e.filterSensitiveLog=e=>({...e})})($=t.DeleteRegistryPolicyRequest||(t.DeleteRegistryPolicyRequest={}));var G;(function(e){e.filterSensitiveLog=e=>({...e})})(G=t.DeleteRegistryPolicyResponse||(t.DeleteRegistryPolicyResponse={}));class RegistryPolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});this.name="RegistryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;var H;(function(e){e.filterSensitiveLog=e=>({...e})})(H=t.DeleteRepositoryRequest||(t.DeleteRepositoryRequest={}));var B;(function(e){e.filterSensitiveLog=e=>({...e})})(B=t.DeleteRepositoryResponse||(t.DeleteRepositoryResponse={}));class RepositoryNotEmptyException extends o.ECRServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;var V;(function(e){e.filterSensitiveLog=e=>({...e})})(V=t.DeleteRepositoryPolicyRequest||(t.DeleteRepositoryPolicyRequest={}));var W;(function(e){e.filterSensitiveLog=e=>({...e})})(W=t.DeleteRepositoryPolicyResponse||(t.DeleteRepositoryPolicyResponse={}));class RepositoryPolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;var K;(function(e){e.filterSensitiveLog=e=>({...e})})(K=t.DescribeImageReplicationStatusRequest||(t.DescribeImageReplicationStatusRequest={}));var J;(function(e){e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(J=t.ReplicationStatus||(t.ReplicationStatus={}));var Y;(function(e){e.filterSensitiveLog=e=>({...e})})(Y=t.ImageReplicationStatus||(t.ImageReplicationStatus={}));var X;(function(e){e.filterSensitiveLog=e=>({...e})})(X=t.DescribeImageReplicationStatusResponse||(t.DescribeImageReplicationStatusResponse={}));class ImageNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;var Q;(function(e){e["ANY"]="ANY";e["TAGGED"]="TAGGED";e["UNTAGGED"]="UNTAGGED"})(Q=t.TagStatus||(t.TagStatus={}));var Z;(function(e){e.filterSensitiveLog=e=>({...e})})(Z=t.DescribeImagesFilter||(t.DescribeImagesFilter={}));var ee;(function(e){e.filterSensitiveLog=e=>({...e})})(ee=t.DescribeImagesRequest||(t.DescribeImagesRequest={}));var te;(function(e){e["CRITICAL"]="CRITICAL";e["HIGH"]="HIGH";e["INFORMATIONAL"]="INFORMATIONAL";e["LOW"]="LOW";e["MEDIUM"]="MEDIUM";e["UNDEFINED"]="UNDEFINED"})(te=t.FindingSeverity||(t.FindingSeverity={}));var ne;(function(e){e.filterSensitiveLog=e=>({...e})})(ne=t.ImageScanFindingsSummary||(t.ImageScanFindingsSummary={}));var oe;(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"})(oe=t.ScanStatus||(t.ScanStatus={}));var re;(function(e){e.filterSensitiveLog=e=>({...e})})(re=t.ImageScanStatus||(t.ImageScanStatus={}));var ie;(function(e){e.filterSensitiveLog=e=>({...e})})(ie=t.ImageDetail||(t.ImageDetail={}));var se;(function(e){e.filterSensitiveLog=e=>({...e})})(se=t.DescribeImagesResponse||(t.DescribeImagesResponse={}));var ae;(function(e){e.filterSensitiveLog=e=>({...e})})(ae=t.DescribeImageScanFindingsRequest||(t.DescribeImageScanFindingsRequest={}));var ce;(function(e){e.filterSensitiveLog=e=>({...e})})(ce=t.CvssScore||(t.CvssScore={}));var le;(function(e){e.filterSensitiveLog=e=>({...e})})(le=t.VulnerablePackage||(t.VulnerablePackage={}));var ue;(function(e){e.filterSensitiveLog=e=>({...e})})(ue=t.PackageVulnerabilityDetails||(t.PackageVulnerabilityDetails={}));var de;(function(e){e.filterSensitiveLog=e=>({...e})})(de=t.Recommendation||(t.Recommendation={}));var pe;(function(e){e.filterSensitiveLog=e=>({...e})})(pe=t.Remediation||(t.Remediation={}));var me;(function(e){e.filterSensitiveLog=e=>({...e})})(me=t.AwsEcrContainerImageDetails||(t.AwsEcrContainerImageDetails={}));var fe;(function(e){e.filterSensitiveLog=e=>({...e})})(fe=t.ResourceDetails||(t.ResourceDetails={}));var ge;(function(e){e.filterSensitiveLog=e=>({...e})})(ge=t.Resource||(t.Resource={}));var ye;(function(e){e.filterSensitiveLog=e=>({...e})})(ye=t.CvssScoreAdjustment||(t.CvssScoreAdjustment={}));var he;(function(e){e.filterSensitiveLog=e=>({...e})})(he=t.CvssScoreDetails||(t.CvssScoreDetails={}));var ve;(function(e){e.filterSensitiveLog=e=>({...e})})(ve=t.ScoreDetails||(t.ScoreDetails={}));var we;(function(e){e.filterSensitiveLog=e=>({...e})})(we=t.EnhancedImageScanFinding||(t.EnhancedImageScanFinding={}));var Ee;(function(e){e.filterSensitiveLog=e=>({...e})})(Ee=t.Attribute||(t.Attribute={}));var Se;(function(e){e.filterSensitiveLog=e=>({...e})})(Se=t.ImageScanFinding||(t.ImageScanFinding={}));var Ce;(function(e){e.filterSensitiveLog=e=>({...e})})(Ce=t.ImageScanFindings||(t.ImageScanFindings={}));var xe;(function(e){e.filterSensitiveLog=e=>({...e})})(xe=t.DescribeImageScanFindingsResponse||(t.DescribeImageScanFindingsResponse={}));class ScanNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});this.name="ScanNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;var Re;(function(e){e.filterSensitiveLog=e=>({...e})})(Re=t.DescribePullThroughCacheRulesRequest||(t.DescribePullThroughCacheRulesRequest={}));var be;(function(e){e.filterSensitiveLog=e=>({...e})})(be=t.PullThroughCacheRule||(t.PullThroughCacheRule={}));var Pe;(function(e){e.filterSensitiveLog=e=>({...e})})(Pe=t.DescribePullThroughCacheRulesResponse||(t.DescribePullThroughCacheRulesResponse={}));var Ie;(function(e){e.filterSensitiveLog=e=>({...e})})(Ie=t.DescribeRegistryRequest||(t.DescribeRegistryRequest={}));var Ae;(function(e){e.filterSensitiveLog=e=>({...e})})(Ae=t.ReplicationDestination||(t.ReplicationDestination={}));var Te;(function(e){e["PREFIX_MATCH"]="PREFIX_MATCH"})(Te=t.RepositoryFilterType||(t.RepositoryFilterType={}));var Ne;(function(e){e.filterSensitiveLog=e=>({...e})})(Ne=t.RepositoryFilter||(t.RepositoryFilter={}));var Le;(function(e){e.filterSensitiveLog=e=>({...e})})(Le=t.ReplicationRule||(t.ReplicationRule={}));var De;(function(e){e.filterSensitiveLog=e=>({...e})})(De=t.ReplicationConfiguration||(t.ReplicationConfiguration={}));var Oe;(function(e){e.filterSensitiveLog=e=>({...e})})(Oe=t.DescribeRegistryResponse||(t.DescribeRegistryResponse={}));var ze;(function(e){e.filterSensitiveLog=e=>({...e})})(ze=t.DescribeRepositoriesRequest||(t.DescribeRepositoriesRequest={}));var je;(function(e){e.filterSensitiveLog=e=>({...e})})(je=t.DescribeRepositoriesResponse||(t.DescribeRepositoriesResponse={}));var Me;(function(e){e.filterSensitiveLog=e=>({...e})})(Me=t.GetAuthorizationTokenRequest||(t.GetAuthorizationTokenRequest={}));var ke;(function(e){e.filterSensitiveLog=e=>({...e})})(ke=t.AuthorizationData||(t.AuthorizationData={}));var Fe;(function(e){e.filterSensitiveLog=e=>({...e})})(Fe=t.GetAuthorizationTokenResponse||(t.GetAuthorizationTokenResponse={}));var Ue;(function(e){e.filterSensitiveLog=e=>({...e})})(Ue=t.GetDownloadUrlForLayerRequest||(t.GetDownloadUrlForLayerRequest={}));var qe;(function(e){e.filterSensitiveLog=e=>({...e})})(qe=t.GetDownloadUrlForLayerResponse||(t.GetDownloadUrlForLayerResponse={}));class LayerInaccessibleException extends o.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 o.ECRServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;var $e;(function(e){e.filterSensitiveLog=e=>({...e})})($e=t.GetLifecyclePolicyRequest||(t.GetLifecyclePolicyRequest={}));var Ge;(function(e){e.filterSensitiveLog=e=>({...e})})(Ge=t.GetLifecyclePolicyResponse||(t.GetLifecyclePolicyResponse={}));var He;(function(e){e.filterSensitiveLog=e=>({...e})})(He=t.LifecyclePolicyPreviewFilter||(t.LifecyclePolicyPreviewFilter={}));var Be;(function(e){e.filterSensitiveLog=e=>({...e})})(Be=t.GetLifecyclePolicyPreviewRequest||(t.GetLifecyclePolicyPreviewRequest={}));var Ve;(function(e){e["EXPIRE"]="EXPIRE"})(Ve=t.ImageActionType||(t.ImageActionType={}));var We;(function(e){e.filterSensitiveLog=e=>({...e})})(We=t.LifecyclePolicyRuleAction||(t.LifecyclePolicyRuleAction={}));var Ke;(function(e){e.filterSensitiveLog=e=>({...e})})(Ke=t.LifecyclePolicyPreviewResult||(t.LifecyclePolicyPreviewResult={}));var Je;(function(e){e["COMPLETE"]="COMPLETE";e["EXPIRED"]="EXPIRED";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(Je=t.LifecyclePolicyPreviewStatus||(t.LifecyclePolicyPreviewStatus={}));var Ye;(function(e){e.filterSensitiveLog=e=>({...e})})(Ye=t.LifecyclePolicyPreviewSummary||(t.LifecyclePolicyPreviewSummary={}));var Xe;(function(e){e.filterSensitiveLog=e=>({...e})})(Xe=t.GetLifecyclePolicyPreviewResponse||(t.GetLifecyclePolicyPreviewResponse={}));class LifecyclePolicyPreviewNotFoundException extends o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyPreviewNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;var Qe;(function(e){e.filterSensitiveLog=e=>({...e})})(Qe=t.GetRegistryPolicyRequest||(t.GetRegistryPolicyRequest={}));var Ze;(function(e){e.filterSensitiveLog=e=>({...e})})(Ze=t.GetRegistryPolicyResponse||(t.GetRegistryPolicyResponse={}));var et;(function(e){e.filterSensitiveLog=e=>({...e})})(et=t.GetRegistryScanningConfigurationRequest||(t.GetRegistryScanningConfigurationRequest={}));var tt;(function(e){e.filterSensitiveLog=e=>({...e})})(tt=t.RegistryScanningRule||(t.RegistryScanningRule={}));var nt;(function(e){e["BASIC"]="BASIC";e["ENHANCED"]="ENHANCED"})(nt=t.ScanType||(t.ScanType={}));var ot;(function(e){e.filterSensitiveLog=e=>({...e})})(ot=t.RegistryScanningConfiguration||(t.RegistryScanningConfiguration={}));var rt;(function(e){e.filterSensitiveLog=e=>({...e})})(rt=t.GetRegistryScanningConfigurationResponse||(t.GetRegistryScanningConfigurationResponse={}));var it;(function(e){e.filterSensitiveLog=e=>({...e})})(it=t.GetRepositoryPolicyRequest||(t.GetRepositoryPolicyRequest={}));var st;(function(e){e.filterSensitiveLog=e=>({...e})})(st=t.GetRepositoryPolicyResponse||(t.GetRepositoryPolicyResponse={}));var at;(function(e){e.filterSensitiveLog=e=>({...e})})(at=t.InitiateLayerUploadRequest||(t.InitiateLayerUploadRequest={}));var ct;(function(e){e.filterSensitiveLog=e=>({...e})})(ct=t.InitiateLayerUploadResponse||(t.InitiateLayerUploadResponse={}));var lt;(function(e){e.filterSensitiveLog=e=>({...e})})(lt=t.ListImagesFilter||(t.ListImagesFilter={}));var ut;(function(e){e.filterSensitiveLog=e=>({...e})})(ut=t.ListImagesRequest||(t.ListImagesRequest={}));var dt;(function(e){e.filterSensitiveLog=e=>({...e})})(dt=t.ListImagesResponse||(t.ListImagesResponse={}));var pt;(function(e){e.filterSensitiveLog=e=>({...e})})(pt=t.ListTagsForResourceRequest||(t.ListTagsForResourceRequest={}));var mt;(function(e){e.filterSensitiveLog=e=>({...e})})(mt=t.ListTagsForResourceResponse||(t.ListTagsForResourceResponse={}));class ImageAlreadyExistsException extends o.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 o.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 o.ECRServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;var ft;(function(e){e.filterSensitiveLog=e=>({...e})})(ft=t.PutImageRequest||(t.PutImageRequest={}));var gt;(function(e){e.filterSensitiveLog=e=>({...e})})(gt=t.PutImageResponse||(t.PutImageResponse={}));class ReferencedImagesNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;var yt;(function(e){e.filterSensitiveLog=e=>({...e})})(yt=t.PutImageScanningConfigurationRequest||(t.PutImageScanningConfigurationRequest={}));var ht;(function(e){e.filterSensitiveLog=e=>({...e})})(ht=t.PutImageScanningConfigurationResponse||(t.PutImageScanningConfigurationResponse={}));var vt;(function(e){e.filterSensitiveLog=e=>({...e})})(vt=t.PutImageTagMutabilityRequest||(t.PutImageTagMutabilityRequest={}));var wt;(function(e){e.filterSensitiveLog=e=>({...e})})(wt=t.PutImageTagMutabilityResponse||(t.PutImageTagMutabilityResponse={}));var Et;(function(e){e.filterSensitiveLog=e=>({...e})})(Et=t.PutLifecyclePolicyRequest||(t.PutLifecyclePolicyRequest={}));var St;(function(e){e.filterSensitiveLog=e=>({...e})})(St=t.PutLifecyclePolicyResponse||(t.PutLifecyclePolicyResponse={}));var Ct;(function(e){e.filterSensitiveLog=e=>({...e})})(Ct=t.PutRegistryPolicyRequest||(t.PutRegistryPolicyRequest={}));var xt;(function(e){e.filterSensitiveLog=e=>({...e})})(xt=t.PutRegistryPolicyResponse||(t.PutRegistryPolicyResponse={}));var Rt;(function(e){e.filterSensitiveLog=e=>({...e})})(Rt=t.PutRegistryScanningConfigurationRequest||(t.PutRegistryScanningConfigurationRequest={}));var _t;(function(e){e.filterSensitiveLog=e=>({...e})})(_t=t.PutRegistryScanningConfigurationResponse||(t.PutRegistryScanningConfigurationResponse={}));var bt;(function(e){e.filterSensitiveLog=e=>({...e})})(bt=t.PutReplicationConfigurationRequest||(t.PutReplicationConfigurationRequest={}));var Pt;(function(e){e.filterSensitiveLog=e=>({...e})})(Pt=t.PutReplicationConfigurationResponse||(t.PutReplicationConfigurationResponse={}));var It;(function(e){e.filterSensitiveLog=e=>({...e})})(It=t.SetRepositoryPolicyRequest||(t.SetRepositoryPolicyRequest={}));var At;(function(e){e.filterSensitiveLog=e=>({...e})})(At=t.SetRepositoryPolicyResponse||(t.SetRepositoryPolicyResponse={}));var Tt;(function(e){e.filterSensitiveLog=e=>({...e})})(Tt=t.StartImageScanRequest||(t.StartImageScanRequest={}));var Nt;(function(e){e.filterSensitiveLog=e=>({...e})})(Nt=t.StartImageScanResponse||(t.StartImageScanResponse={}));class UnsupportedImageTypeException extends o.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 o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});this.name="LifecyclePolicyPreviewInProgressException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;var Lt;(function(e){e.filterSensitiveLog=e=>({...e})})(Lt=t.StartLifecyclePolicyPreviewRequest||(t.StartLifecyclePolicyPreviewRequest={}));var Dt;(function(e){e.filterSensitiveLog=e=>({...e})})(Dt=t.StartLifecyclePolicyPreviewResponse||(t.StartLifecyclePolicyPreviewResponse={}));var Ot;(function(e){e.filterSensitiveLog=e=>({...e})})(Ot=t.TagResourceRequest||(t.TagResourceRequest={}));var zt;(function(e){e.filterSensitiveLog=e=>({...e})})(zt=t.TagResourceResponse||(t.TagResourceResponse={}));var jt;(function(e){e.filterSensitiveLog=e=>({...e})})(jt=t.UntagResourceRequest||(t.UntagResourceRequest={}));var Mt;(function(e){e.filterSensitiveLog=e=>({...e})})(Mt=t.UntagResourceResponse||(t.UntagResourceResponse={}));class InvalidLayerPartException extends o.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;var kt;(function(e){e.filterSensitiveLog=e=>({...e})})(kt=t.UploadLayerPartRequest||(t.UploadLayerPartRequest={}));var Ft;(function(e){e.filterSensitiveLog=e=>({...e})})(Ft=t.UploadLayerPartResponse||(t.UploadLayerPartResponse={}))},862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const o=n(2987);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageScanFindingsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImageScanFindings(t,...n);async function*paginateDescribeImageScanFindings(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeImageScanFindings=paginateDescribeImageScanFindings},1351:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const o=n(5353);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImages(t,...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeImages=paginateDescribeImages},9589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribePullThroughCacheRules=void 0;const o=n(1484);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribePullThroughCacheRulesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describePullThroughCacheRules(t,...n);async function*paginateDescribePullThroughCacheRules(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribePullThroughCacheRules=paginateDescribePullThroughCacheRules},6404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const o=n(1200);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRepositories(t,...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateGetLifecyclePolicyPreview=void 0;const o=n(7006);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.GetLifecyclePolicyPreviewCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.getLifecyclePolicyPreview(t,...n);async function*paginateGetLifecyclePolicyPreview(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateGetLifecyclePolicyPreview=paginateGetLifecyclePolicyPreview},9010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListImages=void 0;const o=n(3854);const r=n(9167);const i=n(3391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listImages(t,...n);async function*paginateListImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateListImages=paginateListImages},5356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(862),t);o.__exportStar(n(1351),t);o.__exportStar(n(9589),t);o.__exportStar(n(6404),t);o.__exportStar(n(987),t);o.__exportStar(n(9010),t);o.__exportStar(n(1066),t)},6704:(e,t,n)=>{"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 o=n(223);const r=n(4963);const i=n(1610);const s=n(9088);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability"};let o;o=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1BatchGetImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchGetImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchGetImageCommand=serializeAws_json1_1BatchGetImageCommand;const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule"};let o;o=JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=serializeAws_json1_1CreatePullThroughCacheRuleCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreateRepository"};let o;o=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteLifecyclePolicyCommand=serializeAws_json1_1DeleteLifecyclePolicyCommand;const serializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"};let o;o=JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=serializeAws_json1_1DeletePullThroughCacheRuleCommand;const serializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRegistryPolicyCommand=serializeAws_json1_1DeleteRegistryPolicyCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepository"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageReplicationStatusCommand=serializeAws_json1_1DescribeImageReplicationStatusCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImages"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageScanFindingsCommand=serializeAws_json1_1DescribeImageScanFindingsCommand;const serializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules"};let o;o=JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=serializeAws_json1_1DescribePullThroughCacheRulesCommand;const serializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRegistry"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRegistryCommand=serializeAws_json1_1DescribeRegistryCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken"};let o;o=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer"};let o;o=JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetDownloadUrlForLayerCommand=serializeAws_json1_1GetDownloadUrlForLayerCommand;const serializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetLifecyclePolicyCommand=serializeAws_json1_1GetLifecyclePolicyCommand;const serializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview"};let o;o=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=serializeAws_json1_1GetLifecyclePolicyPreviewCommand;const serializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryPolicyCommand=serializeAws_json1_1GetRegistryPolicyCommand;const serializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=serializeAws_json1_1GetRegistryScanningConfigurationCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListImages"};let o;o=JSON.stringify(serializeAws_json1_1ListImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListImagesCommand=serializeAws_json1_1ListImagesCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListTagsForResource"};let o;o=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImage"};let o;o=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageScanningConfigurationCommand=serializeAws_json1_1PutImageScanningConfigurationCommand;const serializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability"};let o;o=JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageTagMutabilityCommand=serializeAws_json1_1PutImageTagMutabilityCommand;const serializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutLifecyclePolicyCommand=serializeAws_json1_1PutLifecyclePolicyCommand;const serializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryPolicyCommand=serializeAws_json1_1PutRegistryPolicyCommand;const serializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=serializeAws_json1_1PutRegistryScanningConfigurationCommand;const serializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutReplicationConfigurationCommand=serializeAws_json1_1PutReplicationConfigurationCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1StartImageScanCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartImageScan"};let o;o=JSON.stringify(serializeAws_json1_1StartImageScanRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1StartImageScanCommand=serializeAws_json1_1StartImageScanCommand;const serializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview"};let o;o=JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=serializeAws_json1_1StartLifecyclePolicyPreviewCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.TagResource"};let o;o=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UntagResource"};let o;o=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UploadLayerPart"};let o;o=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};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 n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchDeleteImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchGetImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetImageCommand=deserializeAws_json1_1BatchGetImageCommand;const deserializeAws_json1_1BatchGetImageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CompleteLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(n,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreatePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=deserializeAws_json1_1CreatePullThroughCacheRuleCommand;const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=deserializeAws_json1_1DeleteLifecyclePolicyCommand;const deserializeAws_json1_1DeleteLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeletePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=deserializeAws_json1_1DeletePullThroughCacheRuleCommand;const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRegistryPolicyCommand=deserializeAws_json1_1DeleteRegistryPolicyCommand;const deserializeAws_json1_1DeleteRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageReplicationStatusResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=deserializeAws_json1_1DescribeImageReplicationStatusCommand;const deserializeAws_json1_1DescribeImageReplicationStatusCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageScanFindingsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageScanFindingsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageScanFindingsCommand=deserializeAws_json1_1DescribeImageScanFindingsCommand;const deserializeAws_json1_1DescribeImageScanFindingsCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await deserializeAws_json1_1ScanNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribePullThroughCacheRulesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=deserializeAws_json1_1DescribePullThroughCacheRulesCommand;const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRegistryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistryCommand=deserializeAws_json1_1DescribeRegistryCommand;const deserializeAws_json1_1DescribeRegistryCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetDownloadUrlForLayerCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetDownloadUrlForLayerResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=deserializeAws_json1_1GetDownloadUrlForLayerCommand;const deserializeAws_json1_1GetDownloadUrlForLayerCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await deserializeAws_json1_1LayerInaccessibleExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyCommand=deserializeAws_json1_1GetLifecyclePolicyCommand;const deserializeAws_json1_1GetLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=deserializeAws_json1_1GetLifecyclePolicyPreviewCommand;const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryPolicyCommand=deserializeAws_json1_1GetRegistryPolicyCommand;const deserializeAws_json1_1GetRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=deserializeAws_json1_1GetRegistryScanningConfigurationCommand;const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1InitiateLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListImagesCommand=deserializeAws_json1_1ListImagesCommand;const deserializeAws_json1_1ListImagesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListTagsForResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageScanningConfigurationCommand=deserializeAws_json1_1PutImageScanningConfigurationCommand;const deserializeAws_json1_1PutImageScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageTagMutabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageTagMutabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageTagMutabilityCommand=deserializeAws_json1_1PutImageTagMutabilityCommand;const deserializeAws_json1_1PutImageTagMutabilityCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutLifecyclePolicyCommand=deserializeAws_json1_1PutLifecyclePolicyCommand;const deserializeAws_json1_1PutLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryPolicyCommand=deserializeAws_json1_1PutRegistryPolicyCommand;const deserializeAws_json1_1PutRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=deserializeAws_json1_1PutRegistryScanningConfigurationCommand;const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutReplicationConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutReplicationConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutReplicationConfigurationCommand=deserializeAws_json1_1PutReplicationConfigurationCommand;const deserializeAws_json1_1PutReplicationConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1SetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartImageScanCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1StartImageScanResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1StartImageScanCommand=deserializeAws_json1_1StartImageScanCommand;const deserializeAws_json1_1StartImageScanCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=deserializeAws_json1_1StartLifecyclePolicyPreviewCommand;const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1TagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UntagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UploadLayerPartResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let s="UnknownError";s=loadRestJsonErrorCode(e,n.body);switch(s){case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const a=n.body;o=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1EmptyUploadException(n,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageAlreadyExistsException(n,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageDigestDoesNotMatchException(n,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageNotFoundException(n,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageTagAlreadyExistsException(n,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerException(n,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerPartException(n,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidParameterException(n,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidTagParameterException(n,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1KmsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1KmsException(n,t);const i=new s.KmsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerAlreadyExistsException(n,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayerInaccessibleExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerInaccessibleException(n,t);const i=new s.LayerInaccessibleException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerPartTooSmallException(n,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayersNotFoundException(n,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyNotFoundException(n,t);const i=new s.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(n,t);const i=new s.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(n,t);const i=new s.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LimitExceededException(n,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(n,t);const i=new s.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1PullThroughCacheRuleNotFoundException(n,t);const i=new s.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ReferencedImagesNotFoundException(n,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RegistryPolicyNotFoundException(n,t);const i=new s.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryAlreadyExistsException(n,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotEmptyException(n,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotFoundException(n,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryPolicyNotFoundException(n,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ScanNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ScanNotFoundException(n,t);const i=new s.ScanNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ServerException(n,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1TooManyTagsException(n,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedImageTypeException(n,t);const i=new s.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedUpstreamRegistryException(n,t);const i=new s.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UploadNotFoundException(n,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_json1_1ValidationExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ValidationException(n,t);const i=new s.ValidationException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1BatchGetImageRequest=(e,t)=>({...e.acceptedMediaTypes!==undefined&&e.acceptedMediaTypes!==null&&{acceptedMediaTypes:serializeAws_json1_1MediaTypeList(e.acceptedMediaTypes,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest=(e,t)=>({...e.repositoryNames!==undefined&&e.repositoryNames!==null&&{repositoryNames:serializeAws_json1_1ScanningConfigurationRepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreatePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!==undefined&&e.ecrRepositoryPrefix!==null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.upstreamRegistryUrl!==undefined&&e.upstreamRegistryUrl!==null&&{upstreamRegistryUrl:e.upstreamRegistryUrl}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.encryptionConfiguration!==undefined&&e.encryptionConfiguration!==null&&{encryptionConfiguration:serializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t)},...e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.imageTagMutability!==undefined&&e.imageTagMutability!==null&&{imageTagMutability:e.imageTagMutability},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteLifecyclePolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeletePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!==undefined&&e.ecrRepositoryPrefix!==null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1DeleteRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageReplicationStatusRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageScanFindingsRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1DescribeImagesFilter(e.filter,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribePullThroughCacheRulesRequest=(e,t)=>({...e.ecrRepositoryPrefixes!==undefined&&e.ecrRepositoryPrefixes!==null&&{ecrRepositoryPrefixes:serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(e.ecrRepositoryPrefixes,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1DescribeRegistryRequest=(e,t)=>({});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryNames!==undefined&&e.repositoryNames!==null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1EncryptionConfiguration=(e,t)=>({...e.encryptionType!==undefined&&e.encryptionType!==null&&{encryptionType:e.encryptionType},...e.kmsKey!==undefined&&e.kmsKey!==null&&{kmsKey:e.kmsKey}});const serializeAws_json1_1GetAuthorizationTokenRegistryIdList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({...e.registryIds!==undefined&&e.registryIds!==null&&{registryIds:serializeAws_json1_1GetAuthorizationTokenRegistryIdList(e.registryIds,t)}});const serializeAws_json1_1GetDownloadUrlForLayerRequest=(e,t)=>({...e.layerDigest!==undefined&&e.layerDigest!==null&&{layerDigest:e.layerDigest},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyPreviewRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1LifecyclePolicyPreviewFilter(e.filter,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&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!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ImageIdentifier(e,t)}));const serializeAws_json1_1ImageScanningConfiguration=(e,t)=>({...e.scanOnPush!==undefined&&e.scanOnPush!==null&&{scanOnPush:e.scanOnPush}});const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1LifecyclePolicyPreviewFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1ListImagesFilter(e.filter,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1MediaTypeList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageManifest!==undefined&&e.imageManifest!==null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!==undefined&&e.imageManifestMediaType!==null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageScanningConfigurationRequest=(e,t)=>({...e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageTagMutabilityRequest=(e,t)=>({...e.imageTagMutability!==undefined&&e.imageTagMutability!==null&&{imageTagMutability:e.imageTagMutability},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutLifecyclePolicyRequest=(e,t)=>({...e.lifecyclePolicyText!==undefined&&e.lifecyclePolicyText!==null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryPolicyRequest=(e,t)=>({...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText}});const serializeAws_json1_1PutRegistryScanningConfigurationRequest=(e,t)=>({...e.rules!==undefined&&e.rules!==null&&{rules:serializeAws_json1_1RegistryScanningRuleList(e.rules,t)},...e.scanType!==undefined&&e.scanType!==null&&{scanType:e.scanType}});const serializeAws_json1_1PutReplicationConfigurationRequest=(e,t)=>({...e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null&&{replicationConfiguration:serializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t)}});const serializeAws_json1_1RegistryScanningRule=(e,t)=>({...e.repositoryFilters!==undefined&&e.repositoryFilters!==null&&{repositoryFilters:serializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t)},...e.scanFrequency!==undefined&&e.scanFrequency!==null&&{scanFrequency:e.scanFrequency}});const serializeAws_json1_1RegistryScanningRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1RegistryScanningRule(e,t)}));const serializeAws_json1_1ReplicationConfiguration=(e,t)=>({...e.rules!==undefined&&e.rules!==null&&{rules:serializeAws_json1_1ReplicationRuleList(e.rules,t)}});const serializeAws_json1_1ReplicationDestination=(e,t)=>({...e.region!==undefined&&e.region!==null&&{region:e.region},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1ReplicationDestinationList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ReplicationDestination(e,t)}));const serializeAws_json1_1ReplicationRule=(e,t)=>({...e.destinations!==undefined&&e.destinations!==null&&{destinations:serializeAws_json1_1ReplicationDestinationList(e.destinations,t)},...e.repositoryFilters!==undefined&&e.repositoryFilters!==null&&{repositoryFilters:serializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t)}});const serializeAws_json1_1ReplicationRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ReplicationRule(e,t)}));const serializeAws_json1_1RepositoryFilter=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:e.filter},...e.filterType!==undefined&&e.filterType!==null&&{filterType:e.filterType}});const serializeAws_json1_1RepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1RepositoryFilter(e,t)}));const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ScanningConfigurationRepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:e.filter},...e.filterType!==undefined&&e.filterType!==null&&{filterType:e.filterType}});const serializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ScanningRepositoryFilter(e,t)}));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartImageScanRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartLifecyclePolicyPreviewRequest=(e,t)=>({...e.lifecyclePolicyText!==undefined&&e.lifecyclePolicyText!==null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!==undefined&&e.Key!==null&&{Key:e.Key},...e.Value!==undefined&&e.Value!==null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1Tag(e,t)}));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tagKeys!==undefined&&e.tagKeys!==null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!==undefined&&e.layerPartBlob!==null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!==undefined&&e.partFirstByte!==null&&{partFirstByte:e.partFirstByte},...e.partLastByte!==undefined&&e.partLastByte!==null&&{partLastByte:e.partLastByte},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const deserializeAws_json1_1Attribute=(e,t)=>({key:r.expectString(e.key),value:r.expectString(e.value)});const deserializeAws_json1_1AttributeList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Attribute(e,t)}));return n};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:r.expectString(e.authorizationToken),expiresAt:e.expiresAt!==undefined&&e.expiresAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.expiresAt))):undefined,proxyEndpoint:r.expectString(e.proxyEndpoint)});const deserializeAws_json1_1AuthorizationDataList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1AuthorizationData(e,t)}));return n};const deserializeAws_json1_1AwsEcrContainerImageDetails=(e,t)=>({architecture:r.expectString(e.architecture),author:r.expectString(e.author),imageHash:r.expectString(e.imageHash),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagsList(e.imageTags,t):undefined,platform:r.expectString(e.platform),pushedAt:e.pushedAt!==undefined&&e.pushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.pushedAt))):undefined,registry:r.expectString(e.registry),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!==undefined&&e.layers!==null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1BatchGetImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,images:e.images!==undefined&&e.images!==null?deserializeAws_json1_1ImageList(e.images,t):undefined});const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1RepositoryScanningConfigurationFailureList(e.failures,t):undefined,scanningConfigurations:e.scanningConfigurations!==undefined&&e.scanningConfigurations!==null?deserializeAws_json1_1RepositoryScanningConfigurationList(e.scanningConfigurations,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:r.expectString(e.layerDigest),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1CreatePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1CvssScore=(e,t)=>({baseScore:r.limitedParseDouble(e.baseScore),scoringVector:r.expectString(e.scoringVector),source:r.expectString(e.source),version:r.expectString(e.version)});const deserializeAws_json1_1CvssScoreAdjustment=(e,t)=>({metric:r.expectString(e.metric),reason:r.expectString(e.reason)});const deserializeAws_json1_1CvssScoreAdjustmentList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScoreAdjustment(e,t)}));return n};const deserializeAws_json1_1CvssScoreDetails=(e,t)=>({adjustments:e.adjustments!==undefined&&e.adjustments!==null?deserializeAws_json1_1CvssScoreAdjustmentList(e.adjustments,t):undefined,score:r.limitedParseDouble(e.score),scoreSource:r.expectString(e.scoreSource),scoringVector:r.expectString(e.scoringVector),version:r.expectString(e.version)});const deserializeAws_json1_1CvssScoreList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScore(e,t)}));return n};const deserializeAws_json1_1DeleteLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!==undefined&&e.lastEvaluatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeletePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1DeleteRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImageReplicationStatusResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,replicationStatuses:e.replicationStatuses!==undefined&&e.replicationStatuses!==null?deserializeAws_json1_1ImageReplicationStatusList(e.replicationStatuses,t):undefined,repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DescribeImageScanFindingsResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanFindings:e.imageScanFindings!==undefined&&e.imageScanFindings!==null?deserializeAws_json1_1ImageScanFindings(e.imageScanFindings,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,nextToken:r.expectString(e.nextToken),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!==undefined&&e.imageDetails!==null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribePullThroughCacheRulesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),pullThroughCacheRules:e.pullThroughCacheRules!==undefined&&e.pullThroughCacheRules!==null?deserializeAws_json1_1PullThroughCacheRuleList(e.pullThroughCacheRules,t):undefined});const deserializeAws_json1_1DescribeRegistryResponse=(e,t)=>({registryId:r.expectString(e.registryId),replicationConfiguration:e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),repositories:e.repositories!==undefined&&e.repositories!==null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1EncryptionConfiguration=(e,t)=>({encryptionType:r.expectString(e.encryptionType),kmsKey:r.expectString(e.kmsKey)});const deserializeAws_json1_1EnhancedImageScanFinding=(e,t)=>({awsAccountId:r.expectString(e.awsAccountId),description:r.expectString(e.description),findingArn:r.expectString(e.findingArn),firstObservedAt:e.firstObservedAt!==undefined&&e.firstObservedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.firstObservedAt))):undefined,lastObservedAt:e.lastObservedAt!==undefined&&e.lastObservedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastObservedAt))):undefined,packageVulnerabilityDetails:e.packageVulnerabilityDetails!==undefined&&e.packageVulnerabilityDetails!==null?deserializeAws_json1_1PackageVulnerabilityDetails(e.packageVulnerabilityDetails,t):undefined,remediation:e.remediation!==undefined&&e.remediation!==null?deserializeAws_json1_1Remediation(e.remediation,t):undefined,resources:e.resources!==undefined&&e.resources!==null?deserializeAws_json1_1ResourceList(e.resources,t):undefined,score:r.limitedParseDouble(e.score),scoreDetails:e.scoreDetails!==undefined&&e.scoreDetails!==null?deserializeAws_json1_1ScoreDetails(e.scoreDetails,t):undefined,severity:r.expectString(e.severity),status:r.expectString(e.status),title:r.expectString(e.title),type:r.expectString(e.type),updatedAt:e.updatedAt!==undefined&&e.updatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.updatedAt))):undefined});const deserializeAws_json1_1EnhancedImageScanFindingList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1EnhancedImageScanFinding(e,t)}));return n};const deserializeAws_json1_1FindingSeverityCounts=(e,t)=>Object.entries(e).reduce(((e,[t,n])=>{if(n===null){return e}return{...e,[t]:r.expectInt32(n)}}),{});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!==undefined&&e.authorizationData!==null?deserializeAws_json1_1AuthorizationDataList(e.authorizationData,t):undefined});const deserializeAws_json1_1GetDownloadUrlForLayerResponse=(e,t)=>({downloadUrl:r.expectString(e.downloadUrl),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),nextToken:r.expectString(e.nextToken),previewResults:e.previewResults!==undefined&&e.previewResults!==null?deserializeAws_json1_1LifecyclePolicyPreviewResultList(e.previewResults,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),status:r.expectString(e.status),summary:e.summary!==undefined&&e.summary!==null?deserializeAws_json1_1LifecyclePolicyPreviewSummary(e.summary,t):undefined});const deserializeAws_json1_1GetLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!==undefined&&e.lastEvaluatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1GetRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1GetRegistryScanningConfigurationResponse=(e,t)=>({registryId:r.expectString(e.registryId),scanningConfiguration:e.scanningConfiguration!==undefined&&e.scanningConfiguration!==null?deserializeAws_json1_1RegistryScanningConfiguration(e.scanningConfiguration,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:r.expectString(e.imageManifest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageScanFindingsSummary:e.imageScanFindingsSummary!==undefined&&e.imageScanFindingsSummary!==null?deserializeAws_json1_1ImageScanFindingsSummary(e.imageScanFindingsSummary,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return n};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return n};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:r.expectString(e.imageDigest),imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return n};const deserializeAws_json1_1ImageList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Image(e,t)}));return n};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageReplicationStatus=(e,t)=>({failureCode:r.expectString(e.failureCode),region:r.expectString(e.region),registryId:r.expectString(e.registryId),status:r.expectString(e.status)});const deserializeAws_json1_1ImageReplicationStatusList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageReplicationStatus(e,t)}));return n};const deserializeAws_json1_1ImageScanFinding=(e,t)=>({attributes:e.attributes!==undefined&&e.attributes!==null?deserializeAws_json1_1AttributeList(e.attributes,t):undefined,description:r.expectString(e.description),name:r.expectString(e.name),severity:r.expectString(e.severity),uri:r.expectString(e.uri)});const deserializeAws_json1_1ImageScanFindingList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageScanFinding(e,t)}));return n};const deserializeAws_json1_1ImageScanFindings=(e,t)=>({enhancedFindings:e.enhancedFindings!==undefined&&e.enhancedFindings!==null?deserializeAws_json1_1EnhancedImageScanFindingList(e.enhancedFindings,t):undefined,findingSeverityCounts:e.findingSeverityCounts!==undefined&&e.findingSeverityCounts!==null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,findings:e.findings!==undefined&&e.findings!==null?deserializeAws_json1_1ImageScanFindingList(e.findings,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!==undefined&&e.imageScanCompletedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!==undefined&&e.vulnerabilitySourceUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanFindingsSummary=(e,t)=>({findingSeverityCounts:e.findingSeverityCounts!==undefined&&e.findingSeverityCounts!==null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!==undefined&&e.imageScanCompletedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!==undefined&&e.vulnerabilitySourceUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanningConfiguration=(e,t)=>({scanOnPush:r.expectBoolean(e.scanOnPush)});const deserializeAws_json1_1ImageScanStatus=(e,t)=>({description:r.expectString(e.description),status:r.expectString(e.status)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1ImageTagsList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:r.expectLong(e.partSize),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:r.expectLong(e.lastValidByteReceived),message:r.expectString(e.message),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1KmsException=(e,t)=>({kmsError:r.expectString(e.kmsError),message:r.expectString(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:r.expectString(e.layerAvailability),layerDigest:r.expectString(e.layerDigest),layerSize:r.expectLong(e.layerSize),mediaType:r.expectString(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return n};const deserializeAws_json1_1LayerInaccessibleException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return n};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewResult=(e,t)=>({action:e.action!==undefined&&e.action!==null?deserializeAws_json1_1LifecyclePolicyRuleAction(e.action,t):undefined,appliedRulePriority:r.expectInt32(e.appliedRulePriority),imageDigest:r.expectString(e.imageDigest),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined});const deserializeAws_json1_1LifecyclePolicyPreviewResultList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LifecyclePolicyPreviewResult(e,t)}));return n};const deserializeAws_json1_1LifecyclePolicyPreviewSummary=(e,t)=>({expiringImageTotalCount:r.expectInt32(e.expiringImageTotalCount)});const deserializeAws_json1_1LifecyclePolicyRuleAction=(e,t)=>({type:r.expectString(e.type)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ListImagesResponse=(e,t)=>({imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1PackageVulnerabilityDetails=(e,t)=>({cvss:e.cvss!==undefined&&e.cvss!==null?deserializeAws_json1_1CvssScoreList(e.cvss,t):undefined,referenceUrls:e.referenceUrls!==undefined&&e.referenceUrls!==null?deserializeAws_json1_1ReferenceUrlsList(e.referenceUrls,t):undefined,relatedVulnerabilities:e.relatedVulnerabilities!==undefined&&e.relatedVulnerabilities!==null?deserializeAws_json1_1RelatedVulnerabilitiesList(e.relatedVulnerabilities,t):undefined,source:r.expectString(e.source),sourceUrl:r.expectString(e.sourceUrl),vendorCreatedAt:e.vendorCreatedAt!==undefined&&e.vendorCreatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vendorCreatedAt))):undefined,vendorSeverity:r.expectString(e.vendorSeverity),vendorUpdatedAt:e.vendorUpdatedAt!==undefined&&e.vendorUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vendorUpdatedAt))):undefined,vulnerabilityId:r.expectString(e.vulnerabilityId),vulnerablePackages:e.vulnerablePackages!==undefined&&e.vulnerablePackages!==null?deserializeAws_json1_1VulnerablePackagesList(e.vulnerablePackages,t):undefined});const deserializeAws_json1_1PullThroughCacheRule=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1PullThroughCacheRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1PullThroughCacheRule(e,t)}));return n};const deserializeAws_json1_1PullThroughCacheRuleNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!==undefined&&e.image!==null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutImageScanningConfigurationResponse=(e,t)=>({imageScanningConfiguration:e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutImageTagMutabilityResponse=(e,t)=>({imageTagMutability:r.expectString(e.imageTagMutability),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutLifecyclePolicyResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1PutRegistryScanningConfigurationResponse=(e,t)=>({registryScanningConfiguration:e.registryScanningConfiguration!==undefined&&e.registryScanningConfiguration!==null?deserializeAws_json1_1RegistryScanningConfiguration(e.registryScanningConfiguration,t):undefined});const deserializeAws_json1_1PutReplicationConfigurationResponse=(e,t)=>({replicationConfiguration:e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1Recommendation=(e,t)=>({text:r.expectString(e.text),url:r.expectString(e.url)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ReferenceUrlsList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1RegistryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RegistryScanningConfiguration=(e,t)=>({rules:e.rules!==undefined&&e.rules!==null?deserializeAws_json1_1RegistryScanningRuleList(e.rules,t):undefined,scanType:r.expectString(e.scanType)});const deserializeAws_json1_1RegistryScanningRule=(e,t)=>({repositoryFilters:e.repositoryFilters!==undefined&&e.repositoryFilters!==null?deserializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t):undefined,scanFrequency:r.expectString(e.scanFrequency)});const deserializeAws_json1_1RegistryScanningRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryScanningRule(e,t)}));return n};const deserializeAws_json1_1RelatedVulnerabilitiesList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return n};const deserializeAws_json1_1Remediation=(e,t)=>({recommendation:e.recommendation!==undefined&&e.recommendation!==null?deserializeAws_json1_1Recommendation(e.recommendation,t):undefined});const deserializeAws_json1_1ReplicationConfiguration=(e,t)=>({rules:e.rules!==undefined&&e.rules!==null?deserializeAws_json1_1ReplicationRuleList(e.rules,t):undefined});const deserializeAws_json1_1ReplicationDestination=(e,t)=>({region:r.expectString(e.region),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1ReplicationDestinationList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationDestination(e,t)}));return n};const deserializeAws_json1_1ReplicationRule=(e,t)=>({destinations:e.destinations!==undefined&&e.destinations!==null?deserializeAws_json1_1ReplicationDestinationList(e.destinations,t):undefined,repositoryFilters:e.repositoryFilters!==undefined&&e.repositoryFilters!==null?deserializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t):undefined});const deserializeAws_json1_1ReplicationRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationRule(e,t)}));return n};const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,encryptionConfiguration:e.encryptionConfiguration!==undefined&&e.encryptionConfiguration!==null?deserializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t):undefined,imageScanningConfiguration:e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,imageTagMutability:r.expectString(e.imageTagMutability),registryId:r.expectString(e.registryId),repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),repositoryUri:r.expectString(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryFilter=(e,t)=>({filter:r.expectString(e.filter),filterType:r.expectString(e.filterType)});const deserializeAws_json1_1RepositoryFilterList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryFilter(e,t)}));return n};const deserializeAws_json1_1RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return n};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryScanningConfiguration=(e,t)=>({appliedScanFilters:e.appliedScanFilters!==undefined&&e.appliedScanFilters!==null?deserializeAws_json1_1ScanningRepositoryFilterList(e.appliedScanFilters,t):undefined,repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),scanFrequency:r.expectString(e.scanFrequency),scanOnPush:r.expectBoolean(e.scanOnPush)});const deserializeAws_json1_1RepositoryScanningConfigurationFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1RepositoryScanningConfigurationFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfigurationFailure(e,t)}));return n};const deserializeAws_json1_1RepositoryScanningConfigurationList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfiguration(e,t)}));return n};const deserializeAws_json1_1Resource=(e,t)=>({details:e.details!==undefined&&e.details!==null?deserializeAws_json1_1ResourceDetails(e.details,t):undefined,id:r.expectString(e.id),tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1Tags(e.tags,t):undefined,type:r.expectString(e.type)});const deserializeAws_json1_1ResourceDetails=(e,t)=>({awsEcrContainerImage:e.awsEcrContainerImage!==undefined&&e.awsEcrContainerImage!==null?deserializeAws_json1_1AwsEcrContainerImageDetails(e.awsEcrContainerImage,t):undefined});const deserializeAws_json1_1ResourceList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Resource(e,t)}));return n};const deserializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({filter:r.expectString(e.filter),filterType:r.expectString(e.filterType)});const deserializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ScanningRepositoryFilter(e,t)}));return n};const deserializeAws_json1_1ScanNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ScoreDetails=(e,t)=>({cvss:e.cvss!==undefined&&e.cvss!==null?deserializeAws_json1_1CvssScoreDetails(e.cvss,t):undefined});const deserializeAws_json1_1ServerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1StartImageScanResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),status:r.expectString(e.status)});const deserializeAws_json1_1Tag=(e,t)=>({Key:r.expectString(e.Key),Value:r.expectString(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return n};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1Tags=(e,t)=>Object.entries(e).reduce(((e,[t,n])=>{if(n===null){return e}return{...e,[t]:r.expectString(n)}}),{});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedImageTypeException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedUpstreamRegistryException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:r.expectLong(e.lastByteReceived),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ValidationException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1VulnerablePackage=(e,t)=>({arch:r.expectString(e.arch),epoch:r.expectInt32(e.epoch),filePath:r.expectString(e.filePath),name:r.expectString(e.name),packageManager:r.expectString(e.packageManager),release:r.expectString(e.release),sourceLayerHash:r.expectString(e.sourceLayerHash),version:r.expectString(e.version)});const deserializeAws_json1_1VulnerablePackagesList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1VulnerablePackage(e,t)}));return n};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"]}};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,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}return""}},869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(4289));const i=n(2209);const s=n(6153);const a=n(5531);const c=n(7442);const l=n(6064);const u=n(7684);const d=n(8805);const p=n(8588);const m=n(4147);const f=n(8095);const g=n(6278);const y=n(542);const h=n(4963);const v=n(4243);const getRuntimeConfig=e=>{var t,n,o,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(n=e===null||e===void 0?void 0:e.base64Encoder)!==null&&n!==void 0?n:p.toBase64,bodyLengthChecker:(o=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&o!==void 0?o:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.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:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(2992);const r=n(3070);const getRuntimeConfig=e=>{var t,n,i,s,a;return{apiVersion:"2015-09-21",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(n=e===null||e===void 0?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"ECR",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:o.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},8406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8547),t);o.__exportStar(n(5723),t)},8547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilImageScanComplete=t.waitForImageScanComplete=void 0;const o=n(1627);const r=n(2987);const checkState=async(e,t)=>{let n;try{const i=await e.send(new r.DescribeImageScanFindingsCommand(t));n=i;try{const returnComparator=()=>i.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>i.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:o.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:o.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return o.createWaiter({...n,...e},t,checkState)};t.waitForImageScanComplete=waitForImageScanComplete;const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const r=await o.createWaiter({...n,...e},t,checkState);return o.checkExceptions(r)};t.waitUntilImageScanComplete=waitUntilImageScanComplete},5723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilLifecyclePolicyPreviewComplete=t.waitForLifecyclePolicyPreviewComplete=void 0;const o=n(1627);const r=n(7006);const checkState=async(e,t)=>{let n;try{const i=await e.send(new r.GetLifecyclePolicyPreviewCommand(t));n=i;try{const returnComparator=()=>i.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>i.status;if(returnComparator()==="FAILED"){return{state:o.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:o.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return o.createWaiter({...n,...e},t,checkState)};t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const r=await o.createWaiter({...n,...e},t,checkState);return o.checkExceptions(r)};t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete},9838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const o=n(8972);const r=n(1513);const i=n(4296);const s=n(4511);const a=n(1057);class SSO extends a.SSOClient{getRoleCredentials(e,t,n){const r=new o.GetRoleCredentialsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}listAccountRoles(e,t,n){const o=new r.ListAccountRolesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listAccounts(e,t,n){const o=new i.ListAccountsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}logout(e,t,n){const o=new s.LogoutCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.SSO=SSO},1057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=void 0;const o=n(6153);const r=n(2245);const i=n(2545);const s=n(14);const a=n(6064);const c=n(4688);const l=n(4963);const u=n(9756);class SSOClient extends l.Client{constructor(e){const t=u.getRuntimeConfig(e);const n=o.resolveRegionConfig(t);const l=o.resolveEndpointsConfig(n);const d=a.resolveRetryConfig(l);const p=i.resolveHostHeaderConfig(d);const m=c.resolveUserAgentConfig(p);super(m);this.config=m;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},8972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=void 0;const o=n(3631);const r=n(4963);const i=n(6390);const s=n(8507);class GetRoleCredentialsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="GetRoleCredentialsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRoleCredentialsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_restJson1GetRoleCredentialsCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1GetRoleCredentialsCommand(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=void 0;const o=n(3631);const r=n(4963);const i=n(6390);const s=n(8507);class ListAccountRolesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="ListAccountRolesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListAccountRolesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_restJson1ListAccountRolesCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1ListAccountRolesCommand(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},4296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=void 0;const o=n(3631);const r=n(4963);const i=n(6390);const s=n(8507);class ListAccountsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="ListAccountsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListAccountsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_restJson1ListAccountsCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1ListAccountsCommand(e,t)}}t.ListAccountsCommand=ListAccountsCommand},4511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=void 0;const o=n(3631);const r=n(4963);const i=n(6390);const s=n(8507);class LogoutCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="LogoutCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_restJson1LogoutCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1LogoutCommand(e,t)}}t.LogoutCommand=LogoutCommand},5706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8972),t);o.__exportStar(n(1513),t);o.__exportStar(n(4296),t);o.__exportStar(n(4511),t)},3546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const o=n(6153);const r={"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-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-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"},"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 i={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-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)=>o.getRegionInfo(e,{...t,signingService:"awsssoportal",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const o=n(4351);o.__exportStar(n(9838),t);o.__exportStar(n(1057),t);o.__exportStar(n(5706),t);o.__exportStar(n(4952),t);o.__exportStar(n(6773),t);var r=n(1517);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return r.SSOServiceException}})},1517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const o=n(4963);class SSOServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},4952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(6390),t)},6390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequest=t.ListAccountsResponse=t.ListAccountsRequest=t.ListAccountRolesResponse=t.RoleInfo=t.ListAccountRolesRequest=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=t.GetRoleCredentialsResponse=t.RoleCredentials=t.GetRoleCredentialsRequest=t.AccountInfo=void 0;const o=n(4963);const r=n(1517);var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.AccountInfo||(t.AccountInfo={}));var s;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}})})(s=t.GetRoleCredentialsRequest||(t.GetRoleCredentialsRequest={}));var a;(function(e){e.filterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:o.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:o.SENSITIVE_STRING}})})(a=t.RoleCredentials||(t.RoleCredentials={}));var c;(function(e){e.filterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:a.filterSensitiveLog(e.roleCredentials)}})})(c=t.GetRoleCredentialsResponse||(t.GetRoleCredentialsResponse={}));class InvalidRequestException extends r.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 r.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 r.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 r.SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException;var l;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}})})(l=t.ListAccountRolesRequest||(t.ListAccountRolesRequest={}));var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.RoleInfo||(t.RoleInfo={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.ListAccountRolesResponse||(t.ListAccountRolesResponse={}));var p;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}})})(p=t.ListAccountsRequest||(t.ListAccountsRequest={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.ListAccountsResponse||(t.ListAccountsResponse={}));var f;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}})})(f=t.LogoutRequest||(t.LogoutRequest={}))},849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const o=n(1513);const r=n(9838);const i=n(1057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountRolesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*paginateListAccountRoles(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const o=n(4296);const r=n(9838);const i=n(1057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listAccounts(t,...n);async function*paginateListAccounts(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;o=a.nextToken;s=!!o}return undefined}t.paginateListAccounts=paginateListAccounts},6773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(849),t);o.__exportStar(n(8460),t);o.__exportStar(n(938),t)},8507:(e,t,n)=>{"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 o=n(223);const r=n(4963);const i=n(6390);const s=n(1517);const serializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/federation/credentials";const l={...e.roleName!==undefined&&{role_name:e.roleName},...e.accountId!==undefined&&{account_id:e.accountId}};let u;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1GetRoleCredentialsCommand=serializeAws_restJson1GetRoleCredentialsCommand;const serializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/assignment/roles";const l={...e.nextToken!==undefined&&{next_token:e.nextToken},...e.maxResults!==undefined&&{max_result:e.maxResults.toString()},...e.accountId!==undefined&&{account_id:e.accountId}};let u;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1ListAccountRolesCommand=serializeAws_restJson1ListAccountRolesCommand;const serializeAws_restJson1ListAccountsCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/assignment/accounts";const l={...e.nextToken!==undefined&&{next_token:e.nextToken},...e.maxResults!==undefined&&{max_result:e.maxResults.toString()}};let u;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1ListAccountsCommand=serializeAws_restJson1ListAccountsCommand;const serializeAws_restJson1LogoutCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/logout";let l;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1LogoutCommand=serializeAws_restJson1LogoutCommand;const deserializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1GetRoleCredentialsCommandError(e,t)}const n={$metadata:deserializeMetadata(e),roleCredentials:undefined};const o=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(o.roleCredentials!==undefined&&o.roleCredentials!==null){n.roleCredentials=deserializeAws_restJson1RoleCredentials(o.roleCredentials,t)}return Promise.resolve(n)};t.deserializeAws_restJson1GetRoleCredentialsCommand=deserializeAws_restJson1GetRoleCredentialsCommand;const deserializeAws_restJson1GetRoleCredentialsCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadRestJsonErrorCode(e,n.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const a=n.body;o=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountRolesCommandError(e,t)}const n={$metadata:deserializeMetadata(e),nextToken:undefined,roleList:undefined};const o=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(o.nextToken!==undefined&&o.nextToken!==null){n.nextToken=r.expectString(o.nextToken)}if(o.roleList!==undefined&&o.roleList!==null){n.roleList=deserializeAws_restJson1RoleListType(o.roleList,t)}return Promise.resolve(n)};t.deserializeAws_restJson1ListAccountRolesCommand=deserializeAws_restJson1ListAccountRolesCommand;const deserializeAws_restJson1ListAccountRolesCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadRestJsonErrorCode(e,n.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const a=n.body;o=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_restJson1ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountsCommandError(e,t)}const n={$metadata:deserializeMetadata(e),accountList:undefined,nextToken:undefined};const o=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(o.accountList!==undefined&&o.accountList!==null){n.accountList=deserializeAws_restJson1AccountListType(o.accountList,t)}if(o.nextToken!==undefined&&o.nextToken!==null){n.nextToken=r.expectString(o.nextToken)}return Promise.resolve(n)};t.deserializeAws_restJson1ListAccountsCommand=deserializeAws_restJson1ListAccountsCommand;const deserializeAws_restJson1ListAccountsCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadRestJsonErrorCode(e,n.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const a=n.body;o=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_restJson1LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1LogoutCommandError(e,t)}const n={$metadata:deserializeMetadata(e)};await collectBody(e.body,t);return Promise.resolve(n)};t.deserializeAws_restJson1LogoutCommand=deserializeAws_restJson1LogoutCommand;const deserializeAws_restJson1LogoutCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadRestJsonErrorCode(e,n.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const a=n.body;o=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,a)}};const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const n={};const o=e.body;if(o.message!==undefined&&o.message!==null){n.message=r.expectString(o.message)}const s=new i.InvalidRequestException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1ResourceNotFoundExceptionResponse=async(e,t)=>{const n={};const o=e.body;if(o.message!==undefined&&o.message!==null){n.message=r.expectString(o.message)}const s=new i.ResourceNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1TooManyRequestsExceptionResponse=async(e,t)=>{const n={};const o=e.body;if(o.message!==undefined&&o.message!==null){n.message=r.expectString(o.message)}const s=new i.TooManyRequestsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1UnauthorizedExceptionResponse=async(e,t)=>{const n={};const o=e.body;if(o.message!==undefined&&o.message!==null){n.message=r.expectString(o.message)}const s=new i.UnauthorizedException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1AccountInfo=(e,t)=>({accountId:r.expectString(e.accountId),accountName:r.expectString(e.accountName),emailAddress:r.expectString(e.emailAddress)});const deserializeAws_restJson1AccountListType=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1AccountInfo(e,t)}));return n};const deserializeAws_restJson1RoleCredentials=(e,t)=>({accessKeyId:r.expectString(e.accessKeyId),expiration:r.expectLong(e.expiration),secretAccessKey:r.expectString(e.secretAccessKey),sessionToken:r.expectString(e.sessionToken)});const deserializeAws_restJson1RoleInfo=(e,t)=>({accountId:r.expectString(e.accountId),roleName:r.expectString(e.roleName)});const deserializeAws_restJson1RoleListType=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1RoleInfo(e,t)}));return n};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"]}};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 loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}return""}},9756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(1092));const i=n(6153);const s=n(7442);const a=n(6064);const c=n(7684);const l=n(8805);const u=n(8588);const d=n(4147);const p=n(8095);const m=n(6278);const f=n(4355);const g=n(4963);const y=n(4243);const getRuntimeConfig=e=>{var t,n,o,h,v,w,E,S,C,x,R,_,b,P;const I=y.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>I().then(g.loadConfigsForDefaultMode);const A=f.getRuntimeConfig(e);return{...A,...e,runtime:"node",defaultsMode:I,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:u.fromBase64,base64Encoder:(n=e===null||e===void 0?void 0:e.base64Encoder)!==null&&n!==void 0?n:u.toBase64,bodyLengthChecker:(o=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&o!==void 0?o:d.calculateBodyLength,defaultUserAgentProvider:(h=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&h!==void 0?h:p.defaultUserAgent({serviceId:A.serviceId,clientVersion:r.default.version}),maxAttempts:(v=e===null||e===void 0?void 0:e.maxAttempts)!==null&&v!==void 0?v:c.loadConfig(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(w=e===null||e===void 0?void 0:e.region)!==null&&w!==void 0?w:c.loadConfig(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(E=e===null||e===void 0?void 0:e.requestHandler)!==null&&E!==void 0?E:new l.NodeHttpHandler(defaultConfigProvider),retryMode:(S=e===null||e===void 0?void 0:e.retryMode)!==null&&S!==void 0?S:c.loadConfig({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||a.DEFAULT_RETRY_MODE}),sha256:(C=e===null||e===void 0?void 0:e.sha256)!==null&&C!==void 0?C:s.Hash.bind(null,"sha256"),streamCollector:(x=e===null||e===void 0?void 0:e.streamCollector)!==null&&x!==void 0?x:l.streamCollector,useDualstackEndpoint:(R=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&R!==void 0?R:c.loadConfig(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(_=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&_!==void 0?_:c.loadConfig(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(b=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&b!==void 0?b:m.fromUtf8,utf8Encoder:(P=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&P!==void 0?P:m.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},4355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(2992);const r=n(3546);const getRuntimeConfig=e=>{var t,n,i,s,a;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(n=e===null||e===void 0?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"SSO",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:o.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},2605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const o=n(9802);const r=n(2865);const i=n(7451);const s=n(4150);const a=n(9804);const c=n(4278);const l=n(7552);const u=n(3285);const d=n(4195);class STS extends d.STSClient{assumeRole(e,t,n){const r=new o.AssumeRoleCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}assumeRoleWithSAML(e,t,n){const o=new r.AssumeRoleWithSAMLCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}assumeRoleWithWebIdentity(e,t,n){const o=new i.AssumeRoleWithWebIdentityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}decodeAuthorizationMessage(e,t,n){const o=new s.DecodeAuthorizationMessageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAccessKeyInfo(e,t,n){const o=new a.GetAccessKeyInfoCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getCallerIdentity(e,t,n){const o=new c.GetCallerIdentityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getFederationToken(e,t,n){const o=new l.GetFederationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getSessionToken(e,t,n){const o=new u.GetSessionTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.STS=STS},4195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=void 0;const o=n(6153);const r=n(2245);const i=n(2545);const s=n(14);const a=n(6064);const c=n(5959);const l=n(4688);const u=n(4963);const d=n(3405);class STSClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const n=o.resolveRegionConfig(t);const u=o.resolveEndpointsConfig(n);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveStsAuthConfig(m,{stsClientCtor:STSClient});const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},9802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class AssumeRoleCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryAssumeRoleCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryAssumeRoleCommand(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},2865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=void 0;const o=n(3631);const r=n(4963);const i=n(1780);const s=n(740);class AssumeRoleWithSAMLCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="STSClient";const c="AssumeRoleWithSAMLCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithSAMLResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_queryAssumeRoleWithSAMLCommand(e,t)}deserialize(e,t){return s.deserializeAws_queryAssumeRoleWithSAMLCommand(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},7451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=void 0;const o=n(3631);const r=n(4963);const i=n(1780);const s=n(740);class AssumeRoleWithWebIdentityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="STSClient";const c="AssumeRoleWithWebIdentityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithWebIdentityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,n||{})),l)}serialize(e,t){return s.serializeAws_queryAssumeRoleWithWebIdentityCommand(e,t)}deserialize(e,t){return s.deserializeAws_queryAssumeRoleWithWebIdentityCommand(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},4150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class DecodeAuthorizationMessageCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="DecodeAuthorizationMessageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:s.DecodeAuthorizationMessageResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryDecodeAuthorizationMessageCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryDecodeAuthorizationMessageCommand(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},9804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class GetAccessKeyInfoCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetAccessKeyInfoCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetAccessKeyInfoResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryGetAccessKeyInfoCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetAccessKeyInfoCommand(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},4278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class GetCallerIdentityCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetCallerIdentityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetCallerIdentityResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryGetCallerIdentityCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetCallerIdentityCommand(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},7552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class GetFederationTokenCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetFederationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetFederationTokenResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryGetFederationTokenCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetFederationTokenCommand(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},3285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=void 0;const o=n(3631);const r=n(4935);const i=n(4963);const s=n(1780);const a=n(740);class GetSessionTokenCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use(o.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetSessionTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetSessionTokenResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return a.serializeAws_queryGetSessionTokenCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetSessionTokenCommand(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},5716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9802),t);o.__exportStar(n(2865),t);o.__exportStar(n(7451),t);o.__exportStar(n(4150),t);o.__exportStar(n(9804),t);o.__exportStar(n(4278),t);o.__exportStar(n(7552),t);o.__exportStar(n(3285),t)},8028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const o=n(48);const r=n(4195);const getDefaultRoleAssumer=(e={})=>o.getDefaultRoleAssumer(e,r.STSClient);t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={})=>o.getDefaultRoleAssumerWithWebIdentity(e,r.STSClient);t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>n=>e({roleAssumer:t.getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:t.getDefaultRoleAssumerWithWebIdentity(n),...n});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},48:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const o=n(9802);const r=n(7451);const i="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?i:e}return async()=>{try{return await e()}catch(e){return i}}};const getDefaultRoleAssumer=(e,t)=>{let n;let r;return async(i,s)=>{r=i;if(!n){const{logger:o,region:i,requestHandler:s}=e;n=new t({logger:o,credentialDefaultProvider:()=>async()=>r,region:decorateDefaultRegion(i||e.region),...s?{requestHandler:s}:{}})}const{Credentials:a}=await n.send(new o.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`)}return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let n;return async o=>{if(!n){const{logger:o,region:r,requestHandler:i}=e;n=new t({logger:o,region:decorateDefaultRegion(r||e.region),...i?{requestHandler:i}:{}})}const{Credentials:i}=await n.send(new r.AssumeRoleWithWebIdentityCommand(o));if(!i||!i.AccessKeyId||!i.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`)}return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>n=>e({roleAssumer:t.getDefaultRoleAssumer(n,n.stsClientCtor),roleAssumerWithWebIdentity:t.getDefaultRoleAssumerWithWebIdentity(n,n.stsClientCtor),...n});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},3571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const o=n(6153);const r={"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 i={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-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)=>o.getRegionInfo(e,{...t,signingService:"sts",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const o=n(4351);o.__exportStar(n(2605),t);o.__exportStar(n(4195),t);o.__exportStar(n(5716),t);o.__exportStar(n(8028),t);o.__exportStar(n(106),t);var r=n(6450);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return r.STSServiceException}})},6450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const o=n(4963);class STSServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(1780),t)},1780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponse=t.GetSessionTokenRequest=t.GetFederationTokenResponse=t.FederatedUser=t.GetFederationTokenRequest=t.GetCallerIdentityResponse=t.GetCallerIdentityRequest=t.GetAccessKeyInfoResponse=t.GetAccessKeyInfoRequest=t.InvalidAuthorizationMessageException=t.DecodeAuthorizationMessageResponse=t.DecodeAuthorizationMessageRequest=t.IDPCommunicationErrorException=t.AssumeRoleWithWebIdentityResponse=t.AssumeRoleWithWebIdentityRequest=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.AssumeRoleWithSAMLResponse=t.AssumeRoleWithSAMLRequest=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=t.AssumeRoleResponse=t.Credentials=t.AssumeRoleRequest=t.Tag=t.PolicyDescriptorType=t.AssumedRoleUser=void 0;const o=n(6450);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.AssumedRoleUser||(t.AssumedRoleUser={}));var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.PolicyDescriptorType||(t.PolicyDescriptorType={}));var s;(function(e){e.filterSensitiveLog=e=>({...e})})(s=t.Tag||(t.Tag={}));var a;(function(e){e.filterSensitiveLog=e=>({...e})})(a=t.AssumeRoleRequest||(t.AssumeRoleRequest={}));var c;(function(e){e.filterSensitiveLog=e=>({...e})})(c=t.Credentials||(t.Credentials={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.AssumeRoleResponse||(t.AssumeRoleResponse={}));class ExpiredTokenException extends o.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 o.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 o.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 o.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.AssumeRoleWithSAMLRequest||(t.AssumeRoleWithSAMLRequest={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.AssumeRoleWithSAMLResponse||(t.AssumeRoleWithSAMLResponse={}));class IDPRejectedClaimException extends o.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 o.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;var p;(function(e){e.filterSensitiveLog=e=>({...e})})(p=t.AssumeRoleWithWebIdentityRequest||(t.AssumeRoleWithWebIdentityRequest={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.AssumeRoleWithWebIdentityResponse||(t.AssumeRoleWithWebIdentityResponse={}));class IDPCommunicationErrorException extends o.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.DecodeAuthorizationMessageRequest||(t.DecodeAuthorizationMessageRequest={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.DecodeAuthorizationMessageResponse||(t.DecodeAuthorizationMessageResponse={}));class InvalidAuthorizationMessageException extends o.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.GetAccessKeyInfoRequest||(t.GetAccessKeyInfoRequest={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.GetAccessKeyInfoResponse||(t.GetAccessKeyInfoResponse={}));var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.GetCallerIdentityRequest||(t.GetCallerIdentityRequest={}));var w;(function(e){e.filterSensitiveLog=e=>({...e})})(w=t.GetCallerIdentityResponse||(t.GetCallerIdentityResponse={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.GetFederationTokenRequest||(t.GetFederationTokenRequest={}));var S;(function(e){e.filterSensitiveLog=e=>({...e})})(S=t.FederatedUser||(t.FederatedUser={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.GetFederationTokenResponse||(t.GetFederationTokenResponse={}));var x;(function(e){e.filterSensitiveLog=e=>({...e})})(x=t.GetSessionTokenRequest||(t.GetSessionTokenRequest={}));var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.GetSessionTokenResponse||(t.GetSessionTokenResponse={}))},740:(e,t,n)=>{"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 o=n(223);const r=n(4963);const i=n(3e3);const s=n(7448);const a=n(1780);const c=n(6450);const serializeAws_queryAssumeRoleCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleCommand=serializeAws_queryAssumeRoleCommand;const serializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleWithSAMLCommand=serializeAws_queryAssumeRoleWithSAMLCommand;const serializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleWithWebIdentityCommand=serializeAws_queryAssumeRoleWithWebIdentityCommand;const serializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryDecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryDecodeAuthorizationMessageCommand=serializeAws_queryDecodeAuthorizationMessageCommand;const serializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetAccessKeyInfoCommand=serializeAws_queryGetAccessKeyInfoCommand;const serializeAws_queryGetCallerIdentityCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetCallerIdentityCommand=serializeAws_queryGetCallerIdentityCommand;const serializeAws_queryGetFederationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetFederationTokenCommand=serializeAws_queryGetFederationTokenCommand;const serializeAws_queryGetSessionTokenCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetSessionTokenCommand=serializeAws_queryGetSessionTokenCommand;const deserializeAws_queryAssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleResponse(n.AssumeRoleResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleCommand=deserializeAws_queryAssumeRoleCommand;const deserializeAws_queryAssumeRoleCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithSAMLCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleWithSAMLResponse(n.AssumeRoleWithSAMLResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithSAMLCommand=deserializeAws_queryAssumeRoleWithSAMLCommand;const deserializeAws_queryAssumeRoleWithSAMLCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleWithWebIdentityResponse(n.AssumeRoleWithWebIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=deserializeAws_queryAssumeRoleWithWebIdentityCommand;const deserializeAws_queryAssumeRoleWithWebIdentityCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryDecodeAuthorizationMessageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryDecodeAuthorizationMessageResponse(n.DecodeAuthorizationMessageResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryDecodeAuthorizationMessageCommand=deserializeAws_queryDecodeAuthorizationMessageCommand;const deserializeAws_queryDecodeAuthorizationMessageCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetAccessKeyInfoCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetAccessKeyInfoResponse(n.GetAccessKeyInfoResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetAccessKeyInfoCommand=deserializeAws_queryGetAccessKeyInfoCommand;const deserializeAws_queryGetAccessKeyInfoCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){default:const t=n.body;o=new c.STSServiceException({name:t.Error.code||t.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,t.Error)}};const deserializeAws_queryGetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetCallerIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetCallerIdentityResponse(n.GetCallerIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetCallerIdentityCommand=deserializeAws_queryGetCallerIdentityCommand;const deserializeAws_queryGetCallerIdentityCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){default:const t=n.body;o=new c.STSServiceException({name:t.Error.code||t.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,t.Error)}};const deserializeAws_queryGetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetFederationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetFederationTokenResponse(n.GetFederationTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetFederationTokenCommand=deserializeAws_queryGetFederationTokenCommand;const deserializeAws_queryGetFederationTokenCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryGetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetSessionTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetSessionTokenResponse(n.GetSessionTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetSessionTokenCommand=deserializeAws_queryGetSessionTokenCommand;const deserializeAws_queryGetSessionTokenCommandError=async(e,t)=>{const n={...e,body:await parseBody(e.body,t)};let o;let i="UnknownError";i=loadQueryErrorCode(e,n.body);switch(i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const s=n.body;o=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(o,s.Error)}};const deserializeAws_queryExpiredTokenExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryExpiredTokenException(n.Error,t);const i=new a.ExpiredTokenException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryIDPCommunicationErrorExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryIDPCommunicationErrorException(n.Error,t);const i=new a.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryIDPRejectedClaimExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryIDPRejectedClaimException(n.Error,t);const i=new a.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryInvalidAuthorizationMessageException(n.Error,t);const i=new a.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryInvalidIdentityTokenExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryInvalidIdentityTokenException(n.Error,t);const i=new a.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryMalformedPolicyDocumentExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryMalformedPolicyDocumentException(n.Error,t);const i=new a.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryPackedPolicyTooLargeExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryPackedPolicyTooLargeException(n.Error,t);const i=new a.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const deserializeAws_queryRegionDisabledExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryRegionDisabledException(n.Error,t);const i=new a.RegionDisabledException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(i,n)};const serializeAws_queryAssumeRoleRequest=(e,t)=>{const n={};if(e.RoleArn!==undefined&&e.RoleArn!==null){n["RoleArn"]=e.RoleArn}if(e.RoleSessionName!==undefined&&e.RoleSessionName!==null){n["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const o=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!==undefined&&e.Policy!==null){n["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){n["DurationSeconds"]=e.DurationSeconds}if(e.Tags!==undefined&&e.Tags!==null){const o=serializeAws_querytagListType(e.Tags,t);Object.entries(o).forEach((([e,t])=>{const o=`Tags.${e}`;n[o]=t}))}if(e.TransitiveTagKeys!==undefined&&e.TransitiveTagKeys!==null){const o=serializeAws_querytagKeyListType(e.TransitiveTagKeys,t);Object.entries(o).forEach((([e,t])=>{const o=`TransitiveTagKeys.${e}`;n[o]=t}))}if(e.ExternalId!==undefined&&e.ExternalId!==null){n["ExternalId"]=e.ExternalId}if(e.SerialNumber!==undefined&&e.SerialNumber!==null){n["SerialNumber"]=e.SerialNumber}if(e.TokenCode!==undefined&&e.TokenCode!==null){n["TokenCode"]=e.TokenCode}if(e.SourceIdentity!==undefined&&e.SourceIdentity!==null){n["SourceIdentity"]=e.SourceIdentity}return n};const serializeAws_queryAssumeRoleWithSAMLRequest=(e,t)=>{const n={};if(e.RoleArn!==undefined&&e.RoleArn!==null){n["RoleArn"]=e.RoleArn}if(e.PrincipalArn!==undefined&&e.PrincipalArn!==null){n["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!==undefined&&e.SAMLAssertion!==null){n["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const o=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!==undefined&&e.Policy!==null){n["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){n["DurationSeconds"]=e.DurationSeconds}return n};const serializeAws_queryAssumeRoleWithWebIdentityRequest=(e,t)=>{const n={};if(e.RoleArn!==undefined&&e.RoleArn!==null){n["RoleArn"]=e.RoleArn}if(e.RoleSessionName!==undefined&&e.RoleSessionName!==null){n["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!==undefined&&e.WebIdentityToken!==null){n["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!==undefined&&e.ProviderId!==null){n["ProviderId"]=e.ProviderId}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const o=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!==undefined&&e.Policy!==null){n["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){n["DurationSeconds"]=e.DurationSeconds}return n};const serializeAws_queryDecodeAuthorizationMessageRequest=(e,t)=>{const n={};if(e.EncodedMessage!==undefined&&e.EncodedMessage!==null){n["EncodedMessage"]=e.EncodedMessage}return n};const serializeAws_queryGetAccessKeyInfoRequest=(e,t)=>{const n={};if(e.AccessKeyId!==undefined&&e.AccessKeyId!==null){n["AccessKeyId"]=e.AccessKeyId}return n};const serializeAws_queryGetCallerIdentityRequest=(e,t)=>{const n={};return n};const serializeAws_queryGetFederationTokenRequest=(e,t)=>{const n={};if(e.Name!==undefined&&e.Name!==null){n["Name"]=e.Name}if(e.Policy!==undefined&&e.Policy!==null){n["Policy"]=e.Policy}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const o=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){n["DurationSeconds"]=e.DurationSeconds}if(e.Tags!==undefined&&e.Tags!==null){const o=serializeAws_querytagListType(e.Tags,t);Object.entries(o).forEach((([e,t])=>{const o=`Tags.${e}`;n[o]=t}))}return n};const serializeAws_queryGetSessionTokenRequest=(e,t)=>{const n={};if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){n["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!==undefined&&e.SerialNumber!==null){n["SerialNumber"]=e.SerialNumber}if(e.TokenCode!==undefined&&e.TokenCode!==null){n["TokenCode"]=e.TokenCode}return n};const serializeAws_querypolicyDescriptorListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryPolicyDescriptorType(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const serializeAws_queryPolicyDescriptorType=(e,t)=>{const n={};if(e.arn!==undefined&&e.arn!==null){n["arn"]=e.arn}return n};const serializeAws_queryTag=(e,t)=>{const n={};if(e.Key!==undefined&&e.Key!==null){n["Key"]=e.Key}if(e.Value!==undefined&&e.Value!==null){n["Value"]=e.Value}return n};const serializeAws_querytagKeyListType=(e,t)=>{const n={};let o=1;for(const t of e){if(t===null){continue}n[`member.${o}`]=t;o++}return n};const serializeAws_querytagListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryTag(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const deserializeAws_queryAssumedRoleUser=(e,t)=>{const n={AssumedRoleId:undefined,Arn:undefined};if(e["AssumedRoleId"]!==undefined){n.AssumedRoleId=r.expectString(e["AssumedRoleId"])}if(e["Arn"]!==undefined){n.Arn=r.expectString(e["Arn"])}return n};const deserializeAws_queryAssumeRoleResponse=(e,t)=>{const n={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=r.expectString(e["SourceIdentity"])}return n};const deserializeAws_queryAssumeRoleWithSAMLResponse=(e,t)=>{const n={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Subject:undefined,SubjectType:undefined,Issuer:undefined,Audience:undefined,NameQualifier:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["Subject"]!==undefined){n.Subject=r.expectString(e["Subject"])}if(e["SubjectType"]!==undefined){n.SubjectType=r.expectString(e["SubjectType"])}if(e["Issuer"]!==undefined){n.Issuer=r.expectString(e["Issuer"])}if(e["Audience"]!==undefined){n.Audience=r.expectString(e["Audience"])}if(e["NameQualifier"]!==undefined){n.NameQualifier=r.expectString(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=r.expectString(e["SourceIdentity"])}return n};const deserializeAws_queryAssumeRoleWithWebIdentityResponse=(e,t)=>{const n={Credentials:undefined,SubjectFromWebIdentityToken:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Provider:undefined,Audience:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){n.SubjectFromWebIdentityToken=r.expectString(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["Provider"]!==undefined){n.Provider=r.expectString(e["Provider"])}if(e["Audience"]!==undefined){n.Audience=r.expectString(e["Audience"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=r.expectString(e["SourceIdentity"])}return n};const deserializeAws_queryCredentials=(e,t)=>{const n={AccessKeyId:undefined,SecretAccessKey:undefined,SessionToken:undefined,Expiration:undefined};if(e["AccessKeyId"]!==undefined){n.AccessKeyId=r.expectString(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){n.SecretAccessKey=r.expectString(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){n.SessionToken=r.expectString(e["SessionToken"])}if(e["Expiration"]!==undefined){n.Expiration=r.expectNonNull(r.parseRfc3339DateTime(e["Expiration"]))}return n};const deserializeAws_queryDecodeAuthorizationMessageResponse=(e,t)=>{const n={DecodedMessage:undefined};if(e["DecodedMessage"]!==undefined){n.DecodedMessage=r.expectString(e["DecodedMessage"])}return n};const deserializeAws_queryExpiredTokenException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryFederatedUser=(e,t)=>{const n={FederatedUserId:undefined,Arn:undefined};if(e["FederatedUserId"]!==undefined){n.FederatedUserId=r.expectString(e["FederatedUserId"])}if(e["Arn"]!==undefined){n.Arn=r.expectString(e["Arn"])}return n};const deserializeAws_queryGetAccessKeyInfoResponse=(e,t)=>{const n={Account:undefined};if(e["Account"]!==undefined){n.Account=r.expectString(e["Account"])}return n};const deserializeAws_queryGetCallerIdentityResponse=(e,t)=>{const n={UserId:undefined,Account:undefined,Arn:undefined};if(e["UserId"]!==undefined){n.UserId=r.expectString(e["UserId"])}if(e["Account"]!==undefined){n.Account=r.expectString(e["Account"])}if(e["Arn"]!==undefined){n.Arn=r.expectString(e["Arn"])}return n};const deserializeAws_queryGetFederationTokenResponse=(e,t)=>{const n={Credentials:undefined,FederatedUser:undefined,PackedPolicySize:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){n.FederatedUser=deserializeAws_queryFederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}return n};const deserializeAws_queryGetSessionTokenResponse=(e,t)=>{const n={Credentials:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}return n};const deserializeAws_queryIDPCommunicationErrorException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryIDPRejectedClaimException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryInvalidAuthorizationMessageException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryInvalidIdentityTokenException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryMalformedPolicyDocumentException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryPackedPolicyTooLargeException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};const deserializeAws_queryRegionDisabledException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=r.expectString(e["message"])}return n};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"]}};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,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=s.parse(e,{attributeNamePrefix:"",ignoreAttributes:false,parseNodeValue:false,trimValues:false,tagValueProcessor:e=>e.trim()===""&&e.includes("\n")?"":i.decodeHTML(e)});const n="#text";const o=Object.keys(t)[0];const a=t[o];if(a[n]){a[o]=a[n];delete a[n]}return r.getValueFromTextNode(a)}return{}}));const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>r.extendedEncodeURIComponent(e)+"="+r.extendedEncodeURIComponent(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}return""}},3405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(7947));const i=n(48);const s=n(6153);const a=n(5531);const c=n(7442);const l=n(6064);const u=n(7684);const d=n(8805);const p=n(8588);const m=n(4147);const f=n(8095);const g=n(6278);const y=n(2642);const h=n(4963);const v=n(4243);const getRuntimeConfig=e=>{var t,n,o,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(n=e===null||e===void 0?void 0:e.base64Encoder)!==null&&n!==void 0?n:p.toBase64,bodyLengthChecker:(o=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&o!==void 0?o:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.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:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},2642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(2992);const r=n(3571);const getRuntimeConfig=e=>{var t,n,i,s,a;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(n=e===null||e===void 0?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"STS",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:o.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},4723:(e,t,n)=>{"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 o=n(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=>o.booleanSelector(e,t.ENV_USE_DUALSTACK_ENDPOINT,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,o.SelectorType.CONFIG),default:false}},2478:(e,t,n)=>{"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 o=n(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=>o.booleanSelector(e,t.ENV_USE_FIPS_ENDPOINT,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,t.CONFIG_USE_FIPS_ENDPOINT,o.SelectorType.CONFIG),default:false}},7392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(4723),t);o.__exportStar(n(2478),t);o.__exportStar(n(2108),t);o.__exportStar(n(2327),t)},2108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const o=n(2164);const r=n(9815);const resolveCustomEndpointsConfig=e=>{var t;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:r.normalizeEndpoint(e),isCustomEndpoint:true,useDualstackEndpoint:o.normalizeBoolean(e.useDualstackEndpoint)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},2327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const o=n(4159);const r=n(2164);const i=n(9815);const resolveEndpointsConfig=e=>{var t;const n=r.normalizeBoolean(e.useDualstackEndpoint);const{endpoint:s,useFipsEndpoint:a}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:s?i.normalizeEndpoint({...e,endpoint:s}):()=>o.getEndpointFromRegion({...e,useDualstackEndpoint:n,useFipsEndpoint:a}),isCustomEndpoint:s?true:false,useDualstackEndpoint:n}};t.resolveEndpointsConfig=resolveEndpointsConfig},4159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:n=true}=e;const o=await e.region();const r=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!r.test(o)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const s=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(o,{useDualstackEndpoint:i,useFipsEndpoint:s}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${n?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},2164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeBoolean=void 0;const normalizeBoolean=e=>{if(typeof e==="boolean"){const t=Promise.resolve(e);return()=>t}return e};t.normalizeBoolean=normalizeBoolean},9815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeEndpoint=void 0;const normalizeEndpoint=({endpoint:e,urlParser:t})=>{if(typeof e==="string"){const n=Promise.resolve(t(e));return()=>n}else if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}return e};t.normalizeEndpoint=normalizeEndpoint},6153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(7392),t);o.__exportStar(n(5441),t);o.__exportStar(n(6258),t)},422:(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"}},2844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const o=n(2440);const getRealRegion=e=>o.isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},5441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(422),t);o.__exportStar(n(174),t)},2440:(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},174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const o=n(2844);const r=n(2440);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return o.getRealRegion(t)}const e=await t();return o.getRealRegion(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(r.isFipsRegion(e)){return true}return typeof n==="boolean"?Promise.resolve(n):n()}}};t.resolveRegionConfig=resolveRegionConfig},3566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},6057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var o;return(o=e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack"))))===null||o===void 0?void 0:o.hostname};t.getHostnameFromVariants=getHostnameFromVariants},6167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const o=n(5280);const r=n(3877);const i=n(7642);const s=n(3517);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,m,f,g;const y=i.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 v={useFipsEndpoint:t,useDualstackEndpoint:n};const w=o.getHostnameFromVariants((p=c[h])===null||p===void 0?void 0:p.variants,v);const E=o.getHostnameFromVariants((m=l[y])===null||m===void 0?void 0:m.variants,v);const S=r.getResolvedHostname(h,{regionHostname:w,partitionHostname:E});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const C=s.getResolvedSigningRegion(S,{signingRegion:(f=c[h])===null||f===void 0?void 0:f.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...C&&{signingRegion:C},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},3877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},7642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find((n=>t[n].regions.includes(e))))!==null&&n!==void 0?n:"aws"};t.getResolvedPartition=getResolvedPartition},3517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},6258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(3566),t);o.__exportStar(n(6057),t);o.__exportStar(n(6167),t)},255:(e,t,n)=>{"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 o=n(4462);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 n=process.env[t.ENV_SECRET];const r=process.env[t.ENV_SESSION];const i=process.env[t.ENV_EXPIRATION];if(e&&n){return{accessKeyId:e,secretAccessKey:n,...r&&{sessionToken:r},...i&&{expiration:new Date(i)}}}throw new o.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(255),t)},3736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var n;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(n=t.Endpoint||(t.Endpoint={}))},8438:(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}},1695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var n;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(n=t.EndpointMode||(t.EndpointMode={}))},7824:(e,t,n)=>{"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 o=n(1695);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:o.EndpointMode.IPv4}},5232:(e,t,n)=>{"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 o=n(4462);const r=n(7310);const i=n(1303);const s=n(1467);const a=n(2314);const c=n(9912);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:n}=a.providerConfigFromInit(e);return()=>c.retry((async()=>{const e=await getCmdsUri();const n=JSON.parse(await requestFromEcsImds(t,e));if(!s.isImdsCredentials(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return s.fromImdsCredentials(n)}),n)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,n)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){n.headers={...n.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const o=await i.httpRequest({...n,timeout:e});return o.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=r.parse(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new o.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in d)){throw new o.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new o.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)}},5813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const o=n(4462);const r=n(1303);const i=n(1467);const s=n(2314);const a=n(9912);const c=n(1206);const l="/latest/meta-data/iam/security-credentials/";const u="/latest/api/token";const fromInstanceMetadata=(e={})=>{let t=false;const{timeout:n,maxRetries:o}=s.providerConfigFromInit(e);const getCredentials=async(e,n)=>{const o=(await a.retry((async()=>{let e;try{e=await getProfile(n)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return a.retry((async()=>{let e;try{e=await getCredentialsFromProfile(o,n)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await c.getInstanceMetadataEndpoint();if(t){return getCredentials(o,{...e,timeout:n})}else{let r;try{r=(await getMetadataToken({...e,timeout:n})).toString()}catch(r){if((r===null||r===void 0?void 0:r.statusCode)===400){throw Object.assign(r,{message:"EC2 Metadata token request returned error"})}else if(r.message==="TimeoutError"||[403,404,405].includes(r.statusCode)){t=true}return getCredentials(o,{...e,timeout:n})}return getCredentials(o,{...e,headers:{"x-aws-ec2-metadata-token":r},timeout:n})}}};t.fromInstanceMetadata=fromInstanceMetadata;const getMetadataToken=async e=>r.httpRequest({...e,path:u,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await r.httpRequest({...e,path:l})).toString();const getCredentialsFromProfile=async(e,t)=>{const n=JSON.parse((await r.httpRequest({...t,path:l+e})).toString());if(!i.isImdsCredentials(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return i.fromImdsCredentials(n)}},5898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const o=n(4351);o.__exportStar(n(5232),t);o.__exportStar(n(5813),t);o.__exportStar(n(2314),t);var r=n(1303);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var i=n(1206);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return i.getInstanceMetadataEndpoint}})},1467:(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},2314:(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:n=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:n});t.providerConfigFromInit=providerConfigFromInit},1303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const o=n(4462);const r=n(4300);const i=n(3685);function httpRequest(e){return new Promise(((t,n)=>{var s;const a=i.request({method:"GET",...e,hostname:(s=e.hostname)===null||s===void 0?void 0:s.replace(/^\[(.+)\]$/,"$1")});a.on("error",(e=>{n(Object.assign(new o.ProviderError("Unable to connect to instance metadata service"),e));a.destroy()}));a.on("timeout",(()=>{n(new o.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(e=>{const{statusCode:i=400}=e;if(i<200||300<=i){n(Object.assign(new o.ProviderError("Error response received from instance metadata service"),{statusCode:i}));a.destroy()}const s=[];e.on("data",(e=>{s.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(s));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},9912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let n=e();for(let o=0;o<t;o++){n=n.catch(e)}return n};t.retry=retry},1206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const o=n(7684);const r=n(2992);const i=n(3736);const s=n(8438);const a=n(1695);const c=n(7824);const getInstanceMetadataEndpoint=async()=>r.parseUrl(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>o.loadConfig(s.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await o.loadConfig(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return i.Endpoint.IPv4;case a.EndpointMode.IPv6:return i.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},5442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const o=n(8598);const r=n(5653);const fromIni=(e={})=>async()=>{const t=await o.parseKnownFiles(e);return r.resolveProfileData(o.getMasterProfileName(e),t,e)};t.fromIni=fromIni},4203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(5442),t)},853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const o=n(4462);const r=n(8598);const i=n(2458);const s=n(5653);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,n,a={})=>{const c=t[e];if(!n.roleAssumer){throw new o.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 o.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${r.getMasterProfileName(n)}. Profiles visited: `+Object.keys(a).join(", "),false)}const u=l?s.resolveProfileData(l,t,n,{...a,[l]:true}):i.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(!n.mfaCodeProvider){throw new o.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}d.SerialNumber=p;d.TokenCode=await n.mfaCodeProvider(p)}const m=await u;return n.roleAssumer(m,d)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},2458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const o=n(5972);const r=n(5898);const i=n(4462);const resolveCredentialSource=(e,t)=>{const n={EcsContainer:r.fromContainerMetadata,Ec2InstanceMetadata:r.fromInstanceMetadata,Environment:o.fromEnv};if(e in n){return n[e]()}else{throw new i.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},5653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const o=n(4462);const r=n(853);const i=n(9867);const s=n(3071);const a=n(8342);const resolveProfileData=async(e,t,n,c={})=>{const l=t[e];if(Object.keys(c).length>0&&s.isStaticCredsProfile(l)){return s.resolveStaticCredentials(l)}if(r.isAssumeRoleProfile(l)){return r.resolveAssumeRoleCredentials(e,t,n,c)}if(s.isStaticCredsProfile(l)){return s.resolveStaticCredentials(l)}if(a.isWebIdentityProfile(l)){return a.resolveWebIdentityCredentials(l,n)}if(i.isSsoProfile(l)){return i.resolveSsoCredentials(l)}throw new o.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},9867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const o=n(6414);var r=n(6414);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return r.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=o.validateSsoProfile(e);return o.fromSSO({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i})()};t.resolveSsoCredentials=resolveSsoCredentials},3071:(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},8342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const o=n(5646);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)=>o.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},5560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const o=n(5972);const r=n(4203);const i=n(9969);const s=n(6414);const a=n(5646);const c=n(4462);const l=n(7387);const u=n(8598);const d=n(626);const defaultProvider=(e={})=>{const t={profile:process.env[u.ENV_PROFILE],...e,...!e.loadedConfig&&{loadedConfig:l.loadSharedConfigFiles(e)}};const n=c.chain(...t.profile?[]:[o.fromEnv()],s.fromSSO(t),r.fromIni(t),i.fromProcess(t),a.fromTokenFile(t),d.remoteProvider(t),(async()=>{throw new c.CredentialsProviderError("Could not load credentials from any providers",false)}));return c.memoize(n,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined))};t.defaultProvider=defaultProvider},5531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(5560),t)},626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const o=n(5898);const r=n(4462);t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";const remoteProvider=e=>{if(process.env[o.ENV_CMDS_RELATIVE_URI]||process.env[o.ENV_CMDS_FULL_URI]){return o.fromContainerMetadata(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new r.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return o.fromInstanceMetadata(e)};t.remoteProvider=remoteProvider},2650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const o=n(8598);const r=n(4926);const fromProcess=(e={})=>async()=>{const t=await o.parseKnownFiles(e);return r.resolveProcessCredentials(o.getMasterProfileName(e),t)};t.fromProcess=fromProcess},1104:(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 n=new Date;const o=new Date(t.Expiration);if(o<n){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},9969:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(2650),t)},4926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const o=n(4462);const r=n(2081);const i=n(3837);const s=n(1104);const resolveProcessCredentials=async(e,t)=>{const n=t[e];if(t[e]){const t=n["credential_process"];if(t!==undefined){const n=i.promisify(r.exec);try{const{stdout:o}=await n(t);let r;try{r=JSON.parse(o.trim())}catch(t){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return s.getValidatedProcessCredentials(e,r)}catch(e){throw new o.CredentialsProviderError(e.message)}}else{throw new o.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}}else{throw new o.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)}};t.resolveProcessCredentials=resolveProcessCredentials},5184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const o=n(4462);const r=n(8598);const i=n(2572);const s=n(4729);const a=n(8098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:n,ssoRegion:c,ssoRoleName:l,ssoClient:u}=e;if(!t&&!n&&!c&&!l){const t=await r.parseKnownFiles(e);const n=r.getMasterProfileName(e);const c=t[n];if(!i.isSsoProfile(c)){throw new o.CredentialsProviderError(`Profile ${n} is not configured with SSO credentials.`)}const{sso_start_url:l,sso_account_id:d,sso_region:p,sso_role_name:m}=a.validateSsoProfile(c);return s.resolveSSOCredentials({ssoStartUrl:l,ssoAccountId:d,ssoRegion:p,ssoRoleName:m,ssoClient:u})}else if(!t||!n||!c||!l){throw new o.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",'+' "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return s.resolveSSOCredentials({ssoStartUrl:t,ssoAccountId:n,ssoRegion:c,ssoRoleName:l,ssoClient:u})}};t.fromSSO=fromSSO},6414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(5184),t);o.__exportStar(n(2572),t);o.__exportStar(n(6623),t);o.__exportStar(n(8098),t)},2572:(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},4729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const o=n(2666);const r=n(4462);const i=n(7387);const s=n(6113);const a=n(7147);const c=n(1017);const l=15*60*1e3;const u=false;const{readFile:d}=a.promises;const resolveSSOCredentials=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:a,ssoClient:p})=>{const m=s.createHash("sha1");const f=m.update(e).digest("hex");const g=c.join(i.getHomeDir(),".aws","sso","cache",`${f}.json`);let y;const h=`To refresh this SSO session run aws sso login with the corresponding profile.`;try{y=JSON.parse(await d(g,"utf8"))}catch(e){throw new r.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${h}`,u)}if(new Date(y.expiresAt).getTime()-Date.now()<=l){throw new r.CredentialsProviderError(`The SSO session associated with this profile has expired. ${h}`,u)}const{accessToken:v}=y;const w=p||new o.SSOClient({region:n});let E;try{E=await w.send(new o.GetRoleCredentialsCommand({accountId:t,roleName:a,accessToken:v}))}catch(e){throw r.CredentialsProviderError.from(e,u)}const{roleCredentials:{accessKeyId:S,secretAccessKey:C,sessionToken:x,expiration:R}={}}=E;if(!S||!C||!x||!R){throw new r.CredentialsProviderError("SSO returns an invalid temporary credential.",u)}return{accessKeyId:S,secretAccessKey:C,sessionToken:x,expiration:new Date(R)}};t.resolveSSOCredentials=resolveSSOCredentials},6623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const o=n(4462);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i){throw new o.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},5614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const o=n(4462);const r=n(7147);const i=n(7905);const s="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,n,l;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[s];const d=(n=e===null||e===void 0?void 0:e.roleArn)!==null&&n!==void 0?n: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 o.CredentialsProviderError("Web identity configuration not specified")}return i.fromWebToken({...e,webIdentityToken:r.readFileSync(u,{encoding:"ascii"}),roleArn:d,roleSessionName:p})()}},7905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const o=n(4462);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l){throw new o.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return l({RoleArn:t,RoleSessionName:n!==null&&n!==void 0?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:c})};t.fromWebToken=fromWebToken},5646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(5614),t);o.__exportStar(n(7905),t)},7442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const o=n(6010);const r=n(4300);const i=n(6113);class Hash{constructor(e,t){this.hash=t?i.createHmac(e,castSourceData(t)):i.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(r.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}},9126:(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},2245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const o=n(223);const r="content-length";function contentLengthMiddleware(e){return t=>async n=>{const i=n.request;if(o.HttpRequest.isInstance(i)){const{body:t,headers:n}=i;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(r)===-1){const n=e(t);if(n!==undefined){i.headers={...i.headers,[r]:String(n)}}}}return t({...n,request:i})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:n=>{n.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},2545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const o=n(223);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:r}=n;const{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"]){delete r.headers["host"];r.headers[":authority"]=""}else if(!r.headers["host"]){r.headers["host"]=r.hostname}return t(n)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:n=>{n.add(t.hostHeaderMiddleware(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},14:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(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 n=>{const{clientName:o,commandName:r,inputFilterSensitiveLog:i,logger:s,outputFilterSensitiveLog:a}=t;const c=await e(n);if(!s){return c}if(typeof s.info==="function"){const{$metadata:e,...t}=c.output;s.info({clientName:o,commandName:r,input:i(n.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(t.loggerMiddleware(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},7328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const o=n(5192);const r=n(6402);const i=n(533);class AdaptiveRetryStrategy extends i.StandardRetryStrategy{constructor(e,t){const{rateLimiter:n,...i}=t!==null&&t!==void 0?t:{};super(e,i);this.rateLimiter=n!==null&&n!==void 0?n:new r.DefaultRateLimiter;this.mode=o.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},6402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const o=n(1921);class DefaultRateLimiter{constructor(e){var t,n,o,r,i;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=(n=e===null||e===void 0?void 0:e.minCapacity)!==null&&n!==void 0?n:1;this.minFillRate=(o=e===null||e===void 0?void 0:e.minFillRate)!==null&&o!==void 0?o:.5;this.scaleConstant=(r=e===null||e===void 0?void 0:e.scaleConstant)!==null&&r!==void 0?r:.4;this.smooth=(i=e===null||e===void 0?void 0:e.smooth)!==null&&i!==void 0?i:.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s;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(o.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 n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}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},533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const o=n(223);const r=n(1921);const i=n(5840);const s=n(5192);const a=n(41);const c=n(2568);const l=n(5940);const u=n(9572);class StandardRetryStrategy{constructor(e,t){var n,o,r;this.maxAttemptsProvider=e;this.mode=s.RETRY_MODES.STANDARD;this.retryDecider=(n=t===null||t===void 0?void 0:t.retryDecider)!==null&&n!==void 0?n:u.defaultRetryDecider;this.delayDecider=(o=t===null||t===void 0?void 0:t.delayDecider)!==null&&o!==void 0?o:l.defaultDelayDecider;this.retryQuota=(r=t===null||t===void 0?void 0:t.retryQuota)!==null&&r!==void 0?r:c.getDefaultRetryQuota(a.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&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,n){let s;let c=0;let l=0;const u=await this.getMaxAttempts();const{request:d}=t;if(o.HttpRequest.isInstance(d)){d.headers[a.INVOCATION_ID_HEADER]=i.v4()}while(true){try{if(o.HttpRequest.isInstance(d)){d.headers[a.REQUEST_HEADER]=`attempt=${c+1}; max=${u}`}if(n===null||n===void 0?void 0:n.beforeRequest){await n.beforeRequest()}const{response:r,output:i}=await e(t);if(n===null||n===void 0?void 0:n.afterRequest){n.afterRequest(r)}this.retryQuota.releaseRetryTokens(s);i.$metadata.attempts=c+1;i.$metadata.totalRetryDelay=l;return{response:r,output:i}}catch(e){const t=asSdkError(e);c++;if(this.shouldRetry(t,c,u)){s=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(r.isThrottlingError(t)?a.THROTTLING_RETRY_DELAY_BASE:a.DEFAULT_RETRY_DELAY_BASE,c);l+=e;await new Promise((t=>setTimeout(t,e)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;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}`)}},5192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var n;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(n=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=n.STANDARD},6160:(e,t,n)=>{"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 o=n(7328);const r=n(5192);const i=n(533);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const n=e[t.ENV_MAX_ATTEMPTS];if(!n)return undefined;const o=parseInt(n);if(Number.isNaN(o)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${n}"`)}return o},configFileSelector:e=>{const n=e[t.CONFIG_MAX_ATTEMPTS];if(!n)return undefined;const o=parseInt(n);if(Number.isNaN(o)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${n}"`)}return o},default:r.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const t=normalizeMaxAttempts(e.maxAttempts);return{...e,maxAttempts:t,retryStrategy:async()=>{if(e.retryStrategy){return e.retryStrategy}const n=await getRetryMode(e.retryMode);if(n===r.RETRY_MODES.ADAPTIVE){return new o.AdaptiveRetryStrategy(t)}return new i.StandardRetryStrategy(t)}}};t.resolveRetryConfig=resolveRetryConfig;const getRetryMode=async e=>{if(typeof e==="string"){return e}return await e()};const normalizeMaxAttempts=(e=r.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e==="number"){const t=Promise.resolve(e);return()=>t}return e};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:r.DEFAULT_RETRY_MODE}},41:(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"},2568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const o=n(41);const getDefaultRetryQuota=(e,t)=>{var n,r,i;const s=e;const a=(n=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:o.NO_RETRY_INCREMENT;const c=(r=t===null||t===void 0?void 0:t.retryCost)!==null&&r!==void 0?r:o.RETRY_COST;const l=(i=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:o.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,s)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},5940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const o=n(41);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},6064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(7328),t);o.__exportStar(n(6402),t);o.__exportStar(n(533),t);o.__exportStar(n(5192),t);o.__exportStar(n(6160),t);o.__exportStar(n(5940),t);o.__exportStar(n(3521),t);o.__exportStar(n(9572),t);o.__exportStar(n(1806),t);o.__exportStar(n(8580),t)},3521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const o=n(223);const r=n(41);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(o.HttpRequest.isInstance(n)){delete n.headers[r.INVOCATION_ID_HEADER];delete n.headers[r.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(t.omitRetryHeadersMiddleware(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},9572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const o=n(1921);const defaultRetryDecider=e=>{if(!e){return false}return o.isRetryableByTrait(e)||o.isClockSkewError(e)||o.isThrottlingError(e)||o.isTransientError(e)};t.defaultRetryDecider=defaultRetryDecider},1806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const retryMiddleware=e=>(t,n)=>async o=>{const r=await e.retryStrategy();if(r===null||r===void 0?void 0:r.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",r.mode]];return r.retry(t,o)};t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:n=>{n.add(t.retryMiddleware(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin},8580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const o=n(4935);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>o.resolveAwsAuthConfig({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},5648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(n,o)=>async o=>{const{response:r}=await n(o);try{const n=await t(r,e);return{response:r,output:n}}catch(e){throw Object.assign(e,{$response:r})}};t.deserializerMiddleware=deserializerMiddleware},3631:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(5648),t);o.__exportStar(n(9328),t);o.__exportStar(n(9511),t)},9328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const o=n(5648);const r=n(9511);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,n,i){return{applyToStack:s=>{s.add(o.deserializerMiddleware(e,i),t.deserializerMiddlewareOption);s.add(r.serializerMiddleware(e,n),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},9511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(n,o)=>async o=>{const r=await t(o.input,e);return n({...o,request:r})};t.serializerMiddleware=serializerMiddleware},3061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const o=n(4462);const r=n(7776);const i=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:n=true,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let s;if(e.signer){s=normalizeProvider(e.signer)}else{s=()=>normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([o,s])=>{const{signingRegion:a,signingService:c}=o;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:n};const u=e.signerConstructor||r.SignatureV4;return new u(l)}))}return{...e,systemClockOffset:o,signingEscapePath:n,credentials:t,signer:s}};t.resolveAwsAuthConfig=resolveAwsAuthConfig;const resolveSigV4AuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:n=true,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let s;if(e.signer){s=normalizeProvider(e.signer)}else{s=normalizeProvider(new r.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n}))}return{...e,systemClockOffset:o,signingEscapePath:n,credentials:t,signer:s}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeProvider=e=>{if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}return e};const normalizeCredentialProvider=e=>{if(typeof e==="function"){return o.memoize(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return normalizeProvider(e)}},4935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(3061),t);o.__exportStar(n(2509),t)},2509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const o=n(223);const r=n(8253);const i=n(5863);const awsAuthMiddleware=e=>(t,n)=>async function(s){if(!o.HttpRequest.isInstance(s.request))return t(s);const a=await e.signer();const c=await t({...s,request:await a.sign(s.request,{signingDate:r.getSkewCorrectedDate(e.systemClockOffset),signingRegion:n["signing_region"],signingService:n["signing_service"]})}).catch((t=>{var n;const o=(n=t.ServerTime)!==null&&n!==void 0?n:getDateHeader(t.$response);if(o){e.systemClockOffset=i.getUpdatedSystemClockOffset(o,e.systemClockOffset)}throw t}));const l=getDateHeader(c.response);if(l){e.systemClockOffset=i.getUpdatedSystemClockOffset(l,e.systemClockOffset)}return c};t.awsAuthMiddleware=awsAuthMiddleware;const getDateHeader=e=>{var t,n,r;return o.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:undefined};t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:true};const getAwsAuthPlugin=e=>({applyToStack:n=>{n.addRelativeTo(t.awsAuthMiddleware(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},8253:(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},5863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const o=n(5301);const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(o.isClockSkewed(n,t)){return n-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},5301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const o=n(8253);const isClockSkewed=(e,t)=>Math.abs(o.getSkewCorrectedDate(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},8399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let r=[];const i=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=t=>{let n=false;const filterCb=e=>{if(e.name&&e.name===t){n=true;i.delete(t);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n};const removeByReference=t=>{let n=false;const filterCb=e=>{if(e.middleware===t){n=true;if(e.name)i.delete(e.name);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));r.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=()=>{const t=[];const n=[];const o={};e.forEach((e=>{const n={...e,before:[],after:[]};if(n.name)o[n.name]=n;t.push(n)}));r.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)o[t.name]=t;n.push(t)}));n.forEach((e=>{if(e.toMiddleware){const t=o[e.toMiddleware];if(t===undefined){throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const i=sort(t).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i.map((e=>e.middleware))};const s={add:(t,n={})=>{const{name:o,override:r}=n;const s={step:"initialize",priority:"normal",middleware:t,...n};if(o){if(i.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const t=e.findIndex((e=>e.name===o));const n=e[t];if(n.step!==s.step||n.priority!==s.priority){throw new Error(`"${o}" middleware with ${n.priority} priority in ${n.step} step cannot be `+`overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`)}e.splice(t,1)}i.add(o)}e.push(s)},addRelativeTo:(e,t)=>{const{name:n,override:o}=t;const s={middleware:e,...t};if(n){if(i.has(n)){if(!o)throw new Error(`Duplicate middleware name '${n}'`);const e=r.findIndex((e=>e.name===n));const t=r[e];if(t.toMiddleware!==s.toMiddleware||t.relation!==s.relation){throw new Error(`"${n}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`)}r.splice(e,1)}i.add(n)}r.push(s)},clone:()=>cloneTo(t.constructStack()),use:e=>{e.applyToStack(s)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let n=false;const filterCb=e=>{const{tags:o,name:r}=e;if(o&&o.includes(t)){if(r)i.delete(r);n=true;return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n},concat:e=>{const n=cloneTo(t.constructStack());n.use(e);return n},applyToStack:cloneTo,resolve:(e,t)=>{for(const n of getMiddlewareList().reverse()){e=n(e,t)}return e}};return s};t.constructStack=constructStack;const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1}},1461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8399),t)},6546:(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},8025:(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},4688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(6546),t);o.__exportStar(n(6236),t)},6236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const o=n(223);const r=n(8025);const userAgentMiddleware=e=>(t,n)=>async i=>{var s,a;const{request:c}=i;if(!o.HttpRequest.isInstance(c))return t(i);const{headers:l}=c;const u=((s=n===null||n===void 0?void 0:n.userAgent)===null||s===void 0?void 0:s.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 m=[...d,...u,...p].join(r.SPACE);const f=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(r.SPACE);if(e.runtime!=="browser"){if(f){l[r.X_AMZ_USER_AGENT]=l[r.X_AMZ_USER_AGENT]?`${l[r.USER_AGENT]} ${f}`:f}l[r.USER_AGENT]=m}else{l[r.X_AMZ_USER_AGENT]=m}return t({...i,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const n=e.indexOf("/");const o=e.substring(0,n);let i=e.substring(n+1);if(o==="api"){i=i.toLowerCase()}return[o,i,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(r.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:n=>{n.add(t.userAgentMiddleware(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},2175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const o=n(4462);const r=n(6161);const i=n(3905);const s=n(5881);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},a={})=>o.memoize(o.chain(r.fromEnv(e),i.fromSharedConfigFiles(t,a),s.fromStatic(n)));t.loadConfig=loadConfig},6161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const o=n(4462);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new o.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},3905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=t.ENV_PROFILE=void 0;const o=n(4462);const r=n(7387);const i="default";t.ENV_PROFILE="AWS_PROFILE";const fromSharedConfigFiles=(e,{preferredFile:n="config",...s}={})=>async()=>{const{loadedConfig:a=r.loadSharedConfigFiles(s),profile:c=process.env[t.ENV_PROFILE]||i}=s;const{configFile:l,credentialsFile:u}=await a;const d=u[c]||{};const p=l[c]||{};const m=n==="config"?{...d,...p}:{...p,...d};try{const t=e(m);if(t===undefined){throw new Error}return t}catch(t){throw new o.CredentialsProviderError(t.message||`Cannot load config for profile ${c} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},5881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const o=n(4462);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);t.fromStatic=fromStatic},7684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(2175),t)},3647:(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"]},6225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};t.getTransformedHeaders=getTransformedHeaders},8805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(2298),t);o.__exportStar(n(2533),t);o.__exportStar(n(2198),t)},2298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const o=n(223);const r=n(3402);const i=n(3685);const s=n(5687);const a=n(3647);const c=n(6225);const l=n(3598);const u=n(4751);const d=n(5248);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};if(typeof e==="function"){this.configProvider=async()=>this.resolveDefaultConfig(await e())}else{this.config=this.resolveDefaultConfig(e)}}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:n,httpAgent:o,httpsAgent:r}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:n,httpAgent:o||new i.Agent({keepAlive:a,maxSockets:c}),httpsAgent:r||new s.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,n,o;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(o=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||o===void 0?void 0:o.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config&&this.configProvider){this.config=await this.configProvider()}return new Promise(((n,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 m=e.protocol==="https:";const f=r.buildQueryString(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:f?`${e.path}?${f}`:e.path,port:e.port,agent:m?this.config.httpsAgent:this.config.httpAgent};const y=m?s.request:i.request;const h=y(g,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,headers:c.getTransformedHeaders(e.headers),body:e});n({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));l.setConnectionTimeout(h,p,this.config.connectionTimeout);u.setSocketTimeout(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}d.writeRequestBody(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},2533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const o=n(223);const r=n(3402);const i=n(5158);const s=n(6225);const a=n(5248);class NodeHttp2Handler{constructor({requestTimeout:e,sessionTimeout:t,disableConcurrentStreams:n}={}){this.metadata={handlerProtocol:"h2"};this.requestTimeout=e;this.sessionTimeout=t;this.disableConcurrentStreams=n;this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}handle(e,{abortSignal:t}={}){return new Promise(((n,c)=>{let l=false;if(t===null||t===void 0?void 0:t.aborted){l=true;const e=new Error("Request aborted");e.name="AbortError";c(e);return}const{hostname:u,method:d,port:p,protocol:m,path:f,query:g}=e;const y=`${m}//${u}${p?`:${p}`:""}`;const h=this.getSession(y,this.disableConcurrentStreams||false);const reject=e=>{if(this.disableConcurrentStreams){this.destroySession(h)}l=true;c(e)};const v=r.buildQueryString(g||{});const w=h.request({...e.headers,[i.constants.HTTP2_HEADER_PATH]:v?`${f}?${v}`:f,[i.constants.HTTP2_HEADER_METHOD]:d});w.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:s.getTransformedHeaders(e),body:w});l=true;n({response:t});if(this.disableConcurrentStreams){h.close();this.deleteSessionFromCache(y,h)}}));const E=this.requestTimeout;if(E){w.setTimeout(E,(()=>{w.close();const e=new Error(`Stream timed out because of no activity for ${E} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{w.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}w.on("frameError",((e,t,n)=>{reject(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));w.on("error",reject);w.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${w.rstCode}.`))}));w.on("close",(()=>{if(this.disableConcurrentStreams){h.destroy()}if(!l){reject(new Error("Unexpected error: http2 request did not get a response"))}}));a.writeRequestBody(w,e)}))}getSession(e,t){const n=this.sessionCache;const o=n.get(e)||[];if(o.length>0&&!t)return o[0];const r=i.connect(e);const destroySessionCb=()=>{this.destroySession(r);this.deleteSessionFromCache(e,r)};r.on("goaway",destroySessionCb);r.on("error",destroySessionCb);r.on("frameError",destroySessionCb);const s=this.sessionTimeout;if(s){r.setTimeout(s,destroySessionCb)}o.push(r);n.set(e,o);return r}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const n=this.sessionCache.get(e)||[];if(!n.includes(t)){return}this.sessionCache.set(e,n.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},3598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return}e.on("socket",(o=>{if(o.connecting){const r=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))}),n);o.on("connect",(()=>{clearTimeout(r)}))}}))};t.setConnectionTimeout=setConnectionTimeout},4751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,n=0)=>{e.setTimeout(n,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},4362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const o=n(2781);class Collector extends o.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,n){this.bufferedBytes.push(e);n()}}t.Collector=Collector},2198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const o=n(4362);const streamCollector=e=>new Promise(((t,n)=>{const r=new o.Collector;e.pipe(r);e.on("error",(e=>{r.end();n(e)}));r.on("error",n);r.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const o=n(2781);function writeRequestBody(e,t){const n=t.headers["Expect"]||t.headers["expect"];if(n==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof o.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},1786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t}static from(e,t=true){Object.defineProperty(e,"tryNextLink",{value:t,configurable:false,enumerable:false,writable:false});return e}}t.ProviderError=ProviderError;class CredentialsProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="CredentialsProviderError"}static from(e,t=true){Object.defineProperty(e,"tryNextLink",{value:t,configurable:false,enumerable:false,writable:false});return e}}t.CredentialsProviderError=CredentialsProviderError},1444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const o=n(1786);function chain(...e){return()=>{let t=Promise.reject(new o.ProviderError("No providers in chain"));for(const n of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return n()}throw e}))}return t}}t.chain=chain},529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},4462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(1786),t);o.__exportStar(n(1444),t);o.__exportStar(n(529),t);o.__exportStar(n(714),t)},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,n)=>{let o;let r;let i;const coalesceProvider=async()=>{if(!r){r=e()}try{o=await r;i=true}finally{r=undefined}return o};if(t===undefined){return async()=>{if(!i){o=await coalesceProvider()}return o}}let s=false;return async()=>{if(!i){o=await coalesceProvider()}if(s){return o}if(n&&!n(o)){s=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.memoize=memoize},6779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2872:(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.substr(-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,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}},2348:(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},223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(6779),t);o.__exportStar(n(2872),t);o.__exportStar(n(2348),t);o.__exportStar(n(5694),t)},5694:(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},3402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const o=n(7952);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];n=o.escapeUri(n);if(Array.isArray(r)){for(let e=0,i=r.length;e<i;e++){t.push(`${n}=${o.escapeUri(r[e])}`)}}else{let e=n;if(r||typeof r==="string"){e+=`=${o.escapeUri(r)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},7424:(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 n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},7352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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]},1921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const o=n(7352);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>o.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||o.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return o.TRANSIENT_ERROR_CODES.includes(e.name)||o.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError},7363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(2037);const r=n(1017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:i=`C:${r.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${i}${n}`;return o.homedir()};t.getHomeDir=getHomeDir},7387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(7363),t);o.__exportStar(n(7871),t);o.__exportStar(n(4105),t)},7871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=t.ENV_CONFIG_PATH=t.ENV_CREDENTIALS_PATH=void 0;const o=n(1017);const r=n(7363);const i=n(9307);const s=n(2806);const a=n(9242);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:n=process.env[t.ENV_CREDENTIALS_PATH]||o.join(r.getHomeDir(),".aws","credentials"),configFilepath:c=process.env[t.ENV_CONFIG_PATH]||o.join(r.getHomeDir(),".aws","config")}=e;const l=await Promise.all([a.slurpFile(c).then(s.parseIni).then(i.normalizeConfigFile).catch(swallowError),a.slurpFile(n).then(s.parseIni).catch(swallowError)]);return{configFile:l[0],credentialsFile:l[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},9307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeConfigFile=void 0;const n=/^profile\s(["'])?([^\1]+)\1$/;const normalizeConfigFile=e=>{const t={};for(const o of Object.keys(e)){let r;if(o==="default"){t.default=e.default}else if(r=n.exec(o)){const[n,i,s]=r;if(s){t[s]=e[o]}}}return t};t.normalizeConfigFile=normalizeConfigFile},2806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const n=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let o;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];const e=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(e){o=e[1];if(n.includes(o)){throw new Error(`Found invalid profile name "${o}"`)}}else if(o){const e=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);if(e){t[o]=t[o]||{};t[o][e[1]]=e[2]}}}return t};t.parseIni=parseIni},9242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const o=n(7147);const{readFile:r}=o.promises;const i={};const slurpFile=e=>new Promise(((t,n)=>{if(!i[e]){i[e]={isReading:true,contents:"",requestQueue:[]};i[e].requestQueue.push({resolve:t,reject:n});r(e,"utf8").then((t=>{i[e].isReading=false;i[e].contents=t;const{requestQueue:n}=i[e];while(n.length){const{resolve:e}=n.pop();e(t)}})).catch((t=>{i[e].isReading=false;const{requestQueue:n}=i[e];while(n.length){const{reject:e}=n.pop();e(t)}}))}else if(i[e].isReading){i[e].requestQueue.push({resolve:t,reject:n})}else{t(i[e].contents)}}));t.slurpFile=slurpFile},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const o=n(1968);const r=n(342);const i=n(8023);const s=n(3590);const a=n(2019);const c=n(7080);const l=n(4120);const u=n(8201);const d=n(7027);const p=n(5772);const m=n(4799);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:r,uriEscapePath:i=true}){this.service=o;this.sha256=r;this.uriEscapePath=i;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=d.normalizeRegionProvider(n);this.credentialProvider=d.normalizeCredentialsProvider(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:a,unhoistableHeaders:l,signableHeaders:d,signingRegion:m,signingService:f}=t;const g=await this.credentialProvider();const y=m!==null&&m!==void 0?m:await this.regionProvider();const{longDate:h,shortDate:v}=formatDate(n);if(o>r.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const w=i.createScope(v,y,f!==null&&f!==void 0?f:this.service);const E=u.moveHeadersToQuery(p.prepareRequest(e),{unhoistableHeaders:l});if(g.sessionToken){E.query[r.TOKEN_QUERY_PARAM]=g.sessionToken}E.query[r.ALGORITHM_QUERY_PARAM]=r.ALGORITHM_IDENTIFIER;E.query[r.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${w}`;E.query[r.AMZ_DATE_QUERY_PARAM]=h;E.query[r.EXPIRES_QUERY_PARAM]=o.toString(10);const S=s.getCanonicalHeaders(E,a,d);E.query[r.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(S);E.query[r.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,w,this.getSigningKey(g,y,v,f),this.createCanonicalRequest(E,S,await c.getPayloadHash(e,this.sha256)));return E}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:n=new Date,priorSignature:s,signingRegion:a,signingService:l}){const u=a!==null&&a!==void 0?a:await this.regionProvider();const{shortDate:d,longDate:p}=formatDate(n);const m=i.createScope(d,u,l!==null&&l!==void 0?l:this.service);const f=await c.getPayloadHash({headers:{},body:t},this.sha256);const g=new this.sha256;g.update(e);const y=o.toHex(await g.digest());const h=[r.EVENT_ALGORITHM_IDENTIFIER,p,m,s,y,f].join("\n");return this.signString(h,{signingDate:n,signingRegion:u,signingService:l})}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const i=await this.credentialProvider();const s=n!==null&&n!==void 0?n:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(i,s,a,r));c.update(e);return o.toHex(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:a,signingService:u}={}){const d=await this.credentialProvider();const m=a!==null&&a!==void 0?a:await this.regionProvider();const f=p.prepareRequest(e);const{longDate:g,shortDate:y}=formatDate(t);const h=i.createScope(y,m,u!==null&&u!==void 0?u:this.service);f.headers[r.AMZ_DATE_HEADER]=g;if(d.sessionToken){f.headers[r.TOKEN_HEADER]=d.sessionToken}const v=await c.getPayloadHash(f,this.sha256);if(!l.hasHeader(r.SHA256_HEADER,f.headers)&&this.applyChecksum){f.headers[r.SHA256_HEADER]=v}const w=s.getCanonicalHeaders(f,o,n);const E=await this.getSignature(g,h,this.getSigningKey(d,m,y,u),this.createCanonicalRequest(f,w,v));f.headers[r.AUTH_HEADER]=`${r.ALGORITHM_IDENTIFIER} `+`Credential=${d.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(w)}, `+`Signature=${E}`;return f}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${a.getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n){const i=new this.sha256;i.update(n);const s=await i.digest();return`${r.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${o.toHex(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=encodeURIComponent(e.replace(/^\//,""));return`/${t.replace(/%2F/g,"/")}`}return e}async getSignature(e,t,n,r){const i=await this.createStringToSign(e,t,r);const s=new this.sha256(await n);s.update(i);return o.toHex(await s.digest())}getSigningKey(e,t,n,o){return i.getSigningKey(this.sha256,e,n,t,o||this.service)}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=m.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},3141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneQuery=t.cloneRequest=void 0;const cloneRequest=({headers:e,query:n,...o})=>({...o,headers:{...e},query:n?t.cloneQuery(n):undefined});t.cloneRequest=cloneRequest;const cloneQuery=e=>Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{});t.cloneQuery=cloneQuery},342:(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},8023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const o=n(1968);const r=n(342);const i={};const s=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${r.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,n,a,c)=>{const l=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${n}:${a}:${c}:${o.toHex(l)}:${t.sessionToken}`;if(u in i){return i[u]}s.push(u);while(s.length>r.MAX_CACHE_SIZE){delete i[s.shift()]}let d=`AWS4${t.secretAccessKey}`;for(const t of[n,a,c,r.KEY_TYPE_IDENTIFIER]){d=await hmac(e,d,t)}return i[u]=d};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{s.length=0;Object.keys(i).forEach((e=>{delete i[e]}))};t.clearCredentialCache=clearCredentialCache;const hmac=(e,t,n)=>{const o=new e(t);o.update(n);return o.digest()}},3590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const o=n(342);const getCanonicalHeaders=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){const s=i.toLowerCase();if(s in o.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(s))||o.PROXY_HEADER_PATTERN.test(s)||o.SEC_HEADER_PATTERN.test(s)){if(!n||n&&!n.has(s)){continue}}r[s]=e[i].trim().replace(/\s+/g," ")}return r};t.getCanonicalHeaders=getCanonicalHeaders},2019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const o=n(7952);const r=n(342);const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const i of Object.keys(e).sort()){if(i.toLowerCase()===r.SIGNATURE_HEADER){continue}t.push(i);const s=e[i];if(typeof s==="string"){n[i]=`${o.escapeUri(i)}=${o.escapeUri(s)}`}else if(Array.isArray(s)){n[i]=s.slice(0).sort().reduce(((e,t)=>e.concat([`${o.escapeUri(i)}=${o.escapeUri(t)}`])),[]).join("&")}}return t.map((e=>n[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},7080:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const o=n(9126);const r=n(1968);const i=n(342);const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===i.SHA256_HEADER){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||o.isArrayBuffer(t)){const e=new n;e.update(t);return r.toHex(await e.digest())}return i.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},4120:(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 n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};t.hasHeader=hasHeader;const getHeaderValue=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return t[n]}}return undefined};t.getHeaderValue=getHeaderValue;const deleteHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){delete t[n]}}};t.deleteHeader=deleteHeader},7776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeRegionProvider=t.normalizeCredentialsProvider=t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const o=n(4351);o.__exportStar(n(5086),t);var r=n(3590);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return r.getCanonicalHeaders}});var i=n(2019);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return i.getCanonicalQuery}});var s=n(7080);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return s.getPayloadHash}});var a=n(8201);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=n(5772);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});var l=n(7027);Object.defineProperty(t,"normalizeCredentialsProvider",{enumerable:true,get:function(){return l.normalizeCredentialsProvider}});Object.defineProperty(t,"normalizeRegionProvider",{enumerable:true,get:function(){return l.normalizeRegionProvider}});o.__exportStar(n(8023),t)},8201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const o=n(3141);const moveHeadersToQuery=(e,t={})=>{var n;const{headers:r,query:i={}}=typeof e.clone==="function"?e.clone():o.cloneRequest(e);for(const e of Object.keys(r)){const o=e.toLowerCase();if(o.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(o))){i[e]=r[e];delete r[e]}}return{...e,headers:r,query:i}};t.moveHeadersToQuery=moveHeadersToQuery},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeCredentialsProvider=t.normalizeRegionProvider=void 0;const normalizeRegionProvider=e=>{if(typeof e==="string"){const t=Promise.resolve(e);return()=>t}else{return e}};t.normalizeRegionProvider=normalizeRegionProvider;const normalizeCredentialsProvider=e=>{if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}else{return e}};t.normalizeCredentialsProvider=normalizeCredentialsProvider},5772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const o=n(3141);const r=n(342);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():o.cloneRequest(e);for(const t of Object.keys(e.headers)){if(r.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};t.prepareRequest=prepareRequest},4799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>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},6034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const o=n(1461);class Client{constructor(e){this.middlewareStack=o.constructStack();this.config=e}send(e,t,n){const o=typeof t!=="function"?t:undefined;const r=typeof t==="function"?t:n;const i=e.resolveMiddleware(this.middlewareStack,this.config,o);if(r){i(e).then((e=>r(null,e.output)),(e=>r(e))).catch((()=>{}))}else{return i(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},4014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const o=n(1461);class Command{constructor(){this.middlewareStack=o.constructStack()}}t.Command=Command},8392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},4695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const o=n(4809);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const s=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=s<10?`0${s}`:`${s}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const m=l<10?`0${l}`:`${l}`;return`${r[o]}, ${u} ${i[n]} ${t} ${d}:${p}:${m} GMT`}t.dateToUtcString=dateToUtcString;const s=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=s.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,r,i,a,c,l,u,d]=t;const p=o.strictParseShort(stripLeadingZeroes(r));const m=parseDateValue(i,"month",1,12);const f=parseDateValue(a,"day",1,31);return buildDate(p,m,f,{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{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{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{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,n,r,i,s,a,c,l]=t;return buildDate(o.strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(r),parseDateValue(n,"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,n,o,r,i,s,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(r),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,n,r,i,s,a,c,l]=t;return buildDate(o.strictParseShort(stripLeadingZeroes(l)),parseMonthByShortName(n),parseDateValue(r.trimLeft(),"day",1,31),{hours:i,minutes:s,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=o.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,n,o)=>{const r=t-1;validateDayOfMonth(e,r,n);return new Date(Date.UTC(e,r,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+o.strictParseShort(stripLeadingZeroes(e));if(n<t){return n+100}return n};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=i.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,n)=>{let o=d[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${i[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,r)=>{const i=o.strictParseByte(stripLeadingZeroes(e));if(i<n||i>r){throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return o.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)}},3088:(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},2363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let n=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!n&&parseInt(e.substring(1,e.indexOf(".")))<12){n=true;process.emitWarning(`The AWS SDK for JavaScript (v3) will\n`+`no longer support Node.js ${e} as of January 1, 2022.\n`+`To continue receiving updates to AWS services, bug fixes, and security\n`+`updates please upgrade to Node.js 12.x or later.\n\n`+`More information can be found at: https://a.co/1l6FLnu`,`NodeDeprecationWarning`)}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},7778:(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,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};t.decorateServiceException=decorateServiceException},1927:(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},6457:(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},5830:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const n="#text";for(const o in e){if(e.hasOwnProperty(o)&&e[o][n]!==undefined){e[o]=e[o][n]}else if(typeof e[o]==="object"&&e[o]!==null){e[o]=t.getValueFromTextNode(e[o])}}return e};t.getValueFromTextNode=getValueFromTextNode},4963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(6034),t);o.__exportStar(n(4014),t);o.__exportStar(n(8392),t);o.__exportStar(n(4695),t);o.__exportStar(n(3088),t);o.__exportStar(n(2363),t);o.__exportStar(n(7778),t);o.__exportStar(n(1927),t);o.__exportStar(n(6457),t);o.__exportStar(n(5830),t);o.__exportStar(n(3613),t);o.__exportStar(n(4809),t);o.__exportStar(n(8e3),t);o.__exportStar(n(8730),t)},3613:(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 n=new t;Object.setPrototypeOf(n,e.prototype);return n};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},4809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}`)};t.expectNumber=expectNumber;const n=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const o=t.expectNumber(e);if(o!==undefined&&!Number.isNaN(o)&&o!==Infinity&&o!==-Infinity){if(Math.abs(o)>n){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return o};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}`)};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,n)=>{const o=t.expectLong(e);if(o!==undefined&&castInt(o,n)!==o){throw new TypeError(`Expected ${n}-bit integer, got ${e}`)}return o};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}throw new TypeError(`Expected object, got ${typeof e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}throw new TypeError(`Expected string, got ${typeof e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const n=t.expectObject(e);const o=Object.entries(n).filter((([e,t])=>t!==null&&t!==undefined)).map((([e,t])=>e));if(o.length===0){throw new TypeError(`Unions must have exactly one non-null member`)}if(o.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${o} were not null.`)}return n};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return t.expectNumber(parseNumber(e))}return t.expectNumber(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return t.expectFloat32(parseNumber(e))}return t.expectFloat32(e)};t.strictParseFloat32=strictParseFloat32;const o=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(o);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 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 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 t.expectLong(parseNumber(e))}return t.expectLong(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return t.expectInt32(parseNumber(e))}return t.expectInt32(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return t.expectShort(parseNumber(e))}return t.expectShort(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return t.expectByte(parseNumber(e))}return t.expectByte(e)};t.strictParseByte=strictParseByte},8e3:(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},8730:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const r=[];let i="";for(let e=0;e<o.length;e++){if(i===""){i=o[e]}else{i+=t+o[e]}if((e+1)%n===0){r.push(i);i=""}}if(i!==""){r.push(i)}return r}t.splitEvery=splitEvery},2992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const o=n(7424);const parseUrl=e=>{const{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e);let a;if(s){a=o.parseQueryString(s)}return{hostname:t,port:r?parseInt(r):undefined,protocol:i,path:n,query:a}};t.parseUrl=parseUrl},8588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=t.fromBase64=void 0;const o=n(6010);const r=/^[A-Za-z0-9+/]*={0,2}$/;function fromBase64(e){if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!r.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=o.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}t.fromBase64=fromBase64;function toBase64(e){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}t.toBase64=toBase64},4147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const o=n(7147);function 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"){return o.lstatSync(e.path).size}}t.calculateBodyLength=calculateBodyLength},6010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const o=n(9126);const r=n(4300);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return r.Buffer.from(e,t,n)};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?r.Buffer.from(e,t):r.Buffer.from(e)};t.fromString=fromString},9509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var n;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(n=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},6168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9509),t)},9349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getMasterProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getMasterProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getMasterProfileName=getMasterProfileName},8598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9349),t);o.__exportStar(n(6329),t)},6329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const o=n(7387);const parseKnownFiles=async e=>{const{loadedConfig:t=o.loadSharedConfigFiles(e)}=e;const n=await t;return{...n.configFile,...n.credentialsFile}};t.parseKnownFiles=parseKnownFiles},6488:(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"},8450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const n="AWS_DEFAULTS_MODE";const o="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[n],configFileSelector:e=>e[o],default:"legacy"}},4243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8238),t)},8238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const o=n(6153);const r=n(5898);const i=n(7684);const s=n(4462);const a=n(6488);const c=n(8450);const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>s.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n===null||n===void 0?void 0:n.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n===null||n===void 0?void 0:n.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){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 r.getInstanceMetadataEndpoint();return(await r.httpRequest({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},1968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHex=t.fromHex=void 0;const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[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 n=0;n<e.length;n+=2){const r=e.substr(n,2).toLowerCase();if(r in o){t[n/2]=o[r]}else{throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}}return t}t.fromHex=fromHex;function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=n[e[o]]}return t}t.toHex=toHex},5774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const o=n(4652);const escapeUriPath=e=>e.split("/").map(o.escapeUri).join("/");t.escapeUriPath=escapeUriPath},4652:(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()}`},7952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(4652),t);o.__exportStar(n(5774),t)},8095:(e,t,n)=>{"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 o=n(7684);const r=n(2037);const i=n(7282);const s=n(8390);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:n})=>{const a=[["aws-sdk-js",n],[`os/${r.platform()}`,r.release()],["lang/js"],["md/nodejs",`${i.versions.node}`]];const c=s.isCrtAvailable();if(c){a.push(c)}if(e){a.push([`api/${e}`,n])}if(i.env.AWS_EXECUTION_ENV){a.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const l=o.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},8390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&n(7578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},6278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const o=n(6010);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},8880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const o=n(2105);const r=n(6001);const i=n(4996);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:i.WaiterState.ABORTED})}));const createWaiter=async(e,t,n)=>{const s={...i.waiterServiceDefaults,...e};r.validateWaiterOptions(s);const a=[o.runPolling(s,t,n)];if(e.abortController){a.push(abortTimeout(e.abortController.signal))}if(e.abortSignal){a.push(abortTimeout(e.abortSignal))}return Promise.race(a)};t.createWaiter=createWaiter},1627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(8880),t);o.__exportStar(n(4996),t)},2105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const o=n(7397);const r=n(4996);const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const r=e*2**(o-1);return randomInRange(e,r)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:i,client:s,abortSignal:a},c,l)=>{var u;const{state:d}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d}}let p=1;const m=Date.now()+n*1e3;const f=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=i===null||i===void 0?void 0:i.signal)===null||u===void 0?void 0:u.aborted)||(a===null||a===void 0?void 0:a.aborted)){return{state:r.WaiterState.ABORTED}}const n=exponentialBackoffWithJitter(e,t,f,p);if(Date.now()+n*1e3>m){return{state:r.WaiterState.TIMEOUT}}await o.sleep(n);const{state:d}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d}}p+=1}};t.runPolling=runPolling},6001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(7397),t);o.__exportStar(n(3931),t)},7397:(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},3931:(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 n;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(n=t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===n.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);t.name="AbortError";throw t}else if(e.state===n.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);t.name="TimeoutError";throw t}else if(e.state!==n.SUCCESS){throw new Error(`${JSON.stringify({result:e})}`)}return e};t.checkExceptions=checkExceptions},1040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function once(e,t,{signal:n}={}){return new Promise(((o,r)=>{function cleanup(){n===null||n===void 0?void 0:n.removeEventListener("abort",cleanup);e.removeListener(t,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();o(e)}function onError(e){cleanup();r(e)}n===null||n===void 0?void 0:n.addEventListener("abort",cleanup);e.on(t,onEvent);e.on("error",onError)}))}t["default"]=once},9690:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(2361);const i=o(n(8237));const s=o(n(6570));const a=i.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 r.EventEmitter{constructor(e,t){super();let n=t;if(typeof e==="function"){this.callback=e}else if(e){n=e}this.timeout=null;if(n&&typeof n.timeout==="number"){this.timeout=n.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,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);if(typeof n.secureEndpoint!=="boolean"){n.secureEndpoint=isSecureEndpoint()}if(n.host==null){n.host="localhost"}if(n.port==null){n.port=n.secureEndpoint?443:80}if(n.protocol==null){n.protocol=n.secureEndpoint?"https:":"http:"}if(n.host&&n.path){delete n.path}delete n.agent;delete n.hostname;delete n._defaultAgent;delete n.defaultPort;delete n.createConnection;e._last=true;e.shouldKeepAlive=false;let o=false;let r=null;const i=n.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{r=null;o=true;const e=new Error(`A "socket" was not created for HTTP request before ${i}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(o)return;if(r!==null){clearTimeout(r);r=null}onerror(e)};const onsocket=t=>{if(o)return;if(r!=null){clearTimeout(r);r=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,n);return}if(t){t.once("free",(()=>{this.freeSocket(t,n)}));e.onSocket(t);return}const i=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(i)};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=s.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof i==="number"&&i>0){r=setTimeout(ontimeout,i)}if("port"in n&&typeof n.port!=="number"){n.port=Number(n.port)}try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,n)).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},6570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,n){return new Promise(((o,r)=>{e.call(this,t,n,((e,t)=>{if(e){r(e)}else{o(t)}}))}))}}t["default"]=promisify},8222:(e,t,n)=>{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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){r=o}}));t.splice(r,0,n)}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=n(6243)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);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 n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let o;let r;function debug(...e){if(!debug.enabled){return}const n=debug;const o=Number(new Date);const r=o-(t||o);n.diff=r;n.prev=t;n.curr=o;t=o;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if(t==="%%"){return"%"}i++;const r=createDebug.formatters[o];if(typeof r==="function"){const o=e[i];t=r.call(n,o);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,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(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;r=createDebug.enabled(e)}return r},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t<o;t++){if(!n[t]){continue}e=n[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 n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;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},8237:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(4874)}},4874:(e,t,n)=>{const o=n(6224);const r=n(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=r.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=n(9318);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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const r="[3"+(o<8?o:"8;5;"+o);const i=` ${r};1m${n} [0m`;t[0]=i+t[0].split("\n").join("\n"+i);t.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(r.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 n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++){e.inspectOpts[n[o]]=t.inspectOpts[n[o]]}}e.exports=n(6243)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts)}},5107:function(e,t,n){"use strict";var o=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 r=o(n(9323));var i=o(n(9591));var s=o(n(2586));var a=o(n(1227));var c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=getStrictDecoder(s.default);t.decodeHTMLStrict=getStrictDecoder(r.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(i.default).sort(sorter);var t=Object.keys(r.default).sort(sorter);for(var n=0,o=0;n<t.length;n++){if(e[o]===t[n]){t[n]+=";?";o++}else{t[n]+=";"}}var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g");var a=getReplacer(r.default);function replacer(e){if(e.substr(-1)!==";")e+=";";return a(e)}return function(e){return String(e).replace(s,replacer)}}();function getReplacer(e){return function replace(t){if(t.charAt(1)==="#"){var n=t.charAt(2);if(n==="X"||n==="x"){return a.default(parseInt(t.substr(3),16))}return a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}},1227:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=o(n(3600));var i=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 r.default){e=r.default[e]}return i(e)}t["default"]=decodeCodePoint},2006:function(e,t,n){"use strict";var o=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 r=o(n(2586));var i=getInverseObj(r.default);var s=getInverseReplacer(i);t.encodeXML=getASCIIEncoder(i);var a=o(n(9323));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,n){t[e[n]]="&"+n+";";return t}),{})}function getInverseReplacer(e){var t=[];var n=[];for(var o=0,r=Object.keys(e);o<r.length;o++){var i=r[o];if(i.length===1){t.push("\\"+i)}else{n.push(i)}}t.sort();for(var s=0;s<t.length-1;s++){var a=s;while(a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1)){a+=1}var c=1+a-s;if(c<3)continue;t.splice(s,c,t[s]+"-"+t[a])}n.unshift("["+t.join("")+"]");return new RegExp(n.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(n){return n.replace(t,(function(t){return e[t]})).replace(u,singleCharReplacer)}}var p=new RegExp(s.source+"|"+u.source,"g");function escape(e){return e.replace(p,singleCharReplacer)}t.escape=escape;function escapeUTF8(e){return e.replace(s,singleCharReplacer)}t.escapeUTF8=escapeUTF8;function getASCIIEncoder(e){return function(t){return t.replace(p,(function(t){return e[t]||singleCharReplacer(t)}))}}},3e3:(e,t,n)=>{"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 o=n(5107);var r=n(2006);function decode(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTML)(e)}t.decode=decode;function decodeStrict(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTMLStrict)(e)}t.decodeStrict=decodeStrict;function encode(e,t){return(!t||t<=0?r.encodeXML:r.encodeHTML)(e)}t.encode=encode;var i=n(2006);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return i.encodeXML}});Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return i.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return i.encodeNonAsciiHTML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return i.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return i.escapeUTF8}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return i.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return i.encodeHTML}});var s=n(5107);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return s.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return s.decodeXML}})},5152:(e,t,n)=>{"use strict";const o=n(8280).buildOptions;const r={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 i=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function Parser(e){this.options=o(e,r,i);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 n="";let o="";const r=Object.keys(e);const i=r.length;for(let s=0;s<i;s++){const i=r[s];if(typeof e[i]==="undefined"){}else if(e[i]===null){o+=this.indentate(t)+"<"+i+"/"+this.tagEndChar}else if(e[i]instanceof Date){o+=this.buildTextNode(e[i],i,"",t)}else if(typeof e[i]!=="object"){const r=this.isAttribute(i);if(r){n+=" "+r+'="'+this.options.attrValueProcessor(""+e[i])+'"'}else if(this.isCDATA(i)){if(e[this.options.textNodeName]){o+=this.replaceCDATAstr(e[this.options.textNodeName],e[i])}else{o+=this.replaceCDATAstr("",e[i])}}else{if(i===this.options.textNodeName){if(e[this.options.cdataTagName]){}else{o+=this.options.tagValueProcessor(""+e[i])}}else{o+=this.buildTextNode(e[i],i,"",t)}}}else if(Array.isArray(e[i])){if(this.isCDATA(i)){o+=this.indentate(t);if(e[this.options.textNodeName]){o+=this.replaceCDATAarr(e[this.options.textNodeName],e[i])}else{o+=this.replaceCDATAarr("",e[i])}}else{const n=e[i].length;for(let r=0;r<n;r++){const n=e[i][r];if(typeof n==="undefined"){}else if(n===null){o+=this.indentate(t)+"<"+i+"/"+this.tagEndChar}else if(typeof n==="object"){const e=this.j2x(n,t+1);o+=this.buildObjNode(e.val,i,e.attrStr,t)}else{o+=this.buildTextNode(n,i,"",t)}}}}else{if(this.options.attrNodeName&&i===this.options.attrNodeName){const t=Object.keys(e[i]);const o=t.length;for(let r=0;r<o;r++){n+=" "+t[r]+'="'+this.options.attrValueProcessor(""+e[i][t[r]])+'"'}}else{const n=this.j2x(e[i],t+1);o+=this.buildObjNode(n.val,i,n.attrStr,t)}}}return{attrStr:n,val:o}};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 n in t){e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>")}return e+this.newLine}}function buildObjectNode(e,t,n,o){if(n&&!e.includes("<")){return this.indentate(o)+"<"+t+n+">"+e+"</"+t+this.tagEndChar}else{return this.indentate(o)+"<"+t+n+this.tagEndChar+e+this.indentate(o)+"</"+t+this.tagEndChar}}function buildEmptyObjNode(e,t,n,o){if(e!==""){return this.buildObjectNode(e,t,n,o)}else{return this.indentate(o)+"<"+t+n+"/"+this.tagEndChar}}function buildTextValNode(e,t,n,o){return this.indentate(o)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function buildEmptyTextNode(e,t,n,o){if(e!==""){return this.buildTextValNode(e,t,n,o)}else{return this.indentate(o)+"<"+t+n+"/"+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},1901:(e,t,n)=>{"use strict";const char=function(e){return String.fromCharCode(e)};const o={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 r=[o.nilChar,o.nilPremitive,o.missingChar,o.missingPremitive,o.boundryChar,o.emptyChar,o.emptyValue,o.arrayEnd,o.objStart,o.arrStart];const _e=function(e,t,n){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 r=hasData(e);if(r===true){let r="";if(Array.isArray(t)){r+=o.arrStart;const i=t[0];const s=e.length;if(typeof i==="string"){for(let t=0;t<s;t++){const n=getValue(e[t].val,i);r=processValue(r,n)}}else{for(let t=0;t<s;t++){const o=_e(e[t],i,n);r=processValue(r,o)}}r+=o.arrayEnd}else{r+=o.objStart;const i=Object.keys(t);if(Array.isArray(e)){e=e[0]}for(let o in i){const s=i[o];let a;if(!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[s]){a=_e(e.attrsMap[s],t[s],n)}else if(s===n.textNodeName){a=_e(e.val,t[s],n)}else{a=_e(e.child[s],t[s],n)}r=processValue(r,a)}}return r}else{return r}}};const getValue=function(e){switch(e){case undefined:return o.missingPremitive;case null:return o.nilPremitive;case"":return o.emptyValue;default:return e}};const processValue=function(e,t){if(!isAppChar(t[0])&&!isAppChar(e[e.length-1])){e+=o.boundryChar}return e+t};const isAppChar=function(e){return r.indexOf(e)!==-1};function hasData(e){if(e===undefined){return o.missingChar}else if(e===null){return o.nilChar}else if(e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)){return o.emptyChar}else{return true}}const i=n(6712);const s=n(8280).buildOptions;const convert2nimn=function(e,t,n){n=s(n,i.defaultOptions,i.props);return _e(e,t,n)};t.convert2nimn=convert2nimn},8270:(e,t,n)=>{"use strict";const o=n(8280);const convertToJson=function(e,t,n){const r={};if((!e.child||o.isEmptyObject(e.child))&&(!e.attrsMap||o.isEmptyObject(e.attrsMap))){return o.isExist(e.val)?e.val:""}if(o.isExist(e.val)&&!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){const i=o.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=i?[e.val]:e.val}o.merge(r,e.attrsMap,t.arrayMode);const i=Object.keys(e.child);for(let s=0;s<i.length;s++){const a=i[s];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let n in e.child[a]){if(e.child[a].hasOwnProperty(n)){r[a].push(convertToJson(e.child[a][n],t,a))}}}else{const i=convertToJson(e.child[a][0],t,a);const s=t.arrayMode===true&&typeof i==="object"||o.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=s?[i]:i}}return r};t.convertToJson=convertToJson},6014:(e,t,n)=>{"use strict";const o=n(8280);const r=n(8280).buildOptions;const i=n(6712);const convertToJsonString=function(e,t){t=r(t,i.defaultOptions,i.props);t.indentBy=t.indentBy||"";return _cToJsonStr(e,t,0)};const _cToJsonStr=function(e,t,n){let r="{";const i=Object.keys(e.child);for(let n=0;n<i.length;n++){var s=i[n];if(e.child[s]&&e.child[s].length>1){r+='"'+s+'" : [ ';for(var a in e.child[s]){r+=_cToJsonStr(e.child[s][a],t)+" , "}r=r.substr(0,r.length-1)+" ] "}else{r+='"'+s+'" : '+_cToJsonStr(e.child[s][0],t)+" ,"}}o.merge(r,e.attrsMap);if(o.isEmptyObject(r)){return o.isExist(e.val)?e.val:""}else{if(o.isExist(e.val)){if(!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){r+='"'+t.textNodeName+'" : '+stringval(e.val)}}}if(r[r.length-1]===","){r=r.substr(0,r.length-2)}return r+"}"};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},7448:(e,t,n)=>{"use strict";const o=n(8270);const r=n(6712);const i=n(6712);const s=n(8280).buildOptions;const a=n(1739);t.parse=function(e,t,n){if(n){if(n===true)n={};const t=a.validate(e,n);if(t!==true){throw Error(t.err.msg)}}t=s(t,i.defaultOptions,i.props);const c=r.getTraversalObj(e,t);return o.convertToJson(c,t)};t.convertTonimn=n(1901).convert2nimn;t.getTraversalObj=r.getTraversalObj;t.convertToJson=o.convertToJson;t.convertToJsonString=n(6014).convertToJsonString;t.validate=a.validate;t.j2xParser=n(5152);t.parseToNimn=function(e,n,o){return t.convertTonimn(t.getTraversalObj(e,o),n,o)};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 n=t+t;Object.keys(e.child).forEach((function(o){const r=e.child[o];if(Array.isArray(r)){console.log(t+'"'+o+'" :[');r.forEach((function(e,t){print(e,n)}));console.log(t+"],")}else{console.log(t+' "'+o+'" : {');print(r,n);console.log(t+"},")}}));console.log(t+"},")}console.log(t+"},")}}},8280:(e,t)=>{"use strict";const n=":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 o=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const r="["+n+"]["+o+"]*";const i=new RegExp("^"+r+"$");const getAllMatches=function(e,t){const n=[];let o=t.exec(e);while(o){const r=[];const i=o.length;for(let e=0;e<i;e++){r.push(o[e])}n.push(r);o=t.exec(e)}return n};const isName=function(e){const t=i.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,n){if(t){const o=Object.keys(t);const r=o.length;for(let i=0;i<r;i++){if(n==="strict"){e[o[i]]=[t[o[i]]]}else{e[o[i]]=t[o[i]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.buildOptions=function(e,t,n){var o={};if(!e){return t}for(let r=0;r<n.length;r++){if(e[n[r]]!==undefined){o[n[r]]=e[n[r]]}else{o[n[r]]=t[n[r]]}}return o};t.isTagNameInArrayMode=function(e,t,n){if(t===false){return false}else if(t instanceof RegExp){return t.test(e)}else if(typeof t==="function"){return!!t(e,n)}return t==="strict"};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=r},1739:(e,t,n)=>{"use strict";const o=n(8280);const r={allowBooleanAttributes:false};const i=["allowBooleanAttributes"];t.validate=function(e,t){t=o.buildOptions(t,r,i);const n=[];let s=false;let a=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let o=0;o<e.length;o++){if(e[o]==="<"&&e[o+1]==="?"){o+=2;o=readPI(e,o);if(o.err)return o}else if(e[o]==="<"){o++;if(e[o]==="!"){o=readCommentAndCDATA(e,o);continue}else{let r=false;if(e[o]==="/"){r=true;o++}let i="";for(;o<e.length&&e[o]!==">"&&e[o]!==" "&&e[o]!=="\t"&&e[o]!=="\n"&&e[o]!=="\r";o++){i+=e[o]}i=i.trim();if(i[i.length-1]==="/"){i=i.substring(0,i.length-1);o--}if(!validateTagName(i)){let t;if(i.trim().length===0){t="There is an unnecessary space between tag name and backward slash '</ ..'."}else{t="Tag '"+i+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,o))}const c=readAttributeStr(e,o);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+i+"' have open quote.",getLineNumberForPosition(e,o))}let l=c.value;o=c.index;if(l[l.length-1]==="/"){l=l.substring(0,l.length-1);const n=validateAttributeString(l,t);if(n===true){s=true}else{return getErrorObject(n.err.code,n.err.msg,getLineNumberForPosition(e,o-l.length+n.err.line))}}else if(r){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+i+"' doesn't have proper closing.",getLineNumberForPosition(e,o))}else if(l.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+i+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,o))}else{const t=n.pop();if(i!==t){return getErrorObject("InvalidTag","Closing tag '"+t+"' is expected inplace of '"+i+"'.",getLineNumberForPosition(e,o))}if(n.length==0){a=true}}}else{const r=validateAttributeString(l,t);if(r!==true){return getErrorObject(r.err.code,r.err.msg,getLineNumberForPosition(e,o-l.length+r.err.line))}if(a===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,o))}else{n.push(i)}s=true}for(o++;o<e.length;o++){if(e[o]==="<"){if(e[o+1]==="!"){o++;o=readCommentAndCDATA(e,o);continue}else if(e[o+1]==="?"){o=readPI(e,++o);if(o.err)return o}else{break}}else if(e[o]==="&"){const t=validateAmpersand(e,o);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,o));o=t}}if(e[o]==="<"){o--}}}else{if(e[o]===" "||e[o]==="\t"||e[o]==="\n"||e[o]==="\r"){continue}return getErrorObject("InvalidChar","char '"+e[o]+"' is not expected.",getLineNumberForPosition(e,o))}}if(!s){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(n.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}return true};function readPI(e,t){var n=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){var o=e.substr(n,t-n);if(t>5&&o==="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 n=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){n++}else if(e[t]===">"){n--;if(n===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 s='"';var a="'";function readAttributeStr(e,t){let n="";let o="";let r=false;for(;t<e.length;t++){if(e[t]===s||e[t]===a){if(o===""){o=e[t]}else if(o!==e[t]){continue}else{o=""}}else if(e[t]===">"){if(o===""){r=true;break}}n+=e[t]}if(o!==""){return false}return{value:n,index:t,tagClosed:r}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const n=o.getAllMatches(e,c);const r={};for(let o=0;o<n.length;o++){if(n[o][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+n[o][2]+"' has no space in starting.",getPositionFromMatch(e,n[o][0]))}else if(n[o][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+n[o][2]+"' is not allowed.",getPositionFromMatch(e,n[o][0]))}const i=n[o][2];if(!validateAttrName(i)){return getErrorObject("InvalidAttr","Attribute '"+i+"' is an invalid name.",getPositionFromMatch(e,n[o][0]))}if(!r.hasOwnProperty(i)){r[i]=1}else{return getErrorObject("InvalidAttr","Attribute '"+i+"' is repeated.",getPositionFromMatch(e,n[o][0]))}}return true}function validateNumberAmpersand(e,t){let n=/\d/;if(e[t]==="x"){t++;n=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let n=0;for(;t<e.length;t++,n++){if(e[t].match(/\w/)&&n<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,n){return{err:{code:e,msg:t,line:n}}}function validateAttrName(e){return o.isName(e)}function validateTagName(e){return o.isName(e)}function getLineNumberForPosition(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function getPositionFromMatch(e,t){return e.indexOf(t)+t.length}},9539:e=>{"use strict";e.exports=function(e,t,n){this.tagname=e;this.parent=t;this.child={};this.attrsMap={};this.val=n;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,n)=>{"use strict";const o=n(8280);const r=n(8280).buildOptions;const i=n(9539);const s="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,o.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,n){if(t){if(n.trimValues){t=t.trim()}t=n.tagValueProcessor(t,e);t=parseValue(t,n.parseNodeValue,n.parseTrueNumberOnly)}return t}function resolveNameSpace(e,t){if(t.ignoreNameSpace){const t=e.split(":");const n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=n+t[1]}}return e}function parseValue(e,t,n){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(n){t=String(t)===e?t:e}}return t}else{if(o.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 n=o.getAllMatches(e,l);const r=n.length;const i={};for(let e=0;e<r;e++){const o=resolveNameSpace(n[e][1],t);if(o.length){if(n[e][4]!==undefined){if(t.trimValues){n[e][4]=n[e][4].trim()}n[e][4]=t.attrValueProcessor(n[e][4],o);i[t.attributeNamePrefix+o]=parseValue(n[e][4],t.parseAttributeValue,t.parseTrueNumberOnly)}else if(t.allowBooleanAttributes){i[t.attributeNamePrefix+o]=true}}}if(!Object.keys(i).length){return}if(t.attrNodeName){const e={};e[t.attrNodeName]=i;return e}return i}}const getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n");t=r(t,a,c);const n=new i("!xml");let s=n;let l="";for(let n=0;n<e.length;n++){const r=e[n];if(r==="<"){if(e[n+1]==="/"){const r=findClosingIndex(e,">",n,"Closing Tag is not closed.");let i=e.substring(n+2,r).trim();if(t.ignoreNameSpace){const e=i.indexOf(":");if(e!==-1){i=i.substr(e+1)}}if(s){if(s.val){s.val=o.getValue(s.val)+""+processTagValue(i,l,t)}else{s.val=processTagValue(i,l,t)}}if(t.stopNodes.length&&t.stopNodes.includes(s.tagname)){s.child=[];if(s.attrsMap==undefined){s.attrsMap={}}s.val=e.substr(s.startIndex+1,n-s.startIndex-1)}s=s.parent;l="";n=r}else if(e[n+1]==="?"){n=findClosingIndex(e,"?>",n,"Pi Tag is not closed.")}else if(e.substr(n+1,3)==="!--"){n=findClosingIndex(e,"--\x3e",n,"Comment is not closed.")}else if(e.substr(n+1,2)==="!D"){const t=findClosingIndex(e,">",n,"DOCTYPE is not closed.");const o=e.substring(n,t);if(o.indexOf("[")>=0){n=e.indexOf("]>",n)+1}else{n=t}}else if(e.substr(n+1,2)==="!["){const r=findClosingIndex(e,"]]>",n,"CDATA is not closed.")-2;const a=e.substring(n+9,r);if(l){s.val=o.getValue(s.val)+""+processTagValue(s.tagname,l,t);l=""}if(t.cdataTagName){const e=new i(t.cdataTagName,s,a);s.addChild(e);s.val=o.getValue(s.val)+t.cdataPositionChar;if(a){e.val=a}}else{s.val=(s.val||"")+(a||"")}n=r+2}else{const r=closingIndexForOpeningTag(e,n+1);let a=r.data;const c=r.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!==r.data.substr(e+1)}}if(s&&l){if(s.tagname!=="!xml"){s.val=o.getValue(s.val)+""+processTagValue(s.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 i(d,s,"");if(d!==a){e.attrsMap=buildAttributesMap(a,t)}s.addChild(e)}else{const e=new i(d,s);if(t.stopNodes.length&&t.stopNodes.includes(e.tagname)){e.startIndex=c}if(d!==a&&p){e.attrsMap=buildAttributesMap(a,t)}s.addChild(e);s=e}l="";n=c}}else{l+=e[n]}}return n};function closingIndexForOpeningTag(e,t){let n;let o="";for(let r=t;r<e.length;r++){let t=e[r];if(n){if(t===n)n=""}else if(t==='"'||t==="'"){n=t}else if(t===">"){return{data:o,index:r}}else if(t==="\t"){t=" "}o+=t}}function findClosingIndex(e,t,n,o){const r=e.indexOf(t,n);if(r===-1){throw new Error(o)}else{return r+t.length-1}}t.getTraversalObj=getTraversalObj},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const r=t.indexOf("--");return o!==-1&&(r===-1||o<r)}},7492:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(n(1808));const s=r(n(4404));const a=r(n(7310));const c=r(n(8237));const l=r(n(1040));const u=n(9690);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 n=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(n.protocol);n.host=n.hostname||n.host;if(typeof n.port==="string"){n.port=parseInt(n.port,10)}if(!n.port&&n.host){n.port=this.secureProxy?443:80}if(n.host&&n.path){delete n.path;delete n.pathname}this.proxy=n}callback(e,t){return o(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:o}=this;const r=a.default.parse(e.path);if(!r.protocol){r.protocol="http:"}if(!r.hostname){r.hostname=t.hostname||t.host||null}if(r.port==null&&typeof t.port){r.port=String(t.port)}if(r.port==="80"){r.port=""}e.path=a.default.format(r);if(n.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(n.auth).toString("base64")}`)}let c;if(o){d("Creating `tls.Socket`: %o",n);c=s.default.connect(n)}else{d("Creating `net.Socket`: %o",n);c=i.default.connect(n)}if(e._header){let t;let n;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];n=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(n);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;n=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(n);d("Output buffer: %o",e.outputData[0].data)}}yield(0,l.default)(c,"connect");return c}))}}t["default"]=HttpProxyAgent},3764:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=o(n(7492));function createHttpProxyAgent(e){return new r.default(e)}(function(e){e.HttpProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},5098:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(n(1808));const s=r(n(4404));const a=r(n(7310));const c=r(n(9491));const l=r(n(8237));const u=n(9690);const d=r(n(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 n=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(n.protocol);n.host=n.hostname||n.host;if(typeof n.port==="string"){n.port=parseInt(n.port,10)}if(!n.port&&n.host){n.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in n)){n.ALPNProtocols=["http 1.1"]}if(n.host&&n.path){delete n.path;delete n.pathname}this.proxy=n}callback(e,t){return o(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:o}=this;let r;if(o){p("Creating `tls.Socket`: %o",n);r=s.default.connect(n)}else{p("Creating `net.Socket`: %o",n);r=i.default.connect(n)}const a=Object.assign({},n.headers);const l=`${t.host}:${t.port}`;let u=`CONNECT ${l} HTTP/1.1\r\n`;if(n.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`}let{host:m,port:f,secureEndpoint:g}=t;if(!isDefaultPort(f,g)){m+=`:${f}`}a.Host=m;a.Connection="close";for(const e of Object.keys(a)){u+=`${e}: ${a[e]}\r\n`}const y=d.default(r);r.write(`${u}\r\n`);const{statusCode:h,buffered:v}=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 s.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:r,servername:e}))}return r}r.destroy();const w=new i.default.Socket({writable:false});w.readable=true;e.once("socket",(e=>{p("replaying proxy buffer for failed request");c.default(e.listenerCount("data")>0);e.push(v);e.push(null)}));return w}))}}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 n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},7219:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=o(n(5098));function createHttpsProxyAgent(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},595:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const r=o(n(8237));const i=r.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const r=[];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){i("onclose had error %o",e)}function onend(){i("onend")}function onerror(e){cleanup();i("onerror %o",e);n(e)}function ondata(e){r.push(e);o+=e.length;const n=Buffer.concat(r,o);const s=n.indexOf("\r\n\r\n");if(s===-1){i("have not received end of HTTP headers yet...");read();return}const a=n.toString("ascii",0,n.indexOf("\r\n"));const c=+a.split(" ")[1];i("got proxy server response: %o",a);t({statusCode:c,buffered:n})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},900:e=>{var t=1e3;var n=t*60;var o=n*60;var r=o*24;var i=r*7;var s=r*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="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*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;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 i=Math.abs(e);if(i>=r){return Math.round(e/r)+"d"}if(i>=o){return Math.round(e/o)+"h"}if(i>=n){return Math.round(e/n)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=r){return plural(e,i,r,"day")}if(i>=o){return plural(e,i,o,"hour")}if(i>=n){return plural(e,i,n,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,n,o){var r=t>=n*1.5;return Math.round(e/n)+" "+o+(r?"s":"")}},9318:(e,t,n)=>{"use strict";const o=n(2037);const r=n(6224);const i=n(1621);const{env:s}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.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(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,r.isatty(1))),stderr:translateLevel(supportsColor(true,r.isatty(2)))}},4351:e=>{
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var t;var n;var o;var r;var i;var s;var a;var c;var l;var u;var d;var p;var m;var f;var g;var y;var h;var v;var w;var E;var S;var C;var x;var R;(function(t){var n=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(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++){if(t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r]))n[o[r]]=e[o[r]]}return n};r=function(e,t,n,o){var r=arguments.length,i=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(s=e[a])i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i;return r>3&&i&&Object.defineProperty(t,n,i),i};i=function(e,t){return function(n,o){t(n,o,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};c=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(i=s[0]&2?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};l=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))R(t,e,n)};R=Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};u=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};d=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],s;try{while((t===void 0||t-- >0)&&!(r=o.next()).done)i.push(r.value)}catch(e){s={error:e}}finally{try{if(r&&!r.done&&(n=o["return"]))n.call(o)}finally{if(s)throw s.error}}return i};p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e};m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};f=function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};g=function(e){return this instanceof g?(this.v=e,this):new g(e)};y=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r;function verb(e){if(o[e])r[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof g?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};h=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:g(e[o](t)),done:o==="return"}:r?r(t):t}:r}};v=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof u==="function"?u(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,r){n=e[t](n),settle(o,r,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};w=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var b=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};E=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))R(t,e,n);b(t,e);return t};S=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};x=function(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",r);e("__param",i);e("__metadata",s);e("__awaiter",a);e("__generator",c);e("__exportStar",l);e("__createBinding",R);e("__values",u);e("__read",d);e("__spread",p);e("__spreadArrays",m);e("__spreadArray",f);e("__await",g);e("__asyncGenerator",y);e("__asyncDelegator",h);e("__asyncValues",v);e("__makeTemplateObject",w);e("__importStar",E);e("__importDefault",S);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",x)}))},4294:(e,t,n)=>{e.exports=n(4219)},4219:(e,t,n)=>{"use strict";var o=n(1808);var r=n(4404);var i=n(3685);var s=n(5687);var a=n(2361);var c=n(9491);var l=n(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.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||i.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,r){var i=toOptions(n,o,r);for(var s=0,a=t.requests.length;s<a;++s){var c=t.requests[s];if(c.host===i.host&&c.port===i.port){t.requests.splice(s,1);c.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}l.inherits(TunnelingAgent,a.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,n,o){var r=this;var i=mergeOptions({request:e},r.options,toOptions(t,n,o));if(r.sockets.length>=this.maxSockets){r.requests.push(i);return}r.createSocket(i,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,i)}function onCloseOrRemove(e){r.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var r=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){r.localAddress=e.localAddress}if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")}u("making CONNECT request");var i=n.request(r);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(r,s,a){i.removeAllListeners();s.removeAllListeners();if(r.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",r.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(o);return}if(a.length>0){u("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(o);return}u("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=s;return t(s)}function onError(t){i.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=new Error("tunneling socket could not be established, "+"cause="+t.message);r.code="ECONNRESET";e.request.emit("error",r);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var i=e.request.getHeader("host");var s=mergeOptions({},n.options,{socket:o,servername:i?i.replace(/:.*$/,""):e.host});var a=r.connect(0,s);n.sockets[n.sockets.indexOf(o)]=a;t(a)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t<n;++t){var o=arguments[t];if(typeof o==="object"){var r=Object.keys(o);for(var i=0,s=r.length;i<s;++i){var a=r[i];if(o[a]!==undefined){e[a]=o[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},5840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return s.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 o=_interopRequireDefault(n(8628));var r=_interopRequireDefault(n(6409));var i=_interopRequireDefault(n(5122));var s=_interopRequireDefault(n(9120));var a=_interopRequireDefault(n(5332));var c=_interopRequireDefault(n(1595));var l=_interopRequireDefault(n(6900));var u=_interopRequireDefault(n(8950));var d=_interopRequireDefault(n(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(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 o.default.createHash("md5").update(e).digest()}var r=md5;t["default"]=r},5332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n="00000000-0000-0000-0000-000000000000";t["default"]=n},2746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}let t;const n=new Uint8Array(16);n[0]=(t=parseInt(e.slice(0,8),16))>>>24;n[1]=t>>>16&255;n[2]=t>>>8&255;n[3]=t&255;n[4]=(t=parseInt(e.slice(9,13),16))>>>8;n[5]=t&255;n[6]=(t=parseInt(e.slice(14,18),16))>>>8;n[7]=t&255;n[8]=(t=parseInt(e.slice(19,23),16))>>>8;n[9]=t&255;n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;n[11]=t/4294967296&255;n[12]=t>>>24&255;n[13]=t>>>16&255;n[14]=t>>>8&255;n[15]=t&255;return n}var r=parse;t["default"]=r},814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=/^(?:[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"]=n},807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var o=_interopRequireDefault(n(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=new Uint8Array(256);let i=r.length;function rng(){if(i>r.length-16){o.default.randomFillSync(r);i=0}return r.slice(i,i+=16)}},5274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(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 o.default.createHash("sha1").update(e).digest()}var r=sha1;t["default"]=r},8950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=[];for(let e=0;e<256;++e){r.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,o.default)(n)){throw TypeError("Stringified UUID is invalid")}return n}var i=stringify;t["default"]=i},8628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(807));var r=_interopRequireDefault(n(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let i;let s;let a=0;let c=0;function v1(e,t,n){let l=t&&n||0;const u=t||new Array(16);e=e||{};let d=e.node||i;let p=e.clockseq!==undefined?e.clockseq:s;if(d==null||p==null){const t=e.random||(e.rng||o.default)();if(d==null){d=i=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=s=(t[6]<<8|t[7])&16383}}let m=e.msecs!==undefined?e.msecs:Date.now();let f=e.nsecs!==undefined?e.nsecs:c+1;const g=m-a+(f-c)/1e4;if(g<0&&e.clockseq===undefined){p=p+1&16383}if((g<0||m>a)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=m;c=f;s=p;m+=122192928e5;const y=((m&268435455)*1e4+f)%4294967296;u[l++]=y>>>24&255;u[l++]=y>>>16&255;u[l++]=y>>>8&255;u[l++]=y&255;const h=m/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,r.default)(u)}var l=v1;t["default"]=l},6409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(5998));var r=_interopRequireDefault(n(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=(0,o.default)("v3",48,r.default);var s=i;t["default"]=s},5998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var o=_interopRequireDefault(n(8950));var r=_interopRequireDefault(n(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n){t.push(e.charCodeAt(n))}return t}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s;function _default(e,t,n){function generateUUID(e,i,s,a){if(typeof e==="string"){e=stringToBytes(e)}if(typeof i==="string"){i=(0,r.default)(i)}if(i.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let c=new Uint8Array(16+e.length);c.set(i);c.set(e,i.length);c=n(c);c[6]=c[6]&15|t;c[8]=c[8]&63|128;if(s){a=a||0;for(let e=0;e<16;++e){s[a+e]=c[e]}return s}return(0,o.default)(c)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=i;generateUUID.URL=s;return generateUUID}},5122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(807));var r=_interopRequireDefault(n(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,n){e=e||{};const i=e.random||(e.rng||o.default)();i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=i[e]}return t}return(0,r.default)(i)}var i=v4;t["default"]=i},9120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(5998));var r=_interopRequireDefault(n(5274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=(0,o.default)("v5",80,r.default);var s=i;t["default"]=s},6900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&o.default.test(e)}var r=validate;t["default"]=r},1595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var r=version;t["default"]=r},6949:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getRegistriesData=t.getAccountIDs=t.getRegion=t.isPubECR=t.isECR=void 0;const a=i(n(2186));const c=n(8923);const l=n(2308);const u=n(8805);const d=n(3764);const p=n(7219);const m=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;const isECR=e=>m.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 n=e.match(m);if(!n){return""}return n[3]};t.getRegion=getRegion;const getAccountIDs=e=>{if((0,t.isPubECR)(e)){return[]}const n=e.match(m);if(!n){return[]}const o=[n[2]];if(process.env.AWS_ACCOUNT_IDS){o.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return o.filter(((e,t)=>o.indexOf(e)===t))};t.getAccountIDs=getAccountIDs;const getRegistriesData=(e,n,o)=>s(void 0,void 0,void 0,(function*(){const r=(0,t.getRegion)(e);const i=(0,t.getAccountIDs)(e);const s={};if(i.length>0){a.debug(`Requesting AWS ECR auth token for ${i.join(", ")}`);s["registryIds"]=i}let m;const f=process.env.http_proxy||process.env.HTTP_PROXY||"";if(f){a.debug(`Using http proxy ${f}`);m=new d.HttpProxyAgent(f)}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=n&&o?{accessKeyId:n,secretAccessKey:o}:undefined;if((0,t.isPubECR)(e)){a.info(`AWS Public ECR detected with ${r} region`);const e=new l.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:g})});const t=yield e.getAuthorizationToken(s);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const n=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const o=n.split(":",2);a.setSecret(o[0]);a.setSecret(o[1]);return[{registry:"public.ecr.aws",username:o[0],password:o[1]}]}else{a.info(`AWS ECR detected with ${r} region`);const e=new c.ECR({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:g})});const t=yield e.getAuthorizationToken(s);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const n=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const o=t.split(":",2);a.setSecret(o[0]);a.setSecret(o[1]);n.push({registry:e.proxyEndpoint||"",username:o[0],password:o[1]})}return n}}));t.getRegistriesData=getRegistriesData},8954:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=void 0;const s=i(n(2186));function getInputs(){return{registry:s.getInput("registry"),username:s.getInput("username"),password:s.getInput("password"),ecr:s.getInput("ecr"),logout:s.getBooleanInput("logout")}}t.getInputs=getInputs},6512:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.loginECR=t.loginStandard=t.logout=t.login=void 0;const a=i(n(6949));const c=i(n(2186));const l=i(n(1514));function login(e,t,n,o){return s(this,void 0,void 0,(function*(){if(/true/i.test(o)||o=="auto"&&a.isECR(e)){yield loginECR(e,t,n)}else{yield loginStandard(e,t,n)}}))}t.login=login;function logout(e){return s(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,n){return s(this,void 0,void 0,(function*(){if(!t||!n){throw new Error("Username and password required")}const o=["login","--password-stdin"];o.push("--username",t);o.push(e);if(e){c.info(`Logging into ${e}...`)}else{c.info(`Logging into Docker Hub...`)}yield l.getExecOutput("docker",o,{ignoreReturnCode:true,silent:true,input:Buffer.from(n)}).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,n){return s(this,void 0,void 0,(function*(){c.info(`Retrieving registries data through AWS SDK...`);const o=yield a.getRegistriesData(e,t,n);for(const e of o){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},399:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;const a=i(n(2186));const c=i(n(8954));const l=i(n(6512));const u=i(n(963));function run(){return s(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 s(this,void 0,void 0,(function*(){if(!u.logout){return}yield l.logout(u.registry)}))}if(!u.IsPost){run()}else{logout()}},963:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.setLogout=t.setRegistry=t.logout=t.registry=t.IsPost=void 0;const s=i(n(2186));t.IsPost=!!process.env["STATE_isPost"];t.registry=process.env["STATE_registry"]||"";t.logout=/true/i.test(process.env["STATE_logout"]||"");function setRegistry(e){s.saveState("registry",e)}t.setRegistry=setRegistry;function setLogout(e){s.saveState("logout",e)}t.setLogout=setLogout;if(!t.IsPost){s.saveState("isPost","true")}},7578:module=>{module.exports=eval("require")("aws-crt")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5158:e=>{"use strict";e.exports=require("http2")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},5929: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.53.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: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.53.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"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"}}')},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.53.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: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.53.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","@aws-sdk/util-waiter":"3.53.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"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","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')},1092: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.53.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: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.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"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.53.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: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.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-sdk-sts":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"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"}}')},3600: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}')},9323: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":""}')},9591: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 n=__webpack_module_cache__[e]={exports:{}};var o=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[e]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(399);module.exports=__webpack_exports__})();
|
||
//# sourceMappingURL=index.js.map
|