From 93de8b70de422bd387d378fd7f61b5e7873b764b Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Sun, 5 Jan 2020 21:13:36 -0500 Subject: [PATCH] feat(awscli): make awscli internal package into an action as well, general purpose use of the awscli --- .eslintignore | 1 + .github/README.md | 15 +- .github/images/aws.png | Bin 0 -> 58269 bytes .github/workflows/awscli.yml | 45 ++ .github/workflows/cloudfront_invalidate.yml | 7 +- .github/workflows/iam_access_credentials.yaml | 7 +- .github/workflows/s3_sync.yml | 7 +- package.json | 14 +- packages/awscli-core/index.ts | 92 ++++ packages/awscli-core/lib/index.d.ts | 11 + packages/{awscli => awscli-core}/lib/index.js | 0 packages/awscli-core/package.json | 19 + packages/awscli-core/tsconfig.json | 6 + packages/awscli/README.md | 80 +++ packages/awscli/action.yml | 51 ++ packages/awscli/dist/index.js | 2 +- packages/awscli/index.ts | 125 ++--- packages/awscli/package.json | 9 +- packages/cloudfront_invalidate/README.md | 2 +- packages/cloudfront_invalidate/action.yml | 10 +- packages/cloudfront_invalidate/dist/index.js | 2 +- packages/cloudfront_invalidate/package.json | 4 +- packages/iam_access_credentials/README.md | 2 +- packages/iam_access_credentials/action.yml | 12 +- packages/iam_access_credentials/dist/index.js | 2 +- packages/iam_access_credentials/package.json | 4 +- packages/s3_sync/README.md | 2 +- packages/s3_sync/action.yml | 8 +- packages/s3_sync/dist/index.js | 2 +- packages/s3_sync/index.ts | 2 +- packages/s3_sync/package.json | 2 +- tsconfig.json | 2 +- yarn.lock | 463 ++++++++++-------- 33 files changed, 665 insertions(+), 345 deletions(-) create mode 100644 .github/images/aws.png create mode 100644 .github/workflows/awscli.yml create mode 100644 packages/awscli-core/index.ts create mode 100644 packages/awscli-core/lib/index.d.ts rename packages/{awscli => awscli-core}/lib/index.js (100%) create mode 100644 packages/awscli-core/package.json create mode 100644 packages/awscli-core/tsconfig.json create mode 100644 packages/awscli/README.md create mode 100644 packages/awscli/action.yml diff --git a/.eslintignore b/.eslintignore index 5fb593e..af17ac6 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ **/node_modules packages/**/dist +packages/**/lib diff --git a/.github/README.md b/.github/README.md index a3653b7..d7539ed 100644 --- a/.github/README.md +++ b/.github/README.md @@ -5,21 +5,26 @@ aws-github-actions

+ Maintained with lerna Strict TypeScript + Commitizen Friendly + Known Vulnerabilities

Collection of GitHub actions for interacting with AWS services. -| Action | Local Action Tests | -| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- | -| [CloudFront Invalidate](../packages/cloudfront_invalidate) | ![CloudFront Invalidate](https://github.com/clowdhaus/aws-github-actions/workflows/cloudfront_invalidate/badge.svg) | -| [IAM Access Credentials](../packages/iam_access_credentials) | ![IAM Access Credentials](https://github.com/clowdhaus/aws-github-actions/workflows/iam_access_credentials/badge.svg) | -| [S3 Sync](../packages/s3_sync) | ![S3 Sync](https://github.com/clowdhaus/aws-github-actions/workflows/s3_sync/badge.svg) | +| Action | Local Action Tests | +| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| [`clowdhaus/awscli@master`](../packages/awscli) | ![AWS Command Line Interface](https://github.com/clowdhaus/aws-github-actions/workflows/awscli/badge.svg) | +| [`clowdhaus/cloudfront_invalidate@master`](../packages/cloudfront_invalidate) | ![CloudFront Invalidate](https://github.com/clowdhaus/aws-github-actions/workflows/CloudFront%20Invalidation/badge.svg) | +| [`clowdhaus/iam_access_credentials@master`](../packages/iam_access_credentials) | ![IAM Access Credentials](https://github.com/clowdhaus/aws-github-actions/workflows/IAM%20Credentials/badge.svg) | +| [`clowdhaus/s3_sync@master`](../packages/s3_sync) | ![S3 Sync](https://github.com/clowdhaus/aws-github-actions/workflows/S3%20Sync/badge.svg) | ## Usage See individual action directory for details on usage and examples. +- [AWS Command Line Interface](../pacakges/awscli) - execute awscli commands - [CloudFront Invalidate](../packages/cloudfront_invalidate) - invalidate AWS CloudFront distribution to force cache refresh - [IAM Access Credentials](../packages/iam_access_credentials) - ensure GitHub actions workflow environment has necessary AWS IAM credentials available for subsequent AWS actions - [S3 Sync](../packages/s3_sync) - synchronize local files to remote AWS S3 bucket diff --git a/.github/images/aws.png b/.github/images/aws.png new file mode 100644 index 0000000000000000000000000000000000000000..c76f90a8caf8b8439de740a6209115973a10a420 GIT binary patch literal 58269 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 literal 0 HcmV?d00001 diff --git a/.github/workflows/awscli.yml b/.github/workflows/awscli.yml new file mode 100644 index 0000000..a1e796c --- /dev/null +++ b/.github/workflows/awscli.yml @@ -0,0 +1,45 @@ +name: awscli + +on: + push: + branches: + - master + +jobs: + awscli: + name: Execute some awscli invocations + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Configure AWS Credentials + uses: ./packages/iam_access_credentials + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: List us-east-1 DHCP option set values w/ default json output + uses: ./packages/awscli + with: + cli-command: ec2 + cli-subcommand: describe-dhcp-options + cli-parameters: --query DhcpOptions[0].DhcpConfigurations[*].Values[0].Value + aws-region: us-east-1 + - name: Get network interface subnet ID + id: net-int-subnet-id + uses: ./packages/awscli + with: + cli-command: ec2 + cli-subcommand: describe-network-interfaces + cli-options: --output text + cli-parameters: --query NetworkInterfaces[0].SubnetId + aws-region: us-east-1 + - name: Describe interface subnet ID + uses: ./packages/awscli + env: + ACTIONS_RUNNER_DEBUG: true + with: + cli-command: ec2 + cli-subcommand: describe-subnets + cli-parameters: --subnet-id ${{ steps.net-int-subnet-id.outputs.cli-output }} --query Subnets[*].Tags + aws-region: us-east-1 diff --git a/.github/workflows/cloudfront_invalidate.yml b/.github/workflows/cloudfront_invalidate.yml index 1ea7b63..e7063ee 100644 --- a/.github/workflows/cloudfront_invalidate.yml +++ b/.github/workflows/cloudfront_invalidate.yml @@ -1,6 +1,9 @@ -name: cloudfront_invalidate +name: 'CloudFront Invalidation' -on: [push] +on: + push: + branches: + - master jobs: cloudfront-invalidate: diff --git a/.github/workflows/iam_access_credentials.yaml b/.github/workflows/iam_access_credentials.yaml index 3f6461a..e988fc9 100644 --- a/.github/workflows/iam_access_credentials.yaml +++ b/.github/workflows/iam_access_credentials.yaml @@ -1,6 +1,9 @@ -name: iam_access_credentials +name: 'IAM Credentials' -on: [push] +on: + push: + branches: + - master jobs: s3-sync: diff --git a/.github/workflows/s3_sync.yml b/.github/workflows/s3_sync.yml index bf22f6e..5b7f662 100644 --- a/.github/workflows/s3_sync.yml +++ b/.github/workflows/s3_sync.yml @@ -1,6 +1,9 @@ -name: s3_sync +name: 'S3 Sync' -on: [push] +on: + push: + branches: + - master jobs: s3-sync: diff --git a/package.json b/package.json index 5eee537..312862b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ ], "scripts": { "test": "lerna run test", - "compile": "lerna run compile", + "compile": "lerna run build && lerna run compile", "lint": "tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix", "new-version": "lerna version --conventional-commits --yes", "diff": "lerna diff", @@ -35,17 +35,17 @@ "@actions/core": "^1.2.0" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^2.14.0", - "@typescript-eslint/parser": "^2.14.0", - "@zeit/ncc": "^0.20.5", + "@typescript-eslint/eslint-plugin": "^2.15.0", + "@typescript-eslint/parser": "^2.15.0", + "@zeit/ncc": "^0.21.0", "commitizen": "^4.0.3", - "cz-conventional-changelog": "3.0.2", + "cz-conventional-changelog": "^3.0.2", "eslint": "^6.8.0", "eslint-config-prettier": "^6.9.0", "eslint-plugin-prettier": "^3.1.2", "husky": "^3.1.0", - "lerna": "^3.20.1", - "lint-staged": "^10.0.0-beta.14", + "lerna": "^3.20.2", + "lint-staged": "^9.5.0", "prettier": "^1.19.1", "typescript": "^3.7.4" }, diff --git a/packages/awscli-core/index.ts b/packages/awscli-core/index.ts new file mode 100644 index 0000000..d7d8ffa --- /dev/null +++ b/packages/awscli-core/index.ts @@ -0,0 +1,92 @@ +import * as process from 'process'; + +import * as io from '@actions/io'; +import * as core from '@actions/core'; +import * as exec from '@actions/exec'; +import * as tc from '@actions/tool-cache'; + +export default class AwsCli { + private readonly path: string; + + private constructor(exePath: string) { + this.path = exePath; + } + + public static async getOrInstall(): Promise { + try { + return await AwsCli.get(); + } catch (error) { + core.debug(`Unable to find "awscli" executable, installing it now. Reason: ${error}`); + return await AwsCli.install(); + } + } + + // Will throw an error if `aws` is not installed. + public static async get(): Promise { + const exePath = await io.which('aws', true); + + return new AwsCli(exePath); + } + + private static async install(): Promise { + switch (process.platform) { + case 'darwin': + case 'linux': { + const AwsCliWheelPath = await tc.downloadTool( + 'https://files.pythonhosted.org/packages/99/55/6c020e22f81b2b76a1295b07ac92aa4f9aaf44dcb9cead89a6a24a3d828c/awscli-1.16.309-py2.py3-none-any.whl', + ); + await exec.exec('pip', ['install', '--use-wheel', '--no-index', `--find-links=${AwsCliWheelPath}`, 'awscli']); + break; + } + + case 'win32': { + const AwsCliMsiPath = await tc.downloadTool('https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi'); + await exec.exec('msiexec.exe', ['/I', AwsCliMsiPath]); + break; + } + + default: + throw new Error(`Unknown platform ${process.platform}, can't install awscli`); + } + + // Assuming it is in the $PATH already + return new AwsCli('aws'); + } + + public async version(): Promise { + const stdout = await this.callStdout(['--version']); + + return stdout.split(' ')[1]; + } + + // awscli which `program` + public async which(program: string): Promise { + const stdout = await this.callStdout(['which', program]); + + if (stdout) { + return stdout; + } else { + throw new Error(`Unable to find the ${program}`); + } + } + + public async call(args: string[], options?: {}): Promise { + return await exec.exec(this.path, args, options); + } + + // Call the `awscli` and return stdout + async callStdout(args: string[], options?: {}): Promise { + let stdout = ''; + const resOptions = Object.assign({}, options, { + listeners: { + stdout: (buffer: Buffer) => { + stdout += buffer.toString(); + }, + }, + }); + + await this.call(args, resOptions); + + return stdout; + } +} diff --git a/packages/awscli-core/lib/index.d.ts b/packages/awscli-core/lib/index.d.ts new file mode 100644 index 0000000..d68e1c3 --- /dev/null +++ b/packages/awscli-core/lib/index.d.ts @@ -0,0 +1,11 @@ +export default class AwsCli { + private readonly path; + private constructor(); + static getOrInstall(): Promise; + static get(): Promise; + private static install; + version(): Promise; + which(program: string): Promise; + call(args: string[], options?: {}): Promise; + callStdout(args: string[], options?: {}): Promise; +} diff --git a/packages/awscli/lib/index.js b/packages/awscli-core/lib/index.js similarity index 100% rename from packages/awscli/lib/index.js rename to packages/awscli-core/lib/index.js diff --git a/packages/awscli-core/package.json b/packages/awscli-core/package.json new file mode 100644 index 0000000..e65847b --- /dev/null +++ b/packages/awscli-core/package.json @@ -0,0 +1,19 @@ +{ + "name": "@aws-github-actions/awscli-core", + "version": "0.1.0", + "description": "Wrapper module for awscli", + "main": "lib/index.js", + "typings": "lib/index.d.ts", + "dependencies": { + "@actions/exec": "^1.0.2", + "@actions/io": "^1.0.1", + "@actions/tool-cache": "^1.1.2" + }, + "devDependencies": {}, + "scripts": { + "build": "rm -f lib/* && tsc", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "clowd.haus", + "license": "Apache-2.0" +} diff --git a/packages/awscli-core/tsconfig.json b/packages/awscli-core/tsconfig.json new file mode 100644 index 0000000..476ca1a --- /dev/null +++ b/packages/awscli-core/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "declaration": true, + "outDir": "lib" + } +} diff --git a/packages/awscli/README.md b/packages/awscli/README.md new file mode 100644 index 0000000..e5b3a9d --- /dev/null +++ b/packages/awscli/README.md @@ -0,0 +1,80 @@ +

+ aws +

+

+ awscli +

+

+ awscli +

+ +The `awscli` GitHub action provides access to the official AWS command line interface within an action workflow. + +Reference - `aws [options] [parameters]` +Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws + +## Usage + +```yml +- uses: clowdhaus/awscli@v0.1 + with: + # Command passed to awscli, which is infact the service that is the target of + # your invocation + # Required: true + cli-command: '' + + # Sub-command passed to awscli, which specifies the command on the target service + # provided in the command + # Required: true + cli-subcommand: '' + + # CLI Options passed to command invocation + cli-options: '' + + # Options passed with command and sub-command to further define invocation + # See `options` under `ec2` (command) `describe-instances (sub-command) here + # for an example of parameters that can be passed + # https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-interfaces.html + cli-parameters: '' + + # Intended AWS Region the command invocation is executed against + # required: true + aws-region: '' +``` + +## Scenarios + +### Execute describe style command with standard json result output + +```yml +- uses: clowdhaus/awscli@v0.1 + with: + cli-command: ec2 + cli-subcommand: describe-dhcp-options + aws-region: us-east-1 +``` + +### Execute describe style command with query and text output + +```yml +- uses: clowdhaus/awscli@v0.1 + with: + cli-command: ec2 + cli-subcommand: describe-network-interfaces + cli-options: --output text + cli-parameters: --query NetworkInterfaces[0].SubnetId + aws-region: us-east-1 +``` + +### Execute describe style command using output from a prior describe command of ID `net-int-subnet-id` + +```yml +- uses: clowdhaus/awscli@v0.1 + env: + ACTIONS_RUNNER_DEBUG: true + with: + cli-command: ec2 + cli-subcommand: describe-subnets + cli-parameters: --subnet-id ${{ steps.net-int-subnet-id.outputs.cli-output }} --query Subnets[*].Tags + aws-region: us-east-1 +``` diff --git a/packages/awscli/action.yml b/packages/awscli/action.yml new file mode 100644 index 0000000..85e2195 --- /dev/null +++ b/packages/awscli/action.yml @@ -0,0 +1,51 @@ +name: 'AWS command line interface GitHub action' +author: 'Clowd Haus, LLC' +description: 'Invoke awscli to perform various actions' +branding: + icon: 'terminal' + color: 'gray-dark' +inputs: + cli-command: + description: > + Command passed to awscli, which is infact the service that is the target of + your invocation + + Reference - aws [options] [parameters] + Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws + required: true + cli-subcommand: + description: > + Sub-command passed to awscli, which specifies the command on the target service + provided in the command + + Reference - aws [options] [parameters] + Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws + required: true + cli-options: + description: > + CLI Options passed to command invocation + + Reference - aws [options] [parameters] + Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws + required: false + cli-parameters: + description: > + Options passed with command and sub-command to further define invocation + See `options` under `ec2` (command) `describe-instances` (sub-command) + for an example of parameters (subcommand options) that can be passed + https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-interfaces.html + + Reference - aws [options] [parameters] + Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws + required: false + aws-region: + description: > + Intended AWS Region the command invocation is executed against + required: true +outputs: + cli-output: + description: 'Output returned from awscli command' + +runs: + using: 'node12' + main: 'dist/index.js' diff --git a/packages/awscli/dist/index.js b/packages/awscli/dist/index.js index dc94a9c..328736c 100644 --- a/packages/awscli/dist/index.js +++ b/packages/awscli/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(938)}return startup()}({16:function(e){e.exports=require("tls")},87:function(e){e.exports=require("os")},90:function(e){"use strict";var t=Object.prototype.hasOwnProperty;var r=Array.isArray;var n=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var i=function compactQueue(e){while(e.length>1){var t=e.pop();var n=t.obj[t.prop];if(r(n)){var i=[];for(var o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){o+=i.charAt(s);continue}if(a<128){o=o+n[a];continue}if(a<2048){o=o+(n[192|a>>6]+n[128|a&63]);continue}if(a<55296||a>=57344){o=o+(n[224|a>>12]+n[128|a>>6&63]+n[128|a&63]);continue}s+=1;a=65536+((a&1023)<<10|i.charCodeAt(s)&1023);o+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|a&63]}return o};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;nn(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=e.message.headers["content-type"]||"";const r=t.match(/charset=([^;,\r\n]+)/i);return r&&r[1]?r[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},211:function(e){e.exports=require("https")},213:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const o=r(622);const s=r(669);const a=r(836);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield a.stat(e);if(l.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},311:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var l=0;function tok(e){c[e]=l++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var u="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var p="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;dn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],p);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],u);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var l=isX(o);var u=l||isX(s);var f=u||isX(a);var p=f;if(i==="="&&p){i=""}c=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&p){if(u){s=0}a=0;if(i===">"){i=">=";if(u){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(u){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(u){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,l,u,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(l)){a="<"+(+c+1)+".0.0"}else if(isX(u)){a="<"+c+"."+(+l+1)+".0"}else if(f){a="<="+c+"."+l+"."+u+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var l=0;l=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&o(e,p.semver)){return false}else if(p.operator===c&&s(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},353:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(416);function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const s=new i.ToolRunner(o,t,r);return s.exec()})}t.exec=exec},357:function(e){e.exports=require("assert")},393:function(e,t,r){var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},416:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(87);const o=r(614);const s=r(129);const a=r(622);const c=r(213);const l=r(836);const u=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(u){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let o=n.indexOf(i.EOL);while(o>-1){const e=n.substring(0,o);r(e);n=n.substring(o+i.EOL.length);o=n.indexOf(i.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(u){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(u){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||u&&this.toolPath.includes("\\"))){this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName();const a=s.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));const c="";if(a.stdout){a.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(a.stderr){a.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}a.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});a.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});a.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(r){t(r)}else{e(n)}})})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},417:function(e){e.exports=require("crypto")},450:function(e,t,r){"use strict";var n=String.prototype.replace;var i=/%20/g;var o=r(90);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},515:function(e){var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(87);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const r=this.properties[t];if(r){e+=`${t}=${escape(`${r||""}`)},`}}}}e+=i;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},587:function(e,t,r){e.exports=r(849)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},636:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(835);const o=r(605);const s=r(211);const a=r(201);let c;let l;var u;(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"})(u=t.HttpCodes||(t.HttpCodes={}));const f=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}e(r.toString(i))})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var y;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(y||(y={}));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||[];let i=process.env[y.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const a=l.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.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 l.readBody();s=this._prepareRequest(e,c,o);l=yield this.requestRaw(s,r);t--}if(p.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;let i=typeof t==="string";if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let s=(e,t)=>{if(!o){o=true;r(e,t)}};let a=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});a.on("socket",e=>{n=e});a.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});a.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){a.end()});t.pipe(a)}else{a.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!l){l=r(587)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?l.httpsOverHttps:l.httpsOverHttp}else{i=o?l.httpOverHttps:l.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[y.HTTPS_PROXY];let o=process.env[y.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=v*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},669:function(e){e.exports=require("util")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},765:function(e){e.exports=require("process")},776:function(e,t,r){"use strict";var n=r(90);var i=r(450);var o=Object.prototype.hasOwnProperty;var s={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var a=Array.isArray;var c=Array.prototype.push;var l=function(e,t){c.apply(e,a(t)?t:[t])};var u=Date.prototype.toISOString;var f=i["default"];var p={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:i.formatters[f],indices:false,serializeDate:function serializeDate(e){return u.call(e)},skipNulls:false,strictNullHandling:false};var d=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h=function stringify(e,t,r,i,o,s,c,u,f,h,v,y,E){var w=e;if(typeof c==="function"){w=c(t,w)}else if(w instanceof Date){w=h(w)}else if(r==="comma"&&a(w)){w=w.join(",")}if(w===null){if(i){return s&&!y?s(t,p.encoder,E,"key"):t}w=""}if(d(w)||n.isBuffer(w)){if(s){var m=y?t:s(t,p.encoder,E,"key");return[v(m)+"="+v(s(w,p.encoder,E,"value"))]}return[v(t)+"="+v(String(w))]}var g=[];if(typeof w==="undefined"){return g}var R;if(a(c)){R=c}else{var O=Object.keys(w);R=u?O.sort(u):O}for(var S=0;S0?E+y:""}},824:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(852);const o=r(213);const s=r(747);const a=r(87);const c=r(622);const l=r(636);const u=r(311);const f=r(155);const p=r(353);const d=r(357);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const h=process.platform==="win32";const v="actions/tool-cache";let y=process.env["RUNNER_TEMP"]||"";let E=process.env["RUNNER_TOOL_CACHE"]||"";if(!y||!E){let e;if(h){e=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){e="/Users"}else{e="/home"}}if(!y){y=c.join(e,"actions","temp")}if(!E){E=c.join(e,"actions","cache")}}function downloadTool(e){return n(this,void 0,void 0,function*(){return new Promise((t,r)=>n(this,void 0,void 0,function*(){try{const a=new l.HttpClient(v,[],{allowRetries:true,maxRetries:3});const u=c.join(y,f());yield o.mkdirP(y);i.debug(`Downloading ${e}`);i.debug(`Downloading ${u}`);if(s.existsSync(u)){throw new Error(`Destination file path ${u} already exists`)}const p=yield a.get(e);if(p.message.statusCode!==200){const t=new HTTPError(p.message.statusCode);i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);throw t}const d=s.createWriteStream(u);d.on("open",()=>n(this,void 0,void 0,function*(){try{const n=p.message.pipe(d);n.on("close",()=>{i.debug("download complete");t(u)})}catch(t){i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);r(t)}}));d.on("error",e=>{d.end();r(e)})}catch(e){r(e)}}))})}t.downloadTool=downloadTool;function extract7z(e,t,r){return n(this,void 0,void 0,function*(){d.ok(h,"extract7z() not supported on current OS");d.ok(e,'parameter "file" is required');t=t||(yield _createExtractFolder(t));const n=process.cwd();process.chdir(t);if(r){try{const t=["x","-bb1","-bd","-sccUTF-8",e];const i={silent:true};yield p.exec(`"${r}"`,t,i)}finally{process.chdir(n)}}else{const r=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=`& '${r}' -Source '${i}' -Target '${s}'`;const l=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a];const u={silent:true};try{const e=yield o.which("powershell",true);yield p.exec(`"${e}"`,l,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));const n=yield o.which("tar",true);yield p.exec(`"${n}"`,[r,"-C",t,"-f",e]);return t})}t.extractTar=extractTar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));if(h){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield o.which("powershell");const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield p.exec(`"${s}"`,a)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield o.which("unzip");yield p.exec(`"${r}"`,[e],{cwd:t})})}function cacheDir(e,t,r,l){return n(this,void 0,void 0,function*(){r=u.clean(r)||r;l=l||a.arch();i.debug(`Caching tool ${t} ${r} ${l}`);i.debug(`source dir: ${e}`);if(!s.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,l);for(const t of s.readdirSync(e)){const r=c.join(e,t);yield o.cp(r,n,{recursive:true})}_completeToolPath(t,r,l);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,l,f){return n(this,void 0,void 0,function*(){l=u.clean(l)||l;f=f||a.arch();i.debug(`Caching tool ${r} ${l} ${f}`);i.debug(`source file: ${e}`);if(!s.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,l,f);const p=c.join(n,t);i.debug(`destination file ${p}`);yield o.cp(e,p);_completeToolPath(r,l,f);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||a.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=u.clean(t)||"";const o=c.join(E,e,t,r);i.debug(`checking cache: ${o}`);if(s.existsSync(o)&&s.existsSync(`${o}.complete`)){i.debug(`Found tool in cache ${e} ${t} ${r}`);n=o}else{i.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||a.arch();const n=c.join(E,e);if(s.existsSync(n)){const e=s.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=c.join(n,i,t||"");if(s.existsSync(e)&&s.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=c.join(y,f())}yield o.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=c.join(E,e,u.clean(t)||t,r||"");i.debug(`destination ${n}`);const s=`${n}.complete`;yield o.rmRF(n);yield o.rmRF(s);yield o.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=c.join(E,e,u.clean(t)||t,r||"");const o=`${n}.complete`;s.writeFileSync(o,"");i.debug("finished caching tool")}function _isExplicitVersion(e){const t=u.clean(e)||"";i.debug(`isExplicit: ${t}`);const r=u.valid(t)!=null;i.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";i.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(u.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=u.satisfies(i,t);if(o){r=i;break}}if(r){i.debug(`matched: ${r}`)}else{i.debug("match not found")}return r}},835:function(e){e.exports=require("url")},836:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(357);const s=r(747);const a=r(622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},849:function(e,t,r){"use strict";var n=r(631);var i=r(16);var o=r(605);var s=r(211);var a=r(614);var c=r(357);var l=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;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;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var o=toOptions(r,n,i);for(var s=0,a=t.requests.length;s=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}u("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode===200){c.equal(a.length,0);u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;t(s)}else{u("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);r.removeSocket(n)}}function onError(t){o.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t-1){g=g.split(",")}if(y.indexOf("[]=")>-1){g=o(g)?[g]:g}if(i.call(r,m)){r[m]=n.combine(r[m],g)}else{r[m]=g}}return r};var f=function(e,t,r){var n=t;for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(n)}else{o=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(a,10);if(!r.parseArrays&&a===""){o={0:n}}else if(!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=n}else{o[a]=n}}n=o}return n};var p=function parseQueryStringKeys(e,t,r){if(!e){return}var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var o=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var a=r.depth>0&&o.exec(n);var c=a?n.slice(0,a.index):n;var l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)){if(!r.allowPrototypes){return}}l.push(c)}var u=0;while(r.depth>0&&(a=s.exec(n))!==null&&u0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]1){var t=e.pop();var n=t.obj[t.prop];if(r(n)){var i=[];for(var o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){o+=i.charAt(s);continue}if(a<128){o=o+n[a];continue}if(a<2048){o=o+(n[192|a>>6]+n[128|a&63]);continue}if(a<55296||a>=57344){o=o+(n[224|a>>12]+n[128|a>>6&63]+n[128|a&63]);continue}s+=1;a=65536+((a&1023)<<10|i.charCodeAt(s)&1023);o+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|a&63]}return o};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;nn(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=e.message.headers["content-type"]||"";const r=t.match(/charset=([^;,\r\n]+)/i);return r&&r[1]?r[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},211:function(e){e.exports=require("https")},213:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const o=r(622);const s=r(669);const a=r(836);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield a.stat(e);if(l.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},311:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var l=0;function tok(e){c[e]=l++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var u="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var p="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;dn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],p);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],u);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var l=isX(o);var u=l||isX(s);var f=u||isX(a);var p=f;if(i==="="&&p){i=""}c=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&p){if(u){s=0}a=0;if(i===">"){i=">=";if(u){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(u){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(u){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,l,u,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(l)){a="<"+(+c+1)+".0.0"}else if(isX(u)){a="<"+c+"."+(+l+1)+".0"}else if(f){a="<="+c+"."+l+"."+u+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var l=0;l=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&o(e,p.semver)){return false}else if(p.operator===c&&s(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},353:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(416);function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const s=new i.ToolRunner(o,t,r);return s.exec()})}t.exec=exec},357:function(e){e.exports=require("assert")},377:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]-1){const e=n.substring(0,o);r(e);n=n.substring(o+i.EOL.length);o=n.indexOf(i.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(u){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(u){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||u&&this.toolPath.includes("\\"))){this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName();const a=s.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));const c="";if(a.stdout){a.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(a.stderr){a.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}a.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});a.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});a.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(r){t(r)}else{e(n)}})})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},417:function(e){e.exports=require("crypto")},450:function(e,t,r){"use strict";var n=String.prototype.replace;var i=/%20/g;var o=r(90);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},515:function(e){var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(87);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const r=this.properties[t];if(r){e+=`${t}=${escape(`${r||""}`)},`}}}}e+=i;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},587:function(e,t,r){e.exports=r(849)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},636:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(835);const o=r(605);const s=r(211);const a=r(201);let c;let l;var u;(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"})(u=t.HttpCodes||(t.HttpCodes={}));const f=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}e(r.toString(i))})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var y;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(y||(y={}));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||[];let i=process.env[y.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const a=l.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.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 l.readBody();s=this._prepareRequest(e,c,o);l=yield this.requestRaw(s,r);t--}if(p.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;let i=typeof t==="string";if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let s=(e,t)=>{if(!o){o=true;r(e,t)}};let a=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});a.on("socket",e=>{n=e});a.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});a.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){a.end()});t.pipe(a)}else{a.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!l){l=r(587)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?l.httpsOverHttps:l.httpsOverHttp}else{i=o?l.httpOverHttps:l.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[y.HTTPS_PROXY];let o=process.env[y.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=v*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},669:function(e){e.exports=require("util")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},765:function(e){e.exports=require("process")},776:function(e,t,r){"use strict";var n=r(90);var i=r(450);var o=Object.prototype.hasOwnProperty;var s={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var a=Array.isArray;var c=Array.prototype.push;var l=function(e,t){c.apply(e,a(t)?t:[t])};var u=Date.prototype.toISOString;var f=i["default"];var p={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:i.formatters[f],indices:false,serializeDate:function serializeDate(e){return u.call(e)},skipNulls:false,strictNullHandling:false};var d=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h=function stringify(e,t,r,i,o,s,c,u,f,h,v,y,E){var g=e;if(typeof c==="function"){g=c(t,g)}else if(g instanceof Date){g=h(g)}else if(r==="comma"&&a(g)){g=g.join(",")}if(g===null){if(i){return s&&!y?s(t,p.encoder,E,"key"):t}g=""}if(d(g)||n.isBuffer(g)){if(s){var m=y?t:s(t,p.encoder,E,"key");return[v(m)+"="+v(s(g,p.encoder,E,"value"))]}return[v(t)+"="+v(String(g))]}var w=[];if(typeof g==="undefined"){return w}var R;if(a(c)){R=c}else{var O=Object.keys(g);R=u?O.sort(u):O}for(var S=0;S0?E+y:""}},824:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(852);const o=r(213);const s=r(747);const a=r(87);const c=r(622);const l=r(636);const u=r(311);const f=r(155);const p=r(353);const d=r(357);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const h=process.platform==="win32";const v="actions/tool-cache";let y=process.env["RUNNER_TEMP"]||"";let E=process.env["RUNNER_TOOL_CACHE"]||"";if(!y||!E){let e;if(h){e=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){e="/Users"}else{e="/home"}}if(!y){y=c.join(e,"actions","temp")}if(!E){E=c.join(e,"actions","cache")}}function downloadTool(e){return n(this,void 0,void 0,function*(){return new Promise((t,r)=>n(this,void 0,void 0,function*(){try{const a=new l.HttpClient(v,[],{allowRetries:true,maxRetries:3});const u=c.join(y,f());yield o.mkdirP(y);i.debug(`Downloading ${e}`);i.debug(`Downloading ${u}`);if(s.existsSync(u)){throw new Error(`Destination file path ${u} already exists`)}const p=yield a.get(e);if(p.message.statusCode!==200){const t=new HTTPError(p.message.statusCode);i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);throw t}const d=s.createWriteStream(u);d.on("open",()=>n(this,void 0,void 0,function*(){try{const n=p.message.pipe(d);n.on("close",()=>{i.debug("download complete");t(u)})}catch(t){i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);r(t)}}));d.on("error",e=>{d.end();r(e)})}catch(e){r(e)}}))})}t.downloadTool=downloadTool;function extract7z(e,t,r){return n(this,void 0,void 0,function*(){d.ok(h,"extract7z() not supported on current OS");d.ok(e,'parameter "file" is required');t=t||(yield _createExtractFolder(t));const n=process.cwd();process.chdir(t);if(r){try{const t=["x","-bb1","-bd","-sccUTF-8",e];const i={silent:true};yield p.exec(`"${r}"`,t,i)}finally{process.chdir(n)}}else{const r=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=`& '${r}' -Source '${i}' -Target '${s}'`;const l=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a];const u={silent:true};try{const e=yield o.which("powershell",true);yield p.exec(`"${e}"`,l,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));const n=yield o.which("tar",true);yield p.exec(`"${n}"`,[r,"-C",t,"-f",e]);return t})}t.extractTar=extractTar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));if(h){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield o.which("powershell");const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield p.exec(`"${s}"`,a)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield o.which("unzip");yield p.exec(`"${r}"`,[e],{cwd:t})})}function cacheDir(e,t,r,l){return n(this,void 0,void 0,function*(){r=u.clean(r)||r;l=l||a.arch();i.debug(`Caching tool ${t} ${r} ${l}`);i.debug(`source dir: ${e}`);if(!s.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,l);for(const t of s.readdirSync(e)){const r=c.join(e,t);yield o.cp(r,n,{recursive:true})}_completeToolPath(t,r,l);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,l,f){return n(this,void 0,void 0,function*(){l=u.clean(l)||l;f=f||a.arch();i.debug(`Caching tool ${r} ${l} ${f}`);i.debug(`source file: ${e}`);if(!s.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,l,f);const p=c.join(n,t);i.debug(`destination file ${p}`);yield o.cp(e,p);_completeToolPath(r,l,f);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||a.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=u.clean(t)||"";const o=c.join(E,e,t,r);i.debug(`checking cache: ${o}`);if(s.existsSync(o)&&s.existsSync(`${o}.complete`)){i.debug(`Found tool in cache ${e} ${t} ${r}`);n=o}else{i.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||a.arch();const n=c.join(E,e);if(s.existsSync(n)){const e=s.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=c.join(n,i,t||"");if(s.existsSync(e)&&s.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=c.join(y,f())}yield o.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=c.join(E,e,u.clean(t)||t,r||"");i.debug(`destination ${n}`);const s=`${n}.complete`;yield o.rmRF(n);yield o.rmRF(s);yield o.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=c.join(E,e,u.clean(t)||t,r||"");const o=`${n}.complete`;s.writeFileSync(o,"");i.debug("finished caching tool")}function _isExplicitVersion(e){const t=u.clean(e)||"";i.debug(`isExplicit: ${t}`);const r=u.valid(t)!=null;i.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";i.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(u.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=u.satisfies(i,t);if(o){r=i;break}}if(r){i.debug(`matched: ${r}`)}else{i.debug("match not found")}return r}},835:function(e){e.exports=require("url")},836:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(357);const s=r(747);const a=r(622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},837:function(e,t){"use strict";t.__esModule=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var s;do{s=n.exec(i);if(s!==null){o.push(firstString(s[1],s[6],s[0]))}}while(s!==null);return o}t["default"]=parseArgsStringToArgv;t.parseArgsStringToArgv=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}u("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode===200){c.equal(a.length,0);u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;t(s)}else{u("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);r.removeSocket(n)}}function onError(t){o.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t-1){w=w.split(",")}if(y.indexOf("[]=")>-1){w=o(w)?[w]:w}if(i.call(r,m)){r[m]=n.combine(r[m],w)}else{r[m]=w}}return r};var f=function(e,t,r){var n=t;for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(n)}else{o=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(a,10);if(!r.parseArrays&&a===""){o={0:n}}else if(!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=n}else{o[a]=n}}n=o}return n};var p=function parseQueryStringKeys(e,t,r){if(!e){return}var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var o=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var a=r.depth>0&&o.exec(n);var c=a?n.slice(0,a.index):n;var l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)){if(!r.allowPrototypes){return}}l.push(c)}var u=0;while(r.depth>0&&(a=s.exec(n))!==null&&u{try{const e=n.getInput("cli-command",{required:true});const t=n.getInput("cli-subcommand",{required:true});const r=s()(n.getInput("cli-options",{required:false}).trim());const i=s()(n.getInput("cli-parameters",{required:false}).trim());const o=n.getInput("aws-region",{required:true});console.log(e);console.log(t);console.log(...r);console.log(...i);console.log(o);const a=await c().getOrInstall();const l=[...r,e,t,...i,"--region",o];console.log(l);const u=await a.callStdout(l);console.log(u);n.setOutput("cli-output",u)}catch(e){n.setFailed(e.message)}};l();t["default"]=l}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){e.n=function(t){var r=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(r,"a",r);return r}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,r,n){if(!t.call(e,r)){Object.defineProperty(e,r,{enumerable:true,get:n})}}}()}); \ No newline at end of file diff --git a/packages/awscli/index.ts b/packages/awscli/index.ts index d7d8ffa..a0e58b4 100644 --- a/packages/awscli/index.ts +++ b/packages/awscli/index.ts @@ -1,92 +1,35 @@ -import * as process from 'process'; - -import * as io from '@actions/io'; import * as core from '@actions/core'; -import * as exec from '@actions/exec'; -import * as tc from '@actions/tool-cache'; - -export default class AwsCli { - private readonly path: string; - - private constructor(exePath: string) { - this.path = exePath; - } - - public static async getOrInstall(): Promise { - try { - return await AwsCli.get(); - } catch (error) { - core.debug(`Unable to find "awscli" executable, installing it now. Reason: ${error}`); - return await AwsCli.install(); - } - } - - // Will throw an error if `aws` is not installed. - public static async get(): Promise { - const exePath = await io.which('aws', true); - - return new AwsCli(exePath); - } - - private static async install(): Promise { - switch (process.platform) { - case 'darwin': - case 'linux': { - const AwsCliWheelPath = await tc.downloadTool( - 'https://files.pythonhosted.org/packages/99/55/6c020e22f81b2b76a1295b07ac92aa4f9aaf44dcb9cead89a6a24a3d828c/awscli-1.16.309-py2.py3-none-any.whl', - ); - await exec.exec('pip', ['install', '--use-wheel', '--no-index', `--find-links=${AwsCliWheelPath}`, 'awscli']); - break; - } - - case 'win32': { - const AwsCliMsiPath = await tc.downloadTool('https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi'); - await exec.exec('msiexec.exe', ['/I', AwsCliMsiPath]); - break; - } - - default: - throw new Error(`Unknown platform ${process.platform}, can't install awscli`); - } - - // Assuming it is in the $PATH already - return new AwsCli('aws'); - } - - public async version(): Promise { - const stdout = await this.callStdout(['--version']); - - return stdout.split(' ')[1]; - } - - // awscli which `program` - public async which(program: string): Promise { - const stdout = await this.callStdout(['which', program]); - - if (stdout) { - return stdout; - } else { - throw new Error(`Unable to find the ${program}`); - } - } - - public async call(args: string[], options?: {}): Promise { - return await exec.exec(this.path, args, options); - } - - // Call the `awscli` and return stdout - async callStdout(args: string[], options?: {}): Promise { - let stdout = ''; - const resOptions = Object.assign({}, options, { - listeners: { - stdout: (buffer: Buffer) => { - stdout += buffer.toString(); - }, - }, - }); - - await this.call(args, resOptions); - - return stdout; - } -} +import stringArgv from 'string-argv'; + +import AwsCli from '@aws-github-actions/awscli-core'; + +const run = async (): Promise => { + try { + // Inputs: + const cliCommand = core.getInput('cli-command', { required: true }); + const cliSubcommand = core.getInput('cli-subcommand', { required: true }); + const cliOptions = stringArgv(core.getInput('cli-options', { required: false }).trim()); + const cliParameters = stringArgv(core.getInput('cli-parameters', { required: false }).trim()); + const awsRegion = core.getInput('aws-region', { required: true }); + + console.log(cliCommand); + console.log(cliSubcommand); + console.log(...cliOptions); + console.log(...cliParameters); + console.log(awsRegion); + + const Aws = await AwsCli.getOrInstall(); + // aws [options] [parameters] + const params = [...cliOptions, cliCommand, cliSubcommand, ...cliParameters, '--region', awsRegion]; + console.log(params); + const result = await Aws.callStdout(params); + console.log(result); + core.setOutput('cli-output', result); + } catch (error) { + core.setFailed(error.message); + } +}; + +run(); + +export default run; diff --git a/packages/awscli/package.json b/packages/awscli/package.json index f21a1b5..04b055c 100644 --- a/packages/awscli/package.json +++ b/packages/awscli/package.json @@ -2,16 +2,13 @@ "name": "@aws-github-actions/awscli", "version": "0.1.0", "description": "Wrapper for awscli", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "index.ts", "dependencies": { - "@actions/exec": "^1.0.2", - "@actions/io": "^1.0.1", - "@actions/tool-cache": "^1.1.2" + "@aws-github-actions/awscli-core": "v0.1.0", + "string-argv": "^0.3.1" }, "devDependencies": {}, "scripts": { - "build": "tsc ./index.ts --outDir lib", "compile": "node ../../node_modules/@zeit/ncc/dist/ncc/cli.js build -m", "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/packages/cloudfront_invalidate/README.md b/packages/cloudfront_invalidate/README.md index c710487..d606011 100644 --- a/packages/cloudfront_invalidate/README.md +++ b/packages/cloudfront_invalidate/README.md @@ -5,7 +5,7 @@ CloudFront Invalidate

- CloudFront invalidate + CloudFront invalidate

The `cloudfront_invalidate` GitHub action creates an invalidation request for an AWS CloudFront distribution. This is typically performed after new content is pushed to the CloudFront origin (S3, ALB, etc.) and you wish to have that new content updated in the CDN caches right away. diff --git a/packages/cloudfront_invalidate/action.yml b/packages/cloudfront_invalidate/action.yml index ae6ae6c..93c3627 100644 --- a/packages/cloudfront_invalidate/action.yml +++ b/packages/cloudfront_invalidate/action.yml @@ -2,17 +2,21 @@ name: 'AWS CloudFront cache invalidation GitHub action' description: 'Initiate CloudFront cache invalidation' branding: icon: 'refresh-cw' - color: 'orange' + color: 'red' inputs: distribution-id: description: 'CloudFront distribution ID' required: true caller-reference: - description: 'Unique value used to identify invalidation request and prevent CloudFront from resubmitting identical request' + description: > + Unique value used to identify invalidation request and prevent + CloudFront from resubmitting identical request required: false default: ${{ github.sha }} paths: - description: 'A list of the paths to invalidate. List cannot be a native YAML array; use either mutline string or comma delimited' + description: > + A list of the paths to invalidate. List cannot be a native YAML array; + use either mutline string or comma delimited required: false default: '/*' outputs: diff --git a/packages/cloudfront_invalidate/dist/index.js b/packages/cloudfront_invalidate/dist/index.js index 4a185d7..3bc660c 100644 --- a/packages/cloudfront_invalidate/dist/index.js +++ b/packages/cloudfront_invalidate/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var r=i[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(903)}t(__webpack_require__);return startup()}({6:function(e){function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,i,r){if(typeof e==="function"){r=i;i=t;t=e;e=null}var n=this;var o=n.states[n.currentState];o.fn.call(i||n,r,function(r){if(r){if(o.fail)n.currentState=o.fail;else return t?t.call(i,r):null}else{if(o.accept)n.currentState=o.accept;else return t?t.call(i):null}if(n.currentState===e){return t?t.call(i,r):null}n.runTo(e,t,i,r)})};AcceptorStateMachine.prototype.addState=function addState(e,t,i,r){if(typeof t==="function"){r=t;t=null;i=null}else if(typeof i==="function"){r=i;i=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:i,fn:r};return this};e.exports=AcceptorStateMachine},23:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V2=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=r.util.date.getDate();var i=this.request;i.params.Timestamp=r.util.date.iso8601(t);i.params.SignatureVersion="2";i.params.SignatureMethod="HmacSHA256";i.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){i.params.SecurityToken=e.sessionToken}delete i.params.Signature;i.params.Signature=this.signature(e);i.body=r.util.queryParamsToString(i.params);i.headers["Content-Length"]=i.body.length},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(r.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=r.Signers.V2},34:function(e,t,i){var r=i(216);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var i=[];for(var n=0;n=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t/g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},109:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},111:function(e,t,i){(function(){"use strict";var e,r,n,o,a,s={}.hasOwnProperty;e=i(764);r=i(816).defaults;o=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!s.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!s.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,l;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,r){var c,l,d,p,m,f;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(p in r){if(!s.call(r,p))continue;l=r[p];for(m in l){d=l[m];t=u(t.ele(m),d).up()}}}else{for(m in r){if(!s.call(r,m))continue;l=r[m];if(m===i){if(typeof l==="object"){for(c in l){f=l[c];t=t.att(c,f)}}}else if(m===n){if(e.options.cdata&&o(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(p in l){if(!s.call(l,p))continue;d=l[p];if(typeof d==="string"){if(e.options.cdata&&o(d)){t=t.ele(m).raw(a(d)).up()}else{t=t.ele(m,d).up()}}else{t=u(t.ele(m),d).up()}}}else if(typeof l==="object"){t=u(t.ele(m),l).up()}else{if(typeof l==="string"&&e.options.cdata&&o(l)){t=t.ele(m).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(m,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},126:function(e,t,i){var r=i(425).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},129:function(e){e.exports=require("child_process")},134:function(e,t,i){var r=i(216);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},138:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},144:function(e,t,i){var r=i(216);var n=i(714);var o=i(339).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.config.region&&!e.service.isGlobalEndpoint){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,a=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var a=i.request.service;if(o){var s=Date.parse(o);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var a=(o-t.startTime.getTime())/1e3;var s=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var d=i(669).inspect(c,true,null);var p="";if(s)p+="";p+="[AWS "+t.service.serviceIdentifier+" "+u;p+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)p+="";p+=" "+r.util.string.lowerFirst(t.operation);p+="("+d+")";if(s)p+="";return p}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(278);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(80);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(230);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(413);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(675);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},148:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},170:function(e,t,i){(function(){var t,r,n,o,a,s,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;s=i(73),a=s.isObject,o=s.isFunction;n=i(290);t=i(297);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;is)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=f;u=h;a=p;f+=122192928e5;var g=((f&268435455)*1e4+h)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var v=f/4294967296*1e4&268435455;l[c++]=v>>>8&255;l[c++]=v&255;l[c++]=v>>>24&15|16;l[c++]=v>>>16&255;l[c++]=p>>>8|128;l[c++]=p&255;for(var b=0;b<6;++b){l[c+b]=d[b]}return t?t:n(l)}e.exports=v1},215:function(e){function eventMessageChunker(e){var t=[];var i=0;while(i=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var a=0;var s;var u;var c=this;var l=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},l);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=s;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=s;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=a(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new s(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i0){try{var n=JSON.parse(i.body.toString());if(n.__type||n.code){t.code=(n.__type||n.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},286:function(e,t,i){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=f.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,a=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,s)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var h in e.STATE){e.STATE[e.STATE[h]]=h}f=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==f.BEGIN&&e.state!==f.BEGIN_WHITESPACE&&e.state!==f.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==s){strictFail(e,"xml: prefix must be bound to "+s+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,a=e.attribList.length;o";e.tagName="";e.state=f.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=f.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var u in a.ns){s[u]=a.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==c.ns){Object.keys(a.ns).forEach(function(t){var i=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=f.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=f.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=f.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=f.TEXT}else if(isQuote(r)){t.state=f.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case f.SGML_DECL_QUOTED:if(r===t.q){t.state=f.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case f.DOCTYPE:if(r===">"){t.state=f.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=f.DOCTYPE_DTD}else if(isQuote(r)){t.state=f.DOCTYPE_QUOTED;t.q=r}}continue;case f.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=f.DOCTYPE}continue;case f.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=f.DOCTYPE}else if(isQuote(r)){t.state=f.DOCTYPE_DTD_QUOTED;t.q=r}continue;case f.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=f.DOCTYPE_DTD;t.q=""}continue;case f.COMMENT:if(r==="-"){t.state=f.COMMENT_ENDING}else{t.comment+=r}continue;case f.COMMENT_ENDING:if(r==="-"){t.state=f.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=f.COMMENT}continue;case f.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=f.COMMENT}else{t.state=f.TEXT}continue;case f.CDATA:if(r==="]"){t.state=f.CDATA_ENDING}else{t.cdata+=r}continue;case f.CDATA_ENDING:if(r==="]"){t.state=f.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=f.CDATA}continue;case f.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=f.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=f.CDATA}continue;case f.PROC_INST:if(r==="?"){t.state=f.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=f.PROC_INST_BODY}else{t.procInstName+=r}continue;case f.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=f.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case f.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=f.TEXT}else{t.procInstBody+="?"+r;t.state=f.PROC_INST_BODY}continue;case f.OPEN_TAG:if(isMatch(d,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=f.ATTRIB}}continue;case f.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=f.ATTRIB}continue;case f.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(l,r)){t.attribName=r;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME:if(r==="="){t.state=f.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=f.ATTRIB_NAME_SAW_WHITE}else if(isMatch(d,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=f.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(l,r)){t.attribName=r;t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=f.ATTRIB}}continue;case f.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=f.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=f.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case f.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=f.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=f.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(l,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=f.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=f.ATTRIB}continue;case f.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(l,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(d,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case f.TEXT_ENTITY:u=f.TEXT;c="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:u=f.ATTRIB_VALUE_QUOTED;c="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:u=f.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?m:p,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var a=-1;var s=arguments.length;if(!s){return""}var u="";while(++a1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(a+1===s||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?undefined:t)},290:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h={}.hasOwnProperty;f=i(73),m=f.isObject,p=f.isFunction,d=f.isEmpty;a=null;t=null;r=null;n=null;o=null;c=null;l=null;u=null;e.exports=s=function(){function XMLNode(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.children=[];if(!a){a=i(170);t=i(138);r=i(109);n=i(676);o=i(856);c=i(426);l=i(626);u=i(718)}}XMLNode.prototype.element=function(e,t,i){var r,n,o,a,s,u,c,l,f,y;u=null;if(t==null){t={}}t=t.valueOf();if(!m(t)){f=[t,i],i=f[0],t=f[1]}if(e!=null){e=e.valueOf()}if(Array.isArray(e)){for(o=0,c=e.length;o0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},306:function(e,t,i){var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(216).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var a=i(r);var s=a+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});s=a+"="+u.sort().join("&"+a+"=")}else if(o!==undefined&&o!==null){s=a+"="+i(o)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var a=n.arraySliceFn(t);var s=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));o.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!s){t=new n.Buffer(new Uint8Array(t))}var d=o.update(t).digest(i);if(r)r(null,d);return d}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){s++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var a=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&a.retryable)a.retryAfter=o;u(a)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(945).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},311:function(e,t,i){var r=i(306).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},337:function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},339:function(e,t,i){var r=i(216);var n=i(306);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var a=o?o.input:undefined;var s=marshallCustomIdentifiers(e,a);var u=getCacheKey(e);if(Object.keys(s).length>0){u=n.update(u,s);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var s=o.operations?o.operations[e.operation]:undefined;var u=s?s.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(s)l.operation=s.name}var d=r.EndpointCache.getKeyString(l);var p=r.endpointCache.get(d);if(p&&p.length===1&&p[0].Address===""){if(!a[d])a[d]=[];a[d].push({request:e,callback:t});return}else if(p&&p.length>0){e.httpRequest.updateEndpoint(p[0].Address);t()}else{var m=i.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:c});m.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(m);r.endpointCache.put(d,[{Address:"",CachePeriodInMinutes:60}]);m.send(function(i,o){if(i){var s={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=n.error(i,s);r.endpointCache.remove(l);if(a[d]){var u=a[d];n.arrayEach(u,function(e){e.request.response.error=n.error(i,s);e.callback()});delete a[d]}}else if(o){r.endpointCache.put(d,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(a[d]){var u=a[d];n.arrayEach(u,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete a[d]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var a=o.service.api.operations||{};var s=a[o.operation]?a[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,s);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(a[o.operation])c.operation=a[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryApplicable(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(n.isBrowser())return false;for(var i=0;i0){u[e.options.childkey]=l}l=u}else if(f){f[e.options.childkey]=f[e.options.childkey]||[];d={};for(s in l){if(!p.call(l,s))continue;d[s]=l[s]}f[e.options.childkey].push(d);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(f,c,l)}else{if(e.options.explicitRoot){m=l;l={};l[c]=m}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,a;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}a=new t.Parser(o);return a.parseString(e,n)}}).call(this)},354:function(e,t,i){var r=i(216);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var s=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},358:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLDTDAttList,e);function XMLDTDAttList(e,t,i,r,n,o){XMLDTDAttList.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(i==null){throw new Error("Missing DTD attribute name")}if(!r){throw new Error("Missing DTD attribute type")}if(!n){throw new Error("Missing DTD attribute default")}if(n.indexOf("#")!==0){n="#"+n}if(!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT")}if(o&&!n.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT")}this.elementName=this.stringify.eleName(t);this.attributeName=this.stringify.attName(i);this.attributeType=this.stringify.dtdAttType(r);this.defaultValue=this.stringify.dtdAttDefault(o);this.defaultValueType=n}XMLDTDAttList.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)};return XMLDTDAttList}(r)}).call(this)},362:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},363:function(e,t,i){var r=i(306);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var a=i.flattened?".":".entry.";var s=a+o+++".";var u=s+(i.key.name||"key");var c=s+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(i.api.protocol==="ec2"){a=a+""}else if(i.flattened){if(o.name){var s=e.split(".");s.pop();s.push(ucfirst(o));e=s.join(".")}}else{a="."+(o.name?o.name:"member")+a}serializeMember(e+a,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},374:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},381:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},398:function(e,t,i){var r=i(216);var n=i(477);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},399:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",output_token:"DistributionList.NextMarker",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",output_token:"InvalidationList.NextMarker",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",output_token:"StreamingDistributionList.NextMarker",result_key:"StreamingDistributionList.Items"}}}},413:function(e,t,i){var r=i(216);var n=i(306);var o=i(80);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var a=t.payload;if(a){var s=t.members[a];o=o[a];if(o===undefined)return;if(s.type==="structure"){var u=s.name;e.httpRequest.body=i.toXML(o,s,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var a=e.httpResponse.body;var s=i.service.api.operations[i.operation];var u=s.output;var c=s.hasEventOutput;var l=u.payload;if(l){var d=u.members[l];if(d.isEventStream){t=new r.XML.Parser;e.data[l]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,d)}else if(d.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),d)}else if(d.type==="binary"||d.isStreaming){e.data[l]=a}else{e.data[l]=d.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var p=t.parse(a.toString(),u);n.update(e.data,p)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},416:function(e,t,i){var r=i(216);i(881);r.util.update(r.CloudFront.prototype,{setupRequestListeners:function setupRequestListeners(e){e.addListener("extractData",r.util.hoistPayloadMember)}})},417:function(e){e.exports=require("crypto")},418:function(e,t,i){var r=i(216);var n=i(477);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},425:function(e){function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},426:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},428:function(e,t,i){var r=i(216);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},435:function(e,t,i){var r=i(216);var n=i(477);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},438:function(e,t,i){var r=i(774);var n=i(86);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[o+s]=a[s]}}return t||n(a)}e.exports=v4},441:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},442:function(e,t,i){var r=i(216);i(632);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,a){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];i.request(n+a,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},457:function(e,t,i){var r=i(216);i(616);i(821);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:false,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},459:function(e,t,i){var r=i(216);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var a=r.util.stream.Readable;i(632);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var a=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var l=u.protocol==="https:";var d=l?i(211):i(605);var p={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){p.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(p,t);delete p.proxy;delete p.timeout;var m=d.request(p,function(e){if(m.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=m;m.didCallback=false;if(t.connectTimeout){var f;m.on("socket",function(e){if(e.connecting){f=setTimeout(function connectTimeout(){if(m.didCallback)return;m.didCallback=true;m.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(f);f=null})}})}m.setTimeout(t.timeout||0,function(){if(m.didCallback)return;m.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));m.abort()});m.on("error",function(){if(f){clearTimeout(f);f=null}if(m.didCallback)return;m.didCallback=true;o.apply(m,arguments)});var h=e.headers.Expect||e.headers.expect;if(h==="100-continue"){m.on("continue",function(){a.writeBody(m,e)})}else{this.writeBody(m,e)}return m},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(211):i(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},465:function(e,t,i){var r=i(216);var n=r.util.inherit;i(374);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},474:function(e){e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},477:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(979);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(381);e.paginators=i(730).pagination;return e},enumerable:true,configurable:true});e.exports=r.STS},478:function(e,t,i){var r=i(306);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var a=translate(o,r);if(a!==undefined)i[t]=a}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},481:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(814);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(844);e.paginators=i(695).pagination;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},483:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h,y,g,v,b,I,C,S={}.hasOwnProperty;C=i(73),b=C.isObject,v=C.isFunction,I=C.isPlainObject;p=i(170);r=i(138);n=i(109);f=i(426);g=i(626);m=i(718);c=i(676);l=i(856);o=i(358);s=i(834);a=i(206);u=i(705);t=i(297);y=i(882);h=i(799);e.exports=d=function(){function XMLDocumentCB(e,t,i){var r;e||(e={});if(!e.writer){e.writer=new h(e)}else if(I(e.writer)){r=e.writer;e.writer=new h(r)}this.options=e;this.writer=e.writer;this.stringify=new y(e);this.onDataCallback=t||function(){};this.onEndCallback=i||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,i){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!b(t)){r=[t,i],i=r[0],t=r[1]}this.currentNode=new p(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(i!=null){this.text(i)}return this};XMLDocumentCB.prototype.element=function(e,t,i){if(this.currentNode&&this.currentNode instanceof l){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,i)}};XMLDocumentCB.prototype.attribute=function(e,i){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(b(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(v(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.currentNode.attributes[e]=new t(this,e,i)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new g(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new n(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new f(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var i,r,n,o,a;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(i=0,o=e.length;i=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof p){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},491:function(e,t,i){var r=i(306);var n=i(522).XmlNode;var o=i(126).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var a=t[r];var s=o.name;if(a!==undefined&&a!==null){if(o.isXmlAttribute){e.addAttribute(s,a)}else if(o.flattened){serialize(e,a,o)}else{var u=new n(s);e.addChildNode(u);applyNamespaces(u,o);serialize(u,a,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var a=i.value.name||"value";r.each(t,function(t,r){var s=new n(i.flattened?i.name:"entry");e.addChildNode(s);var u=new n(o);var c=new n(a);s.addChildNode(u);s.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},494:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},503:function(e,t,i){var r=i(216);var n=i(129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var a=r.util.date.getDate();var s=new Date(o.Expiration);if(s":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},534:function(e,t,i){(function(){"use strict";var e,r,n,o,a=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;r=i(816);e=i(111);n=i(353);o=i(441);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){a(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},538:function(e,t,i){var r=i(264);var n=i(306);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var a=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+a)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},540:function(e,t,i){var r=i(216);i(442);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var a=new Date(n.Expiration);if(a0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const i=this.properties[t];if(i){e+=`${t}=${escape(`${i||""}`)},`}}}}e+=n;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},568:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(756);var n=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=n}this.maxSize=e;this.cache=new r.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=a.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},602:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",output_token:"DistributionList.NextMarker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",output_token:"InvalidationList.NextMarker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",output_token:"StreamingDistributionList.NextMarker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",result_key:"StreamingDistributionList.Items"}}}},603:function(e){(function(){var t,i={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,n,o,a,s,u,c,l;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(n=e.indent)!=null?n:" ";this.newline=(o=e.newline)!=null?o:"\n";this.offset=(a=e.offset)!=null?a:0;this.dontprettytextnodes=(s=e.dontprettytextnodes)!=null?s:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(u=e.spacebeforeslash)!=null?u:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;c=e.writer||{};for(t in c){if(!i.call(c,t))continue;l=c[t];this[t]=l}}XMLWriterBase.prototype.set=function(e){var t,r,n;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!i.call(r,t))continue;n=r[t];this[t]=n}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},616:function(e,t,i){var r=i(216);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},620:function(e,t,i){var r=i(306);var n=i(216);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},622:function(e){e.exports=require("path")},624:function(e,t,i){var r=i(216);var n=i(6);var o=r.util.inherit;var a=r.util.domain;var s=i(766);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(a&&i.domain instanceof a.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var s=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint)s="us-east-1";this.domain=a&&a.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,s);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var a=o.resultKey;if(Array.isArray(a))a=a[0];var u=s.search(n,a);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,a){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){s=true;var c=0}var l=function checkContentLengthAndEmit(){if(s&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var d=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var p=new e.PassThrough;p._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};p.on("end",l);i.on("error",function(e){s=false;d.unpipe(p);p.emit("end");p.end()});d.pipe(p).pipe(i,{end:false})}else{d.pipe(i)}}else{if(s){d.on("data",function(e){if(e&&e.length){c+=e.length}})}d.on("data",function(e){i.emit("data",e)});d.on("end",l)}d.on("error",function(e){s=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},626:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},632:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/"}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},644:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;sa){delete n[o.shift()]}}return h},emptyCache:function emptyCache(){n={};o=[]}}},663:function(e,t,i){var r=i(216),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+l+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},669:function(e){e.exports=require("util")},673:function(e,t,i){var r=i(306);var n=i(871);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase()-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var a=n||null;function callNextListener(n){if(n){a=r.util.error(a||new Error,n);if(o._haltHandlersOnError){return i.call(o,a)}}o.callListeners(e,t,i,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(o,t.concat([callNextListener]));return}else{try{s.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},718:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,i){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(i){this.value=this.stringify.insValue(i)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},719:function(e,t,i){var r=i(306);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(417);r.Buffer=i(293).Buffer;r.domain=i(229);r.stream=i(794);r.url=i(835);r.querystring=i(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(99).createEventStream:i(273).createEventStream;r.realClock=i(474);r.clientSideMonitoring={Publisher:i(579).Publisher,configProvider:i(428)};r.iniLoader=i(808).iniLoader;var n;e.exports=n=i(216);i(616);i(821);i(74);i(418);i(435);i(861);i(398);i(503);n.XML.Parser=i(722);i(459);i(953);i(36);i(540);i(663);i(266);i(34);i(134);i(46);i(503);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var a=o[e.AWS_PROFILE||n.util.defaultProfile];t=a&&a.region}}return t}});n.config=new n.Config},721:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cloudfront"]={};r.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26"]);i(416);Object.defineProperty(o.services["cloudfront"],"2016-11-25",{get:function get(){var e=i(54);e.paginators=i(602).pagination;e.waiters=i(244).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-03-25",{get:function get(){var e=i(969);e.paginators=i(225).pagination;e.waiters=i(494).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-10-30",{get:function get(){var e=i(900);e.paginators=i(271).pagination;e.waiters=i(698).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-06-18",{get:function get(){var e=i(805);e.paginators=i(796).pagination;e.waiters=i(362).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-11-05",{get:function get(){var e=i(998);e.paginators=i(893).pagination;e.waiters=i(148).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2019-03-26",{get:function get(){var e=i(891);e.paginators=i(399).pagination;e.waiters=i(836).waiters;return e},enumerable:true,configurable:true});e.exports=r.CloudFront},722:function(e,t,i){var r=i(216);var n=r.util;var o=r.Model.Shape;var a=i(534);var s={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new a.Parser(s);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(t,r){var n=r.name;if(Object.prototype.hasOwnProperty.call(e,n)&&Array.isArray(e[n])){var o=e[n];if(!r.flattened)o=o[0];i[t]=parseXml(o,r)}else if(r.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,n)){i[t]=parseScalar(e.$[n],r)}else if(r.type==="list"){i[t]=r.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var a=t.flattened?e:e.entry;if(Array.isArray(a)){n.arrayEach(a,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(a,{member:{}})}else{n[o]=parseXml(a[0],{})}}return n}e.exports=NodeXmlParser},730:function(e){e.exports={pagination:{}}},747:function(e){e.exports=require("fs")},748:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var i=t.config.acceptors;var r=false;var n="retry";i.forEach(function(i){if(!r){var o=t.matchers[i.matcher];if(o&&o(e,i.expected,i.argument)){r=true;n=i.state}}});if(!r&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}r.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}return o.strictDeepEqual(r,t)},pathAll:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}if(!Array.isArray(r))r=[r];var n=r.length;if(!n)return false;for(var a=0;a":true,"=":true,"!":true};var z={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:P,value:">=",start:t}}else{return{type:L,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:D,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var G={};G[p]=0;G[m]=0;G[f]=0;G[h]=0;G[y]=0;G[g]=0;G[b]=0;G[I]=0;G[C]=0;G[S]=0;G[E]=1;G[T]=2;G[N]=3;G[D]=5;G[L]=5;G[w]=5;G[P]=5;G[q]=5;G[x]=5;G[M]=9;G[A]=20;G[F]=21;G[R]=40;G[_]=45;G[O]=50;G[k]=55;G[U]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==p){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:p,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===k){this._match(k);return this._parseMultiselectList()}else if(t===O){this._match(O);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(G[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===k){t=this.expression(e)}else if(this._lookahead(0)===F){t=this.expression(e)}else if(this._lookahead(0)===R){this._match(R);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==h){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===h){throw new Error("Unexpected token Rbracket")}}}this._match(h);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[m,f];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(v);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,a,s,u,c,l,d;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(d=1;d0){for(d=h;dy;d+=g){n.push(t[d])}}return n;case"Projection":var v=this.visit(e.children[0],t);if(!isArray(v)){return null}l=[];for(d=0;da;break;case P:n=o>=a;break;case w:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,a]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[l,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[d,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(ia){a=u;s=r[c]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var a=Infinity;var s;var u;for(var c=0;c"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,l,p;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));p=e.children;for(c=0,l=p.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,h;i||(i=0);h=this.space(i);this.stream.write(h+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);m=e.children;for(a=0,s=m.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(h)}).call(this)},774:function(e,t,i){var r=i(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},794:function(e){e.exports=require("stream")},796:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",output_token:"DistributionList.NextMarker",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",output_token:"InvalidationList.NextMarker",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",output_token:"StreamingDistributionList.NextMarker",result_key:"StreamingDistributionList.Items"}}}},798:function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},799:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h,y=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(676);c=i(856);t=i(138);r=i(109);l=i(170);p=i(426);f=i(626);d=i(718);n=i(358);o=i(206);a=i(834);s=i(705);h=i(603);e.exports=m=function(e){y(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,a;this.textispresent=false;o="";a=e.children;for(i=0,n=a.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,l,p,m;i||(i=0);p=this.space(i);p+="0){p+=" [";p+=this.newline;m=e.children;for(c=0,l=m.length;c";p+=this.newline;return p};XMLStringWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,h,y,v,b,I,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(i);h="";h+=I+"<"+e.name;y=e.attributes;for(m in y){if(!g.call(y,m))continue;n=y[m];h+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){h+=">"+this.newline}else{h+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){h+=">";h+=e.children[0].value;h+=""+this.newline}else{if(this.dontprettytextnodes){v=e.children;for(a=0,u=v.length;a"+this.newline;b=e.children;for(s=0,c=b.length;s"+this.newline}return h};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(h)}).call(this)},805:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2018-06-18",endpointPrefix:"cloudfront",globalEndpoint:"cloudfront.amazonaws.com",protocol:"rest-xml",serviceAbbreviation:"CloudFront",serviceFullName:"Amazon CloudFront",serviceId:"CloudFront",signatureVersion:"v4",uid:"cloudfront-2018-06-18"},operations:{CreateCloudFrontOriginAccessIdentity:{http:{requestUri:"/2018-06-18/origin-access-identity/cloudfront",responseCode:201},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},CreateDistribution:{http:{requestUri:"/2018-06-18/distribution",responseCode:201},input:{type:"structure",required:["DistributionConfig"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},CreateDistributionWithTags:{http:{requestUri:"/2018-06-18/distribution?WithTags",responseCode:201},input:{type:"structure",required:["DistributionConfigWithTags"],members:{DistributionConfigWithTags:{locationName:"DistributionConfigWithTags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",required:["DistributionConfig","Tags"],members:{DistributionConfig:{shape:"S7"},Tags:{shape:"S22"}}}},payload:"DistributionConfigWithTags"},output:{type:"structure",members:{Distribution:{shape:"S1t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},CreateFieldLevelEncryptionConfig:{http:{requestUri:"/2018-06-18/field-level-encryption",responseCode:201},input:{type:"structure",required:["FieldLevelEncryptionConfig"],members:{FieldLevelEncryptionConfig:{shape:"S29",locationName:"FieldLevelEncryptionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"FieldLevelEncryptionConfig"},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},CreateFieldLevelEncryptionProfile:{http:{requestUri:"/2018-06-18/field-level-encryption-profile",responseCode:201},input:{type:"structure",required:["FieldLevelEncryptionProfileConfig"],members:{FieldLevelEncryptionProfileConfig:{shape:"S2m",locationName:"FieldLevelEncryptionProfileConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"FieldLevelEncryptionProfileConfig"},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},CreateInvalidation:{http:{requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation",responseCode:201},input:{type:"structure",required:["DistributionId","InvalidationBatch"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},InvalidationBatch:{shape:"S2v",locationName:"InvalidationBatch",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"InvalidationBatch"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"},Invalidation:{shape:"S2z"}},payload:"Invalidation"}},CreatePublicKey:{http:{requestUri:"/2018-06-18/public-key",responseCode:201},input:{type:"structure",required:["PublicKeyConfig"],members:{PublicKeyConfig:{shape:"S31",locationName:"PublicKeyConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"PublicKeyConfig"},output:{type:"structure",members:{PublicKey:{shape:"S33"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},CreateStreamingDistribution:{http:{requestUri:"/2018-06-18/streaming-distribution",responseCode:201},input:{type:"structure",required:["StreamingDistributionConfig"],members:{StreamingDistributionConfig:{shape:"S35",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},CreateStreamingDistributionWithTags:{http:{requestUri:"/2018-06-18/streaming-distribution?WithTags",responseCode:201},input:{type:"structure",required:["StreamingDistributionConfigWithTags"],members:{StreamingDistributionConfigWithTags:{locationName:"StreamingDistributionConfigWithTags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",required:["StreamingDistributionConfig","Tags"],members:{StreamingDistributionConfig:{shape:"S35"},Tags:{shape:"S22"}}}},payload:"StreamingDistributionConfigWithTags"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},DeleteCloudFrontOriginAccessIdentity:{http:{method:"DELETE",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteDistribution:{http:{method:"DELETE",requestUri:"/2018-06-18/distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteFieldLevelEncryptionConfig:{http:{method:"DELETE",requestUri:"/2018-06-18/field-level-encryption/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteFieldLevelEncryptionProfile:{http:{method:"DELETE",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeletePublicKey:{http:{method:"DELETE",requestUri:"/2018-06-18/public-key/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteStreamingDistribution:{http:{method:"DELETE",requestUri:"/2018-06-18/streaming-distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},GetCloudFrontOriginAccessIdentity:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},GetCloudFrontOriginAccessIdentityConfig:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentityConfig"}},GetDistribution:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Distribution:{shape:"S1t"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},GetDistributionConfig:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{DistributionConfig:{shape:"S7"},ETag:{location:"header",locationName:"ETag"}},payload:"DistributionConfig"}},GetFieldLevelEncryption:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},GetFieldLevelEncryptionConfig:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionConfig:{shape:"S29"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionConfig"}},GetFieldLevelEncryptionProfile:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},GetFieldLevelEncryptionProfileConfig:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionProfileConfig:{shape:"S2m"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfileConfig"}},GetInvalidation:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation/{Id}"},input:{type:"structure",required:["DistributionId","Id"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Invalidation:{shape:"S2z"}},payload:"Invalidation"}},GetPublicKey:{http:{method:"GET",requestUri:"/2018-06-18/public-key/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{PublicKey:{shape:"S33"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},GetPublicKeyConfig:{http:{method:"GET",requestUri:"/2018-06-18/public-key/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{PublicKeyConfig:{shape:"S31"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKeyConfig"}},GetStreamingDistribution:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},GetStreamingDistributionConfig:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistributionConfig:{shape:"S35"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistributionConfig"}},ListCloudFrontOriginAccessIdentities:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CloudFrontOriginAccessIdentitySummary",type:"structure",required:["Id","S3CanonicalUserId","Comment"],members:{Id:{},S3CanonicalUserId:{},Comment:{}}}}}}},payload:"CloudFrontOriginAccessIdentityList"}},ListDistributions:{http:{method:"GET",requestUri:"/2018-06-18/distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{DistributionList:{shape:"S4g"}},payload:"DistributionList"}},ListDistributionsByWebACLId:{http:{method:"GET",requestUri:"/2018-06-18/distributionsByWebACLId/{WebACLId}"},input:{type:"structure",required:["WebACLId"],members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"},WebACLId:{location:"uri",locationName:"WebACLId"}}},output:{type:"structure",members:{DistributionList:{shape:"S4g"}},payload:"DistributionList"}},ListFieldLevelEncryptionConfigs:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{FieldLevelEncryptionList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldLevelEncryptionSummary",type:"structure",required:["Id","LastModifiedTime"],members:{Id:{},LastModifiedTime:{type:"timestamp"},Comment:{},QueryArgProfileConfig:{shape:"S2a"},ContentTypeProfileConfig:{shape:"S2e"}}}}}}},payload:"FieldLevelEncryptionList"}},ListFieldLevelEncryptionProfiles:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{FieldLevelEncryptionProfileList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldLevelEncryptionProfileSummary",type:"structure",required:["Id","LastModifiedTime","Name","EncryptionEntities"],members:{Id:{},LastModifiedTime:{type:"timestamp"},Name:{},EncryptionEntities:{shape:"S2n"},Comment:{}}}}}}},payload:"FieldLevelEncryptionProfileList"}},ListInvalidations:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation"},input:{type:"structure",required:["DistributionId"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{InvalidationList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"InvalidationSummary",type:"structure",required:["Id","CreateTime","Status"],members:{Id:{},CreateTime:{type:"timestamp"},Status:{}}}}}}},payload:"InvalidationList"}},ListPublicKeys:{http:{method:"GET",requestUri:"/2018-06-18/public-key"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{PublicKeyList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"PublicKeySummary",type:"structure",required:["Id","Name","CreatedTime","EncodedKey"],members:{Id:{},Name:{},CreatedTime:{type:"timestamp"},EncodedKey:{},Comment:{}}}}}}},payload:"PublicKeyList"}},ListStreamingDistributions:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{StreamingDistributionList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"StreamingDistributionSummary",type:"structure",required:["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},S3Origin:{shape:"S36"},Aliases:{shape:"S8"},TrustedSigners:{shape:"Sy"},Comment:{},PriceClass:{},Enabled:{type:"boolean"}}}}}}},payload:"StreamingDistributionList"}},ListTagsForResource:{http:{method:"GET",requestUri:"/2018-06-18/tagging"},input:{type:"structure",required:["Resource"],members:{Resource:{location:"querystring",locationName:"Resource"}}},output:{type:"structure",required:["Tags"],members:{Tags:{shape:"S22"}},payload:"Tags"}},TagResource:{http:{requestUri:"/2018-06-18/tagging?Operation=Tag",responseCode:204},input:{type:"structure",required:["Resource","Tags"],members:{Resource:{location:"querystring",locationName:"Resource"},Tags:{shape:"S22",locationName:"Tags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"Tags"}},UntagResource:{http:{requestUri:"/2018-06-18/tagging?Operation=Untag",responseCode:204},input:{type:"structure",required:["Resource","TagKeys"],members:{Resource:{location:"querystring",locationName:"Resource"},TagKeys:{locationName:"TagKeys",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",members:{Items:{type:"list",member:{locationName:"Key"}}}}},payload:"TagKeys"}},UpdateCloudFrontOriginAccessIdentity:{http:{method:"PUT",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig","Id"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},UpdateDistribution:{http:{method:"PUT",requestUri:"/2018-06-18/distribution/{Id}/config"},input:{type:"structure",required:["DistributionConfig","Id"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1t"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},UpdateFieldLevelEncryptionConfig:{http:{method:"PUT",requestUri:"/2018-06-18/field-level-encryption/{Id}/config"},input:{type:"structure",required:["FieldLevelEncryptionConfig","Id"],members:{FieldLevelEncryptionConfig:{shape:"S29",locationName:"FieldLevelEncryptionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"FieldLevelEncryptionConfig"},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},UpdateFieldLevelEncryptionProfile:{http:{method:"PUT",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}/config"},input:{type:"structure",required:["FieldLevelEncryptionProfileConfig","Id"],members:{FieldLevelEncryptionProfileConfig:{shape:"S2m",locationName:"FieldLevelEncryptionProfileConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"FieldLevelEncryptionProfileConfig"},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},UpdatePublicKey:{http:{method:"PUT",requestUri:"/2018-06-18/public-key/{Id}/config"},input:{type:"structure",required:["PublicKeyConfig","Id"],members:{PublicKeyConfig:{shape:"S31",locationName:"PublicKeyConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"PublicKeyConfig"},output:{type:"structure",members:{PublicKey:{shape:"S33"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},UpdateStreamingDistribution:{http:{method:"PUT",requestUri:"/2018-06-18/streaming-distribution/{Id}/config"},input:{type:"structure",required:["StreamingDistributionConfig","Id"],members:{StreamingDistributionConfig:{shape:"S35",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}}},shapes:{S2:{type:"structure",required:["CallerReference","Comment"],members:{CallerReference:{},Comment:{}}},S5:{type:"structure",required:["Id","S3CanonicalUserId"],members:{Id:{},S3CanonicalUserId:{},CloudFrontOriginAccessIdentityConfig:{shape:"S2"}}},S7:{type:"structure",required:["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],members:{CallerReference:{},Aliases:{shape:"S8"},DefaultRootObject:{},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S1b"},CustomErrorResponses:{shape:"S1e"},Comment:{},Logging:{type:"structure",required:["Enabled","IncludeCookies","Bucket","Prefix"],members:{Enabled:{type:"boolean"},IncludeCookies:{type:"boolean"},Bucket:{},Prefix:{}}},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1j"},Restrictions:{shape:"S1n"},WebACLId:{},HttpVersion:{},IsIPV6Enabled:{type:"boolean"}}},S8:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CNAME"}}}},Sb:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Origin",type:"structure",required:["Id","DomainName"],members:{Id:{},DomainName:{},OriginPath:{},CustomHeaders:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"OriginCustomHeader",type:"structure",required:["HeaderName","HeaderValue"],members:{HeaderName:{},HeaderValue:{}}}}}},S3OriginConfig:{type:"structure",required:["OriginAccessIdentity"],members:{OriginAccessIdentity:{}}},CustomOriginConfig:{type:"structure",required:["HTTPPort","HTTPSPort","OriginProtocolPolicy"],members:{HTTPPort:{type:"integer"},HTTPSPort:{type:"integer"},OriginProtocolPolicy:{},OriginSslProtocols:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"SslProtocol"}}}},OriginReadTimeout:{type:"integer"},OriginKeepaliveTimeout:{type:"integer"}}}}}}}},Sn:{type:"structure",required:["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sy"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S12"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"},LambdaFunctionAssociations:{shape:"S16"},FieldLevelEncryptionId:{}}},So:{type:"structure",required:["QueryString","Cookies"],members:{QueryString:{type:"boolean"},Cookies:{type:"structure",required:["Forward"],members:{Forward:{},WhitelistedNames:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Headers:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}},QueryStringCacheKeys:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Sy:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"AwsAccountNumber"}}}},S12:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S13"},CachedMethods:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S13"}}}}},S13:{type:"list",member:{locationName:"Method"}},S16:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"LambdaFunctionAssociation",type:"structure",required:["LambdaFunctionARN","EventType"],members:{LambdaFunctionARN:{},EventType:{},IncludeBody:{type:"boolean"}}}}}},S1b:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CacheBehavior",type:"structure",required:["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{PathPattern:{},TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sy"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S12"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"},LambdaFunctionAssociations:{shape:"S16"},FieldLevelEncryptionId:{}}}}}},S1e:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CustomErrorResponse",type:"structure",required:["ErrorCode"],members:{ErrorCode:{type:"integer"},ResponsePagePath:{},ResponseCode:{},ErrorCachingMinTTL:{type:"long"}}}}}},S1j:{type:"structure",members:{CloudFrontDefaultCertificate:{type:"boolean"},IAMCertificateId:{},ACMCertificateArn:{},SSLSupportMethod:{},MinimumProtocolVersion:{},Certificate:{deprecated:true},CertificateSource:{deprecated:true}}},S1n:{type:"structure",required:["GeoRestriction"],members:{GeoRestriction:{type:"structure",required:["RestrictionType","Quantity"],members:{RestrictionType:{},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Location"}}}}}},S1t:{type:"structure",required:["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},InProgressInvalidationBatches:{type:"integer"},DomainName:{},ActiveTrustedSigners:{shape:"S1v"},DistributionConfig:{shape:"S7"}}},S1v:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Signer",type:"structure",members:{AwsAccountNumber:{},KeyPairIds:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"KeyPairId"}}}}}}}}},S22:{type:"structure",members:{Items:{type:"list",member:{locationName:"Tag",type:"structure",required:["Key"],members:{Key:{},Value:{}}}}}},S29:{type:"structure",required:["CallerReference"],members:{CallerReference:{},Comment:{},QueryArgProfileConfig:{shape:"S2a"},ContentTypeProfileConfig:{shape:"S2e"}}},S2a:{type:"structure",required:["ForwardWhenQueryArgProfileIsUnknown"],members:{ForwardWhenQueryArgProfileIsUnknown:{type:"boolean"},QueryArgProfiles:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"QueryArgProfile",type:"structure",required:["QueryArg","ProfileId"],members:{QueryArg:{},ProfileId:{}}}}}}}},S2e:{type:"structure",required:["ForwardWhenContentTypeIsUnknown"],members:{ForwardWhenContentTypeIsUnknown:{type:"boolean"},ContentTypeProfiles:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"ContentTypeProfile",type:"structure",required:["Format","ContentType"],members:{Format:{},ProfileId:{},ContentType:{}}}}}}}},S2k:{type:"structure",required:["Id","LastModifiedTime","FieldLevelEncryptionConfig"],members:{Id:{},LastModifiedTime:{type:"timestamp"},FieldLevelEncryptionConfig:{shape:"S29"}}},S2m:{type:"structure",required:["Name","CallerReference","EncryptionEntities"],members:{Name:{},CallerReference:{},Comment:{},EncryptionEntities:{shape:"S2n"}}},S2n:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"EncryptionEntity",type:"structure",required:["PublicKeyId","ProviderId","FieldPatterns"],members:{PublicKeyId:{},ProviderId:{},FieldPatterns:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldPattern"}}}}}}}}},S2t:{type:"structure",required:["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],members:{Id:{},LastModifiedTime:{type:"timestamp"},FieldLevelEncryptionProfileConfig:{shape:"S2m"}}},S2v:{type:"structure",required:["Paths","CallerReference"],members:{Paths:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Path"}}}},CallerReference:{}}},S2z:{type:"structure",required:["Id","Status","CreateTime","InvalidationBatch"],members:{Id:{},Status:{},CreateTime:{type:"timestamp"},InvalidationBatch:{shape:"S2v"}}},S31:{type:"structure",required:["CallerReference","Name","EncodedKey"],members:{CallerReference:{},Name:{},EncodedKey:{},Comment:{}}},S33:{type:"structure",required:["Id","CreatedTime","PublicKeyConfig"],members:{Id:{},CreatedTime:{type:"timestamp"},PublicKeyConfig:{shape:"S31"}}},S35:{type:"structure",required:["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],members:{CallerReference:{},S3Origin:{shape:"S36"},Aliases:{shape:"S8"},Comment:{},Logging:{type:"structure",required:["Enabled","Bucket","Prefix"],members:{Enabled:{type:"boolean"},Bucket:{},Prefix:{}}},TrustedSigners:{shape:"Sy"},PriceClass:{},Enabled:{type:"boolean"}}},S36:{type:"structure",required:["DomainName","OriginAccessIdentity"],members:{DomainName:{},OriginAccessIdentity:{}}},S39:{type:"structure",required:["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},ActiveTrustedSigners:{shape:"S1v"},StreamingDistributionConfig:{shape:"S35"}}},S4g:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"DistributionSummary",type:"structure",required:["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},Aliases:{shape:"S8"},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S1b"},CustomErrorResponses:{shape:"S1e"},Comment:{},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1j"},Restrictions:{shape:"S1n"},WebACLId:{},HttpVersion:{},IsIPV6Enabled:{type:"boolean"}}}}}}}}},808:function(e,t,i){var r=i(953).IniLoader;e.exports.iniLoader=new r},814:function(e,t,i){var r=i(216);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},816:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},817:function(e,t,i){var r=i(216);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");n["AWSAccessKeyId"]=a[0];n["Signature"]=a[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var u=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},821:function(e,t,i){var r=i(216);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var a=n[i++];if(typeof a==="function"){o=a.call()}else{o=a}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},823:function(e,t,i){var r=i(264);var n=i(507);var o=i(538);var a=i(311);var s=i(703);var u=i(306);var c=u.property;var l=u.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};c(this,"isApi",true,false);c(this,"apiVersion",e.metadata.apiVersion);c(this,"endpointPrefix",e.metadata.endpointPrefix);c(this,"signingName",e.metadata.signingName);c(this,"globalEndpoint",e.metadata.globalEndpoint);c(this,"signatureVersion",e.metadata.signatureVersion);c(this,"jsonVersion",e.metadata.jsonVersion);c(this,"targetPrefix",e.metadata.targetPrefix);c(this,"protocol",e.metadata.protocol);c(this,"timestampFormat",e.metadata.timestampFormat);c(this,"xmlNamespaceUri",e.metadata.xmlNamespace);c(this,"abbreviation",e.metadata.serviceAbbreviation);c(this,"fullName",e.metadata.serviceFullName);c(this,"serviceId",e.metadata.serviceId);l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){c(i,"endpointOperation",u.string.lowerFirst(e))}}c(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},u.string.lowerFirst,addEndpointOperation));c(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));c(this,"paginators",new r(e.paginators,t,function(e,i){return new a(e,i,t)}));c(this,"waiters",new r(e.waiters,t,function(e,i){return new s(e,i,t)},u.string.lowerFirst));if(t.documentation){c(this,"documentation",e.documentation);c(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},834:function(e,t,i){(function(){var t,r,n,o=function(e,t){for(var i in t){if(a.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;n=i(73).isObject;r=i(290);e.exports=t=function(e){o(XMLDTDEntity,e);function XMLDTDEntity(e,t,i,r){XMLDTDEntity.__super__.constructor.call(this,e);if(i==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(i);if(!n(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},835:function(e){e.exports=require("url")},836:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:35,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},844:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},852:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const n=i(558);const o=i(87);const a=i(622);var s;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(s=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;n.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=s.Failure;error(e)}t.setFailed=setFailed;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e)}t.error=error;function warning(e){n.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},856:function(e,t,i){(function(){var t,r,n,o,a,s,u,c=function(e,t){for(var i in t){if(l.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},l={}.hasOwnProperty;u=i(73).isObject;s=i(290);t=i(358);n=i(834);r=i(206);o=i(705);e.exports=a=function(e){c(XMLDocType,e);function XMLDocType(e,t,i){var r,n;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(u(t)){r=t,t=r.pubID,i=r.sysID}if(i==null){n=[t,i],i=n[0],t=n[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(i!=null){this.sysID=this.stringify.dtdSysID(i)}}XMLDocType.prototype.element=function(e,t){var i;i=new r(this,e,t);this.children.push(i);return this};XMLDocType.prototype.attList=function(e,i,r,n,o){var a;a=new t(this,e,i,r,n,o);this.children.push(a);return this};XMLDocType.prototype.entity=function(e,t){var i;i=new n(this,false,e,t);this.children.push(i);return this};XMLDocType.prototype.pEntity=function(e,t){var i;i=new n(this,true,e,t);this.children.push(i);return this};XMLDocType.prototype.notation=function(e,t){var i;i=new o(this,e,t);this.children.push(i);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,i,r,n){return this.attList(e,t,i,r,n)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(s)}).call(this)},861:function(e,t,i){var r=i(216);var n=i(481);var o=i(477);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},866:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(23);i(374);i(465);i(697);i(227);i(817)},871:function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},881:function(e,t,i){var r=i(216),n=r.util.url,o=r.util.crypto.lib,a=r.util.base64.encode,s=r.util.inherit;var u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})};var c=function(e,t){var i=o.createSign("RSA-SHA1");i.write(e);return u(i.sign(t,"base64"))};var l=function(e,t,i,r){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":i,Signature:c(n.toString(),r)}};var d=function(e,t,i){e=e.replace(/\s/gm,"");return{Policy:u(a(e)),"Key-Pair-Id":t,Signature:c(e,i)}};var p=function(e){var t=e.split("://");if(t.length<2){throw new Error("Invalid URL.")}return t[0].replace("*","")};var m=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")};var f=function(e){switch(p(e)){case"http":case"https":return e;case"rtmp":return m(e);default:throw new Error("Invalid URI scheme. Scheme must be one of"+" http, https, or rtmp")}};var h=function(e,t){if(!t||typeof t!=="function"){throw e}t(e)};var y=function(e,t){if(!t||typeof t!=="function"){return e}t(null,e)};r.CloudFront.Signer=s({constructor:function Signer(e,t){if(e===void 0||t===void 0){throw new Error("A key pair ID and private key are required")}this.keyPairId=e;this.privateKey=t},getSignedCookie:function(e,t){var i="policy"in e?d(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey);var r={};for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r["CloudFront-"+n]=i[n]}}return y(r,t)},getSignedUrl:function(e,t){try{var i=f(e.url)}catch(e){return h(e,t)}var r=n.parse(e.url,true),o=Object.prototype.hasOwnProperty.call(e,"policy")?d(e.policy,this.keyPairId,this.privateKey):l(i,e.expires,this.keyPairId,this.privateKey);r.search=null;for(var a in o){if(Object.prototype.hasOwnProperty.call(o,a)){r.query[a]=o[a]}}try{var s=p(e.url)==="rtmp"?m(n.format(r)):n.format(r)}catch(e){return h(e,t)}return y(s,t)}});e.exports=r.CloudFront.Signer},882:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/{try{const e=r.getInput("distribution-id",{required:true});const t=r.getInput("caller-reference",{required:false});const i=r.getInput("paths",{required:false}).trim().split(/\r?[\n,]/);console.log(`Invalidation paths: ${i}`);const n={DistributionId:e,InvalidationBatch:{CallerReference:t,Paths:{Quantity:i.length,Items:i}}};const a=new o({apiVersion:"2019-03-26",customUserAgent:"aws-github-actions-cloudfront"});const s=await a.createInvalidation(n).promise();const u=s.Invalidation.Id;r.setOutput("invalidation-id",u);console.log(`CloudFront invalidation id: ${u}`)}catch(e){r.setFailed(e.message)}};s();t["default"]=s},945:function(e,t,i){var r=i(213);var n=i(438);var o=n;o.v1=r;o.v4=n;e.exports=o},953:function(e,t,i){var r=i(216);var n=i(87);var o=i(622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},958:function(e,t,i){var r=i(216);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var a=0;a=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t/g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},109:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},111:function(e,t,i){(function(){"use strict";var e,r,n,o,a,s={}.hasOwnProperty;e=i(764);r=i(816).defaults;o=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!s.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!s.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,l;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,r){var c,l,d,p,m,f;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(p in r){if(!s.call(r,p))continue;l=r[p];for(m in l){d=l[m];t=u(t.ele(m),d).up()}}}else{for(m in r){if(!s.call(r,m))continue;l=r[m];if(m===i){if(typeof l==="object"){for(c in l){f=l[c];t=t.att(c,f)}}}else if(m===n){if(e.options.cdata&&o(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(p in l){if(!s.call(l,p))continue;d=l[p];if(typeof d==="string"){if(e.options.cdata&&o(d)){t=t.ele(m).raw(a(d)).up()}else{t=t.ele(m,d).up()}}else{t=u(t.ele(m),d).up()}}}else if(typeof l==="object"){t=u(t.ele(m),l).up()}else{if(typeof l==="string"&&e.options.cdata&&o(l)){t=t.ele(m).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(m,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},126:function(e,t,i){var r=i(425).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},129:function(e){e.exports=require("child_process")},134:function(e,t,i){var r=i(216);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},138:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},144:function(e,t,i){var r=i(216);var n=i(714);var o=i(339).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.config.region&&!e.service.isGlobalEndpoint){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,a=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var a=i.request.service;if(o){var s=Date.parse(o);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var a=(o-t.startTime.getTime())/1e3;var s=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var d=i(669).inspect(c,true,null);var p="";if(s)p+="";p+="[AWS "+t.service.serviceIdentifier+" "+u;p+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)p+="";p+=" "+r.util.string.lowerFirst(t.operation);p+="("+d+")";if(s)p+="";return p}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(278);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(80);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(230);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(413);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(675);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},148:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},170:function(e,t,i){(function(){var t,r,n,o,a,s,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;s=i(73),a=s.isObject,o=s.isFunction;n=i(290);t=i(297);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;is)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=f;u=h;a=p;f+=122192928e5;var g=((f&268435455)*1e4+h)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var v=f/4294967296*1e4&268435455;l[c++]=v>>>8&255;l[c++]=v&255;l[c++]=v>>>24&15|16;l[c++]=v>>>16&255;l[c++]=p>>>8|128;l[c++]=p&255;for(var b=0;b<6;++b){l[c+b]=d[b]}return t?t:n(l)}e.exports=v1},215:function(e){function eventMessageChunker(e){var t=[];var i=0;while(i=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var a=0;var s;var u;var c=this;var l=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},l);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=s;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=s;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=a(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new s(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i0){try{var n=JSON.parse(i.body.toString());if(n.__type||n.code){t.code=(n.__type||n.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},286:function(e,t,i){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=f.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,a=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,s)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var h in e.STATE){e.STATE[e.STATE[h]]=h}f=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==f.BEGIN&&e.state!==f.BEGIN_WHITESPACE&&e.state!==f.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==s){strictFail(e,"xml: prefix must be bound to "+s+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,a=e.attribList.length;o";e.tagName="";e.state=f.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=f.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var u in a.ns){s[u]=a.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==c.ns){Object.keys(a.ns).forEach(function(t){var i=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=f.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=f.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=f.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=f.TEXT}else if(isQuote(r)){t.state=f.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case f.SGML_DECL_QUOTED:if(r===t.q){t.state=f.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case f.DOCTYPE:if(r===">"){t.state=f.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=f.DOCTYPE_DTD}else if(isQuote(r)){t.state=f.DOCTYPE_QUOTED;t.q=r}}continue;case f.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=f.DOCTYPE}continue;case f.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=f.DOCTYPE}else if(isQuote(r)){t.state=f.DOCTYPE_DTD_QUOTED;t.q=r}continue;case f.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=f.DOCTYPE_DTD;t.q=""}continue;case f.COMMENT:if(r==="-"){t.state=f.COMMENT_ENDING}else{t.comment+=r}continue;case f.COMMENT_ENDING:if(r==="-"){t.state=f.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=f.COMMENT}continue;case f.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=f.COMMENT}else{t.state=f.TEXT}continue;case f.CDATA:if(r==="]"){t.state=f.CDATA_ENDING}else{t.cdata+=r}continue;case f.CDATA_ENDING:if(r==="]"){t.state=f.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=f.CDATA}continue;case f.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=f.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=f.CDATA}continue;case f.PROC_INST:if(r==="?"){t.state=f.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=f.PROC_INST_BODY}else{t.procInstName+=r}continue;case f.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=f.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case f.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=f.TEXT}else{t.procInstBody+="?"+r;t.state=f.PROC_INST_BODY}continue;case f.OPEN_TAG:if(isMatch(d,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=f.ATTRIB}}continue;case f.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=f.ATTRIB}continue;case f.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(l,r)){t.attribName=r;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME:if(r==="="){t.state=f.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=f.ATTRIB_NAME_SAW_WHITE}else if(isMatch(d,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=f.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(l,r)){t.attribName=r;t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=f.ATTRIB}}continue;case f.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=f.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=f.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case f.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=f.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=f.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=f.OPEN_TAG_SLASH}else if(isMatch(l,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=f.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case f.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=f.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=f.ATTRIB}continue;case f.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(l,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(d,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case f.TEXT_ENTITY:u=f.TEXT;c="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:u=f.ATTRIB_VALUE_QUOTED;c="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:u=f.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?m:p,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var a=-1;var s=arguments.length;if(!s){return""}var u="";while(++a1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(a+1===s||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?undefined:t)},290:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h={}.hasOwnProperty;f=i(73),m=f.isObject,p=f.isFunction,d=f.isEmpty;a=null;t=null;r=null;n=null;o=null;c=null;l=null;u=null;e.exports=s=function(){function XMLNode(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.children=[];if(!a){a=i(170);t=i(138);r=i(109);n=i(676);o=i(856);c=i(426);l=i(626);u=i(718)}}XMLNode.prototype.element=function(e,t,i){var r,n,o,a,s,u,c,l,f,y;u=null;if(t==null){t={}}t=t.valueOf();if(!m(t)){f=[t,i],i=f[0],t=f[1]}if(e!=null){e=e.valueOf()}if(Array.isArray(e)){for(o=0,c=e.length;o0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},306:function(e,t,i){var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(216).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var a=i(r);var s=a+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});s=a+"="+u.sort().join("&"+a+"=")}else if(o!==undefined&&o!==null){s=a+"="+i(o)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var a=n.arraySliceFn(t);var s=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));o.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!s){t=new n.Buffer(new Uint8Array(t))}var d=o.update(t).digest(i);if(r)r(null,d);return d}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){s++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var a=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&a.retryable)a.retryAfter=o;u(a)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(945).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},311:function(e,t,i){var r=i(306).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},337:function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},339:function(e,t,i){var r=i(216);var n=i(306);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var a=o?o.input:undefined;var s=marshallCustomIdentifiers(e,a);var u=getCacheKey(e);if(Object.keys(s).length>0){u=n.update(u,s);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var s=o.operations?o.operations[e.operation]:undefined;var u=s?s.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(s)l.operation=s.name}var d=r.EndpointCache.getKeyString(l);var p=r.endpointCache.get(d);if(p&&p.length===1&&p[0].Address===""){if(!a[d])a[d]=[];a[d].push({request:e,callback:t});return}else if(p&&p.length>0){e.httpRequest.updateEndpoint(p[0].Address);t()}else{var m=i.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:c});m.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(m);r.endpointCache.put(d,[{Address:"",CachePeriodInMinutes:60}]);m.send(function(i,o){if(i){var s={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=n.error(i,s);r.endpointCache.remove(l);if(a[d]){var u=a[d];n.arrayEach(u,function(e){e.request.response.error=n.error(i,s);e.callback()});delete a[d]}}else if(o){r.endpointCache.put(d,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(a[d]){var u=a[d];n.arrayEach(u,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete a[d]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var a=o.service.api.operations||{};var s=a[o.operation]?a[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,s);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(a[o.operation])c.operation=a[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryApplicable(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(n.isBrowser())return false;for(var i=0;i0){u[e.options.childkey]=l}l=u}else if(f){f[e.options.childkey]=f[e.options.childkey]||[];d={};for(s in l){if(!p.call(l,s))continue;d[s]=l[s]}f[e.options.childkey].push(d);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(f,c,l)}else{if(e.options.explicitRoot){m=l;l={};l[c]=m}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,a;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}a=new t.Parser(o);return a.parseString(e,n)}}).call(this)},354:function(e,t,i){var r=i(216);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var s=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},358:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLDTDAttList,e);function XMLDTDAttList(e,t,i,r,n,o){XMLDTDAttList.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(i==null){throw new Error("Missing DTD attribute name")}if(!r){throw new Error("Missing DTD attribute type")}if(!n){throw new Error("Missing DTD attribute default")}if(n.indexOf("#")!==0){n="#"+n}if(!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT")}if(o&&!n.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT")}this.elementName=this.stringify.eleName(t);this.attributeName=this.stringify.attName(i);this.attributeType=this.stringify.dtdAttType(r);this.defaultValue=this.stringify.dtdAttDefault(o);this.defaultValueType=n}XMLDTDAttList.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)};return XMLDTDAttList}(r)}).call(this)},362:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},363:function(e,t,i){var r=i(306);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var a=i.flattened?".":".entry.";var s=a+o+++".";var u=s+(i.key.name||"key");var c=s+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(i.api.protocol==="ec2"){a=a+""}else if(i.flattened){if(o.name){var s=e.split(".");s.pop();s.push(ucfirst(o));e=s.join(".")}}else{a="."+(o.name?o.name:"member")+a}serializeMember(e+a,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},374:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},381:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},398:function(e,t,i){var r=i(216);var n=i(477);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},399:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",output_token:"DistributionList.NextMarker",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",output_token:"InvalidationList.NextMarker",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",output_token:"StreamingDistributionList.NextMarker",result_key:"StreamingDistributionList.Items"}}}},413:function(e,t,i){var r=i(216);var n=i(306);var o=i(80);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var a=t.payload;if(a){var s=t.members[a];o=o[a];if(o===undefined)return;if(s.type==="structure"){var u=s.name;e.httpRequest.body=i.toXML(o,s,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var a=e.httpResponse.body;var s=i.service.api.operations[i.operation];var u=s.output;var c=s.hasEventOutput;var l=u.payload;if(l){var d=u.members[l];if(d.isEventStream){t=new r.XML.Parser;e.data[l]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,d)}else if(d.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),d)}else if(d.type==="binary"||d.isStreaming){e.data[l]=a}else{e.data[l]=d.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var p=t.parse(a.toString(),u);n.update(e.data,p)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},416:function(e,t,i){var r=i(216);i(881);r.util.update(r.CloudFront.prototype,{setupRequestListeners:function setupRequestListeners(e){e.addListener("extractData",r.util.hoistPayloadMember)}})},417:function(e){e.exports=require("crypto")},418:function(e,t,i){var r=i(216);var n=i(477);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},425:function(e){function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},426:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},428:function(e,t,i){var r=i(216);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},435:function(e,t,i){var r=i(216);var n=i(477);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},438:function(e,t,i){var r=i(774);var n=i(86);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[o+s]=a[s]}}return t||n(a)}e.exports=v4},441:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},442:function(e,t,i){var r=i(216);i(632);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,a){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];i.request(n+a,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},457:function(e,t,i){var r=i(216);i(616);i(821);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:false,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},459:function(e,t,i){var r=i(216);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var a=r.util.stream.Readable;i(632);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var a=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var l=u.protocol==="https:";var d=l?i(211):i(605);var p={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){p.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(p,t);delete p.proxy;delete p.timeout;var m=d.request(p,function(e){if(m.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=m;m.didCallback=false;if(t.connectTimeout){var f;m.on("socket",function(e){if(e.connecting){f=setTimeout(function connectTimeout(){if(m.didCallback)return;m.didCallback=true;m.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(f);f=null})}})}m.setTimeout(t.timeout||0,function(){if(m.didCallback)return;m.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));m.abort()});m.on("error",function(){if(f){clearTimeout(f);f=null}if(m.didCallback)return;m.didCallback=true;o.apply(m,arguments)});var h=e.headers.Expect||e.headers.expect;if(h==="100-continue"){m.on("continue",function(){a.writeBody(m,e)})}else{this.writeBody(m,e)}return m},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(211):i(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},465:function(e,t,i){var r=i(216);var n=r.util.inherit;i(374);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},474:function(e){e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},477:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(979);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(381);e.paginators=i(730).pagination;return e},enumerable:true,configurable:true});e.exports=r.STS},478:function(e,t,i){var r=i(306);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var a=translate(o,r);if(a!==undefined)i[t]=a}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},481:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(814);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(844);e.paginators=i(695).pagination;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},483:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h,y,g,v,b,I,C,S={}.hasOwnProperty;C=i(73),b=C.isObject,v=C.isFunction,I=C.isPlainObject;p=i(170);r=i(138);n=i(109);f=i(426);g=i(626);m=i(718);c=i(676);l=i(856);o=i(358);s=i(834);a=i(206);u=i(705);t=i(297);y=i(882);h=i(799);e.exports=d=function(){function XMLDocumentCB(e,t,i){var r;e||(e={});if(!e.writer){e.writer=new h(e)}else if(I(e.writer)){r=e.writer;e.writer=new h(r)}this.options=e;this.writer=e.writer;this.stringify=new y(e);this.onDataCallback=t||function(){};this.onEndCallback=i||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,i){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!b(t)){r=[t,i],i=r[0],t=r[1]}this.currentNode=new p(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(i!=null){this.text(i)}return this};XMLDocumentCB.prototype.element=function(e,t,i){if(this.currentNode&&this.currentNode instanceof l){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,i)}};XMLDocumentCB.prototype.attribute=function(e,i){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(b(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(v(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.currentNode.attributes[e]=new t(this,e,i)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new g(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new n(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new f(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var i,r,n,o,a;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(i=0,o=e.length;i=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof p){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},491:function(e,t,i){var r=i(306);var n=i(522).XmlNode;var o=i(126).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var a=t[r];var s=o.name;if(a!==undefined&&a!==null){if(o.isXmlAttribute){e.addAttribute(s,a)}else if(o.flattened){serialize(e,a,o)}else{var u=new n(s);e.addChildNode(u);applyNamespaces(u,o);serialize(u,a,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var a=i.value.name||"value";r.each(t,function(t,r){var s=new n(i.flattened?i.name:"entry");e.addChildNode(s);var u=new n(o);var c=new n(a);s.addChildNode(u);s.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},494:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:25,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},503:function(e,t,i){var r=i(216);var n=i(129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var a=r.util.date.getDate();var s=new Date(o.Expiration);if(s":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},534:function(e,t,i){(function(){"use strict";var e,r,n,o,a=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;r=i(816);e=i(111);n=i(353);o=i(441);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){a(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},538:function(e,t,i){var r=i(264);var n=i(306);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var a=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+a)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},540:function(e,t,i){var r=i(216);i(442);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var a=new Date(n.Expiration);if(a0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const i=this.properties[t];if(i){e+=`${t}=${escape(`${i||""}`)},`}}}}e+=n;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},568:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(756);var n=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=n}this.maxSize=e;this.cache=new r.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=a.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},602:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",output_token:"DistributionList.NextMarker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",output_token:"InvalidationList.NextMarker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",output_token:"StreamingDistributionList.NextMarker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",result_key:"StreamingDistributionList.Items"}}}},603:function(e){(function(){var t,i={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,n,o,a,s,u,c,l;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(n=e.indent)!=null?n:" ";this.newline=(o=e.newline)!=null?o:"\n";this.offset=(a=e.offset)!=null?a:0;this.dontprettytextnodes=(s=e.dontprettytextnodes)!=null?s:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(u=e.spacebeforeslash)!=null?u:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;c=e.writer||{};for(t in c){if(!i.call(c,t))continue;l=c[t];this[t]=l}}XMLWriterBase.prototype.set=function(e){var t,r,n;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!i.call(r,t))continue;n=r[t];this[t]=n}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},616:function(e,t,i){var r=i(216);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},620:function(e,t,i){var r=i(306);var n=i(216);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},622:function(e){e.exports=require("path")},624:function(e,t,i){var r=i(216);var n=i(6);var o=r.util.inherit;var a=r.util.domain;var s=i(766);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(a&&i.domain instanceof a.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var s=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint)s="us-east-1";this.domain=a&&a.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,s);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var a=o.resultKey;if(Array.isArray(a))a=a[0];var u=s.search(n,a);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,a){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){s=true;var c=0}var l=function checkContentLengthAndEmit(){if(s&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var d=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var p=new e.PassThrough;p._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};p.on("end",l);i.on("error",function(e){s=false;d.unpipe(p);p.emit("end");p.end()});d.pipe(p).pipe(i,{end:false})}else{d.pipe(i)}}else{if(s){d.on("data",function(e){if(e&&e.length){c+=e.length}})}d.on("data",function(e){i.emit("data",e)});d.on("end",l)}d.on("error",function(e){s=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},626:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},632:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/"}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},644:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;sa){delete n[o.shift()]}}return h},emptyCache:function emptyCache(){n={};o=[]}}},663:function(e,t,i){var r=i(216),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+l+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},669:function(e){e.exports=require("util")},673:function(e,t,i){var r=i(306);var n=i(871);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase()-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var a=n||null;function callNextListener(n){if(n){a=r.util.error(a||new Error,n);if(o._haltHandlersOnError){return i.call(o,a)}}o.callListeners(e,t,i,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(o,t.concat([callNextListener]));return}else{try{s.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},718:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,i){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(i){this.value=this.stringify.insValue(i)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},719:function(e,t,i){var r=i(306);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(417);r.Buffer=i(293).Buffer;r.domain=i(229);r.stream=i(794);r.url=i(835);r.querystring=i(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(99).createEventStream:i(273).createEventStream;r.realClock=i(474);r.clientSideMonitoring={Publisher:i(579).Publisher,configProvider:i(428)};r.iniLoader=i(808).iniLoader;var n;e.exports=n=i(216);i(616);i(821);i(74);i(418);i(435);i(861);i(398);i(503);n.XML.Parser=i(722);i(459);i(953);i(36);i(540);i(663);i(266);i(34);i(134);i(46);i(503);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var a=o[e.AWS_PROFILE||n.util.defaultProfile];t=a&&a.region}}return t}});n.config=new n.Config},721:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cloudfront"]={};r.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26"]);i(416);Object.defineProperty(o.services["cloudfront"],"2016-11-25",{get:function get(){var e=i(54);e.paginators=i(602).pagination;e.waiters=i(244).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-03-25",{get:function get(){var e=i(969);e.paginators=i(225).pagination;e.waiters=i(494).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-10-30",{get:function get(){var e=i(900);e.paginators=i(271).pagination;e.waiters=i(698).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-06-18",{get:function get(){var e=i(805);e.paginators=i(796).pagination;e.waiters=i(362).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-11-05",{get:function get(){var e=i(998);e.paginators=i(893).pagination;e.waiters=i(148).waiters;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2019-03-26",{get:function get(){var e=i(891);e.paginators=i(399).pagination;e.waiters=i(836).waiters;return e},enumerable:true,configurable:true});e.exports=r.CloudFront},722:function(e,t,i){var r=i(216);var n=r.util;var o=r.Model.Shape;var a=i(534);var s={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new a.Parser(s);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(t,r){var n=r.name;if(Object.prototype.hasOwnProperty.call(e,n)&&Array.isArray(e[n])){var o=e[n];if(!r.flattened)o=o[0];i[t]=parseXml(o,r)}else if(r.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,n)){i[t]=parseScalar(e.$[n],r)}else if(r.type==="list"){i[t]=r.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var a=t.flattened?e:e.entry;if(Array.isArray(a)){n.arrayEach(a,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(a,{member:{}})}else{n[o]=parseXml(a[0],{})}}return n}e.exports=NodeXmlParser},730:function(e){e.exports={pagination:{}}},747:function(e){e.exports=require("fs")},748:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var i=t.config.acceptors;var r=false;var n="retry";i.forEach(function(i){if(!r){var o=t.matchers[i.matcher];if(o&&o(e,i.expected,i.argument)){r=true;n=i.state}}});if(!r&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}r.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}return o.strictDeepEqual(r,t)},pathAll:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}if(!Array.isArray(r))r=[r];var n=r.length;if(!n)return false;for(var a=0;a":true,"=":true,"!":true};var z={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:P,value:">=",start:t}}else{return{type:L,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:D,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var G={};G[p]=0;G[m]=0;G[f]=0;G[h]=0;G[y]=0;G[g]=0;G[b]=0;G[I]=0;G[C]=0;G[S]=0;G[E]=1;G[T]=2;G[N]=3;G[D]=5;G[L]=5;G[w]=5;G[P]=5;G[q]=5;G[x]=5;G[M]=9;G[A]=20;G[F]=21;G[R]=40;G[_]=45;G[O]=50;G[k]=55;G[U]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==p){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:p,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===k){this._match(k);return this._parseMultiselectList()}else if(t===O){this._match(O);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(G[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===k){t=this.expression(e)}else if(this._lookahead(0)===F){t=this.expression(e)}else if(this._lookahead(0)===R){this._match(R);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==h){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===h){throw new Error("Unexpected token Rbracket")}}}this._match(h);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[m,f];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(v);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,a,s,u,c,l,d;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(d=1;d0){for(d=h;dy;d+=g){n.push(t[d])}}return n;case"Projection":var v=this.visit(e.children[0],t);if(!isArray(v)){return null}l=[];for(d=0;da;break;case P:n=o>=a;break;case w:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,a]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[l,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[d,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(ia){a=u;s=r[c]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var a=Infinity;var s;var u;for(var c=0;c"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,l,p;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));p=e.children;for(c=0,l=p.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,h;i||(i=0);h=this.space(i);this.stream.write(h+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);m=e.children;for(a=0,s=m.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(h)}).call(this)},774:function(e,t,i){var r=i(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},794:function(e){e.exports=require("stream")},796:function(e){e.exports={pagination:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",output_token:"DistributionList.NextMarker",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",output_token:"InvalidationList.NextMarker",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",output_token:"StreamingDistributionList.NextMarker",result_key:"StreamingDistributionList.Items"}}}},798:function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},799:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,f,h,y=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(676);c=i(856);t=i(138);r=i(109);l=i(170);p=i(426);f=i(626);d=i(718);n=i(358);o=i(206);a=i(834);s=i(705);h=i(603);e.exports=m=function(e){y(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,a;this.textispresent=false;o="";a=e.children;for(i=0,n=a.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,l,p,m;i||(i=0);p=this.space(i);p+="0){p+=" [";p+=this.newline;m=e.children;for(c=0,l=m.length;c";p+=this.newline;return p};XMLStringWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,h,y,v,b,I,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(i);h="";h+=I+"<"+e.name;y=e.attributes;for(m in y){if(!g.call(y,m))continue;n=y[m];h+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){h+=">"+this.newline}else{h+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){h+=">";h+=e.children[0].value;h+=""+this.newline}else{if(this.dontprettytextnodes){v=e.children;for(a=0,u=v.length;a"+this.newline;b=e.children;for(s=0,c=b.length;s"+this.newline}return h};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(h)}).call(this)},805:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2018-06-18",endpointPrefix:"cloudfront",globalEndpoint:"cloudfront.amazonaws.com",protocol:"rest-xml",serviceAbbreviation:"CloudFront",serviceFullName:"Amazon CloudFront",serviceId:"CloudFront",signatureVersion:"v4",uid:"cloudfront-2018-06-18"},operations:{CreateCloudFrontOriginAccessIdentity:{http:{requestUri:"/2018-06-18/origin-access-identity/cloudfront",responseCode:201},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},CreateDistribution:{http:{requestUri:"/2018-06-18/distribution",responseCode:201},input:{type:"structure",required:["DistributionConfig"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},CreateDistributionWithTags:{http:{requestUri:"/2018-06-18/distribution?WithTags",responseCode:201},input:{type:"structure",required:["DistributionConfigWithTags"],members:{DistributionConfigWithTags:{locationName:"DistributionConfigWithTags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",required:["DistributionConfig","Tags"],members:{DistributionConfig:{shape:"S7"},Tags:{shape:"S22"}}}},payload:"DistributionConfigWithTags"},output:{type:"structure",members:{Distribution:{shape:"S1t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},CreateFieldLevelEncryptionConfig:{http:{requestUri:"/2018-06-18/field-level-encryption",responseCode:201},input:{type:"structure",required:["FieldLevelEncryptionConfig"],members:{FieldLevelEncryptionConfig:{shape:"S29",locationName:"FieldLevelEncryptionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"FieldLevelEncryptionConfig"},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},CreateFieldLevelEncryptionProfile:{http:{requestUri:"/2018-06-18/field-level-encryption-profile",responseCode:201},input:{type:"structure",required:["FieldLevelEncryptionProfileConfig"],members:{FieldLevelEncryptionProfileConfig:{shape:"S2m",locationName:"FieldLevelEncryptionProfileConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"FieldLevelEncryptionProfileConfig"},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},CreateInvalidation:{http:{requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation",responseCode:201},input:{type:"structure",required:["DistributionId","InvalidationBatch"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},InvalidationBatch:{shape:"S2v",locationName:"InvalidationBatch",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"InvalidationBatch"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"},Invalidation:{shape:"S2z"}},payload:"Invalidation"}},CreatePublicKey:{http:{requestUri:"/2018-06-18/public-key",responseCode:201},input:{type:"structure",required:["PublicKeyConfig"],members:{PublicKeyConfig:{shape:"S31",locationName:"PublicKeyConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"PublicKeyConfig"},output:{type:"structure",members:{PublicKey:{shape:"S33"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},CreateStreamingDistribution:{http:{requestUri:"/2018-06-18/streaming-distribution",responseCode:201},input:{type:"structure",required:["StreamingDistributionConfig"],members:{StreamingDistributionConfig:{shape:"S35",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},CreateStreamingDistributionWithTags:{http:{requestUri:"/2018-06-18/streaming-distribution?WithTags",responseCode:201},input:{type:"structure",required:["StreamingDistributionConfigWithTags"],members:{StreamingDistributionConfigWithTags:{locationName:"StreamingDistributionConfigWithTags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",required:["StreamingDistributionConfig","Tags"],members:{StreamingDistributionConfig:{shape:"S35"},Tags:{shape:"S22"}}}},payload:"StreamingDistributionConfigWithTags"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},DeleteCloudFrontOriginAccessIdentity:{http:{method:"DELETE",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteDistribution:{http:{method:"DELETE",requestUri:"/2018-06-18/distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteFieldLevelEncryptionConfig:{http:{method:"DELETE",requestUri:"/2018-06-18/field-level-encryption/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteFieldLevelEncryptionProfile:{http:{method:"DELETE",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeletePublicKey:{http:{method:"DELETE",requestUri:"/2018-06-18/public-key/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteStreamingDistribution:{http:{method:"DELETE",requestUri:"/2018-06-18/streaming-distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},GetCloudFrontOriginAccessIdentity:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},GetCloudFrontOriginAccessIdentityConfig:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentityConfig"}},GetDistribution:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Distribution:{shape:"S1t"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},GetDistributionConfig:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{DistributionConfig:{shape:"S7"},ETag:{location:"header",locationName:"ETag"}},payload:"DistributionConfig"}},GetFieldLevelEncryption:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},GetFieldLevelEncryptionConfig:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionConfig:{shape:"S29"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionConfig"}},GetFieldLevelEncryptionProfile:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},GetFieldLevelEncryptionProfileConfig:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{FieldLevelEncryptionProfileConfig:{shape:"S2m"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfileConfig"}},GetInvalidation:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation/{Id}"},input:{type:"structure",required:["DistributionId","Id"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Invalidation:{shape:"S2z"}},payload:"Invalidation"}},GetPublicKey:{http:{method:"GET",requestUri:"/2018-06-18/public-key/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{PublicKey:{shape:"S33"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},GetPublicKeyConfig:{http:{method:"GET",requestUri:"/2018-06-18/public-key/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{PublicKeyConfig:{shape:"S31"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKeyConfig"}},GetStreamingDistribution:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},GetStreamingDistributionConfig:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistributionConfig:{shape:"S35"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistributionConfig"}},ListCloudFrontOriginAccessIdentities:{http:{method:"GET",requestUri:"/2018-06-18/origin-access-identity/cloudfront"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CloudFrontOriginAccessIdentitySummary",type:"structure",required:["Id","S3CanonicalUserId","Comment"],members:{Id:{},S3CanonicalUserId:{},Comment:{}}}}}}},payload:"CloudFrontOriginAccessIdentityList"}},ListDistributions:{http:{method:"GET",requestUri:"/2018-06-18/distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{DistributionList:{shape:"S4g"}},payload:"DistributionList"}},ListDistributionsByWebACLId:{http:{method:"GET",requestUri:"/2018-06-18/distributionsByWebACLId/{WebACLId}"},input:{type:"structure",required:["WebACLId"],members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"},WebACLId:{location:"uri",locationName:"WebACLId"}}},output:{type:"structure",members:{DistributionList:{shape:"S4g"}},payload:"DistributionList"}},ListFieldLevelEncryptionConfigs:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{FieldLevelEncryptionList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldLevelEncryptionSummary",type:"structure",required:["Id","LastModifiedTime"],members:{Id:{},LastModifiedTime:{type:"timestamp"},Comment:{},QueryArgProfileConfig:{shape:"S2a"},ContentTypeProfileConfig:{shape:"S2e"}}}}}}},payload:"FieldLevelEncryptionList"}},ListFieldLevelEncryptionProfiles:{http:{method:"GET",requestUri:"/2018-06-18/field-level-encryption-profile"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{FieldLevelEncryptionProfileList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldLevelEncryptionProfileSummary",type:"structure",required:["Id","LastModifiedTime","Name","EncryptionEntities"],members:{Id:{},LastModifiedTime:{type:"timestamp"},Name:{},EncryptionEntities:{shape:"S2n"},Comment:{}}}}}}},payload:"FieldLevelEncryptionProfileList"}},ListInvalidations:{http:{method:"GET",requestUri:"/2018-06-18/distribution/{DistributionId}/invalidation"},input:{type:"structure",required:["DistributionId"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{InvalidationList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"InvalidationSummary",type:"structure",required:["Id","CreateTime","Status"],members:{Id:{},CreateTime:{type:"timestamp"},Status:{}}}}}}},payload:"InvalidationList"}},ListPublicKeys:{http:{method:"GET",requestUri:"/2018-06-18/public-key"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{PublicKeyList:{type:"structure",required:["MaxItems","Quantity"],members:{NextMarker:{},MaxItems:{type:"integer"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"PublicKeySummary",type:"structure",required:["Id","Name","CreatedTime","EncodedKey"],members:{Id:{},Name:{},CreatedTime:{type:"timestamp"},EncodedKey:{},Comment:{}}}}}}},payload:"PublicKeyList"}},ListStreamingDistributions:{http:{method:"GET",requestUri:"/2018-06-18/streaming-distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{StreamingDistributionList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"StreamingDistributionSummary",type:"structure",required:["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},S3Origin:{shape:"S36"},Aliases:{shape:"S8"},TrustedSigners:{shape:"Sy"},Comment:{},PriceClass:{},Enabled:{type:"boolean"}}}}}}},payload:"StreamingDistributionList"}},ListTagsForResource:{http:{method:"GET",requestUri:"/2018-06-18/tagging"},input:{type:"structure",required:["Resource"],members:{Resource:{location:"querystring",locationName:"Resource"}}},output:{type:"structure",required:["Tags"],members:{Tags:{shape:"S22"}},payload:"Tags"}},TagResource:{http:{requestUri:"/2018-06-18/tagging?Operation=Tag",responseCode:204},input:{type:"structure",required:["Resource","Tags"],members:{Resource:{location:"querystring",locationName:"Resource"},Tags:{shape:"S22",locationName:"Tags",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},payload:"Tags"}},UntagResource:{http:{requestUri:"/2018-06-18/tagging?Operation=Untag",responseCode:204},input:{type:"structure",required:["Resource","TagKeys"],members:{Resource:{location:"querystring",locationName:"Resource"},TagKeys:{locationName:"TagKeys",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"},type:"structure",members:{Items:{type:"list",member:{locationName:"Key"}}}}},payload:"TagKeys"}},UpdateCloudFrontOriginAccessIdentity:{http:{method:"PUT",requestUri:"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig","Id"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},UpdateDistribution:{http:{method:"PUT",requestUri:"/2018-06-18/distribution/{Id}/config"},input:{type:"structure",required:["DistributionConfig","Id"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1t"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},UpdateFieldLevelEncryptionConfig:{http:{method:"PUT",requestUri:"/2018-06-18/field-level-encryption/{Id}/config"},input:{type:"structure",required:["FieldLevelEncryptionConfig","Id"],members:{FieldLevelEncryptionConfig:{shape:"S29",locationName:"FieldLevelEncryptionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"FieldLevelEncryptionConfig"},output:{type:"structure",members:{FieldLevelEncryption:{shape:"S2k"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryption"}},UpdateFieldLevelEncryptionProfile:{http:{method:"PUT",requestUri:"/2018-06-18/field-level-encryption-profile/{Id}/config"},input:{type:"structure",required:["FieldLevelEncryptionProfileConfig","Id"],members:{FieldLevelEncryptionProfileConfig:{shape:"S2m",locationName:"FieldLevelEncryptionProfileConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"FieldLevelEncryptionProfileConfig"},output:{type:"structure",members:{FieldLevelEncryptionProfile:{shape:"S2t"},ETag:{location:"header",locationName:"ETag"}},payload:"FieldLevelEncryptionProfile"}},UpdatePublicKey:{http:{method:"PUT",requestUri:"/2018-06-18/public-key/{Id}/config"},input:{type:"structure",required:["PublicKeyConfig","Id"],members:{PublicKeyConfig:{shape:"S31",locationName:"PublicKeyConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"PublicKeyConfig"},output:{type:"structure",members:{PublicKey:{shape:"S33"},ETag:{location:"header",locationName:"ETag"}},payload:"PublicKey"}},UpdateStreamingDistribution:{http:{method:"PUT",requestUri:"/2018-06-18/streaming-distribution/{Id}/config"},input:{type:"structure",required:["StreamingDistributionConfig","Id"],members:{StreamingDistributionConfig:{shape:"S35",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S39"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}}},shapes:{S2:{type:"structure",required:["CallerReference","Comment"],members:{CallerReference:{},Comment:{}}},S5:{type:"structure",required:["Id","S3CanonicalUserId"],members:{Id:{},S3CanonicalUserId:{},CloudFrontOriginAccessIdentityConfig:{shape:"S2"}}},S7:{type:"structure",required:["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],members:{CallerReference:{},Aliases:{shape:"S8"},DefaultRootObject:{},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S1b"},CustomErrorResponses:{shape:"S1e"},Comment:{},Logging:{type:"structure",required:["Enabled","IncludeCookies","Bucket","Prefix"],members:{Enabled:{type:"boolean"},IncludeCookies:{type:"boolean"},Bucket:{},Prefix:{}}},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1j"},Restrictions:{shape:"S1n"},WebACLId:{},HttpVersion:{},IsIPV6Enabled:{type:"boolean"}}},S8:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CNAME"}}}},Sb:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Origin",type:"structure",required:["Id","DomainName"],members:{Id:{},DomainName:{},OriginPath:{},CustomHeaders:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"OriginCustomHeader",type:"structure",required:["HeaderName","HeaderValue"],members:{HeaderName:{},HeaderValue:{}}}}}},S3OriginConfig:{type:"structure",required:["OriginAccessIdentity"],members:{OriginAccessIdentity:{}}},CustomOriginConfig:{type:"structure",required:["HTTPPort","HTTPSPort","OriginProtocolPolicy"],members:{HTTPPort:{type:"integer"},HTTPSPort:{type:"integer"},OriginProtocolPolicy:{},OriginSslProtocols:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"SslProtocol"}}}},OriginReadTimeout:{type:"integer"},OriginKeepaliveTimeout:{type:"integer"}}}}}}}},Sn:{type:"structure",required:["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sy"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S12"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"},LambdaFunctionAssociations:{shape:"S16"},FieldLevelEncryptionId:{}}},So:{type:"structure",required:["QueryString","Cookies"],members:{QueryString:{type:"boolean"},Cookies:{type:"structure",required:["Forward"],members:{Forward:{},WhitelistedNames:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Headers:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}},QueryStringCacheKeys:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Sy:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"AwsAccountNumber"}}}},S12:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S13"},CachedMethods:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S13"}}}}},S13:{type:"list",member:{locationName:"Method"}},S16:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"LambdaFunctionAssociation",type:"structure",required:["LambdaFunctionARN","EventType"],members:{LambdaFunctionARN:{},EventType:{},IncludeBody:{type:"boolean"}}}}}},S1b:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CacheBehavior",type:"structure",required:["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{PathPattern:{},TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sy"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S12"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"},LambdaFunctionAssociations:{shape:"S16"},FieldLevelEncryptionId:{}}}}}},S1e:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CustomErrorResponse",type:"structure",required:["ErrorCode"],members:{ErrorCode:{type:"integer"},ResponsePagePath:{},ResponseCode:{},ErrorCachingMinTTL:{type:"long"}}}}}},S1j:{type:"structure",members:{CloudFrontDefaultCertificate:{type:"boolean"},IAMCertificateId:{},ACMCertificateArn:{},SSLSupportMethod:{},MinimumProtocolVersion:{},Certificate:{deprecated:true},CertificateSource:{deprecated:true}}},S1n:{type:"structure",required:["GeoRestriction"],members:{GeoRestriction:{type:"structure",required:["RestrictionType","Quantity"],members:{RestrictionType:{},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Location"}}}}}},S1t:{type:"structure",required:["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},InProgressInvalidationBatches:{type:"integer"},DomainName:{},ActiveTrustedSigners:{shape:"S1v"},DistributionConfig:{shape:"S7"}}},S1v:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Signer",type:"structure",members:{AwsAccountNumber:{},KeyPairIds:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"KeyPairId"}}}}}}}}},S22:{type:"structure",members:{Items:{type:"list",member:{locationName:"Tag",type:"structure",required:["Key"],members:{Key:{},Value:{}}}}}},S29:{type:"structure",required:["CallerReference"],members:{CallerReference:{},Comment:{},QueryArgProfileConfig:{shape:"S2a"},ContentTypeProfileConfig:{shape:"S2e"}}},S2a:{type:"structure",required:["ForwardWhenQueryArgProfileIsUnknown"],members:{ForwardWhenQueryArgProfileIsUnknown:{type:"boolean"},QueryArgProfiles:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"QueryArgProfile",type:"structure",required:["QueryArg","ProfileId"],members:{QueryArg:{},ProfileId:{}}}}}}}},S2e:{type:"structure",required:["ForwardWhenContentTypeIsUnknown"],members:{ForwardWhenContentTypeIsUnknown:{type:"boolean"},ContentTypeProfiles:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"ContentTypeProfile",type:"structure",required:["Format","ContentType"],members:{Format:{},ProfileId:{},ContentType:{}}}}}}}},S2k:{type:"structure",required:["Id","LastModifiedTime","FieldLevelEncryptionConfig"],members:{Id:{},LastModifiedTime:{type:"timestamp"},FieldLevelEncryptionConfig:{shape:"S29"}}},S2m:{type:"structure",required:["Name","CallerReference","EncryptionEntities"],members:{Name:{},CallerReference:{},Comment:{},EncryptionEntities:{shape:"S2n"}}},S2n:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"EncryptionEntity",type:"structure",required:["PublicKeyId","ProviderId","FieldPatterns"],members:{PublicKeyId:{},ProviderId:{},FieldPatterns:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"FieldPattern"}}}}}}}}},S2t:{type:"structure",required:["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],members:{Id:{},LastModifiedTime:{type:"timestamp"},FieldLevelEncryptionProfileConfig:{shape:"S2m"}}},S2v:{type:"structure",required:["Paths","CallerReference"],members:{Paths:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Path"}}}},CallerReference:{}}},S2z:{type:"structure",required:["Id","Status","CreateTime","InvalidationBatch"],members:{Id:{},Status:{},CreateTime:{type:"timestamp"},InvalidationBatch:{shape:"S2v"}}},S31:{type:"structure",required:["CallerReference","Name","EncodedKey"],members:{CallerReference:{},Name:{},EncodedKey:{},Comment:{}}},S33:{type:"structure",required:["Id","CreatedTime","PublicKeyConfig"],members:{Id:{},CreatedTime:{type:"timestamp"},PublicKeyConfig:{shape:"S31"}}},S35:{type:"structure",required:["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],members:{CallerReference:{},S3Origin:{shape:"S36"},Aliases:{shape:"S8"},Comment:{},Logging:{type:"structure",required:["Enabled","Bucket","Prefix"],members:{Enabled:{type:"boolean"},Bucket:{},Prefix:{}}},TrustedSigners:{shape:"Sy"},PriceClass:{},Enabled:{type:"boolean"}}},S36:{type:"structure",required:["DomainName","OriginAccessIdentity"],members:{DomainName:{},OriginAccessIdentity:{}}},S39:{type:"structure",required:["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},ActiveTrustedSigners:{shape:"S1v"},StreamingDistributionConfig:{shape:"S35"}}},S4g:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"DistributionSummary",type:"structure",required:["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],members:{Id:{},ARN:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},Aliases:{shape:"S8"},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S1b"},CustomErrorResponses:{shape:"S1e"},Comment:{},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1j"},Restrictions:{shape:"S1n"},WebACLId:{},HttpVersion:{},IsIPV6Enabled:{type:"boolean"}}}}}}}}},808:function(e,t,i){var r=i(953).IniLoader;e.exports.iniLoader=new r},814:function(e,t,i){var r=i(216);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},816:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},817:function(e,t,i){var r=i(216);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");n["AWSAccessKeyId"]=a[0];n["Signature"]=a[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var u=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},821:function(e,t,i){var r=i(216);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var a=n[i++];if(typeof a==="function"){o=a.call()}else{o=a}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},823:function(e,t,i){var r=i(264);var n=i(507);var o=i(538);var a=i(311);var s=i(703);var u=i(306);var c=u.property;var l=u.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};c(this,"isApi",true,false);c(this,"apiVersion",e.metadata.apiVersion);c(this,"endpointPrefix",e.metadata.endpointPrefix);c(this,"signingName",e.metadata.signingName);c(this,"globalEndpoint",e.metadata.globalEndpoint);c(this,"signatureVersion",e.metadata.signatureVersion);c(this,"jsonVersion",e.metadata.jsonVersion);c(this,"targetPrefix",e.metadata.targetPrefix);c(this,"protocol",e.metadata.protocol);c(this,"timestampFormat",e.metadata.timestampFormat);c(this,"xmlNamespaceUri",e.metadata.xmlNamespace);c(this,"abbreviation",e.metadata.serviceAbbreviation);c(this,"fullName",e.metadata.serviceFullName);c(this,"serviceId",e.metadata.serviceId);l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){c(i,"endpointOperation",u.string.lowerFirst(e))}}c(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},u.string.lowerFirst,addEndpointOperation));c(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));c(this,"paginators",new r(e.paginators,t,function(e,i){return new a(e,i,t)}));c(this,"waiters",new r(e.waiters,t,function(e,i){return new s(e,i,t)},u.string.lowerFirst));if(t.documentation){c(this,"documentation",e.documentation);c(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},834:function(e,t,i){(function(){var t,r,n,o=function(e,t){for(var i in t){if(a.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;n=i(73).isObject;r=i(290);e.exports=t=function(e){o(XMLDTDEntity,e);function XMLDTDEntity(e,t,i,r){XMLDTDEntity.__super__.constructor.call(this,e);if(i==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(i);if(!n(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},835:function(e){e.exports=require("url")},836:function(e){e.exports={version:2,waiters:{DistributionDeployed:{delay:60,operation:"GetDistribution",maxAttempts:35,description:"Wait until a distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"Distribution.Status"}]},InvalidationCompleted:{delay:20,operation:"GetInvalidation",maxAttempts:30,description:"Wait until an invalidation has completed.",acceptors:[{expected:"Completed",matcher:"path",state:"success",argument:"Invalidation.Status"}]},StreamingDistributionDeployed:{delay:60,operation:"GetStreamingDistribution",maxAttempts:25,description:"Wait until a streaming distribution is deployed.",acceptors:[{expected:"Deployed",matcher:"path",state:"success",argument:"StreamingDistribution.Status"}]}}}},844:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},852:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const n=i(558);const o=i(87);const a=i(622);var s;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(s=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;n.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=s.Failure;error(e)}t.setFailed=setFailed;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e)}t.error=error;function warning(e){n.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},856:function(e,t,i){(function(){var t,r,n,o,a,s,u,c=function(e,t){for(var i in t){if(l.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},l={}.hasOwnProperty;u=i(73).isObject;s=i(290);t=i(358);n=i(834);r=i(206);o=i(705);e.exports=a=function(e){c(XMLDocType,e);function XMLDocType(e,t,i){var r,n;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(u(t)){r=t,t=r.pubID,i=r.sysID}if(i==null){n=[t,i],i=n[0],t=n[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(i!=null){this.sysID=this.stringify.dtdSysID(i)}}XMLDocType.prototype.element=function(e,t){var i;i=new r(this,e,t);this.children.push(i);return this};XMLDocType.prototype.attList=function(e,i,r,n,o){var a;a=new t(this,e,i,r,n,o);this.children.push(a);return this};XMLDocType.prototype.entity=function(e,t){var i;i=new n(this,false,e,t);this.children.push(i);return this};XMLDocType.prototype.pEntity=function(e,t){var i;i=new n(this,true,e,t);this.children.push(i);return this};XMLDocType.prototype.notation=function(e,t){var i;i=new o(this,e,t);this.children.push(i);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,i,r,n){return this.attList(e,t,i,r,n)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(s)}).call(this)},861:function(e,t,i){var r=i(216);var n=i(481);var o=i(477);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},866:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(23);i(374);i(465);i(697);i(227);i(817)},871:function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},881:function(e,t,i){var r=i(216),n=r.util.url,o=r.util.crypto.lib,a=r.util.base64.encode,s=r.util.inherit;var u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})};var c=function(e,t){var i=o.createSign("RSA-SHA1");i.write(e);return u(i.sign(t,"base64"))};var l=function(e,t,i,r){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":i,Signature:c(n.toString(),r)}};var d=function(e,t,i){e=e.replace(/\s/gm,"");return{Policy:u(a(e)),"Key-Pair-Id":t,Signature:c(e,i)}};var p=function(e){var t=e.split("://");if(t.length<2){throw new Error("Invalid URL.")}return t[0].replace("*","")};var m=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")};var f=function(e){switch(p(e)){case"http":case"https":return e;case"rtmp":return m(e);default:throw new Error("Invalid URI scheme. Scheme must be one of"+" http, https, or rtmp")}};var h=function(e,t){if(!t||typeof t!=="function"){throw e}t(e)};var y=function(e,t){if(!t||typeof t!=="function"){return e}t(null,e)};r.CloudFront.Signer=s({constructor:function Signer(e,t){if(e===void 0||t===void 0){throw new Error("A key pair ID and private key are required")}this.keyPairId=e;this.privateKey=t},getSignedCookie:function(e,t){var i="policy"in e?d(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey);var r={};for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r["CloudFront-"+n]=i[n]}}return y(r,t)},getSignedUrl:function(e,t){try{var i=f(e.url)}catch(e){return h(e,t)}var r=n.parse(e.url,true),o=Object.prototype.hasOwnProperty.call(e,"policy")?d(e.policy,this.keyPairId,this.privateKey):l(i,e.expires,this.keyPairId,this.privateKey);r.search=null;for(var a in o){if(Object.prototype.hasOwnProperty.call(o,a)){r.query[a]=o[a]}}try{var s=p(e.url)==="rtmp"?m(n.format(r)):n.format(r)}catch(e){return h(e,t)}return y(s,t)}});e.exports=r.CloudFront.Signer},882:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/{try{const e=r.getInput("distribution-id",{required:true});const t=r.getInput("caller-reference",{required:false});const i=r.getInput("paths",{required:false}).trim().split(/\r?[\n,]/);console.log(`Invalidation paths: ${i}`);const n={DistributionId:e,InvalidationBatch:{CallerReference:t,Paths:{Quantity:i.length,Items:i}}};const a=new o({apiVersion:"2019-03-26",customUserAgent:"aws-github-actions-cloudfront"});const s=await a.createInvalidation(n).promise();const u=s.Invalidation.Id;r.setOutput("invalidation-id",u);console.log(`CloudFront invalidation id: ${u}`)}catch(e){r.setFailed(e.message)}};s();t["default"]=s},945:function(e,t,i){var r=i(213);var n=i(438);var o=n;o.v1=r;o.v4=n;e.exports=o},953:function(e,t,i){var r=i(216);var n=i(87);var o=i(622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},958:function(e,t,i){var r=i(216);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var a=0;a

- IAM access credentials + IAM access credentials

The `iam_access_credentials` GitHub action will configure the workflow environment with the necessary IAM access credentials as requested (via environment variables). diff --git a/packages/iam_access_credentials/action.yml b/packages/iam_access_credentials/action.yml index a15b481..f42ac77 100644 --- a/packages/iam_access_credentials/action.yml +++ b/packages/iam_access_credentials/action.yml @@ -6,7 +6,9 @@ branding: color: 'orange' inputs: aws-region: - description: 'AWS Region to send the request to. If defined, this environment variable overrides the value for the profile setting region' + description: > + AWS Region to send the request to. If defined, this environment variable + overrides the value for the profile setting region required: true aws-access-key-id: description: 'AWS access key associated with an IAM user or role' @@ -15,7 +17,9 @@ inputs: description: 'Specifies the secret key associated with the access key' required: true aws-session-token: - description: 'Specifies the session token value that is required if you are using temporary security credentials that you retrieved directly from AWS STS operations' + description: > + Specifies the session token value that is required if you are using temporary + security credentials that you retrieved directly from AWS STS operations required: false mask-aws-account-id: description: 'Determine if AWS account ID should be hidden from stdout as a secret value' @@ -37,7 +41,9 @@ inputs: required: false default: '900' external-id: - description: 'A unique identifier that might be required when you assume a role in another account' + description: > + A unique identifier that might be required when you assume + a role in another account required: false outputs: aws-account-id: diff --git a/packages/iam_access_credentials/dist/index.js b/packages/iam_access_credentials/dist/index.js index 01d4821..05cdece 100644 --- a/packages/iam_access_credentials/dist/index.js +++ b/packages/iam_access_credentials/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var r=i[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(903)}t(__webpack_require__);return startup()}({6:function(e){function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,i,r){if(typeof e==="function"){r=i;i=t;t=e;e=null}var n=this;var o=n.states[n.currentState];o.fn.call(i||n,r,function(r){if(r){if(o.fail)n.currentState=o.fail;else return t?t.call(i,r):null}else{if(o.accept)n.currentState=o.accept;else return t?t.call(i):null}if(n.currentState===e){return t?t.call(i,r):null}n.runTo(e,t,i,r)})};AcceptorStateMachine.prototype.addState=function addState(e,t,i,r){if(typeof t==="function"){r=t;t=null;i=null}else if(typeof i==="function"){r=i;i=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:i,fn:r};return this};e.exports=AcceptorStateMachine},23:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V2=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=r.util.date.getDate();var i=this.request;i.params.Timestamp=r.util.date.iso8601(t);i.params.SignatureVersion="2";i.params.SignatureMethod="HmacSHA256";i.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){i.params.SecurityToken=e.sessionToken}delete i.params.Signature;i.params.Signature=this.signature(e);i.body=r.util.queryParamsToString(i.params);i.headers["Content-Length"]=i.body.length},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(r.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=r.Signers.V2},36:function(e,t,i){var r=i(216);var n=i(747);var o=i(477);var s=r.util.iniLoader;r.TokenFileWebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){r.Credentials.call(this);this.data=null;this.clientConfig=r.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=r.util.getProfilesFromSharedConfig(s);var t=process.env.AWS_PROFILE||r.util.defaultProfile;var i=e[t]||{};if(Object.keys(i).length===0){throw r.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var n=[];while(!i["web_identity_token_file"]&&i["source_profile"]){n.unshift({roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});var o=i["source_profile"];i=e[o]}n.unshift({envTokenFile:i["web_identity_token_file"],roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});return n},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var i=this;if(e.length===0){i.service.credentialsFrom(i.data,i);t()}else{var r=e.shift();i.service.config.credentials=i.service.credentialsFrom(i.data,i);i.service.assumeRole({RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){i.data=null;if(r){t(r)}else{i.data=n;i.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var i=t.getParamsFromEnv();if(!i){i=t.getParamsFromSharedConfig()}if(i){var r=i.shift();var o=n.readFileSync(r.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:o,RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){t.data=null;if(r){e(r)}else{t.data=n;t.assumeRoleChaining(i,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=r.util.merge({},this.clientConfig);this.service=new o(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return r.Service.prototype.retryableError.call(this,e)}}}}})},46:function(e,t,i){var r=i(216);var n=i(477);var o=r.util.iniLoader;r.SharedIniFileCredentials=r.util.inherit(r.Credentials,{constructor:function SharedIniFileCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var s=Boolean(this.preferStaticCredentials&&n["aws_access_key_id"]&&n["aws_secret_access_key"]);if(n["role_arn"]&&!s){this.loadRoleProfile(i,n,function(i,r){if(i){e(i)}else{t.expired=false;t.accessKeyId=r.Credentials.AccessKeyId;t.secretAccessKey=r.Credentials.SecretAccessKey;t.sessionToken=r.Credentials.SessionToken;t.expireTime=r.Credentials.Expiration;e(null)}});return}this.accessKeyId=n["aws_access_key_id"];this.secretAccessKey=n["aws_secret_access_key"];this.sessionToken=n["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){o.clearCachedFiles();this.coalesceRefresh(e||r.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,i){if(this.disableAssumeRole){throw r.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var o=this;var s=t["role_arn"];var a=t["role_session_name"];var u=t["external_id"];var c=t["mfa_serial"];var f=t["source_profile"];if(!f){throw r.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var l=e[f];if(typeof l!=="object"){throw r.util.error(new Error("source_profile "+f+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var h=new r.SharedIniFileCredentials(r.util.merge(this.options||{},{profile:f,preferStaticCredentials:true}));this.roleArn=s;var p=new n({credentials:h,httpOptions:this.httpOptions});var d={RoleArn:s,RoleSessionName:a||"aws-sdk-js-"+Date.now()};if(u){d.ExternalId=u}if(c&&o.tokenCodeFn){d.SerialNumber=c;o.tokenCodeFn(c,function(e,t){if(e){var n;if(e instanceof Error){n=e.message}else{n=e}i(r.util.error(new Error("Error fetching MFA token: "+n),{code:"SharedIniFileCredentialsProviderFailure"}));return}d.TokenCode=t;p.assumeRole(d,i)});return}p.assumeRole(d,i)}})},73:function(e){(function(){var t,i,r,n,o,s,a=[].slice,u={}.hasOwnProperty;t=function(){var e,t,i,r,o,s;s=arguments[0],o=2<=arguments.length?a.call(arguments,1):[];if(n(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,i=o.length;e=0?"&":"?";var u=[];r.arrayEach(Object.keys(s).sort(),function(e){if(!Array.isArray(s[e])){s[e]=[s[e]]}for(var t=0;t/g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},109:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},111:function(e,t,i){(function(){"use strict";var e,r,n,o,s,a={}.hasOwnProperty;e=i(764);r=i(816).defaults;o=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};s=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!a.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!a.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,f;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){f=Object.keys(t)[0];t=t[f]}else{f=this.options.rootName}u=function(e){return function(t,r){var c,f,l,h,p,d;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(s(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(h in r){if(!a.call(r,h))continue;f=r[h];for(p in f){l=f[p];t=u(t.ele(p),l).up()}}}else{for(p in r){if(!a.call(r,p))continue;f=r[p];if(p===i){if(typeof f==="object"){for(c in f){d=f[c];t=t.att(c,d)}}}else if(p===n){if(e.options.cdata&&o(f)){t=t.raw(s(f))}else{t=t.txt(f)}}else if(Array.isArray(f)){for(h in f){if(!a.call(f,h))continue;l=f[h];if(typeof l==="string"){if(e.options.cdata&&o(l)){t=t.ele(p).raw(s(l)).up()}else{t=t.ele(p,l).up()}}else{t=u(t.ele(p),l).up()}}}else if(typeof f==="object"){t=u(t.ele(p),f).up()}else{if(typeof f==="string"&&e.options.cdata&&o(f)){t=t.ele(p).raw(s(f)).up()}else{if(f==null){f=""}t=t.ele(p,f.toString()).up()}}}}return t}}(this);c=e.create(f,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},126:function(e,t,i){var r=i(425).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},129:function(e){e.exports=require("child_process")},134:function(e,t,i){var r=i(216);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},138:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},144:function(e,t,i){var r=i(216);var n=i(714);var o=i(339).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.config.region&&!e.service.isGlobalEndpoint){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,s=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var s=i.request.service;if(o){var a=Date.parse(o);if(s.config.correctClockSkew&&s.isClockSkewed(a)){s.applyClockOffset(a)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var s=(o-t.startTime.getTime())/1e3;var a=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var f=t.service.api.operations[t.operation].input;c=filterSensitiveLog(f,t.params)}var l=i(669).inspect(c,true,null);var h="";if(a)h+="";h+="[AWS "+t.service.serviceIdentifier+" "+u;h+=" "+s.toString()+"s "+e.retryCount+" retries]";if(a)h+="";h+=" "+r.util.string.lowerFirst(t.operation);h+="("+l+")";if(a)h+="";return h}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(278);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(80);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(230);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(413);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(675);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},170:function(e,t,i){(function(){var t,r,n,o,s,a,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=i(73),s=a.isObject,o=a.isFunction;n=i(290);t=i(297);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(s(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;ia)&&e.nsecs===undefined){v=0}if(v>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=d;u=v;s=h;d+=122192928e5;var g=((d&268435455)*1e4+v)%4294967296;f[c++]=g>>>24&255;f[c++]=g>>>16&255;f[c++]=g>>>8&255;f[c++]=g&255;var y=d/4294967296*1e4&268435455;f[c++]=y>>>8&255;f[c++]=y&255;f[c++]=y>>>24&15|16;f[c++]=y>>>16&255;f[c++]=h>>>8|128;f[c++]=h&255;for(var E=0;E<6;++E){f[c+E]=l[E]}return t?t:n(f)}e.exports=v1},215:function(e){function eventMessageChunker(e){var t=[];var i=0;while(i=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var s=0;var a;var u;var c=this;var f=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},f);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();a=e.httpRequest.region;s++},f);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=a;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=a;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=s;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=s(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var a=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new a(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i0){try{var n=JSON.parse(i.body.toString());if(n.__type||n.code){t.code=(n.__type||n.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},286:function(e,t,i){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=d.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,s=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,a)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var d=0;e.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var v in e.STATE){e.STATE[e.STATE[v]]=v}d=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==d.BEGIN&&e.state!==d.BEGIN_WHITESPACE&&e.state!==d.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==a){strictFail(e,"xml: prefix must be bound to "+a+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,s=e.attribList.length;o";e.tagName="";e.state=d.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=d.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var s=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var a={};for(var u in s.ns){a[u]=s.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&s.ns!==c.ns){Object.keys(s.ns).forEach(function(t){var i=s.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=d.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=d.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=d.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=d.TEXT}else if(isQuote(r)){t.state=d.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case d.SGML_DECL_QUOTED:if(r===t.q){t.state=d.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case d.DOCTYPE:if(r===">"){t.state=d.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=d.DOCTYPE_DTD}else if(isQuote(r)){t.state=d.DOCTYPE_QUOTED;t.q=r}}continue;case d.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=d.DOCTYPE}continue;case d.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=d.DOCTYPE}else if(isQuote(r)){t.state=d.DOCTYPE_DTD_QUOTED;t.q=r}continue;case d.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=d.DOCTYPE_DTD;t.q=""}continue;case d.COMMENT:if(r==="-"){t.state=d.COMMENT_ENDING}else{t.comment+=r}continue;case d.COMMENT_ENDING:if(r==="-"){t.state=d.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=d.COMMENT}continue;case d.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=d.COMMENT}else{t.state=d.TEXT}continue;case d.CDATA:if(r==="]"){t.state=d.CDATA_ENDING}else{t.cdata+=r}continue;case d.CDATA_ENDING:if(r==="]"){t.state=d.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=d.CDATA}continue;case d.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=d.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=d.CDATA}continue;case d.PROC_INST:if(r==="?"){t.state=d.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=d.PROC_INST_BODY}else{t.procInstName+=r}continue;case d.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=d.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case d.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=d.TEXT}else{t.procInstBody+="?"+r;t.state=d.PROC_INST_BODY}continue;case d.OPEN_TAG:if(isMatch(l,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=d.ATTRIB}}continue;case d.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=d.ATTRIB}continue;case d.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(f,r)){t.attribName=r;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME:if(r==="="){t.state=d.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=d.ATTRIB_NAME_SAW_WHITE}else if(isMatch(l,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=d.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(f,r)){t.attribName=r;t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=d.ATTRIB}}continue;case d.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=d.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=d.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case d.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=d.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=d.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(f,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=d.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=d.ATTRIB}continue;case d.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(f,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(l,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case d.TEXT_ENTITY:u=d.TEXT;c="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:u=d.ATTRIB_VALUE_QUOTED;c="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:u=d.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?p:h,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var s=-1;var a=arguments.length;if(!a){return""}var u="";while(++s1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(s+1===a||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?undefined:t)},290:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v={}.hasOwnProperty;d=i(73),p=d.isObject,h=d.isFunction,l=d.isEmpty;s=null;t=null;r=null;n=null;o=null;c=null;f=null;u=null;e.exports=a=function(){function XMLNode(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.children=[];if(!s){s=i(170);t=i(138);r=i(109);n=i(676);o=i(856);c=i(426);f=i(626);u=i(718)}}XMLNode.prototype.element=function(e,t,i){var r,n,o,s,a,u,c,f,d,m;u=null;if(t==null){t={}}t=t.valueOf();if(!p(t)){d=[t,i],i=d[0],t=d[1]}if(e!=null){e=e.valueOf()}if(Array.isArray(e)){for(o=0,c=e.length;o0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},306:function(e,t,i){var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(216).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var s=i(r);var a=s+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});a=s+"="+u.sort().join("&"+s+"=")}else if(o!==undefined&&o!==null){a=s+"="+i(o)}t.push(a)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var s=n.arraySliceFn(t);var a=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)a=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!a){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&s&&!a&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var f=new FileReader;f.onerror=function(){r(new Error("Failed to read data."))};f.onload=function(){var e=new n.Buffer(new Uint8Array(f.result));o.update(e);u+=e.length;f._continueReading()};f._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;f.readAsArrayBuffer(s.call(t,u,e))};f._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!a){t=new n.Buffer(new Uint8Array(t))}var l=o.update(t).digest(i);if(r)r(null,l);return l}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){a++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,s,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var s=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&s.retryable)s.retryAfter=o;u(s)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(945).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var s=0,a=Object.keys(r);s=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},311:function(e,t,i){var r=i(306).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},337:function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},339:function(e,t,i){var r=i(216);var n=i(306);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var s=o?o.input:undefined;var a=marshallCustomIdentifiers(e,s);var u=getCacheKey(e);if(Object.keys(a).length>0){u=n.update(u,a);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var f=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:a});addApiVersionHeader(f);f.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);f.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);f.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var s={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var a=o.operations?o.operations[e.operation]:undefined;var u=a?a.input:undefined;var c=marshallCustomIdentifiers(e,u);var f=getCacheKey(e);if(Object.keys(c).length>0){f=n.update(f,c);if(a)f.operation=a.name}var l=r.EndpointCache.getKeyString(f);var h=r.endpointCache.get(l);if(h&&h.length===1&&h[0].Address===""){if(!s[l])s[l]=[];s[l].push({request:e,callback:t});return}else if(h&&h.length>0){e.httpRequest.updateEndpoint(h[0].Address);t()}else{var p=i.makeRequest(o.endpointOperation,{Operation:a.name,Identifiers:c});p.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(p);r.endpointCache.put(l,[{Address:"",CachePeriodInMinutes:60}]);p.send(function(i,o){if(i){var a={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=n.error(i,a);r.endpointCache.remove(f);if(s[l]){var u=s[l];n.arrayEach(u,function(e){e.request.response.error=n.error(i,a);e.callback()});delete s[l]}}else if(o){r.endpointCache.put(l,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(s[l]){var u=s[l];n.arrayEach(u,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete s[l]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var s=o.service.api.operations||{};var a=s[o.operation]?s[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,a);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(s[o.operation])c.operation=s[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryApplicable(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(n.isBrowser())return false;for(var i=0;i0){u[e.options.childkey]=f}f=u}else if(d){d[e.options.childkey]=d[e.options.childkey]||[];l={};for(a in f){if(!h.call(f,a))continue;l[a]=f[a]}d[e.options.childkey].push(l);delete f["#name"];if(Object.keys(f).length===1&&t in f&&!e.EXPLICIT_CHARKEY){f=f[t]}}}if(r.length>0){return e.assignOrPush(d,c,f)}else{if(e.options.explicitRoot){p=f;f={};f[c]=p}e.resultObject=f;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,s;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}s=new t.Parser(o);return s.parseString(e,n)}}).call(this)},354:function(e,t,i){var r=i(216);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var s=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=s[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var a=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(a,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},358:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLDTDAttList,e);function XMLDTDAttList(e,t,i,r,n,o){XMLDTDAttList.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(i==null){throw new Error("Missing DTD attribute name")}if(!r){throw new Error("Missing DTD attribute type")}if(!n){throw new Error("Missing DTD attribute default")}if(n.indexOf("#")!==0){n="#"+n}if(!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT")}if(o&&!n.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT")}this.elementName=this.stringify.eleName(t);this.attributeName=this.stringify.attName(i);this.attributeType=this.stringify.dtdAttType(r);this.defaultValue=this.stringify.dtdAttDefault(o);this.defaultValueType=n}XMLDTDAttList.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)};return XMLDTDAttList}(r)}).call(this)},363:function(e,t,i){var r=i(306);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var s=ucfirst(r);s=e?e+"."+s:s;serializeMember(s,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var s=i.flattened?".":".entry.";var a=s+o+++".";var u=a+(i.key.name||"key");var c=a+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var s="."+(r+1);if(i.api.protocol==="ec2"){s=s+""}else if(i.flattened){if(o.name){var a=e.split(".");a.pop();a.push(ucfirst(o));e=a.join(".")}}else{s="."+(o.name?o.name:"member")+s}serializeMember(e+s,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},374:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},381:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},398:function(e,t,i){var r=i(216);var n=i(477);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},413:function(e,t,i){var r=i(216);var n=i(306);var o=i(80);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var s=t.payload;if(s){var a=t.members[s];o=o[s];if(o===undefined)return;if(a.type==="structure"){var u=a.name;e.httpRequest.body=i.toXML(o,a,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var s=e.httpResponse.body;var a=i.service.api.operations[i.operation];var u=a.output;var c=a.hasEventOutput;var f=u.payload;if(f){var l=u.members[f];if(l.isEventStream){t=new r.XML.Parser;e.data[f]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,l)}else if(l.type==="structure"){t=new r.XML.Parser;e.data[f]=t.parse(s.toString(),l)}else if(l.type==="binary"||l.isStreaming){e.data[f]=s}else{e.data[f]=l.toType(s)}}else if(s.length>0){t=new r.XML.Parser;var h=t.parse(s.toString(),u);n.update(e.data,h)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},417:function(e){e.exports=require("crypto")},418:function(e,t,i){var r=i(216);var n=i(477);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},425:function(e){function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},426:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},428:function(e,t,i){var r=i(216);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},435:function(e,t,i){var r=i(216);var n=i(477);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},438:function(e,t,i){var r=i(774);var n=i(86);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=s[a]}}return t||n(s)}e.exports=v4},441:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},442:function(e,t,i){var r=i(216);i(632);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,s){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}s=s.split("\n")[0];i.request(n+s,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},457:function(e,t,i){var r=i(216);i(616);i(821);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:false,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},459:function(e,t,i){var r=i(216);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var s=r.util.stream.Readable;i(632);var a="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var s=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var f=u.protocol==="https:";var l=f?i(211):i(605);var h={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){h.agent=this.getAgent(f,{keepAlive:process.env[a]==="1"?true:false})}r.util.update(h,t);delete h.proxy;delete h.timeout;var p=l.request(h,function(e){if(p.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=p;p.didCallback=false;if(t.connectTimeout){var d;p.on("socket",function(e){if(e.connecting){d=setTimeout(function connectTimeout(){if(p.didCallback)return;p.didCallback=true;p.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(d);d=null})}})}p.setTimeout(t.timeout||0,function(){if(p.didCallback)return;p.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));p.abort()});p.on("error",function(){if(d){clearTimeout(d);d=null}if(p.didCallback)return;p.didCallback=true;o.apply(p,arguments)});var v=e.headers.Expect||e.headers.expect;if(v==="100-continue"){p.on("continue",function(){s.writeBody(p,e)})}else{this.writeBody(p,e)}return p},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(211):i(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=s?2:1},465:function(e,t,i){var r=i(216);var n=r.util.inherit;i(374);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},474:function(e){e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},477:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(979);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(381);e.paginators=i(968).pagination;return e},enumerable:true,configurable:true});e.exports=r.STS},478:function(e,t,i){var r=i(306);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var s=translate(o,r);if(s!==undefined)i[t]=s}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},481:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(814);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(844);e.paginators=i(695).pagination;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},483:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v,m,g,y,E,w,C,S={}.hasOwnProperty;C=i(73),E=C.isObject,y=C.isFunction,w=C.isPlainObject;h=i(170);r=i(138);n=i(109);d=i(426);g=i(626);p=i(718);c=i(676);f=i(856);o=i(358);a=i(834);s=i(206);u=i(705);t=i(297);m=i(882);v=i(799);e.exports=l=function(){function XMLDocumentCB(e,t,i){var r;e||(e={});if(!e.writer){e.writer=new v(e)}else if(w(e.writer)){r=e.writer;e.writer=new v(r)}this.options=e;this.writer=e.writer;this.stringify=new m(e);this.onDataCallback=t||function(){};this.onEndCallback=i||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,i){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!E(t)){r=[t,i],i=r[0],t=r[1]}this.currentNode=new h(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(i!=null){this.text(i)}return this};XMLDocumentCB.prototype.element=function(e,t,i){if(this.currentNode&&this.currentNode instanceof f){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,i)}};XMLDocumentCB.prototype.attribute=function(e,i){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(E(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(y(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.currentNode.attributes[e]=new t(this,e,i)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new g(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new n(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new d(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var i,r,n,o,s;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(i=0,o=e.length;i=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof h){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof f){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof f){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},491:function(e,t,i){var r=i(306);var n=i(522).XmlNode;var o=i(126).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var s=t[r];var a=o.name;if(s!==undefined&&s!==null){if(o.isXmlAttribute){e.addAttribute(a,s)}else if(o.flattened){serialize(e,s,o)}else{var u=new n(a);e.addChildNode(u);applyNamespaces(u,o);serialize(u,s,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var s=i.value.name||"value";r.each(t,function(t,r){var a=new n(i.flattened?i.name:"entry");e.addChildNode(a);var u=new n(o);var c=new n(s);a.addChildNode(u);a.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},503:function(e,t,i){var r=i(216);var n=i(129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var s=r.util.date.getDate();var a=new Date(o.Expiration);if(a":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},534:function(e,t,i){(function(){"use strict";var e,r,n,o,s=function(e,t){for(var i in t){if(a.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;r=i(816);e=i(111);n=i(353);o=i(441);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){s(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},538:function(e,t,i){var r=i(264);var n=i(306);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var s=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+s)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},540:function(e,t,i){var r=i(216);i(442);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var s=new Date(n.Expiration);if(s0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const i=this.properties[t];if(i){e+=`${t}=${escape(`${i||""}`)},`}}}}e+=n;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},568:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(756);var n=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=n}this.maxSize=e;this.cache=new r.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=s.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>s){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},603:function(e){(function(){var t,i={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,n,o,s,a,u,c,f;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(n=e.indent)!=null?n:" ";this.newline=(o=e.newline)!=null?o:"\n";this.offset=(s=e.offset)!=null?s:0;this.dontprettytextnodes=(a=e.dontprettytextnodes)!=null?a:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(u=e.spacebeforeslash)!=null?u:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;c=e.writer||{};for(t in c){if(!i.call(c,t))continue;f=c[t];this[t]=f}}XMLWriterBase.prototype.set=function(e){var t,r,n;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!i.call(r,t))continue;n=r[t];this[t]=n}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},616:function(e,t,i){var r=i(216);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},620:function(e,t,i){var r=i(306);var n=i(216);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},622:function(e){e.exports=require("path")},624:function(e,t,i){var r=i(216);var n=i(6);var o=r.util.inherit;var s=r.util.domain;var a=i(766);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(s&&i.domain instanceof s.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var a=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint)a="us-east-1";this.domain=s&&s.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,a);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var s=o.resultKey;if(Array.isArray(s))s=s[0];var u=a.search(n,s);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,s){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){s.error=e;s.error.retryable=false});var a=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){a=true;var c=0}var f=function checkContentLengthAndEmit(){if(a&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var l=s.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(a){var h=new e.PassThrough;h._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};h.on("end",f);i.on("error",function(e){a=false;l.unpipe(h);h.emit("end");h.end()});l.pipe(h).pipe(i,{end:false})}else{l.pipe(i)}}else{if(a){l.on("data",function(e){if(e&&e.length){c+=e.length}})}l.on("data",function(e){i.emit("data",e)});l.on("end",f)}l.on("error",function(e){a=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},626:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},632:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/"}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},644:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var s=t.inputToken;if(typeof s==="string")s=[s];for(var a=0;as){delete n[o.shift()]}}return v},emptyCache:function emptyCache(){n={};o=[]}}},663:function(e,t,i){var r=i(216),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",s="AWS_CONTAINER_AUTHORIZATION_TOKEN",a=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],f="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+f+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(a.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[s]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},669:function(e){e.exports=require("util")},673:function(e,t,i){var r=i(306);var n=i(871);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase()-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var s=n||null;function callNextListener(n){if(n){s=r.util.error(s||new Error,n);if(o._haltHandlersOnError){return i.call(o,s)}}o.callListeners(e,t,i,s)}while(e.length>0){var a=e.shift();if(a._isAsync){a.apply(o,t.concat([callNextListener]));return}else{try{a.apply(o,t)}catch(e){s=r.util.error(s||new Error,e)}if(s&&o._haltHandlersOnError){i.call(o,s);return}}}i.call(o,s)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},718:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,i){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(i){this.value=this.stringify.insValue(i)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},719:function(e,t,i){var r=i(306);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(417);r.Buffer=i(293).Buffer;r.domain=i(229);r.stream=i(794);r.url=i(835);r.querystring=i(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(99).createEventStream:i(273).createEventStream;r.realClock=i(474);r.clientSideMonitoring={Publisher:i(579).Publisher,configProvider:i(428)};r.iniLoader=i(808).iniLoader;var n;e.exports=n=i(216);i(616);i(821);i(74);i(418);i(435);i(861);i(398);i(503);n.XML.Parser=i(722);i(459);i(953);i(36);i(540);i(663);i(266);i(730);i(134);i(46);i(503);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var s=o[e.AWS_PROFILE||n.util.defaultProfile];t=s&&s.region}}return t}});n.config=new n.Config},722:function(e,t,i){var r=i(216);var n=r.util;var o=r.Model.Shape;var s=i(534);var a={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new s.Parser(a);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(t,r){var n=r.name;if(Object.prototype.hasOwnProperty.call(e,n)&&Array.isArray(e[n])){var o=e[n];if(!r.flattened)o=o[0];i[t]=parseXml(o,r)}else if(r.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,n)){i[t]=parseScalar(e.$[n],r)}else if(r.type==="list"){i[t]=r.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var s=t.flattened?e:e.entry;if(Array.isArray(s)){n.arrayEach(s,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(s,{member:{}})}else{n[o]=parseXml(s[0],{})}}return n}e.exports=NodeXmlParser},730:function(e,t,i){var r=i(216);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var i=[];for(var n=0;n":true,"=":true,"!":true};var j={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:D,value:">=",start:t}}else{return{type:_,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:T,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var U={};U[h]=0;U[p]=0;U[d]=0;U[v]=0;U[m]=0;U[g]=0;U[E]=0;U[w]=0;U[C]=0;U[S]=0;U[I]=1;U[b]=2;U[x]=3;U[T]=5;U[_]=5;U[P]=5;U[D]=5;U[R]=5;U[L]=5;U[A]=9;U[M]=20;U[N]=21;U[F]=40;U[O]=45;U[q]=50;U[X]=55;U[k]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==h){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:h,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===X){this._match(X);return this._parseMultiselectList()}else if(t===q){this._match(q);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(U[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===X){t=this.expression(e)}else if(this._lookahead(0)===N){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==v){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===v){throw new Error("Unexpected token Rbracket")}}}this._match(v);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[p,d];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(y);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===E){this._match(E);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,s,a,u,c,f,l;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){a=t[e.name];if(a===undefined){return null}else{return a}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(l=1;l0){for(l=v;lm;l+=g){n.push(t[l])}}return n;case"Projection":var y=this.visit(e.children[0],t);if(!isArray(y)){return null}f=[];for(l=0;ls;break;case D:n=o>=s;break;case P:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[f]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,s]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[f,l]}]},merge:{_func:this._functionMerge,_signature:[{types:[s],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[f]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[f,l]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[s]}]},values:{_func:this._functionValues,_signature:[{types:[s]}]},sort:{_func:this._functionSort,_signature:[{types:[l,f]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[l]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var s=e[0].slice(0);s.reverse();return s}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(is){s=u;a=r[c]}}return a},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var s=Infinity;var a;var u;for(var c=0;c"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,f,h;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));h=e.children;for(c=0,f=h.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,s,a,u,c,p,v;i||(i=0);v=this.space(i);this.stream.write(v+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);p=e.children;for(s=0,a=p.length;s")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(v)}).call(this)},774:function(e,t,i){var r=i(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},794:function(e){e.exports=require("stream")},798:function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},799:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v,m=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(676);c=i(856);t=i(138);r=i(109);f=i(170);h=i(426);d=i(626);l=i(718);n=i(358);o=i(206);s=i(834);a=i(705);v=i(603);e.exports=p=function(e){m(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,s;this.textispresent=false;o="";s=e.children;for(i=0,n=s.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,f,h,p;i||(i=0);h=this.space(i);h+="0){h+=" [";h+=this.newline;p=e.children;for(c=0,f=p.length;c";h+=this.newline;return h};XMLStringWriter.prototype.element=function(e,i){var n,o,s,a,u,c,p,v,m,y,E,w,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}w=this.space(i);v="";v+=w+"<"+e.name;m=e.attributes;for(p in m){if(!g.call(m,p))continue;n=m[p];v+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){v+=">"+this.newline}else{v+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){v+=">";v+=e.children[0].value;v+=""+this.newline}else{if(this.dontprettytextnodes){y=e.children;for(s=0,u=y.length;s"+this.newline;E=e.children;for(a=0,c=E.length;a"+this.newline}return v};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof f){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof f):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(v)}).call(this)},808:function(e,t,i){var r=i(953).IniLoader;e.exports.iniLoader=new r},814:function(e,t,i){var r=i(216);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},816:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},817:function(e,t,i){var r=i(216);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var s=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(s)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var s=e.httpRequest.headers["Authorization"].split(" ");if(s[0]==="AWS"){s=s[1].split(":");n["AWSAccessKeyId"]=s[0];n["Signature"]=s[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(s[0]==="AWS4-HMAC-SHA256"){s.shift();var a=s.join(" ");var u=a.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},821:function(e,t,i){var r=i(216);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var s=n[i++];if(typeof s==="function"){o=s.call()}else{o=s}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},823:function(e,t,i){var r=i(264);var n=i(507);var o=i(538);var s=i(311);var a=i(703);var u=i(306);var c=u.property;var f=u.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};c(this,"isApi",true,false);c(this,"apiVersion",e.metadata.apiVersion);c(this,"endpointPrefix",e.metadata.endpointPrefix);c(this,"signingName",e.metadata.signingName);c(this,"globalEndpoint",e.metadata.globalEndpoint);c(this,"signatureVersion",e.metadata.signatureVersion);c(this,"jsonVersion",e.metadata.jsonVersion);c(this,"targetPrefix",e.metadata.targetPrefix);c(this,"protocol",e.metadata.protocol);c(this,"timestampFormat",e.metadata.timestampFormat);c(this,"xmlNamespaceUri",e.metadata.xmlNamespace);c(this,"abbreviation",e.metadata.serviceAbbreviation);c(this,"fullName",e.metadata.serviceFullName);c(this,"serviceId",e.metadata.serviceId);f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){c(i,"endpointOperation",u.string.lowerFirst(e))}}c(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},u.string.lowerFirst,addEndpointOperation));c(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));c(this,"paginators",new r(e.paginators,t,function(e,i){return new s(e,i,t)}));c(this,"waiters",new r(e.waiters,t,function(e,i){return new a(e,i,t)},u.string.lowerFirst));if(t.documentation){c(this,"documentation",e.documentation);c(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},834:function(e,t,i){(function(){var t,r,n,o=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=i(73).isObject;r=i(290);e.exports=t=function(e){o(XMLDTDEntity,e);function XMLDTDEntity(e,t,i,r){XMLDTDEntity.__super__.constructor.call(this,e);if(i==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(i);if(!n(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},835:function(e){e.exports=require("url")},844:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},852:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const n=i(558);const o=i(87);const s=i(622);var a;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(a=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;n.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${s.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=a.Failure;error(e)}t.setFailed=setFailed;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e)}t.error=error;function warning(e){n.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},856:function(e,t,i){(function(){var t,r,n,o,s,a,u,c=function(e,t){for(var i in t){if(f.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},f={}.hasOwnProperty;u=i(73).isObject;a=i(290);t=i(358);n=i(834);r=i(206);o=i(705);e.exports=s=function(e){c(XMLDocType,e);function XMLDocType(e,t,i){var r,n;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(u(t)){r=t,t=r.pubID,i=r.sysID}if(i==null){n=[t,i],i=n[0],t=n[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(i!=null){this.sysID=this.stringify.dtdSysID(i)}}XMLDocType.prototype.element=function(e,t){var i;i=new r(this,e,t);this.children.push(i);return this};XMLDocType.prototype.attList=function(e,i,r,n,o){var s;s=new t(this,e,i,r,n,o);this.children.push(s);return this};XMLDocType.prototype.entity=function(e,t){var i;i=new n(this,false,e,t);this.children.push(i);return this};XMLDocType.prototype.pEntity=function(e,t){var i;i=new n(this,true,e,t);this.children.push(i);return this};XMLDocType.prototype.notation=function(e,t){var i;i=new o(this,e,t);this.children.push(i);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,i,r,n){return this.attList(e,t,i,r,n)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(a)}).call(this)},861:function(e,t,i){var r=i(216);var n=i(481);var o=i(477);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},866:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(23);i(374);i(465);i(697);i(227);i(817)},871:function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},882:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/{try{const e=r.getInput("aws-region",{required:true});const t=r.getInput("aws-access-key-id",{required:true});const i=r.getInput("aws-secret-access-key",{required:true});const n=r.getInput("aws-session-token",{required:false});const s=r.getInput("mask-aws-account-id",{required:false});const a={region:e,accessKeyId:t,secretAccessKey:i,sessionToken:n,maskAccountId:s};exportEnvVariables(a);const u=r.getInput("assume-role",{required:false});const c=u&&u.toLowerCase()=="true";const f=r.getInput("role-arn",{required:c});const l=r.getInput("role-session-name",{required:c});const h=r.getInput("duration-seconds",{required:false});const p=Math.max(parseInt(h),900);const d=r.getInput("external-id",{required:false});const v=new o({apiVersion:"2011-06-15",customUserAgent:"aws-github-actions-sts"});const m={RoleArn:f,RoleSessionName:l,DurationSecond:p,ExternalId:d};if(c){const e=await v.assumeRole(m).promise();a.accessKeyId=e.Credentials.AccessKeyId;a.secretAccessKey=e.Credentials.SecretAccessKey;a.sessionToken=e.Credentials.SessionToken;exportEnvVariables(a)}const g=await v.getCallerIdentity().promise();const y=g.Account;r.setOutput("aws-account-id",y);if(!a.maskAccountId||a.maskAccountId.toLowerCase()=="true"){r.setSecret(y)}}catch(e){r.setFailed(e.message)}};a();t["default"]=a},945:function(e,t,i){var r=i(213);var n=i(438);var o=n;o.v1=r;o.v4=n;e.exports=o},953:function(e,t,i){var r=i(216);var n=i(87);var o=i(622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var s=r.IniLoader;e.exports={IniLoader:s,parseFile:parseFile}},958:function(e,t,i){var r=i(216);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var s=0;s=0?"&":"?";var u=[];r.arrayEach(Object.keys(s).sort(),function(e){if(!Array.isArray(s[e])){s[e]=[s[e]]}for(var t=0;t/g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},109:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},111:function(e,t,i){(function(){"use strict";var e,r,n,o,s,a={}.hasOwnProperty;e=i(764);r=i(816).defaults;o=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};s=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!a.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!a.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,f;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){f=Object.keys(t)[0];t=t[f]}else{f=this.options.rootName}u=function(e){return function(t,r){var c,f,l,h,p,d;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(s(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(h in r){if(!a.call(r,h))continue;f=r[h];for(p in f){l=f[p];t=u(t.ele(p),l).up()}}}else{for(p in r){if(!a.call(r,p))continue;f=r[p];if(p===i){if(typeof f==="object"){for(c in f){d=f[c];t=t.att(c,d)}}}else if(p===n){if(e.options.cdata&&o(f)){t=t.raw(s(f))}else{t=t.txt(f)}}else if(Array.isArray(f)){for(h in f){if(!a.call(f,h))continue;l=f[h];if(typeof l==="string"){if(e.options.cdata&&o(l)){t=t.ele(p).raw(s(l)).up()}else{t=t.ele(p,l).up()}}else{t=u(t.ele(p),l).up()}}}else if(typeof f==="object"){t=u(t.ele(p),f).up()}else{if(typeof f==="string"&&e.options.cdata&&o(f)){t=t.ele(p).raw(s(f)).up()}else{if(f==null){f=""}t=t.ele(p,f.toString()).up()}}}}return t}}(this);c=e.create(f,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},126:function(e,t,i){var r=i(425).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},129:function(e){e.exports=require("child_process")},134:function(e,t,i){var r=i(216);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},138:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},144:function(e,t,i){var r=i(216);var n=i(714);var o=i(339).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.config.region&&!e.service.isGlobalEndpoint){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,s=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var s=i.request.service;if(o){var a=Date.parse(o);if(s.config.correctClockSkew&&s.isClockSkewed(a)){s.applyClockOffset(a)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var s=(o-t.startTime.getTime())/1e3;var a=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var f=t.service.api.operations[t.operation].input;c=filterSensitiveLog(f,t.params)}var l=i(669).inspect(c,true,null);var h="";if(a)h+="";h+="[AWS "+t.service.serviceIdentifier+" "+u;h+=" "+s.toString()+"s "+e.retryCount+" retries]";if(a)h+="";h+=" "+r.util.string.lowerFirst(t.operation);h+="("+l+")";if(a)h+="";return h}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(278);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(80);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(230);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(413);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(675);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},170:function(e,t,i){(function(){var t,r,n,o,s,a,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=i(73),s=a.isObject,o=a.isFunction;n=i(290);t=i(297);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(s(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;ia)&&e.nsecs===undefined){v=0}if(v>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=d;u=v;s=h;d+=122192928e5;var g=((d&268435455)*1e4+v)%4294967296;f[c++]=g>>>24&255;f[c++]=g>>>16&255;f[c++]=g>>>8&255;f[c++]=g&255;var y=d/4294967296*1e4&268435455;f[c++]=y>>>8&255;f[c++]=y&255;f[c++]=y>>>24&15|16;f[c++]=y>>>16&255;f[c++]=h>>>8|128;f[c++]=h&255;for(var E=0;E<6;++E){f[c+E]=l[E]}return t?t:n(f)}e.exports=v1},215:function(e){function eventMessageChunker(e){var t=[];var i=0;while(i=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var s=0;var a;var u;var c=this;var f=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},f);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();a=e.httpRequest.region;s++},f);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=a;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=a;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=s;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=s(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var a=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new a(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i0){try{var n=JSON.parse(i.body.toString());if(n.__type||n.code){t.code=(n.__type||n.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},286:function(e,t,i){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=d.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,s=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,a)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var d=0;e.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var v in e.STATE){e.STATE[e.STATE[v]]=v}d=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==d.BEGIN&&e.state!==d.BEGIN_WHITESPACE&&e.state!==d.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==a){strictFail(e,"xml: prefix must be bound to "+a+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,s=e.attribList.length;o";e.tagName="";e.state=d.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=d.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var s=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var a={};for(var u in s.ns){a[u]=s.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&s.ns!==c.ns){Object.keys(s.ns).forEach(function(t){var i=s.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=d.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=d.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=d.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=d.TEXT}else if(isQuote(r)){t.state=d.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case d.SGML_DECL_QUOTED:if(r===t.q){t.state=d.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case d.DOCTYPE:if(r===">"){t.state=d.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=d.DOCTYPE_DTD}else if(isQuote(r)){t.state=d.DOCTYPE_QUOTED;t.q=r}}continue;case d.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=d.DOCTYPE}continue;case d.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=d.DOCTYPE}else if(isQuote(r)){t.state=d.DOCTYPE_DTD_QUOTED;t.q=r}continue;case d.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=d.DOCTYPE_DTD;t.q=""}continue;case d.COMMENT:if(r==="-"){t.state=d.COMMENT_ENDING}else{t.comment+=r}continue;case d.COMMENT_ENDING:if(r==="-"){t.state=d.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=d.COMMENT}continue;case d.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=d.COMMENT}else{t.state=d.TEXT}continue;case d.CDATA:if(r==="]"){t.state=d.CDATA_ENDING}else{t.cdata+=r}continue;case d.CDATA_ENDING:if(r==="]"){t.state=d.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=d.CDATA}continue;case d.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=d.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=d.CDATA}continue;case d.PROC_INST:if(r==="?"){t.state=d.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=d.PROC_INST_BODY}else{t.procInstName+=r}continue;case d.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=d.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case d.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=d.TEXT}else{t.procInstBody+="?"+r;t.state=d.PROC_INST_BODY}continue;case d.OPEN_TAG:if(isMatch(l,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=d.ATTRIB}}continue;case d.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=d.ATTRIB}continue;case d.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(f,r)){t.attribName=r;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME:if(r==="="){t.state=d.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=d.ATTRIB_NAME_SAW_WHITE}else if(isMatch(l,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=d.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(f,r)){t.attribName=r;t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=d.ATTRIB}}continue;case d.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=d.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=d.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case d.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=d.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=d.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(f,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=d.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=d.ATTRIB}continue;case d.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(f,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(l,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case d.TEXT_ENTITY:u=d.TEXT;c="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:u=d.ATTRIB_VALUE_QUOTED;c="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:u=d.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?p:h,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var s=-1;var a=arguments.length;if(!a){return""}var u="";while(++s1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(s+1===a||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?undefined:t)},290:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v={}.hasOwnProperty;d=i(73),p=d.isObject,h=d.isFunction,l=d.isEmpty;s=null;t=null;r=null;n=null;o=null;c=null;f=null;u=null;e.exports=a=function(){function XMLNode(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.children=[];if(!s){s=i(170);t=i(138);r=i(109);n=i(676);o=i(856);c=i(426);f=i(626);u=i(718)}}XMLNode.prototype.element=function(e,t,i){var r,n,o,s,a,u,c,f,d,m;u=null;if(t==null){t={}}t=t.valueOf();if(!p(t)){d=[t,i],i=d[0],t=d[1]}if(e!=null){e=e.valueOf()}if(Array.isArray(e)){for(o=0,c=e.length;o0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},306:function(e,t,i){var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(216).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var s=i(r);var a=s+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});a=s+"="+u.sort().join("&"+s+"=")}else if(o!==undefined&&o!==null){a=s+"="+i(o)}t.push(a)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var s=n.arraySliceFn(t);var a=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)a=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!a){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&s&&!a&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var f=new FileReader;f.onerror=function(){r(new Error("Failed to read data."))};f.onload=function(){var e=new n.Buffer(new Uint8Array(f.result));o.update(e);u+=e.length;f._continueReading()};f._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;f.readAsArrayBuffer(s.call(t,u,e))};f._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!a){t=new n.Buffer(new Uint8Array(t))}var l=o.update(t).digest(i);if(r)r(null,l);return l}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){a++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,s,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var s=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&s.retryable)s.retryAfter=o;u(s)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(945).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var s=0,a=Object.keys(r);s=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},311:function(e,t,i){var r=i(306).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},337:function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},339:function(e,t,i){var r=i(216);var n=i(306);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var s=o?o.input:undefined;var a=marshallCustomIdentifiers(e,s);var u=getCacheKey(e);if(Object.keys(a).length>0){u=n.update(u,a);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var f=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:a});addApiVersionHeader(f);f.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);f.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);f.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var s={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var a=o.operations?o.operations[e.operation]:undefined;var u=a?a.input:undefined;var c=marshallCustomIdentifiers(e,u);var f=getCacheKey(e);if(Object.keys(c).length>0){f=n.update(f,c);if(a)f.operation=a.name}var l=r.EndpointCache.getKeyString(f);var h=r.endpointCache.get(l);if(h&&h.length===1&&h[0].Address===""){if(!s[l])s[l]=[];s[l].push({request:e,callback:t});return}else if(h&&h.length>0){e.httpRequest.updateEndpoint(h[0].Address);t()}else{var p=i.makeRequest(o.endpointOperation,{Operation:a.name,Identifiers:c});p.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(p);r.endpointCache.put(l,[{Address:"",CachePeriodInMinutes:60}]);p.send(function(i,o){if(i){var a={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=n.error(i,a);r.endpointCache.remove(f);if(s[l]){var u=s[l];n.arrayEach(u,function(e){e.request.response.error=n.error(i,a);e.callback()});delete s[l]}}else if(o){r.endpointCache.put(l,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(s[l]){var u=s[l];n.arrayEach(u,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete s[l]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var s=o.service.api.operations||{};var a=s[o.operation]?s[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,a);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(s[o.operation])c.operation=s[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryApplicable(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(n.isBrowser())return false;for(var i=0;i0){u[e.options.childkey]=f}f=u}else if(d){d[e.options.childkey]=d[e.options.childkey]||[];l={};for(a in f){if(!h.call(f,a))continue;l[a]=f[a]}d[e.options.childkey].push(l);delete f["#name"];if(Object.keys(f).length===1&&t in f&&!e.EXPLICIT_CHARKEY){f=f[t]}}}if(r.length>0){return e.assignOrPush(d,c,f)}else{if(e.options.explicitRoot){p=f;f={};f[c]=p}e.resultObject=f;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,s;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}s=new t.Parser(o);return s.parseString(e,n)}}).call(this)},354:function(e,t,i){var r=i(216);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var s=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=s[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var a=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(a,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},358:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;r=i(290);e.exports=t=function(e){n(XMLDTDAttList,e);function XMLDTDAttList(e,t,i,r,n,o){XMLDTDAttList.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(i==null){throw new Error("Missing DTD attribute name")}if(!r){throw new Error("Missing DTD attribute type")}if(!n){throw new Error("Missing DTD attribute default")}if(n.indexOf("#")!==0){n="#"+n}if(!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT")}if(o&&!n.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT")}this.elementName=this.stringify.eleName(t);this.attributeName=this.stringify.attName(i);this.attributeType=this.stringify.dtdAttType(r);this.defaultValue=this.stringify.dtdAttDefault(o);this.defaultValueType=n}XMLDTDAttList.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)};return XMLDTDAttList}(r)}).call(this)},363:function(e,t,i){var r=i(306);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var s=ucfirst(r);s=e?e+"."+s:s;serializeMember(s,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var s=i.flattened?".":".entry.";var a=s+o+++".";var u=a+(i.key.name||"key");var c=a+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var s="."+(r+1);if(i.api.protocol==="ec2"){s=s+""}else if(i.flattened){if(o.name){var a=e.split(".");a.pop();a.push(ucfirst(o));e=a.join(".")}}else{s="."+(o.name?o.name:"member")+s}serializeMember(e+s,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},374:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},381:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},398:function(e,t,i){var r=i(216);var n=i(477);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},413:function(e,t,i){var r=i(216);var n=i(306);var o=i(80);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var s=t.payload;if(s){var a=t.members[s];o=o[s];if(o===undefined)return;if(a.type==="structure"){var u=a.name;e.httpRequest.body=i.toXML(o,a,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var s=e.httpResponse.body;var a=i.service.api.operations[i.operation];var u=a.output;var c=a.hasEventOutput;var f=u.payload;if(f){var l=u.members[f];if(l.isEventStream){t=new r.XML.Parser;e.data[f]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,l)}else if(l.type==="structure"){t=new r.XML.Parser;e.data[f]=t.parse(s.toString(),l)}else if(l.type==="binary"||l.isStreaming){e.data[f]=s}else{e.data[f]=l.toType(s)}}else if(s.length>0){t=new r.XML.Parser;var h=t.parse(s.toString(),u);n.update(e.data,h)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},417:function(e){e.exports=require("crypto")},418:function(e,t,i){var r=i(216);var n=i(477);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},425:function(e){function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},426:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},428:function(e,t,i){var r=i(216);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},435:function(e,t,i){var r=i(216);var n=i(477);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},438:function(e,t,i){var r=i(774);var n=i(86);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=s[a]}}return t||n(s)}e.exports=v4},441:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},442:function(e,t,i){var r=i(216);i(632);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,s){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}s=s.split("\n")[0];i.request(n+s,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},457:function(e,t,i){var r=i(216);i(616);i(821);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:false,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},459:function(e,t,i){var r=i(216);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var s=r.util.stream.Readable;i(632);var a="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var s=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var f=u.protocol==="https:";var l=f?i(211):i(605);var h={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){h.agent=this.getAgent(f,{keepAlive:process.env[a]==="1"?true:false})}r.util.update(h,t);delete h.proxy;delete h.timeout;var p=l.request(h,function(e){if(p.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=p;p.didCallback=false;if(t.connectTimeout){var d;p.on("socket",function(e){if(e.connecting){d=setTimeout(function connectTimeout(){if(p.didCallback)return;p.didCallback=true;p.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(d);d=null})}})}p.setTimeout(t.timeout||0,function(){if(p.didCallback)return;p.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));p.abort()});p.on("error",function(){if(d){clearTimeout(d);d=null}if(p.didCallback)return;p.didCallback=true;o.apply(p,arguments)});var v=e.headers.Expect||e.headers.expect;if(v==="100-continue"){p.on("continue",function(){s.writeBody(p,e)})}else{this.writeBody(p,e)}return p},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(211):i(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=s?2:1},465:function(e,t,i){var r=i(216);var n=r.util.inherit;i(374);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},474:function(e){e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},477:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(979);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(381);e.paginators=i(968).pagination;return e},enumerable:true,configurable:true});e.exports=r.STS},478:function(e,t,i){var r=i(306);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var s=translate(o,r);if(s!==undefined)i[t]=s}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},481:function(e,t,i){i(719);var r=i(216);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(814);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(844);e.paginators=i(695).pagination;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},483:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v,m,g,y,E,w,C,S={}.hasOwnProperty;C=i(73),E=C.isObject,y=C.isFunction,w=C.isPlainObject;h=i(170);r=i(138);n=i(109);d=i(426);g=i(626);p=i(718);c=i(676);f=i(856);o=i(358);a=i(834);s=i(206);u=i(705);t=i(297);m=i(882);v=i(799);e.exports=l=function(){function XMLDocumentCB(e,t,i){var r;e||(e={});if(!e.writer){e.writer=new v(e)}else if(w(e.writer)){r=e.writer;e.writer=new v(r)}this.options=e;this.writer=e.writer;this.stringify=new m(e);this.onDataCallback=t||function(){};this.onEndCallback=i||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,i){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!E(t)){r=[t,i],i=r[0],t=r[1]}this.currentNode=new h(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(i!=null){this.text(i)}return this};XMLDocumentCB.prototype.element=function(e,t,i){if(this.currentNode&&this.currentNode instanceof f){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,i)}};XMLDocumentCB.prototype.attribute=function(e,i){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(E(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(y(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.currentNode.attributes[e]=new t(this,e,i)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new g(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new n(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new d(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var i,r,n,o,s;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(i=0,o=e.length;i=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof h){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof f){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof f){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},491:function(e,t,i){var r=i(306);var n=i(522).XmlNode;var o=i(126).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var s=t[r];var a=o.name;if(s!==undefined&&s!==null){if(o.isXmlAttribute){e.addAttribute(a,s)}else if(o.flattened){serialize(e,s,o)}else{var u=new n(a);e.addChildNode(u);applyNamespaces(u,o);serialize(u,s,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var s=i.value.name||"value";r.each(t,function(t,r){var a=new n(i.flattened?i.name:"entry");e.addChildNode(a);var u=new n(o);var c=new n(s);a.addChildNode(u);a.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},503:function(e,t,i){var r=i(216);var n=i(129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var s=r.util.date.getDate();var a=new Date(o.Expiration);if(a":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},534:function(e,t,i){(function(){"use strict";var e,r,n,o,s=function(e,t){for(var i in t){if(a.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;r=i(816);e=i(111);n=i(353);o=i(441);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){s(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},538:function(e,t,i){var r=i(264);var n=i(306);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var s=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+s)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},540:function(e,t,i){var r=i(216);i(442);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var s=new Date(n.Expiration);if(s0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const i=this.properties[t];if(i){e+=`${t}=${escape(`${i||""}`)},`}}}}e+=n;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},568:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(756);var n=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=n}this.maxSize=e;this.cache=new r.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=s.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>s){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},603:function(e){(function(){var t,i={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,n,o,s,a,u,c,f;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(n=e.indent)!=null?n:" ";this.newline=(o=e.newline)!=null?o:"\n";this.offset=(s=e.offset)!=null?s:0;this.dontprettytextnodes=(a=e.dontprettytextnodes)!=null?a:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(u=e.spacebeforeslash)!=null?u:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;c=e.writer||{};for(t in c){if(!i.call(c,t))continue;f=c[t];this[t]=f}}XMLWriterBase.prototype.set=function(e){var t,r,n;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!i.call(r,t))continue;n=r[t];this[t]=n}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},616:function(e,t,i){var r=i(216);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},620:function(e,t,i){var r=i(306);var n=i(216);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},622:function(e){e.exports=require("path")},624:function(e,t,i){var r=i(216);var n=i(6);var o=r.util.inherit;var s=r.util.domain;var a=i(766);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(s&&i.domain instanceof s.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var a=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint)a="us-east-1";this.domain=s&&s.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,a);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var s=o.resultKey;if(Array.isArray(s))s=s[0];var u=a.search(n,s);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,s){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){s.error=e;s.error.retryable=false});var a=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){a=true;var c=0}var f=function checkContentLengthAndEmit(){if(a&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var l=s.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(a){var h=new e.PassThrough;h._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};h.on("end",f);i.on("error",function(e){a=false;l.unpipe(h);h.emit("end");h.end()});l.pipe(h).pipe(i,{end:false})}else{l.pipe(i)}}else{if(a){l.on("data",function(e){if(e&&e.length){c+=e.length}})}l.on("data",function(e){i.emit("data",e)});l.on("end",f)}l.on("error",function(e){a=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},626:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},632:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/"}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},644:function(e,t,i){var r=i(216);var n=r.util.inherit;var o=i(766);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var s=t.inputToken;if(typeof s==="string")s=[s];for(var a=0;as){delete n[o.shift()]}}return v},emptyCache:function emptyCache(){n={};o=[]}}},663:function(e,t,i){var r=i(216),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",s="AWS_CONTAINER_AUTHORIZATION_TOKEN",a=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],f="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+f+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(a.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[s]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},669:function(e){e.exports=require("util")},673:function(e,t,i){var r=i(306);var n=i(871);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase()-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var s=n||null;function callNextListener(n){if(n){s=r.util.error(s||new Error,n);if(o._haltHandlersOnError){return i.call(o,s)}}o.callListeners(e,t,i,s)}while(e.length>0){var a=e.shift();if(a._isAsync){a.apply(o,t.concat([callNextListener]));return}else{try{a.apply(o,t)}catch(e){s=r.util.error(s||new Error,e)}if(s&&o._haltHandlersOnError){i.call(o,s);return}}}i.call(o,s)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},718:function(e,t,i){(function(){var t,r,n=function(e,t){for(var i in t){if(o.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},o={}.hasOwnProperty;t=i(290);e.exports=r=function(e){n(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,i){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(i){this.value=this.stringify.insValue(i)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},719:function(e,t,i){var r=i(306);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(417);r.Buffer=i(293).Buffer;r.domain=i(229);r.stream=i(794);r.url=i(835);r.querystring=i(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(99).createEventStream:i(273).createEventStream;r.realClock=i(474);r.clientSideMonitoring={Publisher:i(579).Publisher,configProvider:i(428)};r.iniLoader=i(808).iniLoader;var n;e.exports=n=i(216);i(616);i(821);i(74);i(418);i(435);i(861);i(398);i(503);n.XML.Parser=i(722);i(459);i(953);i(36);i(540);i(663);i(266);i(730);i(134);i(46);i(503);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var s=o[e.AWS_PROFILE||n.util.defaultProfile];t=s&&s.region}}return t}});n.config=new n.Config},722:function(e,t,i){var r=i(216);var n=r.util;var o=r.Model.Shape;var s=i(534);var a={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new s.Parser(a);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(t,r){var n=r.name;if(Object.prototype.hasOwnProperty.call(e,n)&&Array.isArray(e[n])){var o=e[n];if(!r.flattened)o=o[0];i[t]=parseXml(o,r)}else if(r.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,n)){i[t]=parseScalar(e.$[n],r)}else if(r.type==="list"){i[t]=r.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var s=t.flattened?e:e.entry;if(Array.isArray(s)){n.arrayEach(s,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(s,{member:{}})}else{n[o]=parseXml(s[0],{})}}return n}e.exports=NodeXmlParser},730:function(e,t,i){var r=i(216);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var i=[];for(var n=0;n":true,"=":true,"!":true};var j={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:D,value:">=",start:t}}else{return{type:_,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:T,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var U={};U[h]=0;U[p]=0;U[d]=0;U[v]=0;U[m]=0;U[g]=0;U[E]=0;U[w]=0;U[C]=0;U[S]=0;U[I]=1;U[b]=2;U[x]=3;U[T]=5;U[_]=5;U[P]=5;U[D]=5;U[R]=5;U[L]=5;U[A]=9;U[M]=20;U[N]=21;U[F]=40;U[O]=45;U[q]=50;U[X]=55;U[k]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==h){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:h,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===X){this._match(X);return this._parseMultiselectList()}else if(t===q){this._match(q);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(U[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===X){t=this.expression(e)}else if(this._lookahead(0)===N){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==v){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===v){throw new Error("Unexpected token Rbracket")}}}this._match(v);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[p,d];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(y);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===E){this._match(E);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,s,a,u,c,f,l;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){a=t[e.name];if(a===undefined){return null}else{return a}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(l=1;l0){for(l=v;lm;l+=g){n.push(t[l])}}return n;case"Projection":var y=this.visit(e.children[0],t);if(!isArray(y)){return null}f=[];for(l=0;ls;break;case D:n=o>=s;break;case P:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[f]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,s]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[f,l]}]},merge:{_func:this._functionMerge,_signature:[{types:[s],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[f]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[f,l]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[s]}]},values:{_func:this._functionValues,_signature:[{types:[s]}]},sort:{_func:this._functionSort,_signature:[{types:[l,f]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[l]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var s=e[0].slice(0);s.reverse();return s}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(is){s=u;a=r[c]}}return a},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var s=Infinity;var a;var u;for(var c=0;c"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,f,h;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));h=e.children;for(c=0,f=h.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,s,a,u,c,p,v;i||(i=0);v=this.space(i);this.stream.write(v+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);p=e.children;for(s=0,a=p.length;s")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(v)}).call(this)},774:function(e,t,i){var r=i(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},794:function(e){e.exports=require("stream")},798:function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},799:function(e,t,i){(function(){var t,r,n,o,s,a,u,c,f,l,h,p,d,v,m=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(676);c=i(856);t=i(138);r=i(109);f=i(170);h=i(426);d=i(626);l=i(718);n=i(358);o=i(206);s=i(834);a=i(705);v=i(603);e.exports=p=function(e){m(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,s;this.textispresent=false;o="";s=e.children;for(i=0,n=s.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,f,h,p;i||(i=0);h=this.space(i);h+="0){h+=" [";h+=this.newline;p=e.children;for(c=0,f=p.length;c";h+=this.newline;return h};XMLStringWriter.prototype.element=function(e,i){var n,o,s,a,u,c,p,v,m,y,E,w,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}w=this.space(i);v="";v+=w+"<"+e.name;m=e.attributes;for(p in m){if(!g.call(m,p))continue;n=m[p];v+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){v+=">"+this.newline}else{v+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){v+=">";v+=e.children[0].value;v+=""+this.newline}else{if(this.dontprettytextnodes){y=e.children;for(s=0,u=y.length;s"+this.newline;E=e.children;for(a=0,c=E.length;a"+this.newline}return v};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof f){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof f):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(v)}).call(this)},808:function(e,t,i){var r=i(953).IniLoader;e.exports.iniLoader=new r},814:function(e,t,i){var r=i(216);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},816:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},817:function(e,t,i){var r=i(216);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var s=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(s)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var s=e.httpRequest.headers["Authorization"].split(" ");if(s[0]==="AWS"){s=s[1].split(":");n["AWSAccessKeyId"]=s[0];n["Signature"]=s[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(s[0]==="AWS4-HMAC-SHA256"){s.shift();var a=s.join(" ");var u=a.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},821:function(e,t,i){var r=i(216);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var s=n[i++];if(typeof s==="function"){o=s.call()}else{o=s}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},823:function(e,t,i){var r=i(264);var n=i(507);var o=i(538);var s=i(311);var a=i(703);var u=i(306);var c=u.property;var f=u.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};c(this,"isApi",true,false);c(this,"apiVersion",e.metadata.apiVersion);c(this,"endpointPrefix",e.metadata.endpointPrefix);c(this,"signingName",e.metadata.signingName);c(this,"globalEndpoint",e.metadata.globalEndpoint);c(this,"signatureVersion",e.metadata.signatureVersion);c(this,"jsonVersion",e.metadata.jsonVersion);c(this,"targetPrefix",e.metadata.targetPrefix);c(this,"protocol",e.metadata.protocol);c(this,"timestampFormat",e.metadata.timestampFormat);c(this,"xmlNamespaceUri",e.metadata.xmlNamespace);c(this,"abbreviation",e.metadata.serviceAbbreviation);c(this,"fullName",e.metadata.serviceFullName);c(this,"serviceId",e.metadata.serviceId);f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){c(i,"endpointOperation",u.string.lowerFirst(e))}}c(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},u.string.lowerFirst,addEndpointOperation));c(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));c(this,"paginators",new r(e.paginators,t,function(e,i){return new s(e,i,t)}));c(this,"waiters",new r(e.waiters,t,function(e,i){return new a(e,i,t)},u.string.lowerFirst));if(t.documentation){c(this,"documentation",e.documentation);c(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},834:function(e,t,i){(function(){var t,r,n,o=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=i(73).isObject;r=i(290);e.exports=t=function(e){o(XMLDTDEntity,e);function XMLDTDEntity(e,t,i,r){XMLDTDEntity.__super__.constructor.call(this,e);if(i==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(i);if(!n(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},835:function(e){e.exports=require("url")},844:function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},852:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const n=i(558);const o=i(87);const s=i(622);var a;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(a=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;n.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${s.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=a.Failure;error(e)}t.setFailed=setFailed;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e)}t.error=error;function warning(e){n.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},856:function(e,t,i){(function(){var t,r,n,o,s,a,u,c=function(e,t){for(var i in t){if(f.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},f={}.hasOwnProperty;u=i(73).isObject;a=i(290);t=i(358);n=i(834);r=i(206);o=i(705);e.exports=s=function(e){c(XMLDocType,e);function XMLDocType(e,t,i){var r,n;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(u(t)){r=t,t=r.pubID,i=r.sysID}if(i==null){n=[t,i],i=n[0],t=n[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(i!=null){this.sysID=this.stringify.dtdSysID(i)}}XMLDocType.prototype.element=function(e,t){var i;i=new r(this,e,t);this.children.push(i);return this};XMLDocType.prototype.attList=function(e,i,r,n,o){var s;s=new t(this,e,i,r,n,o);this.children.push(s);return this};XMLDocType.prototype.entity=function(e,t){var i;i=new n(this,false,e,t);this.children.push(i);return this};XMLDocType.prototype.pEntity=function(e,t){var i;i=new n(this,true,e,t);this.children.push(i);return this};XMLDocType.prototype.notation=function(e,t){var i;i=new o(this,e,t);this.children.push(i);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,i,r,n){return this.attList(e,t,i,r,n)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(a)}).call(this)},861:function(e,t,i){var r=i(216);var n=i(481);var o=i(477);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},866:function(e,t,i){var r=i(216);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(23);i(374);i(465);i(697);i(227);i(817)},871:function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},882:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/{try{const e=r.getInput("aws-region",{required:true});const t=r.getInput("aws-access-key-id",{required:true});const i=r.getInput("aws-secret-access-key",{required:true});const n=r.getInput("aws-session-token",{required:false});const s=r.getInput("mask-aws-account-id",{required:false});const a={region:e,accessKeyId:t,secretAccessKey:i,sessionToken:n,maskAccountId:s};exportEnvVariables(a);const u=r.getInput("assume-role",{required:false});const c=u&&u.toLowerCase()=="true";const f=r.getInput("role-arn",{required:c});const l=r.getInput("role-session-name",{required:c});const h=r.getInput("duration-seconds",{required:false});const p=Math.max(parseInt(h),900);const d=r.getInput("external-id",{required:false});const v=new o({apiVersion:"2011-06-15",customUserAgent:"aws-github-actions-sts"});const m={RoleArn:f,RoleSessionName:l,DurationSecond:p,ExternalId:d};if(c){const e=await v.assumeRole(m).promise();a.accessKeyId=e.Credentials.AccessKeyId;a.secretAccessKey=e.Credentials.SecretAccessKey;a.sessionToken=e.Credentials.SessionToken;exportEnvVariables(a)}const g=await v.getCallerIdentity().promise();const y=g.Account;r.setOutput("aws-account-id",y);if(!a.maskAccountId||a.maskAccountId.toLowerCase()=="true"){r.setSecret(y)}}catch(e){r.setFailed(e.message)}};a();t["default"]=a},945:function(e,t,i){var r=i(213);var n=i(438);var o=n;o.v1=r;o.v4=n;e.exports=o},953:function(e,t,i){var r=i(216);var n=i(87);var o=i(622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var s=r.IniLoader;e.exports={IniLoader:s,parseFile:parseFile}},958:function(e,t,i){var r=i(216);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var s=0;s

- S3 sync + S3 sync

The `s3_sync` GitHub action will synchronize a local directory to an AWS S3 bucket. Recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files. diff --git a/packages/s3_sync/action.yml b/packages/s3_sync/action.yml index 7cd705a..922e3a6 100644 --- a/packages/s3_sync/action.yml +++ b/packages/s3_sync/action.yml @@ -3,20 +3,22 @@ author: 'Clowd Haus, LLC' description: 'Sync local artifacts to an S3 bucket' branding: icon: 'upload-cloud' - color: 'orange' + color: 'red' inputs: local-path: description: 'Path to local directory to synchronize with S3' required: true bucket-name: - description: 'S3 bucket name (not ARN nor URI "s3://xxx", just the bucket name)' + description: 'S3 bucket name (not ARN nor URI `s3://xxx`, just the bucket name)' required: true path-prefix: description: 'S3 prefix path where object(s) will be syncrhonized to' required: false default: '' args: - description: 'Optional "awscli s3 sync" cli args - https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html#synopsis' + description: > + Optional `awscli s3 sync` cli args + Reference - https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html#synopsis required: false default: '' runs: diff --git a/packages/s3_sync/dist/index.js b/packages/s3_sync/dist/index.js index 0b5b95f..668b83d 100644 --- a/packages/s3_sync/dist/index.js +++ b/packages/s3_sync/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(903)}t(__webpack_require__);return startup()}({16:function(e){e.exports=require("tls")},87:function(e){e.exports=require("os")},90:function(e){"use strict";var t=Object.prototype.hasOwnProperty;var r=Array.isArray;var n=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var i=function compactQueue(e){while(e.length>1){var t=e.pop();var n=t.obj[t.prop];if(r(n)){var i=[];for(var o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){o+=i.charAt(s);continue}if(a<128){o=o+n[a];continue}if(a<2048){o=o+(n[192|a>>6]+n[128|a&63]);continue}if(a<55296||a>=57344){o=o+(n[224|a>>12]+n[128|a>>6&63]+n[128|a&63]);continue}s+=1;a=65536+((a&1023)<<10|i.charCodeAt(s)&1023);o+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|a&63]}return o};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;nn(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=e.message.headers["content-type"]||"";const r=t.match(/charset=([^;,\r\n]+)/i);return r&&r[1]?r[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},211:function(e){e.exports=require("https")},213:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const o=r(622);const s=r(669);const a=r(836);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield a.stat(e);if(l.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},311:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var l=0;function tok(e){c[e]=l++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var u="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var p="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;dn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],p);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],u);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var l=isX(o);var u=l||isX(s);var f=u||isX(a);var p=f;if(i==="="&&p){i=""}c=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&p){if(u){s=0}a=0;if(i===">"){i=">=";if(u){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(u){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(u){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,l,u,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(l)){a="<"+(+c+1)+".0.0"}else if(isX(u)){a="<"+c+"."+(+l+1)+".0"}else if(f){a="<="+c+"."+l+"."+u+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var l=0;l=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&o(e,p.semver)){return false}else if(p.operator===c&&s(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},353:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(416);function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const s=new i.ToolRunner(o,t,r);return s.exec()})}t.exec=exec},357:function(e){e.exports=require("assert")},393:function(e,t,r){var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},416:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(87);const o=r(614);const s=r(129);const a=r(622);const c=r(213);const l=r(836);const u=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(u){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let o=n.indexOf(i.EOL);while(o>-1){const e=n.substring(0,o);r(e);n=n.substring(o+i.EOL.length);o=n.indexOf(i.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(u){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(u){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||u&&this.toolPath.includes("\\"))){this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName();const a=s.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));const c="";if(a.stdout){a.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(a.stderr){a.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}a.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});a.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});a.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(r){t(r)}else{e(n)}})})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},417:function(e){e.exports=require("crypto")},450:function(e,t,r){"use strict";var n=String.prototype.replace;var i=/%20/g;var o=r(90);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},515:function(e){var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(87);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const r=this.properties[t];if(r){e+=`${t}=${escape(`${r||""}`)},`}}}}e+=i;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},587:function(e,t,r){e.exports=r(849)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},636:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(835);const o=r(605);const s=r(211);const a=r(201);let c;let l;var u;(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"})(u=t.HttpCodes||(t.HttpCodes={}));const f=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}e(r.toString(i))})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var y;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(y||(y={}));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||[];let i=process.env[y.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const a=l.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.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 l.readBody();s=this._prepareRequest(e,c,o);l=yield this.requestRaw(s,r);t--}if(p.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;let i=typeof t==="string";if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let s=(e,t)=>{if(!o){o=true;r(e,t)}};let a=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});a.on("socket",e=>{n=e});a.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});a.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){a.end()});t.pipe(a)}else{a.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!l){l=r(587)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?l.httpsOverHttps:l.httpsOverHttp}else{i=o?l.httpOverHttps:l.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[y.HTTPS_PROXY];let o=process.env[y.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=v*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},669:function(e){e.exports=require("util")},747:function(e){e.exports=require("fs")},755:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?E+y:""}},824:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(852);const o=r(213);const s=r(747);const a=r(87);const c=r(622);const l=r(636);const u=r(311);const f=r(155);const p=r(353);const d=r(357);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const h=process.platform==="win32";const v="actions/tool-cache";let y=process.env["RUNNER_TEMP"]||"";let E=process.env["RUNNER_TOOL_CACHE"]||"";if(!y||!E){let e;if(h){e=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){e="/Users"}else{e="/home"}}if(!y){y=c.join(e,"actions","temp")}if(!E){E=c.join(e,"actions","cache")}}function downloadTool(e){return n(this,void 0,void 0,function*(){return new Promise((t,r)=>n(this,void 0,void 0,function*(){try{const a=new l.HttpClient(v,[],{allowRetries:true,maxRetries:3});const u=c.join(y,f());yield o.mkdirP(y);i.debug(`Downloading ${e}`);i.debug(`Downloading ${u}`);if(s.existsSync(u)){throw new Error(`Destination file path ${u} already exists`)}const p=yield a.get(e);if(p.message.statusCode!==200){const t=new HTTPError(p.message.statusCode);i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);throw t}const d=s.createWriteStream(u);d.on("open",()=>n(this,void 0,void 0,function*(){try{const n=p.message.pipe(d);n.on("close",()=>{i.debug("download complete");t(u)})}catch(t){i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);r(t)}}));d.on("error",e=>{d.end();r(e)})}catch(e){r(e)}}))})}t.downloadTool=downloadTool;function extract7z(e,t,r){return n(this,void 0,void 0,function*(){d.ok(h,"extract7z() not supported on current OS");d.ok(e,'parameter "file" is required');t=t||(yield _createExtractFolder(t));const n=process.cwd();process.chdir(t);if(r){try{const t=["x","-bb1","-bd","-sccUTF-8",e];const i={silent:true};yield p.exec(`"${r}"`,t,i)}finally{process.chdir(n)}}else{const r=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=`& '${r}' -Source '${i}' -Target '${s}'`;const l=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a];const u={silent:true};try{const e=yield o.which("powershell",true);yield p.exec(`"${e}"`,l,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));const n=yield o.which("tar",true);yield p.exec(`"${n}"`,[r,"-C",t,"-f",e]);return t})}t.extractTar=extractTar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));if(h){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield o.which("powershell");const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield p.exec(`"${s}"`,a)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield o.which("unzip");yield p.exec(`"${r}"`,[e],{cwd:t})})}function cacheDir(e,t,r,l){return n(this,void 0,void 0,function*(){r=u.clean(r)||r;l=l||a.arch();i.debug(`Caching tool ${t} ${r} ${l}`);i.debug(`source dir: ${e}`);if(!s.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,l);for(const t of s.readdirSync(e)){const r=c.join(e,t);yield o.cp(r,n,{recursive:true})}_completeToolPath(t,r,l);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,l,f){return n(this,void 0,void 0,function*(){l=u.clean(l)||l;f=f||a.arch();i.debug(`Caching tool ${r} ${l} ${f}`);i.debug(`source file: ${e}`);if(!s.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,l,f);const p=c.join(n,t);i.debug(`destination file ${p}`);yield o.cp(e,p);_completeToolPath(r,l,f);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||a.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=u.clean(t)||"";const o=c.join(E,e,t,r);i.debug(`checking cache: ${o}`);if(s.existsSync(o)&&s.existsSync(`${o}.complete`)){i.debug(`Found tool in cache ${e} ${t} ${r}`);n=o}else{i.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||a.arch();const n=c.join(E,e);if(s.existsSync(n)){const e=s.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=c.join(n,i,t||"");if(s.existsSync(e)&&s.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=c.join(y,f())}yield o.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=c.join(E,e,u.clean(t)||t,r||"");i.debug(`destination ${n}`);const s=`${n}.complete`;yield o.rmRF(n);yield o.rmRF(s);yield o.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=c.join(E,e,u.clean(t)||t,r||"");const o=`${n}.complete`;s.writeFileSync(o,"");i.debug("finished caching tool")}function _isExplicitVersion(e){const t=u.clean(e)||"";i.debug(`isExplicit: ${t}`);const r=u.valid(t)!=null;i.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";i.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(u.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=u.satisfies(i,t);if(o){r=i;break}}if(r){i.debug(`matched: ${r}`)}else{i.debug("match not found")}return r}},835:function(e){e.exports=require("url")},836:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(357);const s=r(747);const a=r(622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},837:function(e,t){"use strict";t.__esModule=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var s;do{s=n.exec(i);if(s!==null){o.push(firstString(s[1],s[6],s[0]))}}while(s!==null);return o}t["default"]=parseArgsStringToArgv;t.parseArgsStringToArgv=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}u("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode===200){c.equal(a.length,0);u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;t(s)}else{u("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);r.removeSocket(n)}}function onError(t){o.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t-1){g=g.split(",")}if(y.indexOf("[]=")>-1){g=o(g)?[g]:g}if(i.call(r,w)){r[w]=n.combine(r[w],g)}else{r[w]=g}}return r};var f=function(e,t,r){var n=t;for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(n)}else{o=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(a,10);if(!r.parseArrays&&a===""){o={0:n}}else if(!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=n}else{o[a]=n}}n=o}return n};var p=function parseQueryStringKeys(e,t,r){if(!e){return}var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var o=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var a=r.depth>0&&o.exec(n);var c=a?n.slice(0,a.index):n;var l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)){if(!r.allowPrototypes){return}}l.push(c)}var u=0;while(r.depth>0&&(a=s.exec(n))!==null&&u{try{const e=n.getInput("local-path",{required:true});const t=await o.promises.lstat(e);if(!t.isDirectory()){n.error(`Error: sync API synchronizes a directory not a single file`)}const r=n.getInput("bucket-name",{required:true});const i=n.getInput("path-prefix",{required:false});const s=c()(n.getInput("args",{required:false}).trim());const a=`s3://${r}/${i}`;const l=await u().getOrInstall();await l.call(["s3","sync",e,a,...s])}catch(e){n.setFailed(e.message)}};f();t["default"]=f}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){e.n=function(t){var r=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(r,"a",r);return r}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,r,n){if(!t.call(e,r)){Object.defineProperty(e,r,{enumerable:true,get:n})}}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(903)}t(__webpack_require__);return startup()}({16:function(e){e.exports=require("tls")},87:function(e){e.exports=require("os")},90:function(e){"use strict";var t=Object.prototype.hasOwnProperty;var r=Array.isArray;var n=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var i=function compactQueue(e){while(e.length>1){var t=e.pop();var n=t.obj[t.prop];if(r(n)){var i=[];for(var o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){o+=i.charAt(s);continue}if(a<128){o=o+n[a];continue}if(a<2048){o=o+(n[192|a>>6]+n[128|a&63]);continue}if(a<55296||a>=57344){o=o+(n[224|a>>12]+n[128|a>>6&63]+n[128|a&63]);continue}s+=1;a=65536+((a&1023)<<10|i.charCodeAt(s)&1023);o+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|a&63]}return o};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;nn(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=e.message.headers["content-type"]||"";const r=t.match(/charset=([^;,\r\n]+)/i);return r&&r[1]?r[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},211:function(e){e.exports=require("https")},213:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const o=r(622);const s=r(669);const a=r(836);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield a.stat(e);if(l.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},311:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var l=0;function tok(e){c[e]=l++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var u="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var p="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;dn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],p);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],u);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var l=isX(o);var u=l||isX(s);var f=u||isX(a);var p=f;if(i==="="&&p){i=""}c=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&p){if(u){s=0}a=0;if(i===">"){i=">=";if(u){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(u){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(u){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,l,u,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(l)){a="<"+(+c+1)+".0.0"}else if(isX(u)){a="<"+c+"."+(+l+1)+".0"}else if(f){a="<="+c+"."+l+"."+u+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var l=0;l=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&o(e,p.semver)){return false}else if(p.operator===c&&s(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},353:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(416);function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=i.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const s=new i.ToolRunner(o,t,r);return s.exec()})}t.exec=exec},357:function(e){e.exports=require("assert")},377:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]-1){const e=n.substring(0,o);r(e);n=n.substring(o+i.EOL.length);o=n.indexOf(i.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(u){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(u){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||u&&this.toolPath.includes("\\"))){this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName();const a=s.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));const c="";if(a.stdout){a.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(a.stderr){a.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}a.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});a.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});a.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(r){t(r)}else{e(n)}})})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},417:function(e){e.exports=require("crypto")},450:function(e,t,r){"use strict";var n=String.prototype.replace;var i=/%20/g;var o=r(90);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},515:function(e){var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(87);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const r=this.properties[t];if(r){e+=`${t}=${escape(`${r||""}`)},`}}}}e+=i;const t=`${this.message||""}`;e+=escapeData(t);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},587:function(e,t,r){e.exports=r(849)},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},636:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(835);const o=r(605);const s=r(211);const a=r(201);let c;let l;var u;(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"})(u=t.HttpCodes||(t.HttpCodes={}));const f=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}e(r.toString(i))})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var y;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(y||(y={}));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||[];let i=process.env[y.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const a=l.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.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 l.readBody();s=this._prepareRequest(e,c,o);l=yield this.requestRaw(s,r);t--}if(p.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;let i=typeof t==="string";if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let s=(e,t)=>{if(!o){o=true;r(e,t)}};let a=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});a.on("socket",e=>{n=e});a.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});a.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){a.end()});t.pipe(a)}else{a.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!l){l=r(587)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?l.httpsOverHttps:l.httpsOverHttp}else{i=o?l.httpOverHttps:l.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[y.HTTPS_PROXY];let o=process.env[y.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=v*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},669:function(e){e.exports=require("util")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},765:function(e){e.exports=require("process")},776:function(e,t,r){"use strict";var n=r(90);var i=r(450);var o=Object.prototype.hasOwnProperty;var s={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var a=Array.isArray;var c=Array.prototype.push;var l=function(e,t){c.apply(e,a(t)?t:[t])};var u=Date.prototype.toISOString;var f=i["default"];var p={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:i.formatters[f],indices:false,serializeDate:function serializeDate(e){return u.call(e)},skipNulls:false,strictNullHandling:false};var d=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h=function stringify(e,t,r,i,o,s,c,u,f,h,v,y,E){var m=e;if(typeof c==="function"){m=c(t,m)}else if(m instanceof Date){m=h(m)}else if(r==="comma"&&a(m)){m=m.join(",")}if(m===null){if(i){return s&&!y?s(t,p.encoder,E,"key"):t}m=""}if(d(m)||n.isBuffer(m)){if(s){var w=y?t:s(t,p.encoder,E,"key");return[v(w)+"="+v(s(m,p.encoder,E,"value"))]}return[v(t)+"="+v(String(m))]}var g=[];if(typeof m==="undefined"){return g}var R;if(a(c)){R=c}else{var O=Object.keys(m);R=u?O.sort(u):O}for(var S=0;S0?E+y:""}},824:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(852);const o=r(213);const s=r(747);const a=r(87);const c=r(622);const l=r(636);const u=r(311);const f=r(155);const p=r(353);const d=r(357);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const h=process.platform==="win32";const v="actions/tool-cache";let y=process.env["RUNNER_TEMP"]||"";let E=process.env["RUNNER_TOOL_CACHE"]||"";if(!y||!E){let e;if(h){e=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){e="/Users"}else{e="/home"}}if(!y){y=c.join(e,"actions","temp")}if(!E){E=c.join(e,"actions","cache")}}function downloadTool(e){return n(this,void 0,void 0,function*(){return new Promise((t,r)=>n(this,void 0,void 0,function*(){try{const a=new l.HttpClient(v,[],{allowRetries:true,maxRetries:3});const u=c.join(y,f());yield o.mkdirP(y);i.debug(`Downloading ${e}`);i.debug(`Downloading ${u}`);if(s.existsSync(u)){throw new Error(`Destination file path ${u} already exists`)}const p=yield a.get(e);if(p.message.statusCode!==200){const t=new HTTPError(p.message.statusCode);i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);throw t}const d=s.createWriteStream(u);d.on("open",()=>n(this,void 0,void 0,function*(){try{const n=p.message.pipe(d);n.on("close",()=>{i.debug("download complete");t(u)})}catch(t){i.debug(`Failed to download from "${e}". Code(${p.message.statusCode}) Message(${p.message.statusMessage})`);r(t)}}));d.on("error",e=>{d.end();r(e)})}catch(e){r(e)}}))})}t.downloadTool=downloadTool;function extract7z(e,t,r){return n(this,void 0,void 0,function*(){d.ok(h,"extract7z() not supported on current OS");d.ok(e,'parameter "file" is required');t=t||(yield _createExtractFolder(t));const n=process.cwd();process.chdir(t);if(r){try{const t=["x","-bb1","-bd","-sccUTF-8",e];const i={silent:true};yield p.exec(`"${r}"`,t,i)}finally{process.chdir(n)}}else{const r=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=`& '${r}' -Source '${i}' -Target '${s}'`;const l=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a];const u={silent:true};try{const e=yield o.which("powershell",true);yield p.exec(`"${e}"`,l,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));const n=yield o.which("tar",true);yield p.exec(`"${n}"`,[r,"-C",t,"-f",e]);return t})}t.extractTar=extractTar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=t||(yield _createExtractFolder(t));if(h){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield o.which("powershell");const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield p.exec(`"${s}"`,a)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield o.which("unzip");yield p.exec(`"${r}"`,[e],{cwd:t})})}function cacheDir(e,t,r,l){return n(this,void 0,void 0,function*(){r=u.clean(r)||r;l=l||a.arch();i.debug(`Caching tool ${t} ${r} ${l}`);i.debug(`source dir: ${e}`);if(!s.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,l);for(const t of s.readdirSync(e)){const r=c.join(e,t);yield o.cp(r,n,{recursive:true})}_completeToolPath(t,r,l);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,l,f){return n(this,void 0,void 0,function*(){l=u.clean(l)||l;f=f||a.arch();i.debug(`Caching tool ${r} ${l} ${f}`);i.debug(`source file: ${e}`);if(!s.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,l,f);const p=c.join(n,t);i.debug(`destination file ${p}`);yield o.cp(e,p);_completeToolPath(r,l,f);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||a.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=u.clean(t)||"";const o=c.join(E,e,t,r);i.debug(`checking cache: ${o}`);if(s.existsSync(o)&&s.existsSync(`${o}.complete`)){i.debug(`Found tool in cache ${e} ${t} ${r}`);n=o}else{i.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||a.arch();const n=c.join(E,e);if(s.existsSync(n)){const e=s.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=c.join(n,i,t||"");if(s.existsSync(e)&&s.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=c.join(y,f())}yield o.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=c.join(E,e,u.clean(t)||t,r||"");i.debug(`destination ${n}`);const s=`${n}.complete`;yield o.rmRF(n);yield o.rmRF(s);yield o.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=c.join(E,e,u.clean(t)||t,r||"");const o=`${n}.complete`;s.writeFileSync(o,"");i.debug("finished caching tool")}function _isExplicitVersion(e){const t=u.clean(e)||"";i.debug(`isExplicit: ${t}`);const r=u.valid(t)!=null;i.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";i.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(u.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=u.satisfies(i,t);if(o){r=i;break}}if(r){i.debug(`matched: ${r}`)}else{i.debug("match not found")}return r}},835:function(e){e.exports=require("url")},836:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(357);const s=r(747);const a=r(622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},837:function(e,t){"use strict";t.__esModule=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var s;do{s=n.exec(i);if(s!==null){o.push(firstString(s[1],s[6],s[0]))}}while(s!==null);return o}t["default"]=parseArgsStringToArgv;t.parseArgsStringToArgv=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}u("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode===200){c.equal(a.length,0);u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;t(s)}else{u("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);r.removeSocket(n)}}function onError(t){o.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t-1){g=g.split(",")}if(y.indexOf("[]=")>-1){g=o(g)?[g]:g}if(i.call(r,w)){r[w]=n.combine(r[w],g)}else{r[w]=g}}return r};var f=function(e,t,r){var n=t;for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(n)}else{o=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(a,10);if(!r.parseArrays&&a===""){o={0:n}}else if(!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=n}else{o[a]=n}}n=o}return n};var p=function parseQueryStringKeys(e,t,r){if(!e){return}var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var o=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var a=r.depth>0&&o.exec(n);var c=a?n.slice(0,a.index):n;var l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)){if(!r.allowPrototypes){return}}l.push(c)}var u=0;while(r.depth>0&&(a=s.exec(n))!==null&&u{try{const e=n.getInput("local-path",{required:true});const t=await o.promises.lstat(e);if(!t.isDirectory()){n.error(`Error: sync API synchronizes a directory not a single file`)}const r=n.getInput("bucket-name",{required:true});const i=n.getInput("path-prefix",{required:false});const s=c()(n.getInput("args",{required:false}).trim());const a=`s3://${r}/${i}`;const l=await u().getOrInstall();await l.call(["s3","sync",e,a,...s])}catch(e){n.setFailed(e.message)}};f();t["default"]=f}},function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){e.n=function(t){var r=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(r,"a",r);return r}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,r,n){if(!t.call(e,r)){Object.defineProperty(e,r,{enumerable:true,get:n})}}}()}); \ No newline at end of file diff --git a/packages/s3_sync/index.ts b/packages/s3_sync/index.ts index 8958a5f..cca8e2a 100644 --- a/packages/s3_sync/index.ts +++ b/packages/s3_sync/index.ts @@ -2,7 +2,7 @@ import * as core from '@actions/core'; import { promises as fs } from 'fs'; import stringArgv from 'string-argv'; -import AwsCli from '@aws-github-actions/awscli'; +import AwsCli from '@aws-github-actions/awscli-core'; const run = async (): Promise => { try { diff --git a/packages/s3_sync/package.json b/packages/s3_sync/package.json index f7d8f2b..5fc75c5 100644 --- a/packages/s3_sync/package.json +++ b/packages/s3_sync/package.json @@ -4,7 +4,7 @@ "description": "Sync locally generated artifacts to an S3 bucket", "main": "index.ts", "dependencies": { - "@aws-github-actions/awscli": "v0.1.0", + "@aws-github-actions/awscli-core": "v0.1.0", "string-argv": "^0.3.1" }, "devDependencies": {}, diff --git a/tsconfig.json b/tsconfig.json index bdebb98..25a90a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "removeComments": false, // "strictNullChecks": true, "strictFunctionTypes": true, - "noImplicitAny": true, + // "noImplicitAny": true, "noImplicitThis": true, "alwaysStrict": true, diff --git a/yarn.lock b/yarn.lock index 08b50ad..5725d65 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,39 +47,32 @@ esutils "^2.0.2" js-tokens "^4.0.0" -"@babel/runtime@^7.6.3": - version "7.7.7" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.7.tgz#194769ca8d6d7790ec23605af9ee3e42a0aa79cf" - integrity sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA== - dependencies: - regenerator-runtime "^0.13.2" - -"@commitlint/execute-rule@^8.2.0": - version "8.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-8.2.0.tgz#aefb3744e22613660adefb7ebcccaa60bd24e78d" - integrity sha512-9MBRthHaulbWTa8ReG2Oii2qc117NuvzhZdnkuKuYLhker7sUXGFcVhLanuWUKGyfyI2o9zVr/NHsNbCCsTzAA== +"@commitlint/execute-rule@^8.3.4": + version "8.3.4" + resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-8.3.4.tgz#1b63f0713b197889d90b76f9eea1abc010d256b1" + integrity sha512-f4HigYjeIBn9f7OuNv5zh2y5vWaAhNFrfeul8CRJDy82l3Y+09lxOTGxfF3uMXKrZq4LmuK6qvvRCZ8mUrVvzQ== "@commitlint/load@>6.1.1": - version "8.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-8.2.0.tgz#9ca53a0c795e4f63d796b4d42279e856549add1a" - integrity sha512-EV6PfAY/p83QynNd1llHxJiNxKmp43g8+7dZbyfHFbsGOdokrCnoelAVZ+WGgktXwLN/uXyfkcIAxwac015UYw== + version "8.3.4" + resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-8.3.4.tgz#6a0832362451b959f6aa47da8e44c2e05572b114" + integrity sha512-B4MylKvT02UE3VHC5098OHxsrgkADUy5AD4Cdkiy7oX/edWypEmvK7Wuns3B9dwluWP/iFM6daoWtpkCVZoRwQ== dependencies: - "@commitlint/execute-rule" "^8.2.0" - "@commitlint/resolve-extends" "^8.2.0" + "@commitlint/execute-rule" "^8.3.4" + "@commitlint/resolve-extends" "^8.3.4" babel-runtime "^6.23.0" chalk "2.4.2" cosmiconfig "^5.2.0" - lodash "4.17.14" + lodash "4.17.15" resolve-from "^5.0.0" -"@commitlint/resolve-extends@^8.2.0": - version "8.2.0" - resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-8.2.0.tgz#b7f2f0c71c10f24b98a199ed11d2c14cfd7a318f" - integrity sha512-cwi0HUsDcD502HBP8huXfTkVuWmeo1Fiz3GKxNwMBBsJV4+bKa7QrtxbNpXhVuarX7QjWfNTvmW6KmFS7YK9uw== +"@commitlint/resolve-extends@^8.3.4": + version "8.3.4" + resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-8.3.4.tgz#815b646efbf9bc77c44925f619336da0027d7a68" + integrity sha512-M34RLaAW1eGWgtkVtotHfPaJa+cZIARe8twKItd7RhWs7n/1W2py9GTFIiIEq95LBN1uah5vm1WQHsfLqPZYHA== dependencies: "@types/node" "^12.0.2" import-fresh "^3.0.0" - lodash "4.17.14" + lodash "4.17.15" resolve-from "^5.0.0" resolve-global "^1.0.0" @@ -663,10 +656,10 @@ inquirer "^6.2.0" npmlog "^4.1.2" -"@lerna/publish@3.20.1": - version "3.20.1" - resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-3.20.1.tgz#740acc4af52ec69eb603b46b476eab093a72e95b" - integrity sha512-F0Eb2lyIkwMiucGVzOq91RyhJSkJsuh/9xKnKgm6VK8tuVbLDD8cNE7dLRIIDtBYWPtEmujTW+nBg/aDdJBjWg== +"@lerna/publish@3.20.2": + version "3.20.2" + resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-3.20.2.tgz#a45d29813099b3249657ea913d0dc3f8ebc5cc2e" + integrity sha512-N7Y6PdhJ+tYQPdI1tZum8W25cDlTp4D6brvRacKZusweWexxaopbV8RprBaKexkEX/KIbncuADq7qjDBdQHzaA== dependencies: "@evocateur/libnpmaccess" "^3.1.2" "@evocateur/npm-registry-fetch" "^4.0.0" @@ -689,7 +682,7 @@ "@lerna/run-lifecycle" "3.16.2" "@lerna/run-topologically" "3.18.5" "@lerna/validation-error" "3.13.0" - "@lerna/version" "3.20.1" + "@lerna/version" "3.20.2" figgy-pudding "^3.5.1" fs-extra "^8.1.0" npm-package-arg "^6.1.0" @@ -802,10 +795,10 @@ dependencies: npmlog "^4.1.2" -"@lerna/version@3.20.1": - version "3.20.1" - resolved "https://registry.yarnpkg.com/@lerna/version/-/version-3.20.1.tgz#1b6b7f30705ecb37af5c796ae2ef7f24f81d073e" - integrity sha512-MY80FV4uqdjxHNl6WaZ5k9hr0IGeQXo1+bKTKzMUudpr3HlTS0c0PoAwSGB2KHafGFpoyb9WHBhb1uDyhL+OfQ== +"@lerna/version@3.20.2": + version "3.20.2" + resolved "https://registry.yarnpkg.com/@lerna/version/-/version-3.20.2.tgz#3709141c0f537741d9bc10cb24f56897bcb30428" + integrity sha512-ckBJMaBWc+xJen0cMyCE7W67QXLLrc0ELvigPIn8p609qkfNM0L0CF803MKxjVOldJAjw84b8ucNWZLvJagP/Q== dependencies: "@lerna/check-working-tree" "3.16.5" "@lerna/child-process" "3.16.5" @@ -850,11 +843,32 @@ call-me-maybe "^1.0.1" glob-to-regexp "^0.3.0" +"@nodelib/fs.scandir@2.1.3": + version "2.1.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b" + integrity sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw== + dependencies: + "@nodelib/fs.stat" "2.0.3" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.3", "@nodelib/fs.stat@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3" + integrity sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA== + "@nodelib/fs.stat@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== +"@nodelib/fs.walk@^1.2.3": + version "1.2.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976" + integrity sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ== + dependencies: + "@nodelib/fs.scandir" "2.1.3" + fastq "^1.6.0" + "@octokit/endpoint@^5.5.0": version "5.5.1" resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-5.5.1.tgz#2eea81e110ca754ff2de11c79154ccab4ae16b3f" @@ -924,11 +938,6 @@ dependencies: any-observable "^0.3.0" -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - "@types/eslint-visitor-keys@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" @@ -958,60 +967,55 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== -"@types/node@*", "@types/node@>= 8", "@types/node@^13.1.2": - version "13.1.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.2.tgz#fe94285bf5e0782e1a9e5a8c482b1c34465fa385" - integrity sha512-B8emQA1qeKerqd1dmIsQYnXi+mmAzTB7flExjmy5X1aVAKFNNNDubkavwR13kR6JnpeLp3aLoJhwn9trWPAyFQ== +"@types/node@*", "@types/node@>= 8", "@types/node@^13.1.4": + version "13.1.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.4.tgz#4cfd90175a200ee9b02bd6b1cd19bc349741607e" + integrity sha512-Lue/mlp2egZJoHXZr4LndxDAd7i/7SQYhV0EjWfb/a4/OZ6tuVwMCVPiwkU5nsEipxEf7hmkSU7Em5VQ8P5NGA== "@types/node@^12.0.2": - version "12.12.22" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.22.tgz#b8d9eae3328b96910a373cf06ac8d3c5abe9c200" - integrity sha512-r5i93jqbPWGXYXxianGATOxTelkp6ih/U0WVnvaqAvTqM+0U6J3kw6Xk6uq/dWNRkEVw/0SLcO5ORXbVNz4FMQ== + version "12.12.24" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.24.tgz#d4606afd8cf6c609036b854360367d1b2c78931f" + integrity sha512-1Ciqv9pqwVtW6FsIUKSZNB82E5Cu1I2bBTj1xuIHXLe/1zYLl3956Nbhg2MzSYHVfl9/rmanjbQIb7LibfCnug== "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== - -"@typescript-eslint/eslint-plugin@^2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz#c74447400537d4eb7aae1e31879ab43e6c662a8a" - integrity sha512-sneOJ3Hu0m5whJiVIxGBZZZMxMJ7c0LhAJzeMJgHo+n5wFs+/6rSR/gl7crkdR2kNwfOOSdzdc0gMvatG4dX2Q== +"@typescript-eslint/eslint-plugin@^2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.15.0.tgz#5442c30b687ffd576ff74cfea46a6d7bfb0ee893" + integrity sha512-XRJFznI5v4K1WvIrWmjFjBAdQWaUTz4xJEdqR7+wAFsv6Q9dP3mOlE6BMNT3pdlp9eF1+bC5m5LZTmLMqffCVw== dependencies: - "@typescript-eslint/experimental-utils" "2.14.0" + "@typescript-eslint/experimental-utils" "2.15.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.14.0.tgz#e9179fa3c44e00b3106b85d7b69342901fb43e3b" - integrity sha512-KcyKS7G6IWnIgl3ZpyxyBCxhkBPV+0a5Jjy2g5HxlrbG2ZLQNFeneIBVXdaBCYOVjvGmGGFKom1kgiAY75SDeQ== +"@typescript-eslint/experimental-utils@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.15.0.tgz#41e35313bfaef91650ddb5380846d1c78a780070" + integrity sha512-Qkxu5zndY5hqlcQkmA88gfLvqQulMpX/TN91XC7OuXsRf4XG5xLGie0sbpX97o/oeccjeZYRMipIsjKk/tjDHA== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.14.0" + "@typescript-eslint/typescript-estree" "2.15.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@^2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.14.0.tgz#30fa0523d86d74172a5e32274558404ba4262cd6" - integrity sha512-haS+8D35fUydIs+zdSf4BxpOartb/DjrZ2IxQ5sR8zyGfd77uT9ZJZYF8+I0WPhzqHmfafUBx8MYpcp8pfaoSA== +"@typescript-eslint/parser@^2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.15.0.tgz#379a71a51b0429bc3bc55c5f8aab831bf607e411" + integrity sha512-6iSgQsqAYTaHw59t0tdjzZJluRAjswdGltzKEdLtcJOxR2UVTPHYvZRqkAVGCkaMVb6Fpa60NnuozNCvsSpA9g== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.14.0" - "@typescript-eslint/typescript-estree" "2.14.0" + "@typescript-eslint/experimental-utils" "2.15.0" + "@typescript-eslint/typescript-estree" "2.15.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.14.0.tgz#c67698acdc14547f095eeefe908958d93e1a648d" - integrity sha512-pnLpUcMNG7GfFFfNQbEX6f1aPa5fMnH2G9By+A1yovYI4VIOK2DzkaRuUlIkbagpAcrxQHLqovI1YWqEcXyRnA== +"@typescript-eslint/typescript-estree@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.15.0.tgz#79ae52eed8701b164d91e968a65d85a9105e76d3" + integrity sha512-L6Pog+w3VZzXkAdyqA0VlwybF8WcwZX+mufso86CMxSdWmcizJ38lgBdpqTbc9bo92iyi0rOvmATKiwl+amjxg== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" @@ -1021,10 +1025,10 @@ semver "^6.3.0" tsutils "^3.17.1" -"@zeit/ncc@^0.20.5": - version "0.20.5" - resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.20.5.tgz#a41af6e6bcab4a58f4612bae6137f70bce0192e3" - integrity sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw== +"@zeit/ncc@^0.21.0": + version "0.21.0" + resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.21.0.tgz#9516fc44ca81614c5b582d6e88542fdf37c401b6" + integrity sha512-RUMdvVK/w78oo+yBjruZltt0kJXYar2un/1bYQ2LuHG7GmFVm+QjxzEmySwREctaJdEnBvlMdUNWd9hXHxEI3g== "@zkochan/cmd-shim@^3.1.0": version "3.1.0" @@ -1079,6 +1083,14 @@ agentkeepalive@^3.4.1: dependencies: humanize-ms "^1.2.1" +aggregate-error@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz#db2fe7246e536f40d9b5442a39e117d7dd6a24e0" + integrity sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + ajv@^6.10.0, ajv@^6.10.2, ajv@^6.5.5: version "6.10.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" @@ -1133,14 +1145,6 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.0.tgz#5681f0dcf7ae5880a7841d8831c4724ed9cc0172" - integrity sha512-7kFQgnEaMdRtwf6uSfUnVr9gSGC7faurn+J/Mv90/W+iTtN0405/nLdopfMWwchyxhbGYl6TC4Sccn9TUkGAgg== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - any-observable@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" @@ -1213,6 +1217,11 @@ array-union@^1.0.2: dependencies: array-uniq "^1.0.1" +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + array-uniq@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" @@ -1270,10 +1279,10 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -aws-sdk@^2.596.0: - version "2.596.0" - resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.596.0.tgz#1a4af0609e174a50ffb8ed8981981e6d77a614fb" - integrity sha512-Bp+gyqhLw8tK4sgM1v1PDSw26H1mSXs6yhQInmGzDKqXJor6UyUb9JskFv0zC/bA84XizlshN1BBIgINqk6pNg== +aws-sdk@^2.598.0: + version "2.598.0" + resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.598.0.tgz#b0682aba835448468573279560a5d1b9ed312a56" + integrity sha512-Ve4Tah/1RNwxD/gavpwKLpV44CEOe3K8lrW+pYn5/z/ZGlFfNmlCtEI3SHhabg70zxZaWvt3DU5odAqo7axccg== dependencies: buffer "4.9.1" events "1.1.1" @@ -1535,14 +1544,6 @@ chalk@^1.0.0, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chardet@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" @@ -1568,6 +1569,11 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + cli-cursor@^2.0.0, cli-cursor@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" @@ -1638,23 +1644,11 @@ color-convert@^1.9.0: dependencies: color-name "1.1.3" -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - columnify@^1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" @@ -1670,12 +1664,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.1.tgz#b67622721785993182e807f4883633e6401ba53c" - integrity sha512-IPF4ouhCP+qdlcmCedhxX4xiGBPyigb8v5NeUp+0LyhwLgxMqyp3S0vl7TAPfS/hiP7FC3caI/PB9lTmP8r1NA== - -commander@~2.20.3: +commander@^2.20.0, commander@~2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -1877,17 +1866,6 @@ cosmiconfig@^5.1.0, cosmiconfig@^5.2.0, cosmiconfig@^5.2.1: js-yaml "^3.13.1" parse-json "^4.0.0" -cosmiconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" - integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.1.0" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.7.2" - cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -1934,7 +1912,7 @@ cz-conventional-changelog@3.0.1: optionalDependencies: "@commitlint/load" ">6.1.1" -cz-conventional-changelog@3.0.2: +cz-conventional-changelog@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-3.0.2.tgz#f6b9a406177ab07f9a3a087e06103a045b376260" integrity sha512-MPxERbtQyVp0nnpCBiwzKGKmMBSswmCV3Jpef3Axqd5f3c/SOc6VFiSUlclOyZXBn3Xtf4snzt4O15hBTRb2gA== @@ -2070,6 +2048,20 @@ define-property@^2.0.2: is-descriptor "^1.0.2" isobject "^3.0.1" +del@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/del/-/del-5.1.0.tgz#d9487c94e367410e6eff2925ee58c0c84a75b3a7" + integrity sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA== + dependencies: + globby "^10.0.1" + graceful-fs "^4.2.2" + is-glob "^4.0.1" + is-path-cwd "^2.2.0" + is-path-inside "^3.0.1" + p-map "^3.0.0" + rimraf "^3.0.0" + slash "^3.0.0" + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -2115,6 +2107,13 @@ dir-glob@^2.2.2: dependencies: path-type "^3.0.0" +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -2391,17 +2390,16 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" -execa@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-3.4.0.tgz#c08ed4550ef65d858fac269ffc8572446f37eb89" - integrity sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g== +execa@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-2.1.0.tgz#e5d3ecd837d2a60ec50f3da78fd39767747bbe99" + integrity sha512-Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw== dependencies: cross-spawn "^7.0.0" get-stream "^5.0.0" - human-signals "^1.1.1" is-stream "^2.0.0" merge-stream "^2.0.0" - npm-run-path "^4.0.0" + npm-run-path "^3.0.0" onetime "^5.1.0" p-finally "^2.0.0" signal-exit "^3.0.2" @@ -2502,6 +2500,17 @@ fast-glob@^2.2.6: merge2 "^1.2.3" micromatch "^3.1.10" +fast-glob@^3.0.3: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.1.1.tgz#87ee30e9e9f3eb40d6f254a7997655da753d7c82" + integrity sha512-nTCREpBY8w8r+boyFYAx21iL6faSsQynliPHM4Uf56SbkyohCNxpVPEH9xrF5TXKy+IsjkPUHDKiUkzBVRXn9g== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -2512,6 +2521,13 @@ fast-levenshtein@~2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fastq@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.6.0.tgz#4ec8a38f4ac25f21492673adb7eae9cfef47d1c2" + integrity sha512-jmxqQ3Z/nXoeyDmWAzF9kH1aGZSis6e/SbfPmJpUnyZ0ogr6iscHQaml4wsEepEWSdtmpy+eVXmCRIMpxaXqOA== + dependencies: + reusify "^1.0.0" + figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" @@ -2856,7 +2872,7 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-parent@^5.0.0: +glob-parent@^5.0.0, glob-parent@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw== @@ -2926,6 +2942,20 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" +globby@^10.0.1: + version "10.0.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543" + integrity sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg== + dependencies: + "@types/glob" "^7.1.1" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.0.3" + glob "^7.1.3" + ignore "^5.1.1" + merge2 "^1.2.3" + slash "^3.0.0" + globby@^9.2.0: version "9.2.0" resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d" @@ -2981,11 +3011,6 @@ has-flag@^3.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - has-symbols@^1.0.0, has-symbols@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" @@ -3076,11 +3101,6 @@ https-proxy-agent@^2.2.3: agent-base "^4.3.0" debug "^3.1.0" -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - humanize-ms@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" @@ -3134,6 +3154,11 @@ ignore@^4.0.3, ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== +ignore@^5.1.1: + version "5.1.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf" + integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A== + import-fresh@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" @@ -3142,7 +3167,7 @@ import-fresh@^2.0.0: caller-path "^2.0.0" resolve-from "^3.0.0" -import-fresh@^3.0.0, import-fresh@^3.1.0: +import-fresh@^3.0.0: version "3.2.1" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== @@ -3175,6 +3200,11 @@ indent-string@^3.0.0: resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + infer-owner@^1.0.3, infer-owner@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" @@ -3251,9 +3281,9 @@ inquirer@^6.2.0: through "^2.3.6" inquirer@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.1.tgz#13f7980eedc73c689feff3994b109c4e799c6ebb" - integrity sha512-V1FFQ3TIO15det8PijPLFR9M9baSlnRs9nL7zWu1MNVA2T9YVl9ZbrHJhYs7e9X8jeMZ3lr2JH/rdHFgNCBdYw== + version "7.0.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.2.tgz#b39b205b95c9424839a1fd991d60426cf9bbc0e9" + integrity sha512-cZGvHaHwcR9E3xK9EGO5pHKELU+yaeJO7l2qGKIbqk4bCuDuAn15LCoUTS2nSkfv9JybFlnAGrOcVpCDZZOLhw== dependencies: ansi-escapes "^4.2.1" chalk "^2.4.2" @@ -3436,6 +3466,16 @@ is-observable@^1.1.0: dependencies: symbol-observable "^1.1.0" +is-path-cwd@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" + integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== + +is-path-inside@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.2.tgz#f5220fc82a3e233757291dddc9c5877f2a1f3017" + integrity sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg== + is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -3644,10 +3684,10 @@ kind-of@^6.0.0, kind-of@^6.0.2: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== -lerna@^3.20.1: - version "3.20.1" - resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.20.1.tgz#68d42768fc1a243db144558a10d4191c9337646a" - integrity sha512-TUS6aSyVdOoXLF1CMwUsT0zCGwgO1LvRUP9zUqWRYdvZP8NofSEzd4ChkRXZWGwXyQ8ozA9bIfwWxMck2QpfIA== +lerna@^3.20.2: + version "3.20.2" + resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.20.2.tgz#abf84e73055fe84ee21b46e64baf37b496c24864" + integrity sha512-bjdL7hPLpU3Y8CBnw/1ys3ynQMUjiK6l9iDWnEGwFtDy48Xh5JboR9ZJwmKGCz9A/sarVVIGwf1tlRNKUG9etA== dependencies: "@lerna/add" "3.20.0" "@lerna/bootstrap" "3.20.0" @@ -3662,9 +3702,9 @@ lerna@^3.20.1: "@lerna/init" "3.18.5" "@lerna/link" "3.18.5" "@lerna/list" "3.20.0" - "@lerna/publish" "3.20.1" + "@lerna/publish" "3.20.2" "@lerna/run" "3.20.0" - "@lerna/version" "3.20.1" + "@lerna/version" "3.20.2" import-local "^2.0.0" npmlog "^4.1.2" @@ -3681,22 +3721,24 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= -lint-staged@^10.0.0-beta.14: - version "10.0.0-beta.14" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.0.0-beta.14.tgz#cbf8b28ed30ab349a0fc0511ed69517610cca2f8" - integrity sha512-AdlmRw9G6MLOh9RVzKQ78yWcs1SaNpNs5y5tEetwujFgqIp/fXMZY53KnJByHjtcg6uKSN/DPNxdjpRlkVw12Q== +lint-staged@^9.5.0: + version "9.5.0" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-9.5.0.tgz#290ec605252af646d9b74d73a0fa118362b05a33" + integrity sha512-nawMob9cb/G1J98nb8v3VC/E8rcX1rryUYXVZ69aT9kde6YWX+uvNOEHY5yf2gcWcTJGiD0kqXmCnS3oD75GIA== dependencies: - chalk "^3.0.0" - commander "^4.0.1" - cosmiconfig "^6.0.0" + chalk "^2.4.2" + commander "^2.20.0" + cosmiconfig "^5.2.1" debug "^4.1.1" dedent "^0.7.0" - execa "^3.4.0" + del "^5.0.0" + execa "^2.0.3" listr "^0.14.3" log-symbols "^3.0.0" micromatch "^4.0.2" normalize-path "^3.0.0" - please-upgrade-node "^3.2.0" + please-upgrade-node "^3.1.1" + string-argv "^0.3.0" stringify-object "^3.3.0" listr-silent-renderer@^1.1.1: @@ -3858,11 +3900,6 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@4.17.14: - version "4.17.14" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.14.tgz#9ce487ae66c96254fe20b599f21b6816028078ba" - integrity sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw== - lodash@4.17.15, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.2.1: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" @@ -4021,7 +4058,7 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -merge2@^1.2.3: +merge2@^1.2.3, merge2@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81" integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw== @@ -4058,17 +4095,17 @@ micromatch@^4.0.2: braces "^3.0.1" picomatch "^2.0.5" -mime-db@1.42.0: - version "1.42.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac" - integrity sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ== +mime-db@1.43.0: + version "1.43.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.43.0.tgz#0a12e0502650e473d735535050e7c8f4eb4fae58" + integrity sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ== mime-types@^2.1.12, mime-types@~2.1.19: - version "2.1.25" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.25.tgz#39772d46621f93e2a80a856c53b86a62156a6437" - integrity sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg== + version "2.1.26" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.26.tgz#9c921fc09b7e149a65dfdc0da4d20997200b0a06" + integrity sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ== dependencies: - mime-db "1.42.0" + mime-db "1.43.0" mimic-fn@^1.0.0: version "1.2.0" @@ -4370,10 +4407,10 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" -npm-run-path@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== +npm-run-path@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-3.1.0.tgz#7f91be317f6a466efed3c9f2980ad8a4ee8b0fa5" + integrity sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg== dependencies: path-key "^3.0.0" @@ -4548,9 +4585,9 @@ p-limit@^1.1.0: p-try "^1.0.0" p-limit@^2.0.0, p-limit@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.1.tgz#aa07a788cc3151c939b5131f63570f0dd2009537" - integrity sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg== + version "2.2.2" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz#61279b67721f5287aa1c13a9a7fbbc48c9291b1e" + integrity sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ== dependencies: p-try "^2.0.0" @@ -4587,6 +4624,13 @@ p-map@^2.0.0, p-map@^2.1.0: resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175" integrity sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw== +p-map@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" + integrity sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + dependencies: + aggregate-error "^3.0.0" + p-pipe@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/p-pipe/-/p-pipe-1.2.0.tgz#4b1a11399a11520a67790ee5a0c1d5881d6befe9" @@ -4764,9 +4808,9 @@ performance-now@^2.1.0: integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= picomatch@^2.0.5: - version "2.1.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.1.1.tgz#ecdfbea7704adb5fe6fb47f9866c4c0e15e905c5" - integrity sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA== + version "2.2.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.1.tgz#21bac888b6ed8601f831ce7816e335bc779f0a4a" + integrity sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA== pify@^2.0.0, pify@^2.3.0: version "2.3.0" @@ -4809,7 +4853,7 @@ pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" -please-upgrade-node@^3.2.0: +please-upgrade-node@^3.1.1, please-upgrade-node@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== @@ -5035,9 +5079,9 @@ read@1, read@~1.0.1: mute-stream "~0.0.4" "readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6, readable-stream@~2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + version "2.3.7" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== dependencies: core-util-is "~1.0.0" inherits "~2.0.3" @@ -5094,11 +5138,6 @@ regenerator-runtime@^0.11.0: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== -regenerator-runtime@^0.13.2: - version "0.13.3" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" - integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== - regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -5212,13 +5251,20 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@^1.1.6, resolve@^1.10.0: +resolve@^1.1.6: version "1.14.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff" integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg== dependencies: path-parse "^1.0.6" +resolve@^1.10.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.2.tgz#dbf31d0fa98b1f29aa5169783b9c290cb865fea2" + integrity sha512-EjlOBLBO1kxsUxsKjLt7TAECyKW6fOh1VRkykQkKGzcBbjjPIxBqGh0jf7GJ3k/f5mxMqW3htMD3WdTUVtW8HQ== + dependencies: + path-parse "^1.0.6" + restore-cursor@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" @@ -5245,6 +5291,11 @@ retry@^0.10.0: resolved "https://registry.yarnpkg.com/retry/-/retry-0.10.1.tgz#e76388d217992c252750241d3d3956fed98d8ff4" integrity sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q= +reusify@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + right-pad@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0" @@ -5264,6 +5315,13 @@ rimraf@^2.5.4, rimraf@^2.6.2, rimraf@^2.6.3: dependencies: glob "^7.1.3" +rimraf@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b" + integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg== + dependencies: + glob "^7.1.3" + run-async@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" @@ -5276,6 +5334,11 @@ run-node@^1.0.0: resolved "https://registry.yarnpkg.com/run-node/-/run-node-1.0.0.tgz#46b50b946a2aa2d4947ae1d886e9856fd9cabe5e" integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== +run-parallel@^1.1.9: + version "1.1.9" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679" + integrity sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q== + run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" @@ -5605,7 +5668,7 @@ stream-shift@^1.0.0: resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== -string-argv@^0.3.1: +string-argv@^0.3.0, string-argv@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== @@ -5777,13 +5840,6 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - symbol-observable@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" @@ -6322,13 +6378,6 @@ yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yaml@^1.7.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.7.2.tgz#f26aabf738590ab61efaca502358e48dc9f348b2" - integrity sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw== - dependencies: - "@babel/runtime" "^7.6.3" - yargs-parser@^10.0.0: version "10.1.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8"