From a64a1dc5e1216ebe394ddde3b8d6cbcdb708f313 Mon Sep 17 00:00:00 2001 From: Automated Date: Wed, 7 Dec 2022 09:13:10 +0000 Subject: [PATCH] Rebuild --- dist/index.js | 1139 ++++++++++++++++++++++--------------------------- 1 file changed, 502 insertions(+), 637 deletions(-) diff --git a/dist/index.js b/dist/index.js index 30b1009..91db75d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,32 @@ +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __esm = (fn, res) => function __init() { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; +}; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // node_modules/semver/internal/constants.js var require_constants = __commonJS({ @@ -133,31 +158,31 @@ var require_semver = __commonJS({ var parseOptions = require_parse_options(); var { compareIdentifiers } = require_identifiers(); var SemVer = class { - constructor(version, options) { + constructor(version2, options) { options = parseOptions(options); - if (version instanceof SemVer) { - if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) { - return version; + if (version2 instanceof SemVer) { + if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) { + return version2; } else { - version = version.version; + version2 = version2.version; } - } else if (typeof version !== "string") { - throw new TypeError(`Invalid Version: ${version}`); + } else if (typeof version2 !== "string") { + throw new TypeError(`Invalid Version: ${version2}`); } - if (version.length > MAX_LENGTH) { + if (version2.length > MAX_LENGTH) { throw new TypeError( `version is longer than ${MAX_LENGTH} characters` ); } - debug("SemVer", version, options); + debug("SemVer", version2, options); this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); + const m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); if (!m) { - throw new TypeError(`Invalid Version: ${version}`); + throw new TypeError(`Invalid Version: ${version2}`); } - this.raw = version; + this.raw = version2; this.major = +m[1]; this.minor = +m[2]; this.patch = +m[3]; @@ -357,37 +382,37 @@ var require_parse = __commonJS({ var { re, t } = require_re(); var SemVer = require_semver(); var parseOptions = require_parse_options(); - var parse = (version, options) => { + var parse2 = (version2, options) => { options = parseOptions(options); - if (version instanceof SemVer) { - return version; + if (version2 instanceof SemVer) { + return version2; } - if (typeof version !== "string") { + if (typeof version2 !== "string") { return null; } - if (version.length > MAX_LENGTH) { + if (version2.length > MAX_LENGTH) { return null; } const r = options.loose ? re[t.LOOSE] : re[t.FULL]; - if (!r.test(version)) { + if (!r.test(version2)) { return null; } try { - return new SemVer(version, options); + return new SemVer(version2, options); } catch (er) { return null; } }; - module2.exports = parse; + module2.exports = parse2; } }); // node_modules/semver/functions/valid.js var require_valid = __commonJS({ "node_modules/semver/functions/valid.js"(exports, module2) { - var parse = require_parse(); - var valid = (version, options) => { - const v = parse(version, options); + var parse2 = require_parse(); + var valid = (version2, options) => { + const v = parse2(version2, options); return v ? v.version : null; }; module2.exports = valid; @@ -397,9 +422,9 @@ var require_valid = __commonJS({ // node_modules/semver/functions/clean.js var require_clean = __commonJS({ "node_modules/semver/functions/clean.js"(exports, module2) { - var parse = require_parse(); - var clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ""), options); + var parse2 = require_parse(); + var clean = (version2, options) => { + const s = parse2(version2.trim().replace(/^[=v]+/, ""), options); return s ? s.version : null; }; module2.exports = clean; @@ -410,14 +435,14 @@ var require_clean = __commonJS({ var require_inc = __commonJS({ "node_modules/semver/functions/inc.js"(exports, module2) { var SemVer = require_semver(); - var inc = (version, release, options, identifier) => { + var inc = (version2, release, options, identifier) => { if (typeof options === "string") { identifier = options; options = void 0; } try { return new SemVer( - version instanceof SemVer ? version.version : version, + version2 instanceof SemVer ? version2.version : version2, options ).inc(release, identifier).version; } catch (er) { @@ -449,20 +474,20 @@ var require_eq = __commonJS({ // node_modules/semver/functions/diff.js var require_diff = __commonJS({ "node_modules/semver/functions/diff.js"(exports, module2) { - var parse = require_parse(); + var parse2 = require_parse(); var eq = require_eq(); var diff = (version1, version2) => { if (eq(version1, version2)) { return null; } else { - const v1 = parse(version1); - const v2 = parse(version2); - const hasPre = v1.prerelease.length || v2.prerelease.length; + const v12 = parse2(version1); + const v2 = parse2(version2); + const hasPre = v12.prerelease.length || v2.prerelease.length; const prefix = hasPre ? "pre" : ""; const defaultResult = hasPre ? "prerelease" : ""; - for (const key in v1) { + for (const key in v12) { if (key === "major" || key === "minor" || key === "patch") { - if (v1[key] !== v2[key]) { + if (v12[key] !== v2[key]) { return prefix + key; } } @@ -504,9 +529,9 @@ var require_patch = __commonJS({ // node_modules/semver/functions/prerelease.js var require_prerelease = __commonJS({ "node_modules/semver/functions/prerelease.js"(exports, module2) { - var parse = require_parse(); - var prerelease = (version, options) => { - const parsed = parse(version, options); + var parse2 = require_parse(); + var prerelease = (version2, options) => { + const parsed = parse2(version2, options); return parsed && parsed.prerelease.length ? parsed.prerelease : null; }; module2.exports = prerelease; @@ -660,25 +685,25 @@ var require_cmp = __commonJS({ var require_coerce = __commonJS({ "node_modules/semver/functions/coerce.js"(exports, module2) { var SemVer = require_semver(); - var parse = require_parse(); + var parse2 = require_parse(); var { re, t } = require_re(); - var coerce = (version, options) => { - if (version instanceof SemVer) { - return version; + var coerce = (version2, options) => { + if (version2 instanceof SemVer) { + return version2; } - if (typeof version === "number") { - version = String(version); + if (typeof version2 === "number") { + version2 = String(version2); } - if (typeof version !== "string") { + if (typeof version2 !== "string") { return null; } options = options || {}; let match = null; if (!options.rtl) { - match = version.match(re[t.COERCE]); + match = version2.match(re[t.COERCE]); } else { let next; - while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { + while ((next = re[t.COERCERTL].exec(version2)) && (!match || match.index + match[0].length !== version2.length)) { if (!match || next.index + next[0].length !== match.index + match[0].length) { match = next; } @@ -689,7 +714,7 @@ var require_coerce = __commonJS({ if (match === null) { return null; } - return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options); + return parse2(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options); }; module2.exports = coerce; } @@ -1452,19 +1477,19 @@ var require_range = __commonJS({ }); }); } - test(version) { - if (!version) { + test(version2) { + if (!version2) { return false; } - if (typeof version === "string") { + if (typeof version2 === "string") { try { - version = new SemVer(version, this.options); + version2 = new SemVer(version2, this.options); } catch (er) { return false; } } for (let i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { + if (testSet(this.set[i], version2, this.options)) { return true; } } @@ -1679,13 +1704,13 @@ var require_range = __commonJS({ } return `${from} ${to}`.trim(); }; - var testSet = (set, version, options) => { + var testSet = (set, version2, options) => { for (let i = 0; i < set.length; i++) { - if (!set[i].test(version)) { + if (!set[i].test(version2)) { return false; } } - if (version.prerelease.length && !options.includePrerelease) { + if (version2.prerelease.length && !options.includePrerelease) { for (let i = 0; i < set.length; i++) { debug(set[i].semver); if (set[i].semver === Comparator.ANY) { @@ -1693,7 +1718,7 @@ var require_range = __commonJS({ } if (set[i].semver.prerelease.length > 0) { const allowed = set[i].semver; - if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) { + if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) { return true; } } @@ -1752,19 +1777,19 @@ var require_comparator = __commonJS({ toString() { return this.value; } - test(version) { - debug("Comparator.test", version, this.options.loose); - if (this.semver === ANY || version === ANY) { + test(version2) { + debug("Comparator.test", version2, this.options.loose); + if (this.semver === ANY || version2 === ANY) { return true; } - if (typeof version === "string") { + if (typeof version2 === "string") { try { - version = new SemVer(version, this.options); + version2 = new SemVer(version2, this.options); } catch (er) { return false; } } - return cmp(version, this.operator, this.semver, this.options); + return cmp(version2, this.operator, this.semver, this.options); } intersects(comp, options) { if (!(comp instanceof Comparator)) { @@ -1810,13 +1835,13 @@ var require_comparator = __commonJS({ var require_satisfies = __commonJS({ "node_modules/semver/functions/satisfies.js"(exports, module2) { var Range = require_range(); - var satisfies = (version, range, options) => { + var satisfies = (version2, range, options) => { try { range = new Range(range, options); } catch (er) { return false; } - return range.test(version); + return range.test(version2); }; module2.exports = satisfies; } @@ -1970,8 +1995,8 @@ var require_outside = __commonJS({ var lt = require_lt(); var lte = require_lte(); var gte = require_gte(); - var outside = (version, range, hilo, options) => { - version = new SemVer(version, options); + var outside = (version2, range, hilo, options) => { + version2 = new SemVer(version2, options); range = new Range(range, options); let gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { @@ -1992,7 +2017,7 @@ var require_outside = __commonJS({ default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } - if (satisfies(version, range, options)) { + if (satisfies(version2, range, options)) { return false; } for (let i = 0; i < range.set.length; ++i) { @@ -2014,9 +2039,9 @@ var require_outside = __commonJS({ if (high.operator === comp || high.operator === ecomp) { return false; } - if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) { + if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) { return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { + } else if (low.operator === ecomp && ltfn(version2, low.semver)) { return false; } } @@ -2030,7 +2055,7 @@ var require_outside = __commonJS({ var require_gtr = __commonJS({ "node_modules/semver/ranges/gtr.js"(exports, module2) { var outside = require_outside(); - var gtr = (version, range, options) => outside(version, range, ">", options); + var gtr = (version2, range, options) => outside(version2, range, ">", options); module2.exports = gtr; } }); @@ -2039,7 +2064,7 @@ var require_gtr = __commonJS({ var require_ltr = __commonJS({ "node_modules/semver/ranges/ltr.js"(exports, module2) { var outside = require_outside(); - var ltr = (version, range, options) => outside(version, range, "<", options); + var ltr = (version2, range, options) => outside(version2, range, "<", options); module2.exports = ltr; } }); @@ -2067,12 +2092,12 @@ var require_simplify = __commonJS({ let first = null; let prev = null; const v = versions.sort((a, b) => compare(a, b, options)); - for (const version of v) { - const included = satisfies(version, range, options); + for (const version2 of v) { + const included = satisfies(version2, range, options); if (included) { - prev = version; + prev = version2; if (!first) { - first = version; + first = version2; } } else { if (prev) { @@ -2273,7 +2298,7 @@ var require_semver2 = __commonJS({ var constants = require_constants(); var SemVer = require_semver(); var identifiers = require_identifiers(); - var parse = require_parse(); + var parse2 = require_parse(); var valid = require_valid(); var clean = require_clean(); var inc = require_inc(); @@ -2311,7 +2336,7 @@ var require_semver2 = __commonJS({ var simplifyRange = require_simplify(); var subset = require_subset(); module2.exports = { - parse, + parse: parse2, valid, clean, inc, @@ -2478,494 +2503,336 @@ var require_command = __commonJS({ } }); -// node_modules/uuid/dist/rng.js -var require_rng = __commonJS({ - "node_modules/uuid/dist/rng.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = rng; - var _crypto = _interopRequireDefault(require("crypto")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rnds8Pool = new Uint8Array(256); - var poolPtr = rnds8Pool.length; - function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); - } +// node_modules/uuid/dist/esm-node/rng.js +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + import_crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} +var import_crypto, rnds8Pool, poolPtr; +var init_rng = __esm({ + "node_modules/uuid/dist/esm-node/rng.js"() { + import_crypto = __toESM(require("crypto")); + rnds8Pool = new Uint8Array(256); + poolPtr = rnds8Pool.length; } }); -// node_modules/uuid/dist/regex.js -var require_regex = __commonJS({ - "node_modules/uuid/dist/regex.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; - exports.default = _default; +// node_modules/uuid/dist/esm-node/regex.js +var regex_default; +var init_regex = __esm({ + "node_modules/uuid/dist/esm-node/regex.js"() { + regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; } }); -// node_modules/uuid/dist/validate.js -var require_validate = __commonJS({ - "node_modules/uuid/dist/validate.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _regex = _interopRequireDefault(require_regex()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function validate(uuid) { - return typeof uuid === "string" && _regex.default.test(uuid); - } - var _default = validate; - exports.default = _default; +// node_modules/uuid/dist/esm-node/validate.js +function validate(uuid) { + return typeof uuid === "string" && regex_default.test(uuid); +} +var validate_default; +var init_validate = __esm({ + "node_modules/uuid/dist/esm-node/validate.js"() { + init_regex(); + validate_default = validate; } }); -// node_modules/uuid/dist/stringify.js -var require_stringify = __commonJS({ - "node_modules/uuid/dist/stringify.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var byteToHex = []; +// node_modules/uuid/dist/esm-node/stringify.js +function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!validate_default(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; +} +var byteToHex, stringify_default; +var init_stringify = __esm({ + "node_modules/uuid/dist/esm-node/stringify.js"() { + init_validate(); + byteToHex = []; for (let i = 0; i < 256; ++i) { byteToHex.push((i + 256).toString(16).substr(1)); } - function stringify(arr, offset = 0) { - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); - if (!(0, _validate.default)(uuid)) { - throw TypeError("Stringified UUID is invalid"); - } - return uuid; - } - var _default = stringify; - exports.default = _default; + stringify_default = stringify; } }); -// node_modules/uuid/dist/v1.js -var require_v1 = __commonJS({ - "node_modules/uuid/dist/v1.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +// node_modules/uuid/dist/esm-node/v1.js +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || rng)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; } - var _nodeId; - var _clockseq; - var _lastMSecs = 0; - var _lastNSecs = 0; - function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - if (node == null) { - node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - if (clockseq == null) { - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) { - clockseq = clockseq + 1 & 16383; - } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { - nsecs = 0; - } - if (nsecs >= 1e4) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i++] = tl >>> 24 & 255; - b[i++] = tl >>> 16 & 255; - b[i++] = tl >>> 8 & 255; - b[i++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i++] = tmh >>> 8 & 255; - b[i++] = tmh & 255; - b[i++] = tmh >>> 24 & 15 | 16; - b[i++] = tmh >>> 16 & 255; - b[i++] = clockseq >>> 8 | 128; - b[i++] = clockseq & 255; - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || (0, _stringify.default)(b); + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; } - var _default = v1; - exports.default = _default; + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || stringify_default(b); +} +var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; +var init_v1 = __esm({ + "node_modules/uuid/dist/esm-node/v1.js"() { + init_rng(); + init_stringify(); + _lastMSecs = 0; + _lastNSecs = 0; + v1_default = v1; } }); -// node_modules/uuid/dist/parse.js -var require_parse2 = __commonJS({ - "node_modules/uuid/dist/parse.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError("Invalid UUID"); - } - let v; - const arr = new Uint8Array(16); - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 255; - arr[2] = v >>> 8 & 255; - arr[3] = v & 255; - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 255; - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 255; - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 255; - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v / 4294967296 & 255; - arr[12] = v >>> 24 & 255; - arr[13] = v >>> 16 & 255; - arr[14] = v >>> 8 & 255; - arr[15] = v & 255; - return arr; - } - var _default = parse; - exports.default = _default; +// node_modules/uuid/dist/esm-node/parse.js +function parse(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + let v; + const arr = new Uint8Array(16); + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; + return arr; +} +var parse_default; +var init_parse = __esm({ + "node_modules/uuid/dist/esm-node/parse.js"() { + init_validate(); + parse_default = parse; } }); -// node_modules/uuid/dist/v35.js -var require_v35 = __commonJS({ - "node_modules/uuid/dist/v35.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = _default; - exports.URL = exports.DNS = void 0; - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse2()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +// node_modules/uuid/dist/esm-node/v35.js +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; +} +function v35_default(name, version2, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); } - function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; + if (typeof namespace === "string") { + namespace = parse_default(namespace); } - var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; - exports.DNS = DNS; - var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; - exports.URL = URL2; - function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === "string") { - value = stringToBytes(value); - } - if (typeof namespace === "string") { - namespace = (0, _parse.default)(namespace); - } - if (namespace.length !== 16) { - throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); - } - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.default)(bytes); - } - try { - generateUUID.name = name; - } catch (err) { - } - generateUUID.DNS = DNS; - generateUUID.URL = URL2; - return generateUUID; + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version2; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return stringify_default(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; +} +var DNS, URL2; +var init_v35 = __esm({ + "node_modules/uuid/dist/esm-node/v35.js"() { + init_stringify(); + init_parse(); + DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; } }); -// node_modules/uuid/dist/md5.js -var require_md5 = __commonJS({ - "node_modules/uuid/dist/md5.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _crypto = _interopRequireDefault(require("crypto")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); - } - return _crypto.default.createHash("md5").update(bytes).digest(); - } - var _default = md5; - exports.default = _default; +// node_modules/uuid/dist/esm-node/md5.js +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto2.default.createHash("md5").update(bytes).digest(); +} +var import_crypto2, md5_default; +var init_md5 = __esm({ + "node_modules/uuid/dist/esm-node/md5.js"() { + import_crypto2 = __toESM(require("crypto")); + md5_default = md5; } }); -// node_modules/uuid/dist/v3.js -var require_v3 = __commonJS({ - "node_modules/uuid/dist/v3.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _md = _interopRequireDefault(require_md5()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v3 = (0, _v.default)("v3", 48, _md.default); - var _default = v3; - exports.default = _default; +// node_modules/uuid/dist/esm-node/v3.js +var v3, v3_default; +var init_v3 = __esm({ + "node_modules/uuid/dist/esm-node/v3.js"() { + init_v35(); + init_md5(); + v3 = v35_default("v3", 48, md5_default); + v3_default = v3; } }); -// node_modules/uuid/dist/v4.js -var require_v4 = __commonJS({ - "node_modules/uuid/dist/v4.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +// node_modules/uuid/dist/esm-node/v4.js +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; } - function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || _rng.default)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, _stringify.default)(rnds); - } - var _default = v4; - exports.default = _default; + return buf; + } + return stringify_default(rnds); +} +var v4_default; +var init_v4 = __esm({ + "node_modules/uuid/dist/esm-node/v4.js"() { + init_rng(); + init_stringify(); + v4_default = v4; } }); -// node_modules/uuid/dist/sha1.js -var require_sha1 = __commonJS({ - "node_modules/uuid/dist/sha1.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _crypto = _interopRequireDefault(require("crypto")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); - } - return _crypto.default.createHash("sha1").update(bytes).digest(); - } - var _default = sha1; - exports.default = _default; +// node_modules/uuid/dist/esm-node/sha1.js +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto3.default.createHash("sha1").update(bytes).digest(); +} +var import_crypto3, sha1_default; +var init_sha1 = __esm({ + "node_modules/uuid/dist/esm-node/sha1.js"() { + import_crypto3 = __toESM(require("crypto")); + sha1_default = sha1; } }); -// node_modules/uuid/dist/v5.js -var require_v5 = __commonJS({ - "node_modules/uuid/dist/v5.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _sha = _interopRequireDefault(require_sha1()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v5 = (0, _v.default)("v5", 80, _sha.default); - var _default = v5; - exports.default = _default; +// node_modules/uuid/dist/esm-node/v5.js +var v5, v5_default; +var init_v5 = __esm({ + "node_modules/uuid/dist/esm-node/v5.js"() { + init_v35(); + init_sha1(); + v5 = v35_default("v5", 80, sha1_default); + v5_default = v5; } }); -// node_modules/uuid/dist/nil.js -var require_nil = __commonJS({ - "node_modules/uuid/dist/nil.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _default = "00000000-0000-0000-0000-000000000000"; - exports.default = _default; +// node_modules/uuid/dist/esm-node/nil.js +var nil_default; +var init_nil = __esm({ + "node_modules/uuid/dist/esm-node/nil.js"() { + nil_default = "00000000-0000-0000-0000-000000000000"; } }); -// node_modules/uuid/dist/version.js -var require_version = __commonJS({ - "node_modules/uuid/dist/version.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError("Invalid UUID"); - } - return parseInt(uuid.substr(14, 1), 16); - } - var _default = version; - exports.default = _default; +// node_modules/uuid/dist/esm-node/version.js +function version(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); +} +var version_default; +var init_version = __esm({ + "node_modules/uuid/dist/esm-node/version.js"() { + init_validate(); + version_default = version; } }); -// node_modules/uuid/dist/index.js -var require_dist = __commonJS({ - "node_modules/uuid/dist/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "v1", { - enumerable: true, - get: function() { - return _v.default; - } - }); - Object.defineProperty(exports, "v3", { - enumerable: true, - get: function() { - return _v2.default; - } - }); - Object.defineProperty(exports, "v4", { - enumerable: true, - get: function() { - return _v3.default; - } - }); - Object.defineProperty(exports, "v5", { - enumerable: true, - get: function() { - return _v4.default; - } - }); - Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function() { - return _nil.default; - } - }); - Object.defineProperty(exports, "version", { - enumerable: true, - get: function() { - return _version.default; - } - }); - Object.defineProperty(exports, "validate", { - enumerable: true, - get: function() { - return _validate.default; - } - }); - Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function() { - return _stringify.default; - } - }); - Object.defineProperty(exports, "parse", { - enumerable: true, - get: function() { - return _parse.default; - } - }); - var _v = _interopRequireDefault(require_v1()); - var _v2 = _interopRequireDefault(require_v3()); - var _v3 = _interopRequireDefault(require_v4()); - var _v4 = _interopRequireDefault(require_v5()); - var _nil = _interopRequireDefault(require_nil()); - var _version = _interopRequireDefault(require_version()); - var _validate = _interopRequireDefault(require_validate()); - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse2()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } +// node_modules/uuid/dist/esm-node/index.js +var esm_node_exports = {}; +__export(esm_node_exports, { + NIL: () => nil_default, + parse: () => parse_default, + stringify: () => stringify_default, + v1: () => v1_default, + v3: () => v3_default, + v4: () => v4_default, + v5: () => v5_default, + validate: () => validate_default, + version: () => version_default +}); +var init_esm_node = __esm({ + "node_modules/uuid/dist/esm-node/index.js"() { + init_v1(); + init_v3(); + init_v4(); + init_v5(); + init_nil(); + init_version(); + init_validate(); + init_stringify(); + init_parse(); } }); @@ -3005,7 +2872,7 @@ var require_file_command = __commonJS({ exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; var fs = __importStar(require("fs")); var os2 = __importStar(require("os")); - var uuid_1 = require_dist(); + var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); var utils_1 = require_utils(); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; @@ -5092,74 +4959,74 @@ var require_semver3 = __commonJS({ } } var i; - exports.parse = parse; - function parse(version, options) { + exports.parse = parse2; + function parse2(version2, options) { if (!options || typeof options !== "object") { options = { loose: !!options, includePrerelease: false }; } - if (version instanceof SemVer) { - return version; + if (version2 instanceof SemVer) { + return version2; } - if (typeof version !== "string") { + if (typeof version2 !== "string") { return null; } - if (version.length > MAX_LENGTH) { + if (version2.length > MAX_LENGTH) { return null; } var r = options.loose ? re[t.LOOSE] : re[t.FULL]; - if (!r.test(version)) { + if (!r.test(version2)) { return null; } try { - return new SemVer(version, options); + return new SemVer(version2, options); } catch (er) { return null; } } exports.valid = valid; - function valid(version, options) { - var v = parse(version, options); + function valid(version2, options) { + var v = parse2(version2, options); return v ? v.version : null; } exports.clean = clean; - function clean(version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ""), options); + function clean(version2, options) { + var s = parse2(version2.trim().replace(/^[=v]+/, ""), options); return s ? s.version : null; } exports.SemVer = SemVer; - function SemVer(version, options) { + function SemVer(version2, options) { if (!options || typeof options !== "object") { options = { loose: !!options, includePrerelease: false }; } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version; + if (version2 instanceof SemVer) { + if (version2.loose === options.loose) { + return version2; } else { - version = version.version; + version2 = version2.version; } - } else if (typeof version !== "string") { - throw new TypeError("Invalid Version: " + version); + } else if (typeof version2 !== "string") { + throw new TypeError("Invalid Version: " + version2); } - if (version.length > MAX_LENGTH) { + if (version2.length > MAX_LENGTH) { throw new TypeError("version is longer than " + MAX_LENGTH + " characters"); } if (!(this instanceof SemVer)) { - return new SemVer(version, options); + return new SemVer(version2, options); } - debug("SemVer", version, options); + debug("SemVer", version2, options); this.options = options; this.loose = !!options.loose; - var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); + var m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); if (!m) { - throw new TypeError("Invalid Version: " + version); + throw new TypeError("Invalid Version: " + version2); } - this.raw = version; + this.raw = version2; this.major = +m[1]; this.minor = +m[2]; this.patch = +m[3]; @@ -5342,13 +5209,13 @@ var require_semver3 = __commonJS({ return this; }; exports.inc = inc; - function inc(version, release, loose, identifier) { + function inc(version2, release, loose, identifier) { if (typeof loose === "string") { identifier = loose; loose = void 0; } try { - return new SemVer(version, loose).inc(release, identifier).version; + return new SemVer(version2, loose).inc(release, identifier).version; } catch (er) { return null; } @@ -5358,16 +5225,16 @@ var require_semver3 = __commonJS({ if (eq(version1, version2)) { return null; } else { - var v1 = parse(version1); - var v2 = parse(version2); + var v12 = parse2(version1); + var v2 = parse2(version2); var prefix = ""; - if (v1.prerelease.length || v2.prerelease.length) { + if (v12.prerelease.length || v2.prerelease.length) { prefix = "pre"; var defaultResult = "prerelease"; } - for (var key in v1) { + for (var key in v12) { if (key === "major" || key === "minor" || key === "patch") { - if (v1[key] !== v2[key]) { + if (v12[key] !== v2[key]) { return prefix + key; } } @@ -5538,19 +5405,19 @@ var require_semver3 = __commonJS({ Comparator.prototype.toString = function() { return this.value; }; - Comparator.prototype.test = function(version) { - debug("Comparator.test", version, this.options.loose); - if (this.semver === ANY || version === ANY) { + Comparator.prototype.test = function(version2) { + debug("Comparator.test", version2, this.options.loose); + if (this.semver === ANY || version2 === ANY) { return true; } - if (typeof version === "string") { + if (typeof version2 === "string") { try { - version = new SemVer(version, this.options); + version2 = new SemVer(version2, this.options); } catch (er) { return false; } } - return cmp(version, this.operator, this.semver, this.options); + return cmp(version2, this.operator, this.semver, this.options); }; Comparator.prototype.intersects = function(comp, options) { if (!(comp instanceof Comparator)) { @@ -5861,31 +5728,31 @@ var require_semver3 = __commonJS({ } return (from + " " + to).trim(); } - Range.prototype.test = function(version) { - if (!version) { + Range.prototype.test = function(version2) { + if (!version2) { return false; } - if (typeof version === "string") { + if (typeof version2 === "string") { try { - version = new SemVer(version, this.options); + version2 = new SemVer(version2, this.options); } catch (er) { return false; } } for (var i2 = 0; i2 < this.set.length; i2++) { - if (testSet(this.set[i2], version, this.options)) { + if (testSet(this.set[i2], version2, this.options)) { return true; } } return false; }; - function testSet(set, version, options) { + function testSet(set, version2, options) { for (var i2 = 0; i2 < set.length; i2++) { - if (!set[i2].test(version)) { + if (!set[i2].test(version2)) { return false; } } - if (version.prerelease.length && !options.includePrerelease) { + if (version2.prerelease.length && !options.includePrerelease) { for (i2 = 0; i2 < set.length; i2++) { debug(set[i2].semver); if (set[i2].semver === ANY) { @@ -5893,7 +5760,7 @@ var require_semver3 = __commonJS({ } if (set[i2].semver.prerelease.length > 0) { var allowed = set[i2].semver; - if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) { + if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) { return true; } } @@ -5903,13 +5770,13 @@ var require_semver3 = __commonJS({ return true; } exports.satisfies = satisfies; - function satisfies(version, range, options) { + function satisfies(version2, range, options) { try { range = new Range(range, options); } catch (er) { return false; } - return range.test(version); + return range.test(version2); } exports.maxSatisfying = maxSatisfying; function maxSatisfying(versions, range, options) { @@ -6001,16 +5868,16 @@ var require_semver3 = __commonJS({ } } exports.ltr = ltr; - function ltr(version, range, options) { - return outside(version, range, "<", options); + function ltr(version2, range, options) { + return outside(version2, range, "<", options); } exports.gtr = gtr; - function gtr(version, range, options) { - return outside(version, range, ">", options); + function gtr(version2, range, options) { + return outside(version2, range, ">", options); } exports.outside = outside; - function outside(version, range, hilo, options) { - version = new SemVer(version, options); + function outside(version2, range, hilo, options) { + version2 = new SemVer(version2, options); range = new Range(range, options); var gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { @@ -6031,7 +5898,7 @@ var require_semver3 = __commonJS({ default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } - if (satisfies(version, range, options)) { + if (satisfies(version2, range, options)) { return false; } for (var i2 = 0; i2 < range.set.length; ++i2) { @@ -6053,17 +5920,17 @@ var require_semver3 = __commonJS({ if (high.operator === comp || high.operator === ecomp) { return false; } - if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) { + if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) { return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { + } else if (low.operator === ecomp && ltfn(version2, low.semver)) { return false; } } return true; } exports.prerelease = prerelease; - function prerelease(version, options) { - var parsed = parse(version, options); + function prerelease(version2, options) { + var parsed = parse2(version2, options); return parsed && parsed.prerelease.length ? parsed.prerelease : null; } exports.intersects = intersects; @@ -6073,23 +5940,23 @@ var require_semver3 = __commonJS({ return r1.intersects(r2); } exports.coerce = coerce; - function coerce(version, options) { - if (version instanceof SemVer) { - return version; + function coerce(version2, options) { + if (version2 instanceof SemVer) { + return version2; } - if (typeof version === "number") { - version = String(version); + if (typeof version2 === "number") { + version2 = String(version2); } - if (typeof version !== "string") { + if (typeof version2 !== "string") { return null; } options = options || {}; var match = null; if (!options.rtl) { - match = version.match(re[t.COERCE]); + match = version2.match(re[t.COERCE]); } else { var next; - while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { + while ((next = re[t.COERCERTL].exec(version2)) && (!match || match.index + match[0].length !== version2.length)) { if (!match || next.index + next[0].length !== match.index + match[0].length) { match = next; } @@ -6100,7 +5967,7 @@ var require_semver3 = __commonJS({ if (match === null) { return null; } - return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options); + return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options); } } }); @@ -6178,9 +6045,9 @@ var require_manifest = __commonJS({ let match; let file; for (const candidate of candidates) { - const version = candidate.version; - core_1.debug(`check ${version} satisfies ${versionSpec}`); - if (semver2.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) { + const version2 = candidate.version; + core_1.debug(`check ${version2} satisfies ${versionSpec}`); + if (semver2.satisfies(version2, versionSpec) && (!stable || candidate.stable === stable)) { file = candidate.files.find((item) => { core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`); let chk = item.arch === archFilter && item.platform === platFilter; @@ -6211,9 +6078,9 @@ var require_manifest = __commonJS({ exports._findMatch = _findMatch; function _getOsVersion() { const plat = os2.platform(); - let version = ""; + let version2 = ""; if (plat === "darwin") { - version = cp.execSync("sw_vers -productVersion").toString(); + version2 = cp.execSync("sw_vers -productVersion").toString(); } else if (plat === "linux") { const lsbContents = module2.exports._readLinuxVersionFile(); if (lsbContents) { @@ -6221,13 +6088,13 @@ var require_manifest = __commonJS({ for (const line of lines) { const parts = line.split("="); if (parts.length === 2 && (parts[0].trim() === "VERSION_ID" || parts[0].trim() === "DISTRIB_RELEASE")) { - version = parts[1].trim().replace(/^"/, "").replace(/"$/, ""); + version2 = parts[1].trim().replace(/^"/, "").replace(/"$/, ""); break; } } } } - return version; + return version2; } exports._getOsVersion = _getOsVersion; function _readLinuxVersionFile() { @@ -6246,11 +6113,11 @@ var require_manifest = __commonJS({ }); // node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js -var require_rng2 = __commonJS({ +var require_rng = __commonJS({ "node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js"(exports, module2) { - var crypto = require("crypto"); + var crypto4 = require("crypto"); module2.exports = function nodeRNG() { - return crypto.randomBytes(16); + return crypto4.randomBytes(16); }; } }); @@ -6258,14 +6125,14 @@ var require_rng2 = __commonJS({ // node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js var require_bytesToUuid = __commonJS({ "node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js"(exports, module2) { - var byteToHex = []; + var byteToHex2 = []; for (i = 0; i < 256; ++i) { - byteToHex[i] = (i + 256).toString(16).substr(1); + byteToHex2[i] = (i + 256).toString(16).substr(1); } var i; function bytesToUuid(buf, offset) { var i2 = offset || 0; - var bth = byteToHex; + var bth = byteToHex2; return [ bth[buf[i2++]], bth[buf[i2++]], @@ -6294,18 +6161,18 @@ var require_bytesToUuid = __commonJS({ }); // node_modules/@actions/tool-cache/node_modules/uuid/v4.js -var require_v42 = __commonJS({ +var require_v4 = __commonJS({ "node_modules/@actions/tool-cache/node_modules/uuid/v4.js"(exports, module2) { - var rng = require_rng2(); + var rng2 = require_rng(); var bytesToUuid = require_bytesToUuid(); - function v4(options, buf, offset) { + function v42(options, buf, offset) { var i = buf && offset || 0; if (typeof options == "string") { buf = options === "binary" ? new Array(16) : null; options = null; } options = options || {}; - var rnds = options.random || (options.rng || rng)(); + var rnds = options.random || (options.rng || rng2)(); rnds[6] = rnds[6] & 15 | 64; rnds[8] = rnds[8] & 63 | 128; if (buf) { @@ -6315,7 +6182,7 @@ var require_v42 = __commonJS({ } return buf || bytesToUuid(rnds); } - module2.exports = v4; + module2.exports = v42; } }); @@ -7093,7 +6960,7 @@ var require_tool_cache = __commonJS({ var stream = __importStar(require("stream")); var util = __importStar(require("util")); var assert_1 = require("assert"); - var v4_1 = __importDefault(require_v42()); + var v4_1 = __importDefault(require_v4()); var exec_1 = require_exec(); var retry_helper_1 = require_retry_helper(); var HTTPError = class extends Error { @@ -7362,39 +7229,39 @@ var require_tool_cache = __commonJS({ yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest }); }); } - function cacheDir(sourceDir, tool, version, arch) { + function cacheDir(sourceDir, tool, version2, arch) { return __awaiter(this, void 0, void 0, function* () { - version = semver2.clean(version) || version; + version2 = semver2.clean(version2) || version2; arch = arch || os2.arch(); - core.debug(`Caching tool ${tool} ${version} ${arch}`); + core.debug(`Caching tool ${tool} ${version2} ${arch}`); core.debug(`source dir: ${sourceDir}`); if (!fs.statSync(sourceDir).isDirectory()) { throw new Error("sourceDir is not a directory"); } - const destPath = yield _createToolPath(tool, version, arch); + const destPath = yield _createToolPath(tool, version2, arch); for (const itemName of fs.readdirSync(sourceDir)) { const s = path2.join(sourceDir, itemName); yield io.cp(s, destPath, { recursive: true }); } - _completeToolPath(tool, version, arch); + _completeToolPath(tool, version2, arch); return destPath; }); } exports.cacheDir = cacheDir; - function cacheFile(sourceFile, targetFile, tool, version, arch) { + function cacheFile(sourceFile, targetFile, tool, version2, arch) { return __awaiter(this, void 0, void 0, function* () { - version = semver2.clean(version) || version; + version2 = semver2.clean(version2) || version2; arch = arch || os2.arch(); - core.debug(`Caching tool ${tool} ${version} ${arch}`); + core.debug(`Caching tool ${tool} ${version2} ${arch}`); core.debug(`source file: ${sourceFile}`); if (!fs.statSync(sourceFile).isFile()) { throw new Error("sourceFile is not a file"); } - const destFolder = yield _createToolPath(tool, version, arch); + const destFolder = yield _createToolPath(tool, version2, arch); const destPath = path2.join(destFolder, targetFile); core.debug(`destination file ${destPath}`); yield io.cp(sourceFile, destPath); - _completeToolPath(tool, version, arch); + _completeToolPath(tool, version2, arch); return destFolder; }); } @@ -7496,9 +7363,9 @@ var require_tool_cache = __commonJS({ return dest; }); } - function _createToolPath(tool, version, arch) { + function _createToolPath(tool, version2, arch) { return __awaiter(this, void 0, void 0, function* () { - const folderPath = path2.join(_getCacheDirectory(), tool, semver2.clean(version) || version, arch || ""); + const folderPath = path2.join(_getCacheDirectory(), tool, semver2.clean(version2) || version2, arch || ""); core.debug(`destination ${folderPath}`); const markerPath = `${folderPath}.complete`; yield io.rmRF(folderPath); @@ -7507,8 +7374,8 @@ var require_tool_cache = __commonJS({ return folderPath; }); } - function _completeToolPath(tool, version, arch) { - const folderPath = path2.join(_getCacheDirectory(), tool, semver2.clean(version) || version, arch || ""); + function _completeToolPath(tool, version2, arch) { + const folderPath = path2.join(_getCacheDirectory(), tool, semver2.clean(version2) || version2, arch || ""); const markerPath = `${folderPath}.complete`; fs.writeFileSync(markerPath, ""); core.debug("finished caching tool"); @@ -7522,7 +7389,7 @@ var require_tool_cache = __commonJS({ } exports.isExplicitVersion = isExplicitVersion; function evaluateVersions(versions, versionSpec) { - let version = ""; + let version2 = ""; core.debug(`evaluating ${versions.length} versions`); versions = versions.sort((a, b) => { if (semver2.gt(a, b)) { @@ -7534,16 +7401,16 @@ var require_tool_cache = __commonJS({ const potential = versions[i]; const satisfied = semver2.satisfies(potential, versionSpec); if (satisfied) { - version = potential; + version2 = potential; break; } } - if (version) { - core.debug(`matched: ${version}`); + if (version2) { + core.debug(`matched: ${version2}`); } else { core.debug("match not found"); } - return version; + return version2; } exports.evaluateVersions = evaluateVersions; function _getCacheDirectory() { @@ -7905,15 +7772,15 @@ var require_versions = __commonJS({ win32: "zip" }[platform]; } - function resolveCommit2(platform, version) { + function resolveCommit2(platform, version2) { const ext = extForPlatform2(platform); const addrhost = { linux: "linux-x86_64", darwin: "macos-x86_64", win32: "windows-x86_64" }[platform]; - const downloadUrl = `https://ziglang.org/builds/zig-${addrhost}-${version}.${ext}`; - const variantName = `zig-${addrhost}-${version}`; + const downloadUrl = `https://ziglang.org/builds/zig-${addrhost}-${version2}.${ext}`; + const variantName = `zig-${addrhost}-${version2}`; return { downloadUrl, variantName }; } function getJSON(opts) { @@ -7927,7 +7794,7 @@ var require_versions = __commonJS({ }); }); } - async function resolveVersion2(platform, version) { + async function resolveVersion2(platform, version2) { const ext = extForPlatform2(platform); const host = { linux: "x86_64-linux", @@ -7936,10 +7803,10 @@ var require_versions = __commonJS({ }[platform] || platform; const index = await getJSON({ url: "https://ziglang.org/download/index.json" }); const availableVersions = Object.keys(index); - const useVersion = semver2.valid(version) ? semver2.maxSatisfying(availableVersions.filter((v) => semver2.valid(v)), version) : null; - const meta = index[useVersion || version]; + const useVersion = semver2.valid(version2) ? semver2.maxSatisfying(availableVersions.filter((v) => semver2.valid(v)), version2) : null; + const meta = index[useVersion || version2]; if (!meta || !meta[host]) { - throw new Error(`Could not find version ${useVersion || version} for platform ${host}`); + throw new Error(`Could not find version ${useVersion || version2} for platform ${host}`); } const downloadUrl = meta[host].tarball; const variantName = path2.basename(meta[host].tarball).replace(`.${ext}`, ""); @@ -7964,9 +7831,9 @@ var { resolveCommit, resolveVersion } = require_versions(); -async function downloadZig(platform, version) { +async function downloadZig(platform, version2) { const ext = extForPlatform(platform); - const { downloadUrl, variantName } = version.includes("+") ? resolveCommit(platform, version) : await resolveVersion(platform, version); + const { downloadUrl, variantName } = version2.includes("+") ? resolveCommit(platform, version2) : await resolveVersion(platform, version2); const downloadPath = await cache.downloadTool(downloadUrl); const zigPath = ext === "zip" ? await cache.extractZip(downloadPath) : await cache.extractTar(downloadPath, void 0, "x"); const binPath = path.join(zigPath, variantName); @@ -7974,14 +7841,14 @@ async function downloadZig(platform, version) { return cachePath; } async function main() { - const version = actions.getInput("version") || "master"; - if (semver.valid(version) && semver.lt(version, "0.3.0")) { + const version2 = actions.getInput("version") || "master"; + if (semver.valid(version2) && semver.lt(version2, "0.3.0")) { actions.setFailed("This action does not work with Zig 0.1.0 and Zig 0.2.0"); return; } - let zigPath = cache.find("zig", version); + let zigPath = cache.find("zig", version2); if (!zigPath) { - zigPath = await downloadZig(os.platform(), version); + zigPath = await downloadZig(os.platform(), version2); } actions.addPath(zigPath); } @@ -7990,5 +7857,3 @@ main().catch((err) => { actions.setFailed(err.message); process.exit(1); }); -/*! simple-concat. MIT License. Feross Aboukhadijeh */ -/*! simple-get. MIT License. Feross Aboukhadijeh */