From 125a80391099ca7ae3ef4c3459a7a1eb61711d09 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:09:19 -0400 Subject: [PATCH 01/12] Add action.yml --- action.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 00000000..bfc7007d --- /dev/null +++ b/action.yml @@ -0,0 +1,19 @@ +name: Jira Find Issue Key +description: Find an issue inside event +inputs: + event: + description: Provide jsonpath for the GitHub event to extract issue from + required: false + string: + description: Provide a string to extract issue key from + required: false + from: + description: Find from predefined place (should be either 'branch', or 'commits', default is 'commit') + required: false + default: commits +outputs: + issue: + description: Key of the found issue +runs: + using: 'node12' + main: './index.js' From 8574221625a7f7e84bd940a16a0b9d7938f753fd Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:09:49 -0400 Subject: [PATCH 02/12] Add .gitignore --- .gitignore | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..b614e7c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,88 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ \ No newline at end of file From 93b18fe4d3a7f973cc85daa425f0e33031a9c030 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:13:12 -0400 Subject: [PATCH 03/12] Add @zeit/ncc and build scripts, plus @actions/core --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f445866d..4d84de56 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,14 @@ "description": "", "main": "index.js", "scripts": { - "test": "NODE_ENV=testing jest" + "test": "NODE_ENV=testing jest", + "build": "ncc build index.js --minify", + "watch": "ncc build index.js --watch --minify" }, "author": "", "license": "ISC", "dependencies": { + "@actions/core": "^1.0.0", "lodash": "^4.17.11", "node-fetch": "^2.3.0", "yaml": "^1.3.1", @@ -16,6 +19,7 @@ }, "devDependencies": { "@atlassian-partner-engineering/eslint-config": "^2.3.2", + "@zeit/ncc": "^0.20.4", "eslint": "^5.13.0", "jest": "^24.1.0", "jest-junit": "^6.2.1", From f2e179719eb640b2582df4d4fc4882cb0e0b6be1 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:13:57 -0400 Subject: [PATCH 04/12] Remove yargs --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 4d84de56..2bfeea20 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "@actions/core": "^1.0.0", "lodash": "^4.17.11", "node-fetch": "^2.3.0", - "yaml": "^1.3.1", - "yargs": "^13.0.0-candidate.0" + "yaml": "^1.3.1" }, "devDependencies": { "@atlassian-partner-engineering/eslint-config": "^2.3.2", From ac78c07bd5b8bae7a43d0e794c4e795e7b375633 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:14:08 -0400 Subject: [PATCH 05/12] Add index.js --- index.js | 40 +++++++++++----------------------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/index.js b/index.js index b93e19f2..c3dd3147 100755 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const fs = require('fs') const YAML = require('yaml') -const yargs = require('yargs') +const core = require('@actions/core') const cliConfigPath = `${process.env.HOME}/.jira.d/config.yml` const configPath = `${process.env.HOME}/jira/config.yml` @@ -23,6 +23,9 @@ async function exec () { console.log(`Saving ${result.issue} to ${cliConfigPath}`) console.log(`Saving ${result.issue} to ${configPath}`) + // Expose created issue's key as an output + core.setOutput("issue", result.issue) + const yamledResult = YAML.stringify(result) const extendedConfig = Object.assign({}, config, result) @@ -32,39 +35,18 @@ async function exec () { } console.log('No issueKeys found.') - process.exit(78) + core.setNeutral() } catch (error) { - console.error(error) - process.exit(1) + core.setFailed(error.toString()) } } function parseArgs () { - yargs - .option('event', { - alias: 'e', - describe: 'Provide jsonpath for the GitHub event to extract issue from', - default: config.event, - type: 'string', - }) - .option('string', { - alias: 's', - describe: 'Provide a string to extract issue key from', - default: config.string, - type: 'string', - }) - .option('from', { - describe: 'Find from predefined place', - type: 'string', - choices: ['branch', 'commits'], - }) - - yargs - .parserConfiguration({ - 'parse-numbers': false, - }) - - return yargs.argv + return { + event: core.getInput('event') || config.event, + string: core.getInput('string') || config.string, + from: core.getInput('from') + } } exec() From adea47480e35f1951276fd465e9c33e801836bf2 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:14:55 -0400 Subject: [PATCH 06/12] Eslint changes --- index.js | 4 +- package-lock.json | 217 +++++++++++++++++++++++++++------------------- 2 files changed, 129 insertions(+), 92 deletions(-) diff --git a/index.js b/index.js index c3dd3147..d9d91b90 100755 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ async function exec () { console.log(`Saving ${result.issue} to ${configPath}`) // Expose created issue's key as an output - core.setOutput("issue", result.issue) + core.setOutput('issue', result.issue) const yamledResult = YAML.stringify(result) const extendedConfig = Object.assign({}, config, result) @@ -45,7 +45,7 @@ function parseArgs () { return { event: core.getInput('event') || config.event, string: core.getInput('string') || config.string, - from: core.getInput('from') + from: core.getInput('from'), } } diff --git a/package-lock.json b/package-lock.json index a25027d6..62e27da0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@actions/core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.0.0.tgz", + "integrity": "sha512-aMIlkx96XH4E/2YZtEOeyrYQfhlas9jIRkfGPqMwXD095Rdkzo4lB6ZmbxPQSzD+e1M+Xsm98ZhuSMYGv/AlqA==" + }, "@atlassian-partner-engineering/eslint-config": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/@atlassian-partner-engineering/eslint-config/-/eslint-config-2.3.2.tgz", @@ -178,6 +183,12 @@ "to-fast-properties": "^2.0.0" } }, + "@zeit/ncc": { + "version": "0.20.4", + "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.20.4.tgz", + "integrity": "sha512-fmq+F/QxPec+k/zvT7HiVpk7oiGFseS6brfT/AYqmCUp6QFRK7vZf2Ref46MImsg/g2W3g5X6SRvGRmOAvEfdA==", + "dev": true + }, "abab": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", @@ -241,7 +252,8 @@ "ansi-regex": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.0.0.tgz", - "integrity": "sha512-iB5Dda8t/UqpPI/IjsejXu5jOGDrzn41wJyljwPH65VCIbk6+1BzFIMJGFwTNrYXT1CrD+B4l19U7awiQ8rk7w==" + "integrity": "sha512-iB5Dda8t/UqpPI/IjsejXu5jOGDrzn41wJyljwPH65VCIbk6+1BzFIMJGFwTNrYXT1CrD+B4l19U7awiQ8rk7w==", + "dev": true }, "ansi-styles": { "version": "3.2.1", @@ -661,7 +673,8 @@ "camelcase": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.0.0.tgz", - "integrity": "sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA==" + "integrity": "sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA==", + "dev": true }, "capture-exit": { "version": "1.2.0", @@ -769,6 +782,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, "requires": { "string-width": "^2.1.1", "strip-ansi": "^4.0.0", @@ -778,12 +792,14 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -799,7 +815,8 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true }, "collection-visit": { "version": "1.0.0", @@ -890,6 +907,7 @@ "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, "requires": { "nice-try": "^1.0.4", "path-key": "^2.0.1", @@ -964,7 +982,8 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true }, "decode-uri-component": { "version": "0.2.0", @@ -1101,12 +1120,14 @@ "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true }, "end-of-stream": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "dev": true, "requires": { "once": "^1.4.0" } @@ -1711,6 +1732,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, "requires": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -1982,6 +2004,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, "requires": { "locate-path": "^3.0.0" } @@ -2058,7 +2081,8 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2082,13 +2106,15 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2105,19 +2131,22 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2248,7 +2277,8 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2262,6 +2292,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2278,6 +2309,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2286,13 +2318,15 @@ "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -2313,6 +2347,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -2401,7 +2436,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -2415,6 +2451,7 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -2510,7 +2547,8 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -2552,6 +2590,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -2573,6 +2612,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -2621,13 +2661,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true + "dev": true, + "optional": true } } }, @@ -2643,11 +2685,6 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "get-caller-file": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.1.tgz", - "integrity": "sha512-SpOZHfz845AH0wJYVuZk2jWDqFmu7Xubsx+ldIpwzy5pDUpu7OJHK7QYNSA2NPlDSKQwM1GFaAkciOWjjW92Sg==" - }, "get-func-name": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", @@ -2658,6 +2695,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, "requires": { "pump": "^3.0.0" } @@ -2922,7 +2960,8 @@ "invert-kv": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true }, "is-accessor-descriptor": { "version": "0.1.6", @@ -3025,7 +3064,8 @@ "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true }, "is-generator-fn": { "version": "2.0.0", @@ -3080,7 +3120,8 @@ "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true }, "is-symbol": { "version": "1.0.2", @@ -3118,7 +3159,8 @@ "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true }, "isobject": { "version": "3.0.1", @@ -3878,6 +3920,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, "requires": { "invert-kv": "^2.0.0" } @@ -3920,6 +3963,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, "requires": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -3967,6 +4011,7 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, "requires": { "p-defer": "^1.0.0" } @@ -3990,6 +4035,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.1.0.tgz", "integrity": "sha512-I5u6Q1x7wxO0kdOpYBB28xueHADYps5uty/zg936CiG8NTe5sJL8EjrCuLneuDW3PlMdZBGDIn8BirEVdovZvg==", + "dev": true, "requires": { "map-age-cleaner": "^0.1.1", "mimic-fn": "^1.0.0", @@ -4050,7 +4096,8 @@ "mimic-fn": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true }, "minimatch": { "version": "3.0.4", @@ -4152,7 +4199,8 @@ "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true }, "nock": { "version": "10.0.6", @@ -4226,6 +4274,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, "requires": { "path-key": "^2.0.0" } @@ -4233,7 +4282,8 @@ "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true }, "nwsapi": { "version": "2.1.0", @@ -4358,6 +4408,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } @@ -4415,6 +4466,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, "requires": { "execa": "^1.0.0", "lcid": "^2.0.0", @@ -4430,7 +4482,8 @@ "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true }, "p-each-series": { "version": "1.0.0", @@ -4444,17 +4497,20 @@ "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true }, "p-is-promise": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.0.0.tgz", - "integrity": "sha512-pzQPhYMCAgLAKPWD2jC3Se9fEfrD9npNos0y150EeqZll7akhEgGhTW/slB6lHku8AvYGiJ+YJ5hfHKePPgFWg==" + "integrity": "sha512-pzQPhYMCAgLAKPWD2jC3Se9fEfrD9npNos0y150EeqZll7akhEgGhTW/slB6lHku8AvYGiJ+YJ5hfHKePPgFWg==", + "dev": true }, "p-limit": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.1.0.tgz", "integrity": "sha512-NhURkNcrVB+8hNfLuysU8enY5xn2KXphsHBaC2YmRNTZRc7RWusw6apSpdEj3jo4CMb6W9nrF6tTnsJsJeyu6g==", + "dev": true, "requires": { "p-try": "^2.0.0" } @@ -4463,6 +4519,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, "requires": { "p-limit": "^2.0.0" } @@ -4476,7 +4533,8 @@ "p-try": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz", - "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==" + "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==", + "dev": true }, "parent-module": { "version": "1.0.0", @@ -4512,7 +4570,8 @@ "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, "path-is-absolute": { "version": "1.0.1", @@ -4529,7 +4588,8 @@ "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true }, "path-parse": { "version": "1.0.6", @@ -4658,6 +4718,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -4829,7 +4890,8 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true }, "require-main-filename": { "version": "1.0.1", @@ -4964,12 +5026,14 @@ "semver": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "dev": true }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true }, "set-value": { "version": "2.0.0", @@ -4998,6 +5062,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, "requires": { "shebang-regex": "^1.0.0" } @@ -5005,7 +5070,8 @@ "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true }, "shellwords": { "version": "0.1.1", @@ -5016,7 +5082,8 @@ "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true }, "sisteransi": { "version": "1.0.0", @@ -5334,6 +5401,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -5342,12 +5410,14 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -5367,6 +5437,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.0.0.tgz", "integrity": "sha512-Uu7gQyZI7J7gn5qLn1Np3G9vcYGTVqB+lFTytnDJv83dd8T22aGH451P3jueT2/QemInJDfxHB5Tde5OzgG1Ow==", + "dev": true, "requires": { "ansi-regex": "^4.0.0" } @@ -5380,7 +5451,8 @@ "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true }, "strip-json-comments": { "version": "2.0.1", @@ -5817,6 +5889,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, "requires": { "isexe": "^2.0.0" } @@ -5824,7 +5897,8 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true }, "wordwrap": { "version": "0.0.3", @@ -5836,6 +5910,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, "requires": { "string-width": "^1.0.1", "strip-ansi": "^3.0.1" @@ -5844,12 +5919,14 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, "requires": { "number-is-nan": "^1.0.0" } @@ -5858,6 +5935,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -5868,6 +5946,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -5877,7 +5956,8 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "write": { "version": "0.2.1", @@ -5923,56 +6003,13 @@ "y18n": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true }, "yaml": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.3.1.tgz", "integrity": "sha512-2AG732tOqaovhv9HNm39BjaEnEDaHssbAxh4atw521ohOqL4X8JHjcbyf2W+dYSVl6zG8/Ayd1a1J36k8eJQZw==" - }, - "yargs": { - "version": "13.0.0-candidate.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.0.0-candidate.0.tgz", - "integrity": "sha512-whBr6LJqmNI3tRPtAmvsYT4g2LdFLTwPvH3QfyRSc3fQdMemDNfv6Op1bq+xKmC7eRH2RMD1vaVVb9loB06Crw==", - "requires": { - "cliui": "^4.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "os-locale": "^3.1.0", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.0.0" - }, - "dependencies": { - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" - }, - "string-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.0.0.tgz", - "integrity": "sha512-rr8CUxBbvOZDUvc5lNIJ+OC1nPVpz+Siw9VBtUjB9b6jZehZLFt0JMCZzShFHIsI8cbhm0EsNIfWJMFV3cu3Ew==", - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.0.0" - } - } - } - }, - "yargs-parser": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", - "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } } } } From 73f3503a3c2889b084c5e74febdcf0c3da16e7db Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:15:49 -0400 Subject: [PATCH 07/12] Add build artifact and update action entrypoint --- action.yml | 2 +- dist/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 dist/index.js diff --git a/action.yml b/action.yml index bfc7007d..3bb43895 100644 --- a/action.yml +++ b/action.yml @@ -16,4 +16,4 @@ outputs: description: Key of the found issue runs: using: 'node12' - main: './index.js' + main: './dist/index.js' diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 00000000..af869998 --- /dev/null +++ b/dist/index.js @@ -0,0 +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__(104)}t(__webpack_require__);return startup()}({18:function(){eval("require")("encoding")},19:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:r,end:n}=this;if(e.length===0||n<=e[0]){this.origStart=r;this.origEnd=n;return t}let a=t;while(ar)break;else++a}this.origStart=r+a;const i=a;while(a=n)break;else++a}this.origEnd=n+a;return i}}t.default=Range;e.exports=t.default;e.exports.default=t.default},21:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePairs=parsePairs;t.createPairs=createPairs;t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(858));var o=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parsePairs(e,t){const r=(0,s.default)(e,t);for(let e=0;e1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=s.items[0]||new i.default;if(s.commentBefore)e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore;if(s.comment)e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment;s=e}r.items[e]=s instanceof i.default?s:new i.default(s)}return r}function createPairs(e,t,r){const n=new o.default;n.tag="tag:yaml.org,2002:pairs";for(const a of t){let t,s;if(Array.isArray(a)){if(a.length===2){t=a[0];s=a[1]}else throw new TypeError(`Expected [key, value] tuple: ${a}`)}else if(a&&a instanceof Object){const e=Object.keys(a);if(e.length===1){t=e[0];s=a[t]}else throw new TypeError(`Expected { key: value } tuple: ${a}`)}else{t=a}const o=e.createNode(t,r);const u=e.createNode(s,r);n.items.push(new i.default(o,u))}return n}var u={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs,stringify:(e,t,r,n)=>e.toString(t,r,n)};t.default=u},24:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Chomp=void 0;var n=_interopRequireWildcard(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}const i={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=i;class BlockValue extends n.default{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=i.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===i.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:a}=this.context;if(this.valueRange.isEmpty())return"";let s=null;let o=a[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===i.KEEP)break;else return""}if(o==="\n")s=t;o=a[t-1]}let u=t+1;if(s){if(this.chomping===i.KEEP){u=s;t=this.valueRange.end}else{t=s}}const l=r+this.blockIndent;const f=this.type===n.Type.BLOCK_FOLDED;let c=true;let h="";let d="";let p=false;for(let r=e;rl){l=n}}if(r[e]==="\n"){s=e}else{s=o=n.default.endOfLine(r,e)}}if(this.chomping!==i.KEEP){s=r[o]?o+1:o}this.valueRange=new a.default(e+1,s);return s}parse(e,t){this.context=e;const{src:r}=e;let a=this.parseBlockHeader(t);a=n.default.endOfWhiteSpace(r,a);a=this.parseComment(a);a=this.parseBlockValue(a);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.header?this.header.setOrigRange(e,t):t}}t.default=BlockValue},29:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var a=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asItemIndex(e){let t=e instanceof i.default?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends a.default{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&n instanceof i.default?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t(0,n.default)(e,String(r),t))}toString(e,t,r){if(!e)return JSON.stringify(this);return super.toString(e,{blockItem:e=>e.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,r)}}t.default=YAMLSeq;e.exports=t.default;e.exports.default=t.default},87:function(e){e.exports=require("os")},104:function(e,t,r){const n=r(747);const a=r(792);const i=r(470);const s=`${process.env.HOME}/.jira.d/config.yml`;const o=`${process.env.HOME}/jira/config.yml`;const u=r(751);const l=require(process.env.GITHUB_EVENT_PATH);const f=a.parse(n.readFileSync(o,"utf8"));async function exec(){try{const e=await new u({githubEvent:l,argv:parseArgs(),config:f}).execute();if(e){console.log(`Detected issueKey: ${e.issue}`);console.log(`Saving ${e.issue} to ${s}`);console.log(`Saving ${e.issue} to ${o}`);i.setOutput("issue",e.issue);const t=a.stringify(e);const r=Object.assign({},f,e);n.writeFileSync(o,a.stringify(r));return n.appendFileSync(s,t)}console.log("No issueKeys found.");i.setNeutral()}catch(e){i.setFailed(e.toString())}}function parseArgs(){return{event:i.getInput("event")||f.event,string:i.getInput("string")||f.string,from:i.getInput("from")}}exec()},119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class PlainValue extends n.default{static endOfLine(e,t,r){let n=e[t];let a=t;while(n&&n!=="\n"){if(r&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[a+1];if(n===":"&&(t==="\n"||t==="\t"||t===" "||r&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;a+=1;n=t}return a}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let a=r[t-1];while(en?r.slice(n,a+1):e}else{i+=e}}return i}parseBlockValue(e){const{indent:t,inFlow:r,src:a}=this.context;let i=e;let s=e;for(let e=a[i];e==="\n";e=a[i]){if(n.default.atDocumentBoundary(a,i+1))break;const e=n.default.endOfBlockIndent(a,t,i+1);if(e===null||a[e]==="#")break;if(a[e]==="\n"){i=e}else{s=PlainValue.endOfLine(a,e,r);i=s}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=s;return s}parse(e,t){this.context=e;const{inFlow:r,src:i}=e;let s=t;const o=i[s];if(o&&o!=="#"&&o!=="\n"){s=PlainValue.endOfLine(i,t,r)}this.valueRange=new a.default(t,s);s=n.default.endOfWhiteSpace(i,s);s=this.parseComment(s);if(!this.hasComment||this.valueRange.isEmpty()){s=this.parseBlockValue(s)}return s}}t.default=PlainValue;e.exports=t.default;e.exports.default=t.default},156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Node{}t.default=Node;e.exports=t.default;e.exports.default=t.default},185:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(794));var i=_interopRequireDefault(r(487));var s=_interopRequireWildcard(r(974));var o=_interopRequireDefault(r(19));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class FlowCollection extends s.default{constructor(e,t){super(e,t);this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===s.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:r,src:u}=e;let{indent:l,lineStart:f}=e;let c=u[t];this.items=[{char:c,offset:t}];let h=s.default.endOfWhiteSpace(u,t+1);c=u[h];while(c&&c!=="]"&&c!=="}"){switch(c){case"\n":{f=h+1;const e=s.default.endOfWhiteSpace(u,f);if(u[e]==="\n"){const e=new a.default;f=e.parse({src:u},f);this.items.push(e)}h=s.default.endOfIndent(u,f);if(h-f<=l)this.error=new n.YAMLSemanticError(this,"Insufficient indentation in flow collection")}break;case",":{this.items.push({char:c,offset:h});h+=1}break;case"#":{const e=new i.default;h=e.parse({src:u},h);this.items.push(e)}break;case"?":case":":{const e=u[h+1];if(e==="\n"||e==="\t"||e===" "||e===","||c===":"&&this.prevNodeIsJsonLike()){this.items.push({char:c,offset:h});h+=1;break}}default:{const e=r({atLineStart:false,inCollection:false,inFlow:true,indent:-1,lineStart:f,parent:this},h);if(!e){this.valueRange=new o.default(t,h);return h}this.items.push(e);h=s.default.normalizeOffset(u,e.range.end)}}h=s.default.endOfWhiteSpace(u,h);c=u[h]}this.valueRange=new o.default(t,h+1);if(c){this.items.push({char:c,offset:h});h=s.default.endOfWhiteSpace(u,h+1);h=this.parseComment(h)}return h}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{if(r instanceof s.default){t=r.setOrigRanges(e,t)}else if(e.length===0){r.origOffset=r.offset}else{let n=t;while(nr.offset)break;else++n}r.origOffset=r.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;const a=t.filter(e=>e instanceof s.default);let i="";let o=r.start;a.forEach(t=>{const r=e.slice(o,t.range.start);o=t.range.end;i+=r+String(t);if(i[i.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});i+=e.slice(o,r.end);return s.default.addStringTerminator(e,r.end,i)}}t.default=FlowCollection;e.exports=t.default;e.exports.default=t.default},211:function(e){e.exports=require("https")},255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(974);var a=r(405);var i=_interopRequireDefault(r(637));var s=_interopRequireDefault(r(380));var o=_interopRequireDefault(r(632));var u=_interopRequireWildcard(r(548));var l=_interopRequireDefault(r(457));var f=_interopRequireDefault(r(156));var c=_interopRequireDefault(r(325));var h=_interopRequireDefault(r(515));var d=r(583);var p=_interopRequireDefault(r(506));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const g=({type:e})=>e===n.Type.FLOW_MAP||e===n.Type.MAP;const y=({type:e})=>e===n.Type.FLOW_SEQ||e===n.Type.SEQ;class Schema{static defaultStringify(e){return JSON.stringify(e)}constructor({merge:e,schema:t,tags:r}){this.merge=!!e;this.name=t;this.tags=Schema.tags[t];if(!this.tags){const e=Object.keys(Schema.tags).map(e=>JSON.stringify(e));throw new Error(`Unknown schema; use one of ${e.join(", ")}`)}if(Array.isArray(r)){this.tags=this.tags.concat(r)}else if(typeof r==="function"){this.tags=r(this.tags.slice())}}createNode(e,t,r,n){let a;if(r){if(r.startsWith("!!"))r=Schema.defaultPrefix+r.slice(2);const e=this.tags.filter(e=>e.tag===r);a=e.find(e=>!e.format)||e[0];if(!a)throw new Error(`Tag ${r} not found`)}else{a=this.tags.find(t=>t.class&&e instanceof t.class&&!t.format);if(!a){if(e==null)return new h.default(null);if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return t?new h.default(e):e;a=e instanceof Map?u.map:e[Symbol.iterator]?u.seq:u.map}}if(n)n(a);return a.createNode?a.createNode(this,e,t):new h.default(e)}resolveScalar(e,t){if(!t)t=this.tags;for(let r=0;re===r);const a=n.find(({test:e})=>!e);if(t.error)e.errors.push(t.error);try{if(a){let r=a.resolve(e,t);if(!(r instanceof s.default))r=new h.default(r);t.resolved=r}else{const r=(0,d.resolve)(e,t);if(typeof r==="string"&&n.length>0){t.resolved=this.resolveScalar(r,n)}}}catch(r){if(!r.source)r.source=t;e.errors.push(r);t.resolved=null}if(!t.resolved)return null;if(r)t.resolved.tag=r;return t.resolved}resolveNodeWithFallback(e,t,r){const n=this.resolveNode(e,t,r);if(t.hasOwnProperty("resolved"))return n;const i=g(t)?Schema.defaultTags.MAP:y(t)?Schema.defaultTags.SEQ:Schema.defaultTags.STR;if(i){e.warnings.push(new a.YAMLWarning(t,`The tag ${r} is unavailable, falling back to ${i}`));const n=this.resolveNode(e,t,i);n.tag=r;return n}else{e.errors.push(new a.YAMLReferenceError(t,`The tag ${r} is unavailable`))}return null}getTagObject(e){if(e instanceof i.default)return i.default;if(e.tag){const t=this.tags.filter(t=>t.tag===e.tag);if(t.length>0)return t.find(t=>t.format===e.format)||t[0]}if(e.value===null){const e=this.tags.find(e=>e.class===null&&!e.format);if(!e)throw new Error("Tag not resolved for null value");return e}let t,r;if(e instanceof h.default){switch(typeof e.value){case"boolean":r=new Boolean;break;case"number":r=new Number;break;case"string":r=new String;break;default:r=e.value}const n=this.tags.filter(e=>e.class&&(r instanceof e.class||r&&r.constructor===e.class));t=n.find(t=>t.format===e.format)||n.find(e=>!e.format)}else{r=e;t=this.tags.find(e=>e.nodeClass&&r instanceof e.nodeClass)}if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return t}stringifyProps(e,t,{anchors:r,doc:n}){const a=[];const i=n.anchors.getName(e);if(i){r[i]=e;a.push(`&${i}`)}if(e.tag&&e.tag!==t.tag){a.push(n.stringifyTag(e.tag))}else if(!t.default){a.push(n.stringifyTag(t.tag))}return a.join(" ")}stringify(e,t,r,n){let a;if(!(e instanceof f.default))e=this.createNode(e,true,null,e=>a=e);t.tags=this;if(e instanceof c.default)return e.toString(t,r,n);if(!a)a=this.getTagObject(e);const i=this.stringifyProps(e,a,t);const o=a.stringify||Schema.defaultStringify;const u=o(e,t,r,n);return i?e instanceof s.default&&u[0]!=="{"&&u[0]!=="["?`${i}\n${t.indent}${u}`:`${i} ${u}`:u}}t.default=Schema;_defineProperty(Schema,"defaultPrefix","tag:yaml.org,2002:");_defineProperty(Schema,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"});_defineProperty(Schema,"tags",{core:o.default,failsafe:u.default,json:l.default,"yaml-1.1":p.default});e.exports=t.default;e.exports.default=t.default},283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.binary=void 0;var n=r(405);var a=r(974);var i=r(583);const s={class:Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{if(typeof Buffer==="function"){const r=(0,i.resolve)(e,t);return Buffer.from(r,"base64")}else if(typeof atob==="function"){const r=atob((0,i.resolve)(e,t));const n=new Uint8Array(r.length);for(let e=0;e{let l;if(typeof Buffer==="function"){l=r instanceof Buffer?r.toString("base64"):Buffer.from(r.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t{if(e.length>1)t.push(r);return"\n"})}const r=[];let i=0;do{const t=new n.default;const s=new a.default({src:e});i=t.parse(s,i);r.push(t)}while(i{if(t.length===0)return false;for(let e=1;er.join("...\n"));return r}e.exports=t.default;e.exports.default=t.default},317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.YAMLOMap=void 0;var n=r(405);var a=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(684));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(515));var u=_interopRequireDefault(r(29));var l=r(21);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class YAMLOMap extends u.default{constructor(){super();_defineProperty(this,"add",i.default.prototype.add.bind(this));_defineProperty(this,"delete",i.default.prototype.delete.bind(this));_defineProperty(this,"get",i.default.prototype.get.bind(this));_defineProperty(this,"has",i.default.prototype.has.bind(this));_defineProperty(this,"set",i.default.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const r=new Map;for(const e of this.items){let n,i;if(e instanceof s.default){n=(0,a.default)(e.key,"",t);i=(0,a.default)(e.value,n,t)}else{n=(0,a.default)(e,"",t)}if(r.has(n))throw new Error("Ordered maps must not include duplicate keys");r.set(n,i)}return r}}t.YAMLOMap=YAMLOMap;_defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const r=(0,l.parsePairs)(e,t);const a=[];for(const e of r.items){const{key:r}=e;if(r instanceof o.default){if(a.includes(r.value)){const e="Ordered maps must not include duplicate keys";throw new n.YAMLSemanticError(t,e)}else{a.push(r.value)}}}return Object.assign(new YAMLOMap,r)}function createOMap(e,t,r){const n=(0,l.createPairs)(e,t,r);const a=new YAMLOMap;a.items=n.items;return a}var f={class:Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap,stringify:(e,t,r,n)=>e.toString(t,r,n)};t.default=f},325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var a=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(380));var s=_interopRequireDefault(r(156));var o=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Pair extends s.default{constructor(e,t=null){super();this.key=e;this.value=t;this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){if(this.key==null)this.key=new o.default(null);this.key.commentBefore=e}get stringKey(){const e=(0,a.default)(this.key);if(e===null)return"";if(typeof e==="object")try{return JSON.stringify(e)}catch(e){}return String(e)}toJSON(e,t){const r={};const n=this.stringKey;r[n]=(0,a.default)(this.value,n,t);return r}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{key:a,value:o}=this;let u=a instanceof s.default&&a.comment;const l=!a||u||a instanceof i.default;const{doc:f,indent:c}=e;e=Object.assign({},e,{implicitKey:!l,indent:c+" "});let h=false;let d=f.schema.stringify(a,e,()=>u=null,()=>h=true);d=(0,n.default)(d,e.indent,u);if(e.allNullValues){if(this.comment){d=(0,n.default)(d,e.indent,this.comment);if(t)t()}else if(h&&!u&&r)r();return e.inFlow?d:`? ${d}`}d=l?`? ${d}\n${c}:`:`${d}:`;if(this.comment){d=(0,n.default)(d,e.indent,this.comment);if(t)t()}let p="";if(o){if(o.spaceBefore)p="\n";if(o.commentBefore){const t=o.commentBefore.replace(/^/gm,`${e.indent}#`);p+=`\n${t}`}}e.implicitKey=false;let g=o instanceof s.default&&o.comment;h=false;const y=f.schema.stringify(o,e,()=>g=null,()=>h=true);const v=p||this.comment||!l&&o instanceof i.default?`${p}\n${e.indent}`:" ";if(h&&!g&&r)r();return(0,n.default)(d+v+y,e.indent,g)}}t.default=Pair;e.exports=t.default;e.exports.default=t.default},380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.isEmptyPath=void 0;var n=_interopRequireDefault(r(836));var a=_interopRequireDefault(r(156));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const o=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;t.isEmptyPath=o;class Collection extends a.default{constructor(...e){super(...e);_defineProperty(this,"items",[])}addIn(e,t){if(o(e))this.add(t);else{const[r,...n]=e;const a=this.get(r,true);if(a instanceof Collection)a.addIn(n,t);else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const r=this.get(e,true);if(r instanceof Collection)return r.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],r){const n=this.get(e,true);if(t.length===0)return!r&&n instanceof s.default?n.value:n;else return n instanceof Collection?n.getIn(t,r):undefined}hasAllNullValues(){return this.items.every(e=>{if(!(e instanceof i.default))return false;const t=e.value;return t==null||t instanceof s.default&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const r=this.get(e,true);return r instanceof Collection?r.hasIn(t):false}setIn([e,...t],r){if(t.length===0){this.set(e,r)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,r);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:a,itemIndent:i},s,o){const{doc:u,indent:l}=e;const f=this.type&&this.type.substr(0,4)==="FLOW"||e.inFlow;if(f)i+=" ";const c=a&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:c,indent:i,inFlow:f,type:null});let h=false;let d=false;const p=this.items.reduce((t,r,a)=>{let s;if(r){if(!h&&r.spaceBefore)t.push({type:"comment",str:""});if(r.commentBefore)r.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(r.comment)s=r.comment;if(f&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment)))d=true}h=false;let o=u.schema.stringify(r,e,()=>s=null,()=>h=true);if(f&&!d&&o.includes("\n"))d=true;if(f&&ae.str);if(d||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){g=e;for(const e of n){g+=e?`\n ${l}${e}`:"\n"}g+=`\n${l}${t}`}else{g=`${e} ${n.join(" ")} ${t}`}}else{const e=p.map(t);g=e.shift();for(const t of e)g+=t?`\n${l}${t}`:"\n"}if(this.comment){g+="\n"+this.comment.replace(/^/gm,`${l}#`);if(s)s()}else if(h&&o)o();return g}}t.default=Collection;_defineProperty(Collection,"maxFlowStringSingleLineLength",60)},386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.MERGE_KEY=void 0;var n=_interopRequireDefault(r(325));var a=_interopRequireDefault(r(515));var i=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s="<<";t.MERGE_KEY=s;class Merge extends n.default{constructor(e){if(e instanceof n.default){let t=e.value;if(!(t instanceof i.default)){t=new i.default;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new a.default(s),new i.default)}this.type="MERGE_PAIR"}toString(e,t){const r=this.value;if(r.items.length>1)return super.toString(e,t);this.value=r.items[0];const n=super.toString(e,t);this.value=r;return n}}t.default=Merge},405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=void 0;var n=_interopRequireDefault(r(974));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class YAMLReferenceError extends ReferenceError{constructor(e,t){if(!t||!(e instanceof n.default)){throw new Error("Invalid arguments for new YAMLReferenceError")}super();this.name="YAMLReferenceError";this.message=t;this.source=e}}t.YAMLReferenceError=YAMLReferenceError;class YAMLSemanticError extends SyntaxError{constructor(e,t){if(!t||!(e instanceof n.default)){throw new Error("Invalid arguments for new YAMLSemanticError")}super();this.name="YAMLSemanticError";this.message=t;this.source=e}}t.YAMLSemanticError=YAMLSemanticError;class YAMLSyntaxError extends SyntaxError{constructor(e,t){if(!t||!(e instanceof n.default)){throw new Error("Invalid arguments for new YAMLSyntaxError")}super();this.name="YAMLSyntaxError";this.message=t;this.source=e}}t.YAMLSyntaxError=YAMLSyntaxError;class YAMLWarning extends Error{constructor(e,t){if(!t||!(e instanceof n.default)){throw new Error("Invalid arguments for new YAMLWarning")}super();this.name="YAMLWarning";this.message=t;this.source=e}}t.YAMLWarning=YAMLWarning},411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(974));var i=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteSingle extends a.default{static endOfQuote(e,t){let r=e[t];while(r){if(r==="'"){if(e[t+1]!=="'")break;r=e[t+=2]}else{r=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:i,src:s}=this.context;if(s[r-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let u=t+1;ue?s.slice(e,u+1):t}else{o+=t}}return e.length>0?{errors:e,str:o}:o}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteSingle.endOfQuote(r,t+1);this.valueRange=new i.default(t,n);n=a.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteSingle;e.exports=t.default;e.exports.default=t.default},413:function(e){e.exports=require("stream")},415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=foldFlowLines;t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;const r="flow";t.FOLD_FLOW=r;const n="block";t.FOLD_BLOCK=n;const a="quoted";t.FOLD_QUOTED=a;const i=(e,t)=>{let r=e[t+1];while(r===" "||r==="\t"){do{r=e[t+=1]}while(r&&r!=="\n");r=e[t+1]}return t};function foldFlowLines(e,t,r,{indentAtStart:s,lineWidth:o=80,minContentWidth:u=20,onFold:l,onOverflow:f}){if(!o||o<0)return e;const c=Math.max(1+u,1+o-t.length);if(e.length<=c)return e;const h=[];const d={};let p=o-(typeof s==="number"?s:t.length);let g=undefined;let y=undefined;let v=false;let b=-1;if(r===n){b=i(e,b);if(b!==-1)p=b+c}for(let t;t=e[b+=1];){if(r===a&&t==="\\"){switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}}if(t==="\n"){if(r===n)b=i(e,b);p=b+c;g=undefined}else{if(t===" "&&y&&y!==" "&&y!=="\n"&&y!=="\t"){const t=e[b+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=b}if(b>=p){if(g){h.push(g);p=g+c;g=undefined}else if(r===a){while(y===" "||y==="\t"){y=t;t=e[b+=1];v=true}h.push(b-2);d[b-2]=true;p=b-2+c;g=undefined}else{v=true}}}y=t}if(v&&f)f();if(h.length===0)return e;if(l)l();let m=e.slice(0,h[0]);for(let n=0;n0){e+=" ";for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const r=this.properties[t];if(r){e+=`${t}=${escape(`${r||""}`)};`}}}}e+="]";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")}},436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.timestamp=t.floatTime=t.intTime=void 0;var n=r(632);const a=(e,t)=>{const r=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-r:r};const i=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,n.stringifyNumber)(e);let t="";if(e<0){t="-";e=Math.abs(e)}const r=[e%60];if(e<60){r.unshift(0)}else{e=Math.round((e-r[0])/60);r.unshift(e%60);if(e>=60){e=Math.round((e-r[0])/60);r.unshift(e)}}return t+r.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const s={class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>a(t,r.replace(/_/g,"")),stringify:i};t.intTime=s;const o={class:Number,default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>a(t,r.replace(/_/g,"")),stringify:i};t.floatTime=o;const u={class:Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,r,n,i,s,o,u,l)=>{if(u)u=(u+"00").substr(1,3);let f=Date.UTC(t,r-1,n,i||0,s||0,o||0,u||0);if(l&&l!=="Z"){let e=a(l[0],l.slice(1));if(Math.abs(e)<30)e*=60;f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=u;var l=[s,o,u];t.default=l},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(413));var a=_interopDefault(r(605));var i=_interopDefault(r(835));var s=_interopDefault(r(211));var o=_interopDefault(r(761));const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];if(e){const t=e;const n=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},a=r.size;let i=a===undefined?0:a;var s=r.timeout;let o=s===undefined?0:s;if(e==null){e=null}else if(typeof e==="string") ;else if(isURLSearchParams(e)) ;else if(e instanceof Blob) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]") ;else if(ArrayBuffer.isView(e)) ;else if(e instanceof n) ;else{e=String(e)}this[c]={body:e,disturbed:false,error:null};this.size=i;this.timeout=o;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[c].error=r})}}Body.prototype={get body(){return this[c].body},get bodyUsed(){return this[c].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[c].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[c].disturbed=true;if(this[c].error){return Body.Promise.reject(this[c].error)}if(this.body===null){return Body.Promise.resolve(Buffer.alloc(0))}if(typeof this.body==="string"){return Body.Promise.resolve(Buffer.from(this.body))}if(this.body instanceof Blob){return Body.Promise.resolve(this.body[u])}if(Buffer.isBuffer(this.body)){return Body.Promise.resolve(this.body)}if(Object.prototype.toString.call(this.body)==="[object ArrayBuffer]"){return Body.Promise.resolve(Buffer.from(this.body))}if(ArrayBuffer.isView(this.body)){return Body.Promise.resolve(Buffer.from(this.body.buffer,this.body.byteOffset,this.body.byteLength))}if(!(this.body instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let t=[];let r=0;let a=false;return new Body.Promise(function(n,i){let s;if(e.timeout){s=setTimeout(function(){a=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}e.body.on("error",function(t){if(t.name==="AbortError"){a=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});e.body.on("data",function(n){if(a||n===null){return}if(e.size&&r+n.length>e.size){a=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}r+=n.length;t.push(n)});e.body.on("end",function(){if(a){return}clearTimeout(s);try{n(Buffer.concat(t))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof f!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let a,i;if(r){a=/charset=([^;]*)/i.exec(r)}i=e.slice(0,1024).toString();if(!a&&i){a=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[g],e);if(t===undefined){return null}return this[g][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[g]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(v);r[y]={target:e,kind:t,index:0};return r}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const a=getHeaders(t,r);const i=a.length;if(n>=i){return{value:undefined,done:true}}this[y].index=n+1;return{value:a[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const r=find(e[g],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(d.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(p.test(n)){continue}if(t[g][r]===undefined){t[g][r]=[n]}else{t[g][r].push(n)}}}else if(!p.test(e[r])){t[g][r]=[e[r]]}}return t}const b=Symbol("Response internals");const m=a.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;this[b]={url:t.url,status:r,statusText:t.statusText||m[r],headers:new Headers(t.headers)}}get url(){return this[b].url}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get statusText(){return this[b].statusText}get headers(){return this[b].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const _=Symbol("Request internals");const w=i.parse;const O=i.format;const S="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[_]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=w(e.href)}else{r=w(`${e}`)}e={}}else{r=w(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let a=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,a,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const i=new Headers(t.headers||e.headers||{});if(t.body!=null){const e=extractContentType(this);if(e!==null&&!i.has("Content-Type")){i.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[_]={method:n,redirect:t.redirect||e.redirect||"follow",headers:i,parsedURL:r,signal:s};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[_].method}get url(){return O(this[_].parsedURL)}get headers(){return this[_].headers}get redirect(){return this[_].redirect}get signal(){return this[_].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[_].parsedURL;const r=new Headers(e[_].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!S){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let a=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){a="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){a=String(t)}}if(a){r.set("Content-Length",a)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}if(!r.has("Connection")&&!e.agent){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:e.agent})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const A=n.PassThrough;const E=i.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,i){const u=new Request(e,t);const l=getNodeRequestOptions(u);const f=(l.protocol==="https:"?s:a).request;const c=u.signal;let h=null;const d=function abort(){let e=new AbortError("The user aborted a request.");i(e);if(u.body&&u.body instanceof n.Readable){u.body.destroy(e)}if(!h||!h.body)return;h.body.emit("error",e)};if(c&&c.aborted){d();return}const p=function abortAndFinalize(){d();finalize()};const g=f(l);let y;if(c){c.addEventListener("abort",p)}function finalize(){g.abort();if(c)c.removeEventListener("abort",p);clearTimeout(y)}if(u.timeout){g.once("socket",function(e){y=setTimeout(function(){i(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}g.on("error",function(e){i(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});g.on("response",function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const a=n===null?null:E(u.url,n);switch(u.redirect){case"error":i(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(a!==null){try{t.set("Location",a)}catch(e){i(e)}}break;case"follow":if(a===null){break}if(u.counter>=u.follow){i(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){i(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(a,n)));finalize();return}}e.once("end",function(){if(c)c.removeEventListener("abort",p)});let n=e.pipe(new A);const a={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout};const s=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){h=new Response(n,a);r(h);return}const l={flush:o.Z_SYNC_FLUSH,finishFlush:o.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){n=n.pipe(o.createGunzip(l));h=new Response(n,a);r(h);return}if(s=="deflate"||s=="x-deflate"){const t=e.pipe(new A);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(o.createInflate())}else{n=n.pipe(o.createInflateRaw())}h=new Response(n,a);r(h)});return}h=new Response(n,a);r(h)});writeToStream(g,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(548);var a=r(583);const i=[n.map,n.seq,{class:String,default:true,tag:"tag:yaml.org,2002:str",resolve:a.resolve},{class:null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null},{class:Boolean,default:true,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:()=>true},{class:Boolean,default:true,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:()=>false},{class:Number,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10)},{class:Number,default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e)}];i.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});var s=i;t.default=s;e.exports=t.default;e.exports.default=t.default},470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(431);const a=r(622);var i;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(i=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;n.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function exportSecret(e,t){exportVariable(e,t);n.issueCommand("set-secret",{},t)}t.exportSecret=exportSecret;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 r=process.env[`INPUT_${e.replace(" ","_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=i.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},487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireWildcard(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}class Comment extends n.default{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const r=this.parseComment(t);this.range=new a.default(t,r);return r}}t.default=Comment;e.exports=t.default;e.exports.default=t.default},495:function(e,t,r){const n=r(454);e.exports=(e=>async(e,t="unknown")=>{const r=await n(e.req.url,e.req);e.res={headers:r.headers.raw(),status:r.status};e.res.body=await r.text();const a=(r.headers.get("content-type")||"").includes("application/json");if(a&&e.res.body){e.res.body=JSON.parse(e.res.body)}if(!r.ok){throw new Error(r.statusText)}return e})},503:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.YAMLSet=void 0;var n=r(405);var a=_interopRequireDefault(r(923));var i=_interopRequireWildcard(r(684));var s=_interopRequireDefault(r(386));var o=_interopRequireDefault(r(325));var u=_interopRequireDefault(r(763));var l=_interopRequireDefault(r(515));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class YAMLSet extends i.default{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof o.default?e:new o.default(e);const r=(0,i.findPair)(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=(0,i.findPair)(this.items,e);return!t&&r instanceof o.default?r.key instanceof l.default?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=(0,i.findPair)(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new o.default(e))}}toJSON(e,t){const r=new Set;for(const e of this.items){if(e instanceof s.default){const{items:n}=e.value;for(let e=n.length-1;e>=0;--e){const{source:a}=n[e];if(a instanceof i.default){for(const[e]of a.toJSMap(t))r.add(e)}else{throw new Error("Merge sources must be maps")}}}else{r.add((0,a.default)(e.key,"",t))}}return r}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,r);else throw new Error("Set items must all have null values")}}t.YAMLSet=YAMLSet;_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const r=(0,u.default)(e,t);if(!r.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,r)}function createSet(e,t,r){const n=new YAMLSet;for(const a of t){const t=e.createNode(a,r);n.items.push(new o.default(t))}return n}var f={class:Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet,stringify:(e,t,r,n)=>e.toString(t,r,n)};t.default=f},506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.boolOptions=t.nullOptions=void 0;var n=_interopRequireDefault(r(283));var a=_interopRequireDefault(r(317));var i=_interopRequireDefault(r(21));var s=_interopRequireDefault(r(503));var o=_interopRequireDefault(r(436));var u=r(632);var l=_interopRequireDefault(r(548));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f={nullStr:"null"};t.nullOptions=f;const c={trueStr:"true",falseStr:"false"};t.boolOptions=c;var h=l.default.concat([{class:null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:f,stringify:()=>f.nullStr},{class:Boolean,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:c,stringify:({value:e})=>e?c.trueStr:c.falseStr},{class:Boolean,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:c,stringify:({value:e})=>e?c.trueStr:c.falseStr},{class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{class:Number,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:u.stringifyNumber},{class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{class:Number,default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u.stringifyNumber},{class:Number,default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?([0-9][0-9_]*)?\.[0-9_]*([eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:u.stringifyNumber}],n.default,a.default,i.default,s.default,o.default);t.default=h},510:function(e,t,r){const{get:n}=r(557);const a="jira";const{format:i}=r(835);const s=r(495)(a);class Jira{constructor({baseUrl:e,token:t,email:r}){this.baseUrl=e;this.token=t;this.email=r}async createIssue(e){return this.fetch("createIssue",{pathname:"/rest/api/2/issue"},{method:"POST",body:e})}async getIssue(e,t={}){const{fields:r=[],expand:a=[]}=t;try{const t=await this.fetch("getIssue",{pathname:`/rest/api/2/issue/${e}`,query:{fields:r.join(","),expand:a.join(",")}});return t}catch(e){if(n(e,"res.status")===404){return}throw e}}async getIssueTransitions(e){return this.fetch("getIssueTransitions",{pathname:`/rest/api/2/issue/${e}/transitions`},{method:"GET"})}async transitionIssue(e,t){return this.fetch("transitionIssue",{pathname:`/rest/api/3/issue/${e}/transitions`},{method:"POST",body:t})}async fetch(e,{host:t,pathname:r,query:n},{method:o,body:u,headers:l={}}={}){const f=i({host:t||this.baseUrl,pathname:r,query:n});if(!o){o="GET"}if(l["Content-Type"]===undefined){l["Content-Type"]="application/json"}if(l.Authorization===undefined){l.Authorization=`Basic ${Buffer.from(`${this.email}:${this.token}`).toString("base64")}`}if(u&&l["Content-Type"]==="application/json"){u=JSON.stringify(u)}const c={req:{method:o,headers:l,body:u,url:f}};try{await s(c,`${a}:${e}`)}catch(e){const t={originError:e,source:"jira"};delete c.req.headers;throw Object.assign(new Error("Jira API error"),c,t)}return c.res.body}}e.exports=Jira},514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(637));var a=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(386));var s=_interopRequireDefault(r(515));var o=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class Anchors{constructor(){_defineProperty(this,"map",{})}static validAnchorNode(e){return e instanceof s.default||e instanceof o.default||e instanceof a.default}createAlias(e,t){this.setAnchor(e,t);return new n.default(e)}createMergePair(...e){const t=new i.default;t.value.items=e.map(e=>{if(e instanceof n.default){if(e.source instanceof a.default)return e}else if(e instanceof a.default){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(r=>t[r]===e)}getNode(e){return this.map[e]}newName(e){const t=Object.keys(this.map);for(let r=1;true;++r){const n=`${e}${r}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:r}=this;const n=e&&Object.keys(r).find(t=>r[t]===e);if(n){if(!t){return n}else if(n!==t){delete r[n];r[t]=e}}else{if(!t){if(!e)return null;t=this.newName("a")}r[t]=e}return t}}t.default=Anchors;e.exports=t.default;e.exports.default=t.default},515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var a=_interopRequireDefault(r(156));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Scalar extends a.default{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=Scalar;e.exports=t.default;e.exports.default=t.default},548:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.seq=t.map=void 0;var n=_interopRequireDefault(r(684));var a=_interopRequireDefault(r(325));var i=_interopRequireDefault(r(29));var s=r(583);var o=_interopRequireDefault(r(763));var u=_interopRequireDefault(r(858));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createMap(e,t,r){const i=new n.default;if(t instanceof Map){for(const[n,s]of t){const t=e.createNode(n,r);const o=e.createNode(s,r);i.items.push(new a.default(t,o))}}else if(t&&typeof t==="object"){i.items=Object.keys(t).map(n=>{const i=e.createNode(n,r);const s=e.createNode(t[n],r);return new a.default(i,s)})}return i}function createSeq(e,t,r){const n=new i.default;if(t&&t[Symbol.iterator]){for(const a of t){const t=e.createNode(a,r);n.items.push(t)}}return n}const l={createNode:createMap,default:true,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:o.default,stringify:(e,t,r,n)=>e.toString(t,r,n)};t.map=l;const f={createNode:createSeq,default:true,nodeClass:i.default,tag:"tag:yaml.org,2002:seq",resolve:u.default,stringify:(e,t,r,n)=>e.toString(t,r,n)};t.seq=f;var c=[l,f,s.str];t.default=c},555:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=getLinePos;function findLineStarts(e){const t=[0];let r=e.indexOf("\n");while(r!==-1){r+=1;t.push(r);r=e.indexOf("\n",r)}return t}function getLinePos(e,t){if(typeof e==="number"&&e>=0){let r,n;if(typeof t==="string"){r=findLineStarts(t);n=t.length}else{if(Array.isArray(t))t=t[0];if(t){if(!t.lineStarts)t.lineStarts=findLineStarts(t.context.src);r=t.lineStarts;n=t.context.src.length}}if(r&&e<=n){for(let t=0;t>>1;var W=[["ary",O],["bind",g],["bindKey",y],["curry",b],["curryRight",m],["flip",A],["partial",_],["partialRight",w],["rearg",S]];var $="[object Arguments]",F="[object Array]",z="[object AsyncFunction]",Y="[object Boolean]",U="[object Date]",H="[object DOMException]",G="[object Error]",Q="[object Function]",k="[object GeneratorFunction]",K="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",V="[object Promise]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ae="[object Symbol]",ie="[object Undefined]",se="[object WeakMap]",oe="[object WeakSet]";var ue="[object ArrayBuffer]",le="[object DataView]",fe="[object Float32Array]",ce="[object Float64Array]",he="[object Int8Array]",de="[object Int16Array]",pe="[object Int32Array]",ge="[object Uint8Array]",ye="[object Uint8ClampedArray]",ve="[object Uint16Array]",be="[object Uint32Array]";var me=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Oe=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ae=RegExp(Oe.source),Ee=RegExp(Se.source);var Ie=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g;var Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var De=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(De.source);var xe=/^\s+|\s+$/g,qe=/^\s+/,Be=/\s+$/;var Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /;var $e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Fe=/\\(\\)?/g;var ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ye=/\w*$/;var Ue=/^[-+]0x[0-9a-f]+$/i;var He=/^0b[01]+$/i;var Ge=/^\[object .+?Constructor\]$/;var Qe=/^0o[0-7]+$/i;var ke=/^(?:0|[1-9]\d*)$/;var Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Je=/($^)/;var Ze=/['\n\r\u2028\u2029\\]/g;var Xe="\\ud800-\\udfff",Ve="\\u0300-\\u036f",et="\\ufe20-\\ufe2f",tt="\\u20d0-\\u20ff",rt=Ve+et+tt,nt="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",it="\\xac\\xb1\\xd7\\xf7",st="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ot="\\u2000-\\u206f",ut=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lt="A-Z\\xc0-\\xd6\\xd8-\\xde",ft="\\ufe0e\\ufe0f",ct=it+st+ot+ut;var ht="['’]",dt="["+Xe+"]",pt="["+ct+"]",gt="["+rt+"]",yt="\\d+",vt="["+nt+"]",bt="["+at+"]",mt="[^"+Xe+ct+yt+nt+at+lt+"]",_t="\\ud83c[\\udffb-\\udfff]",wt="(?:"+gt+"|"+_t+")",Ot="[^"+Xe+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+lt+"]",It="\\u200d";var Lt="(?:"+bt+"|"+mt+")",Rt="(?:"+Et+"|"+mt+")",Mt="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",Tt="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Pt=wt+"?",Dt="["+ft+"]?",Ct="(?:"+It+"(?:"+[Ot,St,At].join("|")+")"+Dt+Pt+")*",xt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=Dt+Pt+Ct,Nt="(?:"+[vt,St,At].join("|")+")"+Bt,jt="(?:"+[Ot+gt+"?",gt,St,At,dt].join("|")+")";var Wt=RegExp(ht,"g");var $t=RegExp(gt,"g");var Ft=RegExp(_t+"(?="+_t+")|"+jt+Bt,"g");var zt=RegExp([Et+"?"+bt+"+"+Mt+"(?="+[pt,Et,"$"].join("|")+")",Rt+"+"+Tt+"(?="+[pt,Et+Lt,"$"].join("|")+")",Et+"?"+Lt+"+"+Mt,Et+"+"+Tt,qt,xt,yt,Nt].join("|"),"g");var Yt=RegExp("["+It+Xe+rt+ft+"]");var Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Ht=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var Gt=-1;var Qt={};Qt[fe]=Qt[ce]=Qt[he]=Qt[de]=Qt[pe]=Qt[ge]=Qt[ye]=Qt[ve]=Qt[be]=true;Qt[$]=Qt[F]=Qt[ue]=Qt[Y]=Qt[le]=Qt[U]=Qt[G]=Qt[Q]=Qt[K]=Qt[J]=Qt[X]=Qt[te]=Qt[re]=Qt[ne]=Qt[se]=false;var kt={};kt[$]=kt[F]=kt[ue]=kt[le]=kt[Y]=kt[U]=kt[fe]=kt[ce]=kt[he]=kt[de]=kt[pe]=kt[K]=kt[J]=kt[X]=kt[te]=kt[re]=kt[ne]=kt[ae]=kt[ge]=kt[ye]=kt[ve]=kt[be]=true;kt[G]=kt[Q]=kt[se]=false;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var Jt={"&":"&","<":"<",">":">",'"':""","'":"'"};var Zt={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Xt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var Vt=parseFloat,er=parseInt;var tr=typeof global=="object"&&global&&global.Object===Object&&global;var rr=typeof self=="object"&&self&&self.Object===Object&&self;var nr=tr||rr||Function("return this")();var ar=true&&t&&!t.nodeType&&t;var ir=ar&&"object"=="object"&&e&&!e.nodeType&&e;var sr=ir&&ir.exports===ar;var or=sr&&tr.process;var ur=function(){try{var e=ir&&ir.require&&ir.require("util").types;if(e){return e}return or&&or.binding&&or.binding("util")}catch(e){}}();var lr=ur&&ur.isArrayBuffer,fr=ur&&ur.isDate,cr=ur&&ur.isMap,hr=ur&&ur.isRegExp,dr=ur&&ur.isSet,pr=ur&&ur.isTypedArray;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayAggregator(e,t,r,n){var a=-1,i=e==null?0:e.length;while(++a-1}function arrayIncludesWith(e,t,r){var n=-1,a=e==null?0:e.length;while(++n-1){}return r}function charsEndIndex(e,t){var r=e.length;while(r--&&baseIndexOf(t,e[r],0)>-1){}return r}function countHolders(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var yr=basePropertyOf(Kt);var vr=basePropertyOf(Jt);function escapeStringChar(e){return"\\"+Xt[e]}function getValue(e,t){return e==null?r:e[t]}function hasUnicode(e){return Yt.test(e)}function hasUnicodeWord(e){return Ut.test(e)}function iteratorToArray(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function overArg(e,t){return function(r){return e(t(r))}}function replaceHolders(e,t){var r=-1,n=e.length,a=0,i=[];while(++r-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t=t?e:t}}return e}function baseClone(e,t,n,a,i,s){var o,u=t&f,l=t&c,d=t&h;if(n){o=i?n(e,a,i,s):n(e)}if(o!==r){return o}if(!isObject(e)){return e}var p=Pn(e);if(p){o=initCloneArray(e);if(!u){return copyArray(e,o)}}else{var g=$r(e),y=g==Q||g==k;if(Cn(e)){return cloneBuffer(e,u)}if(g==X||g==$||y&&!i){o=l||y?{}:initCloneObject(e);if(!u){return l?copySymbolsIn(e,baseAssignIn(o,e)):copySymbols(e,baseAssign(o,e))}}else{if(!kt[g]){return i?e:{}}o=initCloneByTag(e,g,u)}}s||(s=new Stack);var v=s.get(e);if(v){return v}s.set(e,o);if(Nn(e)){e.forEach(function(r){o.add(baseClone(r,t,n,r,e,s))});return o}if(qn(e)){e.forEach(function(r,a){o.set(a,baseClone(r,t,n,a,e,s))});return o}var b=d?l?getAllKeysIn:getAllKeys:l?keysIn:keys;var m=p?r:b(e);arrayEach(m||e,function(r,a){if(m){a=r;r=e[a]}assignValue(o,a,baseClone(r,t,n,a,e,s))});return o}function baseConforms(e){var t=keys(e);return function(r){return baseConformsTo(r,e,t)}}function baseConformsTo(e,t,n){var a=n.length;if(e==null){return!a}e=tt(e);while(a--){var i=n[a],s=t[i],o=e[i];if(o===r&&!(i in e)||!s(o)){return false}}return true}function baseDelay(e,t,n){if(typeof e!="function"){throw new at(s)}return Yr(function(){e.apply(r,n)},t)}function baseDifference(e,t,r,n){var i=-1,s=arrayIncludes,o=true,u=e.length,l=[],f=t.length;if(!u){return l}if(r){t=arrayMap(t,baseUnary(r))}if(n){s=arrayIncludesWith;o=false}else if(t.length>=a){s=cacheHas;o=false;t=new SetCache(t)}e:while(++ii?0:i+n}a=a===r||a>i?i:toInteger(a);if(a<0){a+=i}a=n>a?0:toLength(a);while(n0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,a)}else{arrayPush(a,o)}}else if(!n){a[a.length]=o}}return a}var Tr=createBaseFor();var Pr=createBaseFor(true);function baseForOwn(e,t){return e&&Tr(e,t,keys)}function baseForOwnRight(e,t){return e&&Pr(e,t,keys)}function baseFunctions(e,t){return arrayFilter(t,function(t){return isFunction(e[t])})}function baseGet(e,t){t=castPath(t,e);var n=0,a=t.length;while(e!=null&&nt}function baseHas(e,t){return e!=null&&ft.call(e,t)}function baseHasIn(e,t){return e!=null&&t in tt(e)}function baseInRange(e,t,r){return e>=zt(t,r)&&e=120&&h.length>=120)?new SetCache(u&&h):r}h=e[0];var d=-1,p=l[0];e:while(++d-1){if(o!==e){At.call(o,u,1)}At.call(e,u,1)}}return e}function basePullAt(e,t){var r=e?t.length:0,n=r-1;while(r--){var a=t[r];if(r==n||a!==i){var i=a;if(isIndex(a)){At.call(e,a,1)}else{baseUnset(e,a)}}}return e}function baseRandom(e,t){return e+Ct(Kt()*(t-e+1))}function baseRange(e,r,n,a){var i=-1,s=Ft(Dt((r-e)/(n||1)),0),o=t(s);while(s--){o[a?s:++i]=e;e+=n}return o}function baseRepeat(e,t){var r="";if(!e||t<1||t>C){return r}do{if(t%2){r+=e}t=Ct(t/2);if(t){e+=e}}while(t);return r}function baseRest(e,t){return Ur(overRest(e,t,identity),e+"")}function baseSample(e){return arraySample(values(e))}function baseSampleSize(e,t){var r=values(e);return shuffleSelf(r,baseClamp(t,0,r.length))}function baseSet(e,t,n,a){if(!isObject(e)){return e}t=castPath(t,e);var i=-1,s=t.length,o=s-1,u=e;while(u!=null&&++ii?0:i+r}n=n>i?i:n;if(n<0){n+=i}i=r>n?0:n-r>>>0;r>>>=0;var s=t(i);while(++a>>1,s=e[i];if(s!==null&&!isSymbol(s)&&(r?s<=t:s=a){var f=t?null:Br(e);if(f){return setToArray(f)}o=false;i=cacheHas;l=new SetCache}else{l=t?[]:u}e:while(++n=a?e:baseSlice(e,t,n)}var qr=Mt||function(e){return nr.clearTimeout(e)};function cloneBuffer(e,t){if(t){return e.slice()}var r=e.length,n=_t?_t(r):new e.constructor(r);e.copy(n);return n}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);new mt(t).set(new mt(e));return t}function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function cloneRegExp(e){var t=new e.constructor(e.source,Ye.exec(e));t.lastIndex=e.lastIndex;return t}function cloneSymbol(e){return Er?tt(Er.call(e)):{}}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function compareAscending(e,t){if(e!==t){var n=e!==r,a=e===null,i=e===e,s=isSymbol(e);var o=t!==r,u=t===null,l=t===t,f=isSymbol(t);if(!u&&!f&&!s&&e>t||s&&o&&l&&!u&&!f||a&&o&&l||!n&&l||!i){return 1}if(!a&&!s&&!f&&e=o){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function composeArgs(e,r,n,a){var i=-1,s=e.length,o=n.length,u=-1,l=r.length,f=Ft(s-o,0),c=t(l+f),h=!a;while(++u1?n[i-1]:r,o=i>2?n[2]:r;s=e.length>3&&typeof s=="function"?(i--,s):r;if(o&&isIterateeCall(n[0],n[1],o)){s=i<3?r:s;i=1}t=tt(t);while(++a-1?i[s?t[o]:o]:r}}function createFlow(e){return flatRest(function(t){var n=t.length,a=n,i=LodashWrapper.prototype.thru;if(e){t.reverse()}while(a--){var o=t[a];if(typeof o!="function"){throw new at(s)}if(i&&!u&&getFuncName(o)=="wrapper"){var u=new LodashWrapper([],true)}}a=u?a:n;while(++a1){g.reverse()}if(h&&fu)){return false}var f=s.get(e);if(f&&s.get(t)){return f==t}var c=-1,h=true,g=n&p?new SetCache:r;s.set(e,t);s.set(t,e);while(++c1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}function isFlattenable(e){return Pn(e)||Tn(e)||!!(Et&&e&&e[Et])}function isIndex(e,t){var r=typeof e;t=t==null?C:t;return!!t&&(r=="number"||r!="symbol"&&ke.test(e))&&(e>-1&&e%1==0&&e0){if(++t>=L){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function shuffleSelf(e,t){var n=-1,a=e.length,i=a-1;t=t===r?a:t;while(++n1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return unzipWith(e,n)});function chain(e){var t=lodash(e);t.__chain__=true;return t}function tap(e,t){t(e);return e}function thru(e,t){return t(e)}var fn=flatRest(function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,i=function(t){return baseAt(t,e)};if(t>1||this.__actions__.length||!(a instanceof LazyWrapper)||!isIndex(n)){return this.thru(i)}a=a.slice(n,+n+(t?1:0));a.__actions__.push({func:thru,args:[i],thisArg:r});return new LodashWrapper(a,this.__chain__).thru(function(e){if(t&&!e.length){e.push(r)}return e})});function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){if(this.__values__===r){this.__values__=toArray(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function wrapperToIterator(){return this}function wrapperPlant(e){var t,n=this;while(n instanceof baseLodash){var a=wrapperClone(n);a.__index__=0;a.__values__=r;if(t){i.__wrapped__=a}else{t=a}var i=a;n=n.__wrapped__}i.__wrapped__=e;return t}function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var t=e;if(this.__actions__.length){t=new LazyWrapper(this)}t=t.reverse();t.__actions__.push({func:thru,args:[reverse],thisArg:r});return new LodashWrapper(t,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var cn=createAggregator(function(e,t,r){if(ft.call(e,r)){++e[r]}else{baseAssignValue(e,r,1)}});function every(e,t,n){var a=Pn(e)?arrayEvery:baseEvery;if(n&&isIterateeCall(e,t,n)){t=r}return a(e,getIteratee(t,3))}function filter(e,t){var r=Pn(e)?arrayFilter:baseFilter;return r(e,getIteratee(t,3))}var hn=createFind(findIndex);var dn=createFind(findLastIndex);function flatMap(e,t){return baseFlatten(map(e,t),1)}function flatMapDeep(e,t){return baseFlatten(map(e,t),D)}function flatMapDepth(e,t,n){n=n===r?1:toInteger(n);return baseFlatten(map(e,t),n)}function forEach(e,t){var r=Pn(e)?arrayEach:Rr;return r(e,getIteratee(t,3))}function forEachRight(e,t){var r=Pn(e)?arrayEachRight:Mr;return r(e,getIteratee(t,3))}var pn=createAggregator(function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{baseAssignValue(e,r,[t])}});function includes(e,t,r,n){e=isArrayLike(e)?e:values(e);r=r&&!n?toInteger(r):0;var a=e.length;if(r<0){r=Ft(a+r,0)}return isString(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&baseIndexOf(e,t,r)>-1}var gn=baseRest(function(e,r,n){var a=-1,i=typeof r=="function",s=isArrayLike(e)?t(e.length):[];Rr(e,function(e){s[++a]=i?apply(r,e,n):baseInvoke(e,r,n)});return s});var yn=createAggregator(function(e,t,r){baseAssignValue(e,r,t)});function map(e,t){var r=Pn(e)?arrayMap:baseMap;return r(e,getIteratee(t,3))}function orderBy(e,t,n,a){if(e==null){return[]}if(!Pn(t)){t=t==null?[]:[t]}n=a?r:n;if(!Pn(n)){n=n==null?[]:[n]}return baseOrderBy(e,t,n)}var vn=createAggregator(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function reduce(e,t,r){var n=Pn(e)?arrayReduce:baseReduce,a=arguments.length<3;return n(e,getIteratee(t,4),r,a,Rr)}function reduceRight(e,t,r){var n=Pn(e)?arrayReduceRight:baseReduce,a=arguments.length<3;return n(e,getIteratee(t,4),r,a,Mr)}function reject(e,t){var r=Pn(e)?arrayFilter:baseFilter;return r(e,negate(getIteratee(t,3)))}function sample(e){var t=Pn(e)?arraySample:baseSample;return t(e)}function sampleSize(e,t,n){if(n?isIterateeCall(e,t,n):t===r){t=1}else{t=toInteger(t)}var a=Pn(e)?arraySampleSize:baseSampleSize;return a(e,t)}function shuffle(e){var t=Pn(e)?arrayShuffle:baseShuffle;return t(e)}function size(e){if(e==null){return 0}if(isArrayLike(e)){return isString(e)?stringSize(e):e.length}var t=$r(e);if(t==K||t==re){return e.size}return baseKeys(e).length}function some(e,t,n){var a=Pn(e)?arraySome:baseSome;if(n&&isIterateeCall(e,t,n)){t=r}return a(e,getIteratee(t,3))}var bn=baseRest(function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&isIterateeCall(e,t[0],t[1])){t=[]}else if(r>2&&isIterateeCall(t[0],t[1],t[2])){t=[t[0]]}return baseOrderBy(e,baseFlatten(t,1),[])});var mn=Tt||function(){return nr.Date.now()};function after(e,t){if(typeof t!="function"){throw new at(s)}e=toInteger(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function ary(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return createWrap(e,O,r,r,r,r,t)}function before(e,t){var n;if(typeof t!="function"){throw new at(s)}e=toInteger(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var _n=baseRest(function(e,t,r){var n=g;if(r.length){var a=replaceHolders(r,getHolder(_n));n|=_}return createWrap(e,n,t,r,a)});var wn=baseRest(function(e,t,r){var n=g|y;if(r.length){var a=replaceHolders(r,getHolder(wn));n|=_}return createWrap(t,n,e,r,a)});function curry(e,t,n){t=n?r:t;var a=createWrap(e,b,r,r,r,r,r,t);a.placeholder=curry.placeholder;return a}function curryRight(e,t,n){t=n?r:t;var a=createWrap(e,m,r,r,r,r,r,t);a.placeholder=curryRight.placeholder;return a}function debounce(e,t,n){var a,i,o,u,l,f,c=0,h=false,d=false,p=true;if(typeof e!="function"){throw new at(s)}t=toNumber(t)||0;if(isObject(n)){h=!!n.leading;d="maxWait"in n;o=d?Ft(toNumber(n.maxWait)||0,t):o;p="trailing"in n?!!n.trailing:p}function invokeFunc(t){var n=a,s=i;a=i=r;c=t;u=e.apply(s,n);return u}function leadingEdge(e){c=e;l=Yr(timerExpired,t);return h?invokeFunc(e):u}function remainingWait(e){var r=e-f,n=e-c,a=t-r;return d?zt(a,o-n):a}function shouldInvoke(e){var n=e-f,a=e-c;return f===r||n>=t||n<0||d&&a>=o}function timerExpired(){var e=mn();if(shouldInvoke(e)){return trailingEdge(e)}l=Yr(timerExpired,remainingWait(e))}function trailingEdge(e){l=r;if(p&&a){return invokeFunc(e)}a=i=r;return u}function cancel(){if(l!==r){qr(l)}c=0;a=f=i=l=r}function flush(){return l===r?u:trailingEdge(mn())}function debounced(){var e=mn(),n=shouldInvoke(e);a=arguments;i=this;f=e;if(n){if(l===r){return leadingEdge(f)}if(d){l=Yr(timerExpired,t);return invokeFunc(f)}}if(l===r){l=Yr(timerExpired,t)}return u}debounced.cancel=cancel;debounced.flush=flush;return debounced}var On=baseRest(function(e,t){return baseDelay(e,1,t)});var Sn=baseRest(function(e,t,r){return baseDelay(e,toNumber(t)||0,r)});function flip(e){return createWrap(e,A)}function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new at(s)}var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a)){return i.get(a)}var s=e.apply(this,n);r.cache=i.set(a,s)||i;return s};r.cache=new(memoize.Cache||MapCache);return r}memoize.Cache=MapCache;function negate(e){if(typeof e!="function"){throw new at(s)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function once(e){return before(2,e)}var An=xr(function(e,t){t=t.length==1&&Pn(t[0])?arrayMap(t[0],baseUnary(getIteratee())):arrayMap(baseFlatten(t,1),baseUnary(getIteratee()));var r=t.length;return baseRest(function(n){var a=-1,i=zt(n.length,r);while(++a=t});var Tn=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&ft.call(e,"callee")&&!St.call(e,"callee")};var Pn=t.isArray;var Dn=lr?baseUnary(lr):baseIsArrayBuffer;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isBoolean(e){return e===true||e===false||isObjectLike(e)&&baseGetTag(e)==Y}var Cn=qt||stubFalse;var xn=fr?baseUnary(fr):baseIsDate;function isElement(e){return isObjectLike(e)&&e.nodeType===1&&!isPlainObject(e)}function isEmpty(e){if(e==null){return true}if(isArrayLike(e)&&(Pn(e)||typeof e=="string"||typeof e.splice=="function"||Cn(e)||jn(e)||Tn(e))){return!e.length}var t=$r(e);if(t==K||t==re){return!e.size}if(isPrototype(e)){return!baseKeys(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function isEqual(e,t){return baseIsEqual(e,t)}function isEqualWith(e,t,n){n=typeof n=="function"?n:r;var a=n?n(e,t):r;return a===r?baseIsEqual(e,t,r,n):!!a}function isError(e){if(!isObjectLike(e)){return false}var t=baseGetTag(e);return t==G||t==H||typeof e.message=="string"&&typeof e.name=="string"&&!isPlainObject(e)}function isFinite(e){return typeof e=="number"&&Bt(e)}function isFunction(e){if(!isObject(e)){return false}var t=baseGetTag(e);return t==Q||t==k||t==z||t==ee}function isInteger(e){return typeof e=="number"&&e==toInteger(e)}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=C}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function isObjectLike(e){return e!=null&&typeof e=="object"}var qn=cr?baseUnary(cr):baseIsMap;function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))}function isMatchWith(e,t,n){n=typeof n=="function"?n:r;return baseIsMatch(e,t,getMatchData(t),n)}function isNaN(e){return isNumber(e)&&e!=+e}function isNative(e){if(Fr(e)){throw new Xe(i)}return baseIsNative(e)}function isNull(e){return e===null}function isNil(e){return e==null}function isNumber(e){return typeof e=="number"||isObjectLike(e)&&baseGetTag(e)==J}function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=X){return false}var t=wt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&<.call(r)==pt}var Bn=hr?baseUnary(hr):baseIsRegExp;function isSafeInteger(e){return isInteger(e)&&e>=-C&&e<=C}var Nn=dr?baseUnary(dr):baseIsSet;function isString(e){return typeof e=="string"||!Pn(e)&&isObjectLike(e)&&baseGetTag(e)==ne}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==ae}var jn=pr?baseUnary(pr):baseIsTypedArray;function isUndefined(e){return e===r}function isWeakMap(e){return isObjectLike(e)&&$r(e)==se}function isWeakSet(e){return isObjectLike(e)&&baseGetTag(e)==oe}var Wn=createRelationalOperation(baseLt);var $n=createRelationalOperation(function(e,t){return e<=t});function toArray(e){if(!e){return[]}if(isArrayLike(e)){return isString(e)?stringToArray(e):copyArray(e)}if(It&&e[It]){return iteratorToArray(e[It]())}var t=$r(e),r=t==K?mapToArray:t==re?setToArray:values;return r(e)}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===D||e===-D){var t=e<0?-1:1;return t*x}return e===e?e:0}function toInteger(e){var t=toFinite(e),r=t%1;return t===t?r?t-r:t:0}function toLength(e){return e?baseClamp(toInteger(e),0,B):0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return q}if(isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(xe,"");var r=He.test(e);return r||Qe.test(e)?er(e.slice(2),r?2:8):Ue.test(e)?q:+e}function toPlainObject(e){return copyObject(e,keysIn(e))}function toSafeInteger(e){return e?baseClamp(toInteger(e),-C,C):e===0?e:0}function toString(e){return e==null?"":baseToString(e)}var Fn=createAssigner(function(e,t){if(isPrototype(t)||isArrayLike(t)){copyObject(t,keys(t),e);return}for(var r in t){if(ft.call(t,r)){assignValue(e,r,t[r])}}});var zn=createAssigner(function(e,t){copyObject(t,keysIn(t),e)});var Yn=createAssigner(function(e,t,r,n){copyObject(t,keysIn(t),e,n)});var Un=createAssigner(function(e,t,r,n){copyObject(t,keys(t),e,n)});var Hn=flatRest(baseAt);function create(e,t){var r=Lr(e);return t==null?r:baseAssign(r,t)}var Gn=baseRest(function(e,t){e=tt(e);var n=-1;var a=t.length;var i=a>2?t[2]:r;if(i&&isIterateeCall(t[0],t[1],i)){a=1}while(++n1);return t});copyObject(e,getAllKeysIn(e),r);if(n){r=baseClone(r,f|c|h,customOmitClone)}var a=t.length;while(a--){baseUnset(r,t[a])}return r});function omitBy(e,t){return pickBy(e,negate(getIteratee(t)))}var ea=flatRest(function(e,t){return e==null?{}:basePick(e,t)});function pickBy(e,t){if(e==null){return{}}var r=arrayMap(getAllKeysIn(e),function(e){return[e]});t=getIteratee(t);return basePickBy(e,r,function(e,r){return t(e,r[0])})}function result(e,t,n){t=castPath(t,e);var a=-1,i=t.length;if(!i){i=1;e=r}while(++at){var a=e;e=t;t=a}if(n||e%1||t%1){var i=Kt();return zt(e+i*(t-e+Vt("1e-"+((i+"").length-1))),t)}return baseRandom(e,t)}var na=createCompounder(function(e,t,r){t=t.toLowerCase();return e+(r?capitalize(t):t)});function capitalize(e){return fa(toString(e).toLowerCase())}function deburr(e){e=toString(e);return e&&e.replace(Ke,yr).replace($t,"")}function endsWith(e,t,n){e=toString(e);t=baseToString(t);var a=e.length;n=n===r?a:baseClamp(toInteger(n),0,a);var i=n;n-=t.length;return n>=0&&e.slice(n,i)==t}function escape(e){e=toString(e);return e&&Ee.test(e)?e.replace(Se,vr):e}function escapeRegExp(e){e=toString(e);return e&&Ce.test(e)?e.replace(De,"\\$&"):e}var aa=createCompounder(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});var ia=createCompounder(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});var sa=createCaseFirst("toLowerCase");function pad(e,t,r){e=toString(e);t=toInteger(t);var n=t?stringSize(e):0;if(!t||n>=t){return e}var a=(t-n)/2;return createPadding(Ct(a),r)+e+createPadding(Dt(a),r)}function padEnd(e,t,r){e=toString(e);t=toInteger(t);var n=t?stringSize(e):0;return t&&n>>0;if(!n){return[]}e=toString(e);if(e&&(typeof t=="string"||t!=null&&!Bn(t))){t=baseToString(t);if(!t&&hasUnicode(e)){return castSlice(stringToArray(e),0,n)}}return e.split(t,n)}var ua=createCompounder(function(e,t,r){return e+(r?" ":"")+fa(t)});function startsWith(e,t,r){e=toString(e);r=r==null?0:baseClamp(toInteger(r),0,e.length);t=baseToString(t);return e.slice(r,r+t.length)==t}function template(e,t,n){var a=lodash.templateSettings;if(n&&isIterateeCall(e,t,n)){t=r}e=toString(e);t=Yn({},t,a,customDefaultsAssignIn);var i=Yn({},t.imports,a.imports,customDefaultsAssignIn),s=keys(i),o=baseValues(i,s);var u,l,f=0,c=t.interpolate||Je,h="__p += '";var d=rt((t.escape||Je).source+"|"+c.source+"|"+(c===Re?ze:Je).source+"|"+(t.evaluate||Je).source+"|$","g");var p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Gt+"]")+"\n";e.replace(d,function(t,r,n,a,i,s){n||(n=a);h+=e.slice(f,s).replace(Ze,escapeStringChar);if(r){u=true;h+="' +\n__e("+r+") +\n'"}if(i){l=true;h+="';\n"+i+";\n__p += '"}if(n){h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=s+t.length;return t});h+="';\n";var g=t.variable;if(!g){h="with (obj) {\n"+h+"\n}\n"}h=(l?h.replace(me,""):h).replace(_e,"$1").replace(we,"$1;");h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=ca(function(){return Ve(s,p+"return "+h).apply(r,o)});y.source=h;if(isError(y)){throw y}return y}function toLower(e){return toString(e).toLowerCase()}function toUpper(e){return toString(e).toUpperCase()}function trim(e,t,n){e=toString(e);if(e&&(n||t===r)){return e.replace(xe,"")}if(!e||!(t=baseToString(t))){return e}var a=stringToArray(e),i=stringToArray(t),s=charsStartIndex(a,i),o=charsEndIndex(a,i)+1;return castSlice(a,s,o).join("")}function trimEnd(e,t,n){e=toString(e);if(e&&(n||t===r)){return e.replace(Be,"")}if(!e||!(t=baseToString(t))){return e}var a=stringToArray(e),i=charsEndIndex(a,stringToArray(t))+1;return castSlice(a,0,i).join("")}function trimStart(e,t,n){e=toString(e);if(e&&(n||t===r)){return e.replace(qe,"")}if(!e||!(t=baseToString(t))){return e}var a=stringToArray(e),i=charsStartIndex(a,stringToArray(t));return castSlice(a,i).join("")}function truncate(e,t){var n=E,a=I;if(isObject(t)){var i="separator"in t?t.separator:i;n="length"in t?toInteger(t.length):n;a="omission"in t?baseToString(t.omission):a}e=toString(e);var s=e.length;if(hasUnicode(e)){var o=stringToArray(e);s=o.length}if(n>=s){return e}var u=n-stringSize(a);if(u<1){return a}var l=o?castSlice(o,0,u).join(""):e.slice(0,u);if(i===r){return l+a}if(o){u+=l.length-u}if(Bn(i)){if(e.slice(u).search(i)){var f,c=l;if(!i.global){i=rt(i.source,toString(Ye.exec(i))+"g")}i.lastIndex=0;while(f=i.exec(c)){var h=f.index}l=l.slice(0,h===r?u:h)}}else if(e.indexOf(baseToString(i),u)!=u){var d=l.lastIndexOf(i);if(d>-1){l=l.slice(0,d)}}return l+a}function unescape(e){e=toString(e);return e&&Ae.test(e)?e.replace(Oe,br):e}var la=createCompounder(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()});var fa=createCaseFirst("toUpperCase");function words(e,t,n){e=toString(e);t=n?r:t;if(t===r){return hasUnicodeWord(e)?unicodeWords(e):asciiWords(e)}return e.match(t)||[]}var ca=baseRest(function(e,t){try{return apply(e,r,t)}catch(e){return isError(e)?e:new Xe(e)}});var ha=flatRest(function(e,t){arrayEach(t,function(t){t=toKey(t);baseAssignValue(e,t,_n(e[t],e))});return e});function cond(e){var t=e==null?0:e.length,r=getIteratee();e=!t?[]:arrayMap(e,function(e){if(typeof e[1]!="function"){throw new at(s)}return[r(e[0]),e[1]]});return baseRest(function(r){var n=-1;while(++nC){return[]}var r=B,n=zt(e,B);t=getIteratee(t);e-=B;var a=baseTimes(n,t);while(++r0||t<0)){return new LazyWrapper(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=toInteger(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};LazyWrapper.prototype.toArray=function(){return this.take(B)};baseForOwn(LazyWrapper.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=lodash[a?"take"+(t=="last"?"Right":""):t],s=a||/^find/.test(t);if(!i){return}lodash.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,u=t instanceof LazyWrapper,l=o[0],f=u||Pn(t);var c=function(e){var t=i.apply(lodash,arrayPush([e],o));return a&&h?t[0]:t};if(f&&n&&typeof l=="function"&&l.length!=1){u=f=false}var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,g=u&&!d;if(!s&&f){t=g?t:new LazyWrapper(this);var y=e.apply(t,o);y.__actions__.push({func:thru,args:[c],thisArg:r});return new LodashWrapper(y,h)}if(p&&g){return e.apply(this,o)}y=this.thru(c);return p?a?y.value()[0]:y.value():y}});arrayEach(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);lodash.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(Pn(a)?a:[],e)}return this[r](function(r){return t.apply(Pn(r)?r:[],e)})}});baseForOwn(LazyWrapper.prototype,function(e,t){var r=lodash[t];if(r){var n=r.name+"",a=ur[n]||(ur[n]=[]);a.push({name:t,func:r})}});ur[createHybrid(r,y).name]=[{name:"wrapper",func:r}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash.prototype.at=fn;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;lodash.prototype.first=lodash.prototype.head;if(It){lodash.prototype[It]=wrapperToIterator}return lodash};var _r=mr();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){nr._=_r;define(function(){return _r})}else if(ir){(ir.exports=_r)._=_r;ar._=_r}else{nr._=_r}}).call(this)},570:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var a=_interopRequireDefault(r(514));var i=r(974);var s=r(405);var o=_interopRequireDefault(r(880));var u=_interopRequireDefault(r(255));var l=_interopRequireDefault(r(637));var f=_interopRequireWildcard(r(380));var c=_interopRequireDefault(r(923));var h=_interopRequireDefault(r(515));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const d=e=>e&&[i.Type.MAP_KEY,i.Type.MAP_VALUE,i.Type.SEQ_ITEM].includes(e.type);class Document{constructor(e){this.anchors=new a.default;this.commentBefore=null;this.comment=null;this.contents=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}assertCollectionContents(){if(this.contents instanceof f.default)return true;throw new Error("Expected a YAML collection as document contents")}add(e){this.assertCollectionContents();return this.contents.add(e)}addIn(e,t){this.assertCollectionContents();this.contents.addIn(e,t)}delete(e){this.assertCollectionContents();return this.contents.delete(e)}deleteIn(e){if((0,f.isEmptyPath)(e)){if(this.contents==null)return false;this.contents=null;return true}this.assertCollectionContents();return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof f.default?this.contents.get(e,t):undefined}getIn(e,t){if((0,f.isEmptyPath)(e))return!t&&this.contents instanceof h.default?this.contents.value:this.contents;return this.contents instanceof f.default?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof f.default?this.contents.has(e):false}hasIn(e){if((0,f.isEmptyPath)(e))return this.contents!==undefined;return this.contents instanceof f.default?this.contents.hasIn(e):false}set(e,t){this.assertCollectionContents();this.contents.set(e,t)}setIn(e,t){if((0,f.isEmptyPath)(e))this.contents=t;else{this.assertCollectionContents();this.contents.setIn(e,t)}}setSchema(){if(!this.schema)this.schema=new u.default(Object.assign({},this.getDefaults(),this.options))}parse(e){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:t=[],contents:r=[],error:n,valueRange:a}=e;if(n){if(!n.source)n.source=this;this.errors.push(n)}const o=[];t.forEach(e=>{const{comment:t,name:r}=e;switch(r){case"TAG":this.resolveTagDirective(e);break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e);break;default:if(r){const t=`YAML only supports %TAG and %YAML directives, and not %${r}`;this.warnings.push(new s.YAMLWarning(e,t))}}if(t)o.push(t)});this.range=a?[a.start,a.end]:null;this.setSchema();this.anchors._cstAliases=[];this.commentBefore=o.join("\n")||null;const u={before:[],after:[]};const l=[];let c=false;r.forEach(e=>{if(e.valueRange){if(l.length===1){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new s.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);if(c){t.spaceBefore=true;c=false}l.push(t)}else if(e.comment!==null){const t=l.length===0?u.before:u.after;t.push(e.comment)}else if(e.type===i.Type.BLANK_LINE){c=true;if(l.length===0&&u.before.length>0&&!this.commentBefore){this.commentBefore=u.before.join("\n");u.before=[]}}});switch(l.length){case 0:this.contents=null;u.after=u.before;break;case 1:this.contents=l[0];if(this.contents){const e=u.before.join("\n")||null;if(e){const t=this.contents instanceof f.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?`${e}\n${t.commentBefore}`:e}}else{u.after=u.before.concat(u.after)}break;default:this.contents=l;if(this.contents[0]){this.contents[0].commentBefore=u.before.join("\n")||null}else{u.after=u.before.concat(u.after)}}this.comment=u.after.join("\n")||null;this.anchors.resolveNodes();return this}resolveTagDirective(e){const[t,r]=e.parameters;if(t&&r){if(this.tagPrefixes.every(e=>e.handle!==t)){this.tagPrefixes.push({handle:t,prefix:r})}else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new s.YAMLSemanticError(e,t))}}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new s.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if(e.name==="YAML:1.0")t="1.0";if(this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new s.YAMLSemanticError(e,t))}if(!t){const t="Insufficient parameters given for %YAML directive";this.errors.push(new s.YAMLSemanticError(e,t))}else{if(!Document.defaults[t]){const r=this.version||this.options.version;const n=`Document will be parsed as YAML ${r} rather than YAML ${t}`;this.warnings.push(new s.YAMLWarning(e,n))}this.version=t}}resolveTagName(e){const{tag:t,type:r}=e;let n=false;if(t){const{handle:r,suffix:a,verbatim:i}=t;if(i){if(i!=="!"&&i!=="!!")return i;const t=`Verbatim tags aren't resolved, so ${i} is invalid.`;this.errors.push(new s.YAMLSemanticError(e,t))}else if(r==="!"&&!a){n=true}else{let t=this.tagPrefixes.find(e=>e.handle===r);if(!t){const e=this.getDefaults().tagPrefixes;if(e)t=e.find(e=>e.handle===r)}if(t){if(a){if(r==="!"&&(this.version||this.options.version)==="1.0"){if(a[0]==="^")return a;if(/[:\/]/.test(a)){const e=a.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${a}`}}return t.prefix+decodeURIComponent(a)}this.errors.push(new s.YAMLSemanticError(e,`The ${r} tag has no suffix.`))}else{const t=`The ${r} tag handle is non-default and was not declared.`;this.errors.push(new s.YAMLSemanticError(e,t))}}}switch(r){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:case i.Type.QUOTE_DOUBLE:case i.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case i.Type.FLOW_MAP:case i.Type.MAP:return u.default.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return u.default.defaultTags.SEQ;case i.Type.PLAIN:return n?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:r,schema:n}=this;let a=false;let o=false;const u={before:[],after:[]};const f=d(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const t of f){const{start:n,end:l}=t;switch(e.context.src[n]){case i.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(n)){const t="Comments must be separated from other tokens by white space characters";r.push(new s.YAMLSemanticError(e,t))}const t=e.context.src.slice(n+1,l);const{header:a,valueRange:i}=e;if(i&&(n>i.start||a&&n>a.start)){u.after.push(t)}else{u.before.push(t)}}break;case i.Char.ANCHOR:if(a){const t="A node can have at most one anchor";r.push(new s.YAMLSemanticError(e,t))}a=true;break;case i.Char.TAG:if(o){const t="A node can have at most one tag";r.push(new s.YAMLSemanticError(e,t))}o=true;break}}if(a){const r=e.anchor;const n=t.getNode(r);if(n)t.map[t.newName(r)]=n;t.map[r]=e}let c;if(e.type===i.Type.ALIAS){if(a||o){const t="An alias node must not specify any properties";r.push(new s.YAMLSemanticError(e,t))}const n=e.rawValue;const i=t.getNode(n);if(!i){const t=`Aliased anchor not found: ${n}`;r.push(new s.YAMLReferenceError(e,t));return null}c=new l.default(i);t._cstAliases.push(c);if(!i.resolved){const t="Alias node contains a circular reference, which cannot be resolved as JSON";this.warnings.push(new s.YAMLWarning(e,t))}}else{const t=this.resolveTagName(e);if(t){c=n.resolveNodeWithFallback(this,e,t)}else{if(e.type!==i.Type.PLAIN){const t=`Failed to resolve ${e.type} node here`;r.push(new s.YAMLSyntaxError(e,t));return null}try{c=n.resolveScalar(e.strValue||"")}catch(t){if(!t.source)t.source=e;r.push(t);return null}}}if(c){c.range=[e.range.start,e.range.end];if(this.options.keepCstNodes)c.cstNode=e;if(this.options.keepNodeTypes)c.type=e.type;const t=u.before.join("\n");if(t){c.commentBefore=c.commentBefore?`${c.commentBefore}\n${t}`:t}const r=u.after.join("\n");if(r)c.comment=c.comment?`${c.comment}\n${r}`:r}return e.resolved=c}listNonDefaultTags(){return(0,o.default)(this.contents).filter(e=>e.indexOf(u.default.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const r=this.tagPrefixes.find(t=>t.handle===e);if(r)r.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}stringifyTag(e){if((this.version||this.options.version)==="1.0"){const t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];const r=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?`!${r[1]}/${r[2]}`:`!${e.replace(/^tag:/,"")}`}else{let t=this.tagPrefixes.find(t=>e.indexOf(t.prefix)===0);if(!t){const r=this.getDefaults().tagPrefixes;t=r&&r.find(t=>e.indexOf(t.prefix)===0)}if(!t)return e[0]==="!"?e:`!<${e}>`;const r=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return t.handle+r}}toJSON(e){const t=this.warnings.find(e=>/circular reference/.test(e.message));if(t)throw new s.YAMLSemanticError(t.source,t.message);const r=this.options.keepBlobsInJSON&&(typeof e!=="string"||!(this.contents instanceof h.default));const n=r&&!!this.options.mapAsMap;return(0,c.default)(this.contents,e,{keep:r,mapAsMap:n})}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];if(this.commentBefore)e.push(this.commentBefore.replace(/^/gm,"#"),"");let t=false;if(this.version){let r="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")r="%YAML:1.0";else if(this.version==="1.1")r="%YAML 1.1"}e.push(r);t=true}const r=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:n,prefix:a})=>{if(r.some(e=>e.indexOf(a)===0)){e.push(`%TAG ${n} ${a}`);t=true}});if(t)e.push("---");const a={anchors:{},doc:this,indent:""};let i=false;let s=null;if(this.contents){if(this.contents.spaceBefore&&t)e.push("");if(this.contents.commentBefore)e.push(this.contents.commentBefore.replace(/^/gm,"#"));a.forceBlockIndent=!!this.comment;s=this.contents.comment;const r=s?null:()=>i=true;const o=this.schema.stringify(this.contents,a,()=>s=null,r);e.push((0,n.default)(o,"",s))}else if(this.contents!==undefined){e.push(this.schema.stringify(this.contents,a))}if(this.comment){if((!i||s)&&e[e.length-1]!=="")e.push("");e.push(this.comment.replace(/^/gm,"#"))}return e.join("\n")+"\n"}}t.default=Document;_defineProperty(Document,"defaults",{"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}});e.exports=t.default;e.exports.default=t.default},583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringify=stringify;t.str=t.resolve=t.strOptions=void 0;var n=r(836);var a=r(974);var i=_interopRequireWildcard(r(415));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}const s={defaultType:a.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=s;const o=(e,t)=>{const r=e.length;if(r<=t)return false;for(let n=0,a=0;nt)return true;a=n+1;if(r-a<=t)return false}}return true};const u=(e,t)=>{const r=t.strValue;if(!r)return"";if(typeof r==="string")return r;r.errors.forEach(r=>{if(!r.source)r.source=t;e.errors.push(r)});return r.str};t.resolve=u;function doubleQuotedString(e,{implicitKey:t,indent:r}){const{jsonEncoding:n,minMultiLineLength:a}=s.doubleQuoted;const o=JSON.stringify(e);if(n)return o;let u="";let l=0;for(let e=0,n=o[e];n;n=o[++e]){if(n===" "&&o[e+1]==="\\"&&o[e+2]==="n"){u+=o.slice(l,e)+"\\ ";e+=1;l=e;n="\\"}if(n==="\\")switch(o[e+1]){case"u":{u+=o.slice(l,e);const t=o.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:if(t.substr(0,2)==="00")u+="\\x"+t.substr(2);else u+=o.substr(e,6)}e+=5;l=e+1}break;case"n":if(t||o[e+2]==='"'||o.length";if(!r)return d+"\n";let p="";let g="";r=r.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){d+="-"}else if(r===e||t!==e.length-1){d+="+";if(l)l()}g=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)d+=c;const t=e.match(/ +$/);if(t){p=e.slice(0,-t[0].length);return t[0]}else{p=e;return""}});if(g)g=g.replace(/\n+(?!\n|$)/g,`$&${f}`);if(p)p=p.replace(/\n+/g,`$&${f}`);if(e){d+=" #"+e.replace(/ ?[\r\n]+/g," ");if(u)u()}if(!r)return`${d}${c}\n${f}${g}`;if(h){r=r.replace(/\n+/g,`$&${f}`);return`${d}\n${f}${p}${r}${g}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);const y=(0,i.default)(`${p}${r}${g}`,f,i.FOLD_BLOCK,s.fold);return`${d}\n${f}${y}`}function plainString(e,t,r,o){const{comment:u,type:l,value:f}=e;const{implicitKey:c,indent:h,inFlow:d,tags:p}=t;if(c&&/[\n[\]{},]/.test(f)||d&&/[[\]{},]/.test(f)){return doubleQuotedString(f,t)}if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f)){return c||d||f.indexOf("\n")===-1?f.indexOf('"')!==-1&&f.indexOf("'")===-1?singleQuotedString(f,t):doubleQuotedString(f,t):blockString(e,t,r,o)}if(!c&&!d&&l!==a.Type.PLAIN&&f.indexOf("\n")!==-1){return blockString(e,t,r,o)}const g=f.replace(/\n+/g,`$&\n${h}`);if(typeof p.resolveScalar(g).value!=="string"){return doubleQuotedString(f,t)}const y=c?g:(0,i.default)(g,h,i.FOLD_FLOW,s.fold);if(u&&!d&&(y.indexOf("\n")!==-1||u.indexOf("\n")!==-1)){if(r)r();return(0,n.addCommentBefore)(y,h,u)}return y}function stringify(e,t,r,n){const{defaultType:i}=s;const{implicitKey:o,inFlow:u}=t;let{type:l,value:f}=e;if(typeof f!=="string"){f=String(f);e=Object.assign({},e,{value:f})}const c=i=>{switch(i){case a.Type.BLOCK_FOLDED:case a.Type.BLOCK_LITERAL:return blockString(e,t,r,n);case a.Type.QUOTE_DOUBLE:return doubleQuotedString(f,t);case a.Type.QUOTE_SINGLE:return singleQuotedString(f,t);case a.Type.PLAIN:return plainString(e,t,r,n);default:return null}};if(l!==a.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(f)){l=a.Type.QUOTE_DOUBLE}else if((o||u)&&(l===a.Type.BLOCK_FOLDED||l===a.Type.BLOCK_LITERAL)){l=a.Type.QUOTE_DOUBLE}let h=c(l);if(h===null){h=c(i);if(h===null)throw new Error(`Unsupported default string type ${i}`)}return h}const l={class:String,default:true,tag:"tag:yaml.org,2002:str",resolve:u,stringify:stringify,options:s};t.str=l},605:function(e){e.exports=require("http")},622:function(e){e.exports=require("path")},632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.nullOptions=t.stringifyNumber=void 0;var n=_interopRequireDefault(r(548));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=({value:e})=>isFinite(e)?JSON.stringify(e):isNaN(e)?".nan":e<0?"-.inf":".inf";t.stringifyNumber=a;const i={nullStr:"null"};t.nullOptions=i;var s=n.default.concat([{class:null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i,stringify:()=>i.nullStr},{class:Boolean,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T"},{class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)},{class:Number,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:a},{class:Number,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)},{class:Number,default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:a},{class:Number,default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}]);t.default=s},637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(974);var a=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(156));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class Alias extends i.default{static stringify({range:e,source:t},{anchors:r,doc:n,implicitKey:a}){const i=Object.keys(r).find(e=>r[e]===t);if(i)return`*${i}${a?" ":""}`;const s=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${s} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){return(0,a.default)(this.source,e,t)}}t.default=Alias;_defineProperty(Alias,"default",true);e.exports=t.default;e.exports.default=t.default},641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireWildcard(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}class Directive extends n.default{static endOfDirective(e,t){let r=e[t];while(r&&r!=="\n"&&r!=="#")r=e[t+=1];r=e[t-1];while(r===" "||r==="\t"){t-=1;r=e[t-1]}return t}constructor(){super(n.Type.DIRECTIVE);this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="\t"&&n!==" ")n=t[r+=1];this.name=t.slice(e,r);return r}parseParameters(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="#")n=t[r+=1];this.valueRange=new a.default(e,r);return r}parse(e,t){this.context=e;let r=this.parseName(t+1);r=this.parseParameters(r);r=this.parseComment(r);this.range=new a.default(t,r);return r}}t.default=Directive;e.exports=t.default;e.exports.default=t.default},684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPair=findPair;t.default=void 0;var n=_interopRequireDefault(r(923));var a=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(386));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function findPair(e,t){const r=t instanceof o.default?t.value:t;for(const n of e){if(n instanceof s.default){if(n.key===t||n.key===r)return n;if(n.key&&n.key.value===r)return n}}return undefined}class YAMLMap extends a.default{add(e){if(!e)e=new s.default(e);else if(!(e instanceof s.default))e=new s.default(e.key||e,e.value);const t=findPair(this.items,e.key);if(t)throw new Error(`Key ${e.key} already set`);this.items.push(e)}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r&&r.value;return!t&&n instanceof o.default?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){const r=findPair(this.items,e);if(r)r.value=t;else this.items.push(new s.default(e,t))}toJSON(e,t){if(t&&t.mapAsMap)return this.toJSMap(t);return this.items.reduce((e,r)=>{if(r instanceof i.default){const n=Object.keys(e);const{items:a}=r.value;for(let r=a.length-1;r>=0;--r){const{source:i}=a[r];if(i instanceof YAMLMap){const r=i.toJSON("",t);Object.keys(r).forEach(t=>{if(!n.includes(t))e[t]=r[t]})}else{throw new Error("Merge sources must be maps")}}}else{const{stringKey:a,value:i}=r;e[a]=(0,n.default)(i,a,t)}return e},{})}toJSMap(e){const t=new Map;for(const r of this.items){if(r instanceof i.default){const{items:n}=r.value;for(let r=n.length-1;r>=0;--r){const{source:a}=n[r];if(a instanceof YAMLMap){for(const[r,n]of a.toJSMap(e)){if(!t.has(r))t.set(r,n)}}else{throw new Error("Merge sources must be maps")}}}else{const a=(0,n.default)(r.key,"",e);const i=(0,n.default)(r.value,a,e);t.set(a,i)}}return t}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof s.default))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,r)}}t.default=YAMLMap},725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(974));var i=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteDouble extends a.default{static endOfQuote(e,t){let r=e[t];while(r&&r!=='"'){t+=r==="\\"?2:1;r=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:i,src:s}=this.context;if(s[r-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let u=t+1;ue?s.slice(e,u+1):t}else{o+=t}}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,t,r){const{src:a}=this.context;const i=a.substr(e,t);const s=i.length===t&&/^[0-9a-fA-F]+$/.test(i);const o=s?parseInt(i,16):NaN;if(isNaN(o)){r.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${a.substr(e-2,t+2)}`));return a.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteDouble.endOfQuote(r,t+1);this.valueRange=new i.default(t,n);n=a.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteDouble;e.exports=t.default;e.exports.default=t.default},734:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkKeyLength=checkKeyLength;t.resolveComments=resolveComments;var n=r(405);function checkKeyLength(e,t,r,a,i){if(!a||typeof i!=="number")return;const s=t.items[r];let o=s&&s.range&&s.range.start;if(!o){for(let e=r-1;e>=0;--e){const n=t.items[e];if(n&&n.range){o=n.range.end+2*(r-e);break}}}if(o>i+1024){const r=String(a).substr(0,8)+"..."+String(a).substr(-8);e.push(new n.YAMLSemanticError(t,`The "${r}" key is too long`))}}function resolveComments(e,t){for(const r of t){const{afterKey:t,before:n,comment:a}=r;let i=e.items[n];if(!i){if(a!==undefined){if(e.comment)e.comment+="\n"+a;else e.comment=a}}else{if(t&&i.value)i=i.value;if(a===undefined){if(t||!i.commentBefore)i.spaceBefore=true}else{if(i.commentBefore)i.commentBefore+="\n"+a;else i.commentBefore=a}}}}},747:function(e){e.exports=require("fs")},751:function(e,t,r){const n=r(557);const a=r(510);const i=/([a-zA-Z0-9]+-[0-9]+)/g;const s={branch:"{{event.ref}}",commits:"{{event.commits.map(c=>c.message).join(' ')}}"};e.exports=class{constructor({githubEvent:e,argv:t,config:r}){this.Jira=new a({baseUrl:r.baseUrl,token:r.token,email:r.email});this.config=r;this.argv=t;this.githubEvent=e}async execute(){const e=s[this.argv.from]||this.argv._.join(" ");const t=this.preprocessString(e);const r=t.match(i);if(!r){console.log(`String "${t}" does not contain issueKeys`);return}for(const e of r){const t=await this.Jira.getIssue(e);if(t){return{issue:t.key}}}}preprocessString(e){n.templateSettings.interpolate=/{{([\s\S]+?)}}/g;const t=n.template(e);return t({event:this.githubEvent})}}},761:function(e){e.exports=require("zlib")},763:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parseMap;var n=r(974);var a=_interopRequireDefault(r(119));var i=r(405);var s=_interopRequireDefault(r(684));var o=_interopRequireWildcard(r(386));var u=_interopRequireDefault(r(325));var l=r(734);var f=_interopRequireDefault(r(637));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const r=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new i.YAMLSyntaxError(t,r));return null}const{comments:r,items:a}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const u=new s.default;u.items=a;(0,l.resolveComments)(u,r);for(let r=0;r{if(e instanceof f.default){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return u="Merge nodes aliases can only point to maps"}return u="Merge nodes can only have Alias nodes as values"});if(u)e.errors.push(new i.YAMLSemanticError(t,u))}else{for(let n=r+1;n{if(a.length===0)return false;const{start:i}=a[0];if(t&&i>t.valueRange.start)return false;if(r[i]!==n.Char.COMMENT)return false;for(let t=e;t0){r=new a.default(n.Type.PLAIN,[]);r.context={parent:h,src:h.context.src};const e=h.range.start+1;r.range={start:e,end:e};r.valueRange={start:e,end:e};if(typeof h.range.origStart==="number"){const e=h.range.origStart+1;r.range.origStart=r.range.origEnd=e;r.valueRange.origStart=r.valueRange.origEnd=e}}const d=new u.default(o,e.resolveNode(r));resolvePairComment(h,d);s.push(d);(0,l.checkKeyLength)(e.errors,t,c,o,f);o=undefined;f=null}break;default:if(o!==undefined)s.push(new u.default(o));o=e.resolveNode(h);f=h.range.start;if(h.error)e.errors.push(h.error);e:for(let r=c+1;;++r){const a=t.items[r];switch(a&&a.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:e.errors.push(new i.YAMLSemanticError(h,"Implicit map keys need to be followed by map values"));break e}}if(h.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new i.YAMLSemanticError(h,t))}}}if(o!==undefined)s.push(new u.default(o));return{comments:r,items:s}}function resolveFlowMapItems(e,t){const r=[];const a=[];let s=undefined;let o=null;let f=false;let c="{";for(let h=0;hnew Document(t).parse(e))}function parseDocument(e,t){const r=(0,n.default)(e);const a=new Document(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";a.errors.unshift(new i.YAMLSemanticError(r[1],e))}return a}function parse(e,t){const r=parseDocument(e,t);r.warnings.forEach(e=>console.warn(e));if(r.errors.length>0)throw r.errors[0];return r.toJSON()}function stringify(e,t){const r=new Document(t);r.contents=e;return String(r)}var u={createNode:createNode,defaultOptions:o,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:n.default,parseDocument:parseDocument,stringify:stringify};t.default=u;e.exports=t.default;e.exports.default=t.default},794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireWildcard(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}class BlankLine extends n.default{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;const{src:r}=e;let i=t+1;while(n.default.atBlank(r,i)){const e=n.default.endOfWhiteSpace(r,i);if(e==="\n")i=e+1;else break}this.range=new a.default(t,i);return i}}t.default=BlankLine;e.exports=t.default;e.exports.default=t.default},835:function(e){e.exports=require("url")},836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addCommentBefore=addCommentBefore;t.default=addComment;function addCommentBefore(e,t,r){if(!r)return e;const n=r.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,r){return!r?e:r.indexOf("\n")===-1?`${e} #${r}`:`${e}\n`+r.replace(/^/gm,`${t||""}#`)}},856:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Alias extends n.default{parse(e,t){this.context=e;const{src:r}=e;let i=n.default.endOfIdentifier(r,t+1);this.valueRange=new a.default(t+1,i);i=n.default.endOfWhiteSpace(r,i);i=this.parseComment(i);return i}}t.default=Alias;e.exports=t.default;e.exports.default=t.default},858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parseSeq;var n=r(974);var a=r(405);var i=_interopRequireDefault(r(325));var s=r(734);var o=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseSeq(e,t){if(t.type!==n.Type.SEQ&&t.type!==n.Type.FLOW_SEQ){const r=`A ${t.type} node cannot be resolved as a sequence`;e.errors.push(new a.YAMLSyntaxError(t,r));return null}const{comments:r,items:i}=t.type===n.Type.FLOW_SEQ?resolveFlowSeqItems(e,t):resolveBlockSeqItems(e,t);const u=new o.default;u.items=i;(0,s.resolveComments)(u,r);t.resolved=u;return u}function resolveBlockSeqItems(e,t){const r=[];const i=[];for(let s=0;s{if(e&&typeof e==="object"){const{tag:r}=e;if(e instanceof n.default){if(r)t[r]=true;e.items.forEach(e=>s(e,t))}else if(e instanceof a.default){s(e.key,t);s(e.value,t)}else if(e instanceof i.default){if(r)t[r]=true}}return t};var o=e=>Object.keys(s(e,{}));t.default=o;e.exports=t.default;e.exports.default=t.default},906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(794));var i=_interopRequireWildcard(r(974));var s=_interopRequireDefault(r(19));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class CollectionItem extends i.default{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:r,src:o}=e;let{atLineStart:u,lineStart:l}=e;if(!u&&this.type===i.Type.SEQ_ITEM)this.error=new n.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const f=u?t-l:e.indent;let c=i.default.endOfWhiteSpace(o,t+1);let h=o[c];while(h==="\n"||h==="#"){if(h==="#"){const e=i.default.endOfLine(o,c+1);this.props.push(new s.default(c,e));c=e}else{u=true;l=c+1;const t=i.default.endOfWhiteSpace(o,l);if(o[t]==="\n"){const t=new a.default;l=t.parse({src:o},l);const r=e.parent.items||e.parent.contents;r.push(t)}c=i.default.endOfIndent(o,l)}h=o[c]}if(i.default.nextNodeIsIndented(h,c-(l+f),this.type!==i.Type.SEQ_ITEM)){this.node=r({atLineStart:u,inCollection:false,indent:f,lineStart:l,parent:this},c);if(this.node)c=this.node.range.end}else if(h&&l>t+1){c=l-1}const d=this.node?this.node.valueRange.end:c;this.valueRange=new s.default(t,d);return c}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:r,value:n}=this;if(n!=null)return n;const a=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return i.default.addStringTerminator(e,r.end,a)}}t.default=CollectionItem;e.exports=t.default;e.exports.default=t.default},923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toJSON;function toJSON(e,t,r){return Array.isArray(e)?e.map((e,t)=>toJSON(e,String(t),r)):e&&typeof e.toJSON==="function"?e.toJSON(t,r):e}e.exports=t.default;e.exports.default=t.default},928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var a=_interopRequireDefault(r(794));var i=r(954);var s=_interopRequireDefault(r(487));var o=_interopRequireDefault(r(641));var u=_interopRequireWildcard(r(974));var l=_interopRequireDefault(r(19));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Document extends u.default{static startCommentOrEndBlankLine(e,t){const r=u.default.endOfWhiteSpace(e,t);const n=e[r];return n==="#"||n==="\n"?r:t}constructor(){super(u.Type.DOCUMENT);this.directives=null;this.contents=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let r=true;let i=false;let l=e;while(!u.default.atDocumentBoundary(t,l,u.Char.DIRECTIVES_END)){l=Document.startCommentOrEndBlankLine(t,l);switch(t[l]){case"\n":if(r){const e=new a.default;l=e.parse({src:t},l);if(l0){this.contents=this.directives;this.directives=[]}return l}}if(t[l])return l+3;if(i){this.error=new n.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return l}parseContents(e){const{parseNode:t,src:r}=this.context;if(!this.contents)this.contents=[];let o=e;while(r[o-1]==="-")o-=1;let f=u.default.endOfWhiteSpace(r,e);let c=o===e;this.valueRange=new l.default(f);while(!u.default.atDocumentBoundary(r,f,u.Char.DOCUMENT_END)){switch(r[f]){case"\n":if(c){const e=new a.default;f=e.parse({src:r},f);if(f{t=r.setOrigRanges(e,t)});this.contents.forEach(r=>{t=r.setOrigRanges(e,t)});return t}toString(){const{contents:e,directives:t,value:r}=this;if(r!=null)return r;let n=t.join("");if(e.length>0){if(t.length>0||e[0].type===u.Type.COMMENT)n+="---\n";n+=e.join("")}if(n[n.length-1]!=="\n")n+="\n";return n}}t.default=Document;e.exports=t.default;e.exports.default=t.default},954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.grabCollectionEndComments=grabCollectionEndComments;t.default=void 0;var n=_interopRequireDefault(r(794));var a=_interopRequireDefault(r(906));var i=_interopRequireDefault(r(487));var s=_interopRequireWildcard(r(974));var o=_interopRequireDefault(r(19));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function grabCollectionEndComments(e){let t=e;while(t instanceof a.default)t=t.node;if(!(t instanceof Collection))return null;const r=t.items.length;let n=-1;for(let e=r-1;e>=0;--e){const r=t.items[e];if(r.type===s.Type.COMMENT){const{indent:t,lineStart:a}=r.context;if(t>0&&r.range.start>=a+t)break;n=e}else if(r.type===s.Type.BLANK_LINE)n=e;else break}if(n===-1)return null;const i=t.items.splice(n,r-n);const o=i[0].range.start;while(true){t.range.end=o;if(t.valueRange&&t.valueRange.end>o)t.valueRange.end=o;if(t===e)break;t=t.context.parent}return i}class Collection extends s.default{static nextContentHasIndent(e,t,r){const n=s.default.endOfLine(e,t)+1;t=s.default.endOfWhiteSpace(e,n);const a=e[t];if(!a)return false;if(t>=n+r)return true;if(a!=="#")return false;return Collection.nextContentHasIndent(e,t,r)}constructor(e){super(e.type===s.Type.SEQ_ITEM?s.Type.SEQ:s.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:a}=e;let u=s.default.startOfLine(a,t);const l=this.items[0];l.context.parent=this;this.valueRange=o.default.copy(l.valueRange);const f=l.range.start-l.context.lineStart;let c=t;c=s.default.normalizeOffset(a,c);let h=a[c];let d=s.default.endOfWhiteSpace(a,u)===c;let p=false;while(h){while(h==="\n"||h==="#"){if(d&&h==="\n"&&!p){const e=new n.default;c=e.parse({src:a},c);this.valueRange.end=c;if(c>=a.length){h=null;break}this.items.push(e);c-=1}else if(h==="#"){if(c=a.length){h=null;break}}u=c+1;c=s.default.endOfIndent(a,u);if(s.default.atBlank(a,c)){const e=s.default.endOfWhiteSpace(a,c);const t=a[e];if(!t||t==="\n"||t==="#"){c=e}}h=a[c];d=true}if(!h){break}if(c!==u+f&&(d||h!==":")){if(u>t)c=u;break}if(l.type===s.Type.SEQ_ITEM!==(h==="-")){let e=true;if(h==="-"){const t=a[c+1];e=!t||t==="\n"||t==="\t"||t===" "}if(e){if(u>t)c=u;break}}const e=r({atLineStart:d,inCollection:true,indent:f,lineStart:u,parent:this},c);if(!e)return c;this.items.push(e);this.valueRange.end=e.valueRange.end;c=s.default.normalizeOffset(a,e.range.end);h=a[c];d=false;p=e.includesTrailingLines;if(h){let e=c-1;let t=a[e];while(t===" "||t==="\t")t=a[--e];if(t==="\n"){u=e+1;d=true}}const o=grabCollectionEndComments(e);if(o)Array.prototype.push.apply(this.items,o)}return c}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{t=r.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;let a=e.slice(r.start,t[0].range.start)+String(t[0]);for(let e=1;e":return l.Type.BLOCK_FOLDED;case"|":return l.Type.BLOCK_LITERAL;case"{":return l.Type.FLOW_MAP;case"[":return l.Type.FLOW_SEQ;case"?":return!r&&l.default.atBlank(e,t+1,true)?l.Type.MAP_KEY:l.Type.PLAIN;case":":return!r&&l.default.atBlank(e,t+1,true)?l.Type.MAP_VALUE:l.Type.PLAIN;case"-":return!r&&l.default.atBlank(e,t+1,true)?l.Type.SEQ_ITEM:l.Type.PLAIN;case'"':return l.Type.QUOTE_DOUBLE;case"'":return l.Type.QUOTE_SINGLE;default:return l.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:r,inFlow:p,indent:g,lineStart:y,parent:v}={}){_defineProperty(this,"parseNode",(e,t)=>{if(l.default.atDocumentBoundary(this.src,t))return null;const r=new ParseContext(this,e);const{props:p,type:g,valueStart:y}=r.parseProps(t);let v;switch(g){case l.Type.ALIAS:v=new a.default(g,p);break;case l.Type.BLOCK_FOLDED:case l.Type.BLOCK_LITERAL:v=new i.default(g,p);break;case l.Type.FLOW_MAP:case l.Type.FLOW_SEQ:v=new u.default(g,p);break;case l.Type.MAP_KEY:case l.Type.MAP_VALUE:case l.Type.SEQ_ITEM:v=new o.default(g,p);break;case l.Type.COMMENT:case l.Type.PLAIN:v=new f.default(g,p);break;case l.Type.QUOTE_DOUBLE:v=new c.default(g,p);break;case l.Type.QUOTE_SINGLE:v=new h.default(g,p);break;default:v.error=new n.YAMLSyntaxError(v,`Unknown node type: ${JSON.stringify(g)}`);v.range=new d.default(t,t+1);return v}let b=v.parse(r,y);v.range=new d.default(t,b);if(b<=t){v.error=new Error(`Node#parse consumed no characters`);v.error.parseEnd=b;v.error.source=v;v.range.end=t+1}if(r.nodeStartsCollection(v)){if(!v.error&&!r.atLineStart&&r.parent.type===l.Type.DOCUMENT){v.error=new n.YAMLSyntaxError(v,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new s.default(v);b=e.parse(new ParseContext(r),b);e.range=new d.default(t,b);return e}return v});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=r!=null?r:e.inCollection||false;this.inFlow=p!=null?p:e.inFlow||false;this.indent=g!=null?g:e.indent;this.lineStart=y!=null?y:e.lineStart;this.parent=v!=null?v:e.parent||{};this.root=e.root;this.src=e.src}get pretty(){const e={start:`${this.lineStart} + ${this.indent}`,in:[],parent:this.parent.type};if(!this.atLineStart)e.start+=" + N";if(this.inCollection)e.in.push("collection");if(this.inFlow)e.in.push("flow");return e}nodeStartsCollection(e){const{inCollection:t,inFlow:r,src:n}=this;if(t||r)return false;if(e instanceof o.default)return true;let a=e.range.end;if(n[a]==="\n"||n[a-1]==="\n")return false;a=l.default.endOfWhiteSpace(n,a);return n[a]===":"}parseProps(e){const{inFlow:t,parent:r,src:n}=this;const a=[];let i=false;e=l.default.endOfWhiteSpace(n,e);let s=n[e];while(s===l.Char.ANCHOR||s===l.Char.COMMENT||s===l.Char.TAG||s==="\n"){if(s==="\n"){const t=e+1;const a=l.default.endOfIndent(n,t);const s=a-(t+this.indent);const o=r.type===l.Type.SEQ_ITEM&&r.context.atLineStart;if(!l.default.nextNodeIsIndented(n[a],s,!o))break;this.atLineStart=true;this.lineStart=t;i=false;e=a}else if(s===l.Char.COMMENT){const t=l.default.endOfLine(n,e+1);a.push(new d.default(e,t));e=t}else{let t=l.default.endOfIdentifier(n,e+1);if(s===l.Char.TAG&&n[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(n.slice(e+1,t+13))){t=l.default.endOfIdentifier(n,t+5)}a.push(new d.default(e,t));i=true;e=l.default.endOfWhiteSpace(n,t)}s=n[e]}if(i&&s===":"&&l.default.atBlank(n,e+1,true))e-=1;const o=ParseContext.parseType(n,e,t);return{props:a,type:o,valueStart:e}}}t.default=ParseContext;e.exports=t.default;e.exports.default=t.default},974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Char=t.Type=void 0;var n=_interopRequireDefault(r(555));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};t.Type=i;const s={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=s;class Node{static addStringTerminator(e,t,r){if(r[r.length-1]==="\n")return r;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?r+"\n":r}static atDocumentBoundary(e,t,r){const n=e[t];if(!n)return true;const a=e[t-1];if(a&&a!=="\n")return false;if(r){if(n!==r)return false}else{if(n!==s.DIRECTIVES_END&&n!==s.DOCUMENT_END)return false}const i=e[t+1];const o=e[t+2];if(i!==n||o!==n)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let r=e[t];const n=r==="<";const a=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(r&&a.indexOf(r)===-1)r=e[t+=1];if(n&&r===">")t+=1;return t}static endOfIndent(e,t){let r=e[t];while(r===" ")r=e[t+=1];return t}static endOfLine(e,t){let r=e[t];while(r&&r!=="\n")r=e[t+=1];return t}static endOfWhiteSpace(e,t){let r=e[t];while(r==="\t"||r===" ")r=e[t+=1];return t}static startOfLine(e,t){let r=e[t-1];if(r==="\n")return t;while(r&&r!=="\n")r=e[t-=1];return t+1}static endOfBlockIndent(e,t,r){const n=Node.endOfIndent(e,r);if(n>r+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const r=e[t];if(!r||r==="\n")return t}return null}static atBlank(e,t,r){const n=e[t];return n==="\n"||n==="\t"||n===" "||r&&!n}static atCollectionItem(e,t){const r=e[t];return(r==="?"||r===":"||r==="-")&&Node.atBlank(e,t+1,true)}static nextNodeIsIndented(e,t,r){if(!e||t<0)return false;if(t>0)return true;return r&&e==="-"}static normalizeOffset(e,t){const r=e[t];return!r?t:r!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,r){let n=0;let a=false;let i="";let s=e[t+1];while(s===" "||s==="\t"||s==="\n"){switch(s){case"\n":n=0;t+=1;i+="\n";break;case"\t":if(n<=r)a=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}s=e[t+1]}if(!i)i=" ";if(s&&n<=r)a=true;return{fold:i,offset:t,error:a}}constructor(e,t,r){this.context=r||null;this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,r){if(!this.context)return null;const{src:n}=this.context;const a=this.props[e];return a&&n[a.start]===t?n.slice(a.start+(r?1:0),a.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:r}=this.valueRange;return e!==r||Node.atBlank(t,r-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tr.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:r}=this;if(r!=null)return r;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}t.default=Node}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file From 1c3a6d1b7490df067404a9f556c8be5bb4db64e8 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:15:55 -0400 Subject: [PATCH 08/12] Remove Docker artifacts --- Dockerfile | 20 -------------------- entrypoint.sh | 10 ---------- 2 files changed, 30 deletions(-) delete mode 100644 Dockerfile delete mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2a189821..00000000 --- a/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM node:10-alpine - -LABEL "name"="Jira Find" -LABEL "maintainer"="Dima Rudzik " -LABEL "version"="1.0.0" - -LABEL "com.github.actions.name"="Jira Find" -LABEL "com.github.actions.description"="Find an issue inside event" -LABEL "com.github.actions.icon"="check-square" -LABEL "com.github.actions.color"="blue" - -RUN apk update && apk add --no-cache ca-certificates - -ADD https://github.com/atlassian/gajira/raw/master/bin/gagas . -ADD . . -RUN npm i -RUN chmod +x /entrypoint.sh -RUN chmod +x /gagas - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 3955a956..00000000 --- a/entrypoint.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -eu - -sh -c "node /index.js $*" - -actionSubjectId="find" -containerId=`echo $GITHUB_REPOSITORY | sha1sum | cut -c1-41` -anonymousId=`echo $GITHUB_ACTOR | sha1sum | cut -c1-41` - -/gagas --container-id="$containerId" --action-subject-id="$actionSubjectId" --anonymous-id="$anonymousId" From 566a98782cce5bb963752a66652fea9567ca553d Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:41:18 -0400 Subject: [PATCH 09/12] Update README --- README.md | 50 +++++++++++++++++++------------------------------- action.yml | 2 +- 2 files changed, 20 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 1bbd4cca..02310dc8 100644 --- a/README.md +++ b/README.md @@ -10,45 +10,33 @@ For examples on how to use this, check out the [gajira-demo](https://github.com/ To find an issue key inside commit messages: ``` -action "Find in commit messages" { - uses = "atlassian/gajira-find-issue-key@master" - needs = ["Login"] - args = "--from=commits" -} +- name: Login + uses: atlassian/gajira-login@master + env: + JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} + JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} + JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} + +- name: Find in commit messages + uses: atlassian/gajira-find-issue-key@master + with: + from: commits ``` - -Also you can use [lodash templates](https://lodash.com/docs/4.17.11#template) to retrieve fields from GitHub Event which triggered workflow, like: `{{event.ref}}` Here is an example: - -``` -action "Find in branch name" { - uses = "atlassian/gajira-find-issue-key@master" - needs = ["Login"] - args = "{{event.ref}}" -} -``` -which is the same as `--from=branch` - -Or more complex one: - -``` -action "Find in commit messages" { - uses = "atlassian/gajira-find-issue-key@master" - needs = ["Login"] - args = "{{event.commits.map(c=>c.message).join(' ')}}" -} -``` -which is the same as `--from=commits` - ---- ## Action Spec: ### Environment variables - None -### Arguments -- `--from=commits` - Detect issue key in commit messages from event -- `--from=branch` - Detect issue key in branch name +### Inputs +- `description` - Provide jsonpath for the GitHub event to extract issue from +- `string` - Provide a string to extract issue key from +- `from` - Find from predefined place (should be either 'branch', or 'commits', default is 'commits') + +### Outputs +- `issue` - Key of the found issue + ### Reads fields from config file at $HOME/jira/config.yml - None diff --git a/action.yml b/action.yml index 3bb43895..64082460 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: description: Provide a string to extract issue key from required: false from: - description: Find from predefined place (should be either 'branch', or 'commits', default is 'commit') + description: Find from predefined place (should be either 'branch', or 'commits', default is 'commits') required: false default: commits outputs: From 285c06195817e996e56be2f876106408e7a163f2 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:42:57 -0400 Subject: [PATCH 10/12] Add example workflow --- .github/workflows/find-issue-key.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/find-issue-key.yml diff --git a/.github/workflows/find-issue-key.yml b/.github/workflows/find-issue-key.yml new file mode 100644 index 00000000..a62858ed --- /dev/null +++ b/.github/workflows/find-issue-key.yml @@ -0,0 +1,19 @@ +on: + push + +name: Test Find Issue Key + +jobs: + test-find-issue-key: + name: Find Issue Key + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Find Issue Key + id: find + uses: ./ + + - name: Find issue info + run: echo "Issue ${{ steps.find.outputs.issue }} was found" \ No newline at end of file From 4f386ef17045804443ff7e1095f436c2e3be6af3 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 13:54:27 -0400 Subject: [PATCH 11/12] Update example workflow --- .github/workflows/find-issue-key.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/find-issue-key.yml b/.github/workflows/find-issue-key.yml index a62858ed..9982af38 100644 --- a/.github/workflows/find-issue-key.yml +++ b/.github/workflows/find-issue-key.yml @@ -11,6 +11,13 @@ jobs: - name: Checkout uses: actions/checkout@master + - name: Login + uses: atlassian/gajira-login@master + env: + JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} + JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} + JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} + - name: Find Issue Key id: find uses: ./ From 4ece017741832462437afb23e87be039752a20f7 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 4 Sep 2019 15:17:23 -0400 Subject: [PATCH 12/12] Update README --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 02310dc8..5095e76d 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,7 @@ For examples on how to use this, check out the [gajira-demo](https://github.com/ > ##### Note: this action requires [Jira Login Action](https://github.com/marketplace/actions/jira-login) To find an issue key inside commit messages: -``` -- name: Login - uses: atlassian/gajira-login@master - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - +```yaml - name: Find in commit messages uses: atlassian/gajira-find-issue-key@master with: