diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7ca62a..47ee357 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,7 +92,6 @@ jobs: uses: ./ with: cache: true - cache-hash: ${{ hashFiles('**/deno.lock') }} - name: Download dependencies for cache run: deno install --global --no-config npm:cowsay@1.6.0 @@ -110,7 +109,6 @@ jobs: uses: ./ with: cache: true - cache-hash: ${{ hashFiles('**/deno.lock') }} - name: Run with cached dependencies run: deno run --cached-only --no-config -RE npm:cowsay@1.6.0 "It works!" diff --git a/README.md b/README.md index 3b77bc8..4f276b8 100644 --- a/README.md +++ b/README.md @@ -144,20 +144,38 @@ number. ### Caching dependencies downloaded by Deno automatically -Dependencies installed by Deno can be cached automatically, which is similar to -the [`cache` option in `setup-node`](https://github.com/actions/setup-node). +Dependencies installed by Deno can be cached automatically between workflow +runs. This helps make your GH action run faster by not repeating caching work +and network requests done by a previous run. -To enable the cache, use `cache: true`. It's recommended to also add the -`cache-hash` property, to scope caches based on lockfile changes. +To enable the cache, use `cache: true`. ```yaml - uses: denoland/setup-deno@v2 with: cache: true - cache-hash: ${{ hashFiles('**/deno.lock') }} ``` > [!WARNING] > If an environment variable `DENO_DIR` is set for steps that run/download > dependencies, then `DENO_DIR` must also be set for the `denoland/setup-deno` > action, for the caching to work as intended. + +By default, the cache is automatically keyed by: + +- the github + [job_id](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_id) +- the runner os and architecture +- a hash of the `deno.lock` files in the project + +It is possible to customize the default hash +(`${{ hashFiles('**/deno.lock') }}`) used as part of the cache key via the +`cache-hash` input. + +```yaml +- uses: denoland/setup-deno@v2 + with: + # setting `cache-hash` implies `cache: true` and will replace + # the default cache-hash of `${{ hashFiles('**/deno.lock') }}` + cache-hash: ${{ hashFiles('**/deno.json') }} +``` diff --git a/action.yml b/action.yml index 75a3aab..9f4d68f 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,7 @@ inputs: description: Cache downloaded modules & packages automatically in GitHub Actions cache. default: "false" cache-hash: - description: A hash used as part of the cache key. Use e.g. `$\{{ hashFiles('**/deno.lock') }}` to cache based on the lockfile contents. + description: A hash used as part of the cache key, which defaults to a hash of the deno.lock files. outputs: cache-hit: description: A boolean indicating whether the cache was hit. diff --git a/deno.json b/deno.json index fc6019e..d405d8a 100644 --- a/deno.json +++ b/deno.json @@ -16,6 +16,7 @@ "imports": { "@actions/cache": "npm:@actions/cache@^4.0.3", "@actions/core": "npm:@actions/core@^1.11.1", + "@actions/glob": "npm:@actions/glob@^0.5.0", "@actions/tool-cache": "npm:@actions/tool-cache@^2.0.2", "@types/node": "npm:@types/node@^22.15.0", "@types/semver": "npm:@types/semver@^7.7.0", diff --git a/deno.lock b/deno.lock index edb3f25..9607cf5 100644 --- a/deno.lock +++ b/deno.lock @@ -3,6 +3,7 @@ "specifiers": { "npm:@actions/cache@^4.0.3": "4.0.3", "npm:@actions/core@^1.11.1": "1.11.1", + "npm:@actions/glob@0.5": "0.5.0", "npm:@actions/tool-cache@^2.0.2": "2.0.2", "npm:@types/node@*": "22.15.15", "npm:@types/node@^22.15.0": "22.15.17", @@ -17,7 +18,7 @@ "dependencies": [ "@actions/core", "@actions/exec", - "@actions/glob", + "@actions/glob@0.1.2", "@actions/http-client", "@actions/io", "@azure/abort-controller@1.1.0", @@ -47,6 +48,13 @@ "minimatch" ] }, + "@actions/glob@0.5.0": { + "integrity": "sha512-tST2rjPvJLRZLuT9NMUtyBjvj9Yo0MiJS3ow004slMvm8GFM+Zv9HvMJ7HWzfUyJnGrJvDsYkWBaaG3YKXRtCw==", + "dependencies": [ + "@actions/core", + "minimatch" + ] + }, "@actions/http-client@2.2.3": { "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", "dependencies": [ @@ -1083,6 +1091,7 @@ "dependencies": [ "npm:@actions/cache@^4.0.3", "npm:@actions/core@^1.11.1", + "npm:@actions/glob@0.5", "npm:@actions/tool-cache@^2.0.2", "npm:@types/node@^22.15.0", "npm:@types/semver@^7.7.0", diff --git a/dist/cache-ByPW8-iO.mjs b/dist/cache-ByPW8-iO.mjs deleted file mode 100644 index 6feff8d..0000000 --- a/dist/cache-ByPW8-iO.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import "./semver-DmxAwBYV.mjs"; -import { restoreCache, saveCache } from "./cache-DzONlZ-I.mjs"; - -export { restoreCache }; \ No newline at end of file diff --git a/dist/cache-D7LLZXo3.mjs b/dist/cache-D7LLZXo3.mjs new file mode 100644 index 0000000..29d9af0 --- /dev/null +++ b/dist/cache-D7LLZXo3.mjs @@ -0,0 +1,4 @@ +import "./semver-DmxAwBYV.mjs"; +import { restoreCache, saveCache } from "./cache-zjpbixka.mjs"; + +export { restoreCache }; \ No newline at end of file diff --git a/dist/cache-DzONlZ-I.mjs b/dist/cache-zjpbixka.mjs similarity index 95% rename from dist/cache-DzONlZ-I.mjs rename to dist/cache-zjpbixka.mjs index cea3105..00a2af6 100644 --- a/dist/cache-DzONlZ-I.mjs +++ b/dist/cache-zjpbixka.mjs @@ -2,8 +2,8 @@ import { __commonJS, __require, __toESM, import_core, require_auth, require_core import process$1 from "node:process"; //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-glob-options-helper.js -var require_internal_glob_options_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-glob-options-helper.js"(exports) { - var __createBinding$18 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_glob_options_helper$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-glob-options-helper.js"(exports) { + var __createBinding$25 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -15,7 +15,7 @@ var require_internal_glob_options_helper = __commonJS({ "node_modules/.deno/@act if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$17 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$24 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -23,22 +23,22 @@ var require_internal_glob_options_helper = __commonJS({ "node_modules/.deno/@act } : function(o, v) { o["default"] = v; }); - var __importStar$18 = exports && exports.__importStar || function(mod) { + var __importStar$25 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$18(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$25(result, mod, k); } - __setModuleDefault$17(result, mod); + __setModuleDefault$24(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getOptions = void 0; - const core$8 = __importStar$18(require_core()); + const core$11 = __importStar$25(require_core()); /** * Returns a copy with defaults filled in. */ - function getOptions(copy$1) { + function getOptions$1(copy$1) { const result = { followSymbolicLinks: true, implicitDescendants: true, @@ -47,26 +47,26 @@ var require_internal_glob_options_helper = __commonJS({ "node_modules/.deno/@act if (copy$1) { if (typeof copy$1.followSymbolicLinks === "boolean") { result.followSymbolicLinks = copy$1.followSymbolicLinks; - core$8.debug(`followSymbolicLinks '${result.followSymbolicLinks}'`); + core$11.debug(`followSymbolicLinks '${result.followSymbolicLinks}'`); } if (typeof copy$1.implicitDescendants === "boolean") { result.implicitDescendants = copy$1.implicitDescendants; - core$8.debug(`implicitDescendants '${result.implicitDescendants}'`); + core$11.debug(`implicitDescendants '${result.implicitDescendants}'`); } if (typeof copy$1.omitBrokenSymbolicLinks === "boolean") { result.omitBrokenSymbolicLinks = copy$1.omitBrokenSymbolicLinks; - core$8.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); + core$11.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); } } return result; } - exports.getOptions = getOptions; + exports.getOptions = getOptions$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path-helper.js -var require_internal_path_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path-helper.js"(exports) { - var __createBinding$17 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_path_helper$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path-helper.js"(exports) { + var __createBinding$24 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -78,7 +78,7 @@ var require_internal_path_helper = __commonJS({ "node_modules/.deno/@actions+glo if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$16 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$23 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -86,23 +86,23 @@ var require_internal_path_helper = __commonJS({ "node_modules/.deno/@actions+glo } : function(o, v) { o["default"] = v; }); - var __importStar$17 = exports && exports.__importStar || function(mod) { + var __importStar$24 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$17(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$24(result, mod, k); } - __setModuleDefault$16(result, mod); + __setModuleDefault$23(result, mod); return result; }; - var __importDefault$6 = exports && exports.__importDefault || function(mod) { + var __importDefault$9 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0; - const path$7 = __importStar$17(__require("path")); - const assert_1$8 = __importDefault$6(__require("assert")); - const IS_WINDOWS$5 = process.platform === "win32"; + const path$12 = __importStar$24(__require("path")); + const assert_1$11 = __importDefault$9(__require("assert")); + const IS_WINDOWS$10 = process.platform === "win32"; /** * Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths. * @@ -120,118 +120,118 @@ var require_internal_path_helper = __commonJS({ "node_modules/.deno/@actions+glo * - `\\hello => \\hello` * - `\\hello\world => \\hello\world` */ - function dirname(p) { - p = safeTrimTrailingSeparator(p); - if (IS_WINDOWS$5 && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p)) return p; - let result = path$7.dirname(p); - if (IS_WINDOWS$5 && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) result = safeTrimTrailingSeparator(result); + function dirname$1(p) { + p = safeTrimTrailingSeparator$1(p); + if (IS_WINDOWS$10 && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p)) return p; + let result = path$12.dirname(p); + if (IS_WINDOWS$10 && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) result = safeTrimTrailingSeparator$1(result); return result; } - exports.dirname = dirname; + exports.dirname = dirname$1; /** * Roots the path if not already rooted. On Windows, relative roots like `\` * or `C:` are expanded based on the current working directory. */ - function ensureAbsoluteRoot(root, itemPath) { - assert_1$8.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); - assert_1$8.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); - if (hasAbsoluteRoot(itemPath)) return itemPath; - if (IS_WINDOWS$5) { + function ensureAbsoluteRoot$1(root, itemPath) { + assert_1$11.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); + assert_1$11.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); + if (hasAbsoluteRoot$1(itemPath)) return itemPath; + if (IS_WINDOWS$10) { if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { let cwd = process.cwd(); - assert_1$8.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + assert_1$11.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) if (itemPath.length === 2) return `${itemPath[0]}:\\${cwd.substr(3)}`; else { if (!cwd.endsWith("\\")) cwd += "\\"; return `${itemPath[0]}:\\${cwd.substr(3)}${itemPath.substr(2)}`; } else return `${itemPath[0]}:\\${itemPath.substr(2)}`; - } else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { + } else if (normalizeSeparators$1(itemPath).match(/^\\$|^\\[^\\]/)) { const cwd = process.cwd(); - assert_1$8.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + assert_1$11.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); return `${cwd[0]}:\\${itemPath.substr(1)}`; } } - assert_1$8.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); - if (root.endsWith("/") || IS_WINDOWS$5 && root.endsWith("\\")) {} else root += path$7.sep; + assert_1$11.default(hasAbsoluteRoot$1(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); + if (root.endsWith("/") || IS_WINDOWS$10 && root.endsWith("\\")) {} else root += path$12.sep; return root + itemPath; } - exports.ensureAbsoluteRoot = ensureAbsoluteRoot; + exports.ensureAbsoluteRoot = ensureAbsoluteRoot$1; /** * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: * `\\hello\share` and `C:\hello` (and using alternate separator). */ - function hasAbsoluteRoot(itemPath) { - assert_1$8.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); - itemPath = normalizeSeparators(itemPath); - if (IS_WINDOWS$5) return itemPath.startsWith("\\\\") || /^[A-Z]:\\/i.test(itemPath); + function hasAbsoluteRoot$1(itemPath) { + assert_1$11.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); + itemPath = normalizeSeparators$1(itemPath); + if (IS_WINDOWS$10) return itemPath.startsWith("\\\\") || /^[A-Z]:\\/i.test(itemPath); return itemPath.startsWith("/"); } - exports.hasAbsoluteRoot = hasAbsoluteRoot; + exports.hasAbsoluteRoot = hasAbsoluteRoot$1; /** * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator). */ - function hasRoot(itemPath) { - assert_1$8.default(itemPath, `isRooted parameter 'itemPath' must not be empty`); - itemPath = normalizeSeparators(itemPath); - if (IS_WINDOWS$5) return itemPath.startsWith("\\") || /^[A-Z]:/i.test(itemPath); + function hasRoot$1(itemPath) { + assert_1$11.default(itemPath, `isRooted parameter 'itemPath' must not be empty`); + itemPath = normalizeSeparators$1(itemPath); + if (IS_WINDOWS$10) return itemPath.startsWith("\\") || /^[A-Z]:/i.test(itemPath); return itemPath.startsWith("/"); } - exports.hasRoot = hasRoot; + exports.hasRoot = hasRoot$1; /** * Removes redundant slashes and converts `/` to `\` on Windows */ - function normalizeSeparators(p) { + function normalizeSeparators$1(p) { p = p || ""; - if (IS_WINDOWS$5) { + if (IS_WINDOWS$10) { p = p.replace(/\//g, "\\"); const isUnc = /^\\\\+[^\\]/.test(p); return (isUnc ? "\\" : "") + p.replace(/\\\\+/g, "\\"); } return p.replace(/\/\/+/g, "/"); } - exports.normalizeSeparators = normalizeSeparators; + exports.normalizeSeparators = normalizeSeparators$1; /** * Normalizes the path separators and trims the trailing separator (when safe). * For example, `/foo/ => /foo` but `/ => /` */ - function safeTrimTrailingSeparator(p) { + function safeTrimTrailingSeparator$1(p) { if (!p) return ""; - p = normalizeSeparators(p); - if (!p.endsWith(path$7.sep)) return p; - if (p === path$7.sep) return p; - if (IS_WINDOWS$5 && /^[A-Z]:\\$/i.test(p)) return p; + p = normalizeSeparators$1(p); + if (!p.endsWith(path$12.sep)) return p; + if (p === path$12.sep) return p; + if (IS_WINDOWS$10 && /^[A-Z]:\\$/i.test(p)) return p; return p.substr(0, p.length - 1); } - exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; + exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-match-kind.js -var require_internal_match_kind = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-match-kind.js"(exports) { +var require_internal_match_kind$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-match-kind.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.MatchKind = void 0; /** * Indicates whether a pattern matches a path */ - var MatchKind; - (function(MatchKind$1) { + var MatchKind$1; + (function(MatchKind$2) { /** Not matched */ - MatchKind$1[MatchKind$1["None"] = 0] = "None"; + MatchKind$2[MatchKind$2["None"] = 0] = "None"; /** Matched if the path is a directory */ - MatchKind$1[MatchKind$1["Directory"] = 1] = "Directory"; + MatchKind$2[MatchKind$2["Directory"] = 1] = "Directory"; /** Matched if the path is a regular file */ - MatchKind$1[MatchKind$1["File"] = 2] = "File"; + MatchKind$2[MatchKind$2["File"] = 2] = "File"; /** Matched */ - MatchKind$1[MatchKind$1["All"] = 3] = "All"; - })(MatchKind = exports.MatchKind || (exports.MatchKind = {})); + MatchKind$2[MatchKind$2["All"] = 3] = "All"; + })(MatchKind$1 = exports.MatchKind || (exports.MatchKind = {})); } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern-helper.js -var require_internal_pattern_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern-helper.js"(exports) { - var __createBinding$16 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_pattern_helper$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern-helper.js"(exports) { + var __createBinding$23 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -243,7 +243,7 @@ var require_internal_pattern_helper = __commonJS({ "node_modules/.deno/@actions+ if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$15 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$22 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -251,45 +251,45 @@ var require_internal_pattern_helper = __commonJS({ "node_modules/.deno/@actions+ } : function(o, v) { o["default"] = v; }); - var __importStar$16 = exports && exports.__importStar || function(mod) { + var __importStar$23 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$16(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$23(result, mod, k); } - __setModuleDefault$15(result, mod); + __setModuleDefault$22(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.partialMatch = exports.match = exports.getSearchPaths = void 0; - const pathHelper$2 = __importStar$16(require_internal_path_helper()); - const internal_match_kind_1$2 = require_internal_match_kind(); - const IS_WINDOWS$4 = process.platform === "win32"; + const pathHelper$5 = __importStar$23(require_internal_path_helper$1()); + const internal_match_kind_1$5 = require_internal_match_kind$1(); + const IS_WINDOWS$9 = process.platform === "win32"; /** * Given an array of patterns, returns an array of paths to search. * Duplicates and paths under other included paths are filtered out. */ - function getSearchPaths(patterns) { + function getSearchPaths$1(patterns) { patterns = patterns.filter((x) => !x.negate); const searchPathMap = {}; for (const pattern of patterns) { - const key = IS_WINDOWS$4 ? pattern.searchPath.toUpperCase() : pattern.searchPath; + const key = IS_WINDOWS$9 ? pattern.searchPath.toUpperCase() : pattern.searchPath; searchPathMap[key] = "candidate"; } const result = []; for (const pattern of patterns) { - const key = IS_WINDOWS$4 ? pattern.searchPath.toUpperCase() : pattern.searchPath; + const key = IS_WINDOWS$9 ? pattern.searchPath.toUpperCase() : pattern.searchPath; if (searchPathMap[key] === "included") continue; let foundAncestor = false; let tempKey = key; - let parent = pathHelper$2.dirname(tempKey); + let parent = pathHelper$5.dirname(tempKey); while (parent !== tempKey) { if (searchPathMap[parent]) { foundAncestor = true; break; } tempKey = parent; - parent = pathHelper$2.dirname(tempKey); + parent = pathHelper$5.dirname(tempKey); } if (!foundAncestor) { result.push(pattern.searchPath); @@ -298,24 +298,24 @@ var require_internal_pattern_helper = __commonJS({ "node_modules/.deno/@actions+ } return result; } - exports.getSearchPaths = getSearchPaths; + exports.getSearchPaths = getSearchPaths$1; /** * Matches the patterns against the path */ - function match(patterns, itemPath) { - let result = internal_match_kind_1$2.MatchKind.None; + function match$1(patterns, itemPath) { + let result = internal_match_kind_1$5.MatchKind.None; for (const pattern of patterns) if (pattern.negate) result &= ~pattern.match(itemPath); else result |= pattern.match(itemPath); return result; } - exports.match = match; + exports.match = match$1; /** * Checks whether to descend further into the directory */ - function partialMatch(patterns, itemPath) { + function partialMatch$1(patterns, itemPath) { return patterns.some((x) => !x.negate && x.partialMatch(itemPath)); } - exports.partialMatch = partialMatch; + exports.partialMatch = partialMatch$1; } }); //#endregion @@ -520,12 +520,12 @@ var require_brace_expansion = __commonJS({ "node_modules/.deno/brace-expansion@1 var require_minimatch = __commonJS({ "node_modules/.deno/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module) { module.exports = minimatch; minimatch.Minimatch = Minimatch; - var path$6 = function() { + var path$11 = function() { try { return __require("path"); } catch (e) {} }() || { sep: "/" }; - minimatch.sep = path$6.sep; + minimatch.sep = path$11.sep; var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -623,7 +623,7 @@ var require_minimatch = __commonJS({ "node_modules/.deno/minimatch@3.1.2/node_mo assertValidPattern(pattern); if (!options) options = {}; pattern = pattern.trim(); - if (!options.allowWindowsEscape && path$6.sep !== "/") pattern = pattern.split(path$6.sep).join("/"); + if (!options.allowWindowsEscape && path$11.sep !== "/") pattern = pattern.split(path$11.sep).join("/"); this.options = options; this.set = []; this.pattern = pattern; @@ -938,14 +938,14 @@ var require_minimatch = __commonJS({ "node_modules/.deno/minimatch@3.1.2/node_mo if (mm.options.nonull && !list.length) list.push(pattern); return list; }; - Minimatch.prototype.match = function match$1(f, partial) { + Minimatch.prototype.match = function match$2(f, partial) { if (typeof partial === "undefined") partial = this.partial; this.debug("match", f, this.pattern); if (this.comment) return false; if (this.empty) return f === ""; if (f === "/" && partial) return true; var options = this.options; - if (path$6.sep !== "/") f = f.split(path$6.sep).join("/"); + if (path$11.sep !== "/") f = f.split(path$11.sep).join("/"); f = f.split(slashSplit); this.debug(this.pattern, "split", f); var set = this.set; @@ -1045,8 +1045,8 @@ var require_minimatch = __commonJS({ "node_modules/.deno/minimatch@3.1.2/node_mo //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path.js -var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path.js"(exports) { - var __createBinding$15 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_path$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-path.js"(exports) { + var __createBinding$22 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -1058,7 +1058,7 @@ var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2 if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$14 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$21 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -1066,28 +1066,28 @@ var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2 } : function(o, v) { o["default"] = v; }); - var __importStar$15 = exports && exports.__importStar || function(mod) { + var __importStar$22 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$15(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$22(result, mod, k); } - __setModuleDefault$14(result, mod); + __setModuleDefault$21(result, mod); return result; }; - var __importDefault$5 = exports && exports.__importDefault || function(mod) { + var __importDefault$8 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Path = void 0; - const path$5 = __importStar$15(__require("path")); - const pathHelper$1 = __importStar$15(require_internal_path_helper()); - const assert_1$7 = __importDefault$5(__require("assert")); - const IS_WINDOWS$3 = process.platform === "win32"; + const path$10 = __importStar$22(__require("path")); + const pathHelper$4 = __importStar$22(require_internal_path_helper$1()); + const assert_1$10 = __importDefault$8(__require("assert")); + const IS_WINDOWS$8 = process.platform === "win32"; /** * Helper class for parsing paths into segments */ - var Path = class { + var Path$1 = class { /** * Constructs a Path * @param itemPath Path or array of segments @@ -1095,32 +1095,32 @@ var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2 constructor(itemPath) { this.segments = []; if (typeof itemPath === "string") { - assert_1$7.default(itemPath, `Parameter 'itemPath' must not be empty`); - itemPath = pathHelper$1.safeTrimTrailingSeparator(itemPath); - if (!pathHelper$1.hasRoot(itemPath)) this.segments = itemPath.split(path$5.sep); + assert_1$10.default(itemPath, `Parameter 'itemPath' must not be empty`); + itemPath = pathHelper$4.safeTrimTrailingSeparator(itemPath); + if (!pathHelper$4.hasRoot(itemPath)) this.segments = itemPath.split(path$10.sep); else { let remaining = itemPath; - let dir = pathHelper$1.dirname(remaining); + let dir = pathHelper$4.dirname(remaining); while (dir !== remaining) { - const basename = path$5.basename(remaining); + const basename = path$10.basename(remaining); this.segments.unshift(basename); remaining = dir; - dir = pathHelper$1.dirname(remaining); + dir = pathHelper$4.dirname(remaining); } this.segments.unshift(remaining); } } else { - assert_1$7.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); + assert_1$10.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); for (let i = 0; i < itemPath.length; i++) { let segment = itemPath[i]; - assert_1$7.default(segment, `Parameter 'itemPath' must not contain any empty segments`); - segment = pathHelper$1.normalizeSeparators(itemPath[i]); - if (i === 0 && pathHelper$1.hasRoot(segment)) { - segment = pathHelper$1.safeTrimTrailingSeparator(segment); - assert_1$7.default(segment === pathHelper$1.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); + assert_1$10.default(segment, `Parameter 'itemPath' must not contain any empty segments`); + segment = pathHelper$4.normalizeSeparators(itemPath[i]); + if (i === 0 && pathHelper$4.hasRoot(segment)) { + segment = pathHelper$4.safeTrimTrailingSeparator(segment); + assert_1$10.default(segment === pathHelper$4.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); this.segments.push(segment); } else { - assert_1$7.default(!segment.includes(path$5.sep), `Parameter 'itemPath' contains unexpected path separators`); + assert_1$10.default(!segment.includes(path$10.sep), `Parameter 'itemPath' contains unexpected path separators`); this.segments.push(segment); } } @@ -1131,22 +1131,22 @@ var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2 */ toString() { let result = this.segments[0]; - let skipSlash = result.endsWith(path$5.sep) || IS_WINDOWS$3 && /^[A-Z]:$/i.test(result); + let skipSlash = result.endsWith(path$10.sep) || IS_WINDOWS$8 && /^[A-Z]:$/i.test(result); for (let i = 1; i < this.segments.length; i++) { if (skipSlash) skipSlash = false; - else result += path$5.sep; + else result += path$10.sep; result += this.segments[i]; } return result; } }; - exports.Path = Path; + exports.Path = Path$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern.js -var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern.js"(exports) { - var __createBinding$14 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_pattern$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-pattern.js"(exports) { + var __createBinding$21 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -1158,7 +1158,7 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$13 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$20 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -1166,29 +1166,29 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. } : function(o, v) { o["default"] = v; }); - var __importStar$14 = exports && exports.__importStar || function(mod) { + var __importStar$21 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$14(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$21(result, mod, k); } - __setModuleDefault$13(result, mod); + __setModuleDefault$20(result, mod); return result; }; - var __importDefault$4 = exports && exports.__importDefault || function(mod) { + var __importDefault$7 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Pattern = void 0; - const os$2 = __importStar$14(__require("os")); - const path$4 = __importStar$14(__require("path")); - const pathHelper = __importStar$14(require_internal_path_helper()); - const assert_1$6 = __importDefault$4(__require("assert")); - const minimatch_1 = require_minimatch(); - const internal_match_kind_1$1 = require_internal_match_kind(); - const internal_path_1 = require_internal_path(); - const IS_WINDOWS$2 = process.platform === "win32"; - var Pattern = class Pattern { + const os$3 = __importStar$21(__require("os")); + const path$9 = __importStar$21(__require("path")); + const pathHelper$3 = __importStar$21(require_internal_path_helper$1()); + const assert_1$9 = __importDefault$7(__require("assert")); + const minimatch_1$1 = require_minimatch(); + const internal_match_kind_1$4 = require_internal_match_kind$1(); + const internal_path_1$1 = require_internal_path$1(); + const IS_WINDOWS$7 = process.platform === "win32"; + var Pattern$1 = class Pattern$1 { constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) { /** * Indicates whether matches should be excluded from the result set @@ -1198,86 +1198,86 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. if (typeof patternOrNegate === "string") pattern = patternOrNegate.trim(); else { segments = segments || []; - assert_1$6.default(segments.length, `Parameter 'segments' must not empty`); - const root = Pattern.getLiteral(segments[0]); - assert_1$6.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); - pattern = new internal_path_1.Path(segments).toString().trim(); + assert_1$9.default(segments.length, `Parameter 'segments' must not empty`); + const root = Pattern$1.getLiteral(segments[0]); + assert_1$9.default(root && pathHelper$3.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); + pattern = new internal_path_1$1.Path(segments).toString().trim(); if (patternOrNegate) pattern = `!${pattern}`; } while (pattern.startsWith("!")) { this.negate = !this.negate; pattern = pattern.substr(1).trim(); } - pattern = Pattern.fixupPattern(pattern, homedir); - this.segments = new internal_path_1.Path(pattern).segments; - this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path$4.sep); - pattern = pathHelper.safeTrimTrailingSeparator(pattern); + pattern = Pattern$1.fixupPattern(pattern, homedir); + this.segments = new internal_path_1$1.Path(pattern).segments; + this.trailingSeparator = pathHelper$3.normalizeSeparators(pattern).endsWith(path$9.sep); + pattern = pathHelper$3.safeTrimTrailingSeparator(pattern); let foundGlob = false; - const searchSegments = this.segments.map((x) => Pattern.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); - this.searchPath = new internal_path_1.Path(searchSegments).toString(); - this.rootRegExp = new RegExp(Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS$2 ? "i" : ""); + const searchSegments = this.segments.map((x) => Pattern$1.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); + this.searchPath = new internal_path_1$1.Path(searchSegments).toString(); + this.rootRegExp = new RegExp(Pattern$1.regExpEscape(searchSegments[0]), IS_WINDOWS$7 ? "i" : ""); this.isImplicitPattern = isImplicitPattern; const minimatchOptions = { dot: true, nobrace: true, - nocase: IS_WINDOWS$2, + nocase: IS_WINDOWS$7, nocomment: true, noext: true, nonegate: true }; - pattern = IS_WINDOWS$2 ? pattern.replace(/\\/g, "/") : pattern; - this.minimatch = new minimatch_1.Minimatch(pattern, minimatchOptions); + pattern = IS_WINDOWS$7 ? pattern.replace(/\\/g, "/") : pattern; + this.minimatch = new minimatch_1$1.Minimatch(pattern, minimatchOptions); } /** * Matches the pattern against the specified path */ match(itemPath) { if (this.segments[this.segments.length - 1] === "**") { - itemPath = pathHelper.normalizeSeparators(itemPath); - if (!itemPath.endsWith(path$4.sep) && this.isImplicitPattern === false) itemPath = `${itemPath}${path$4.sep}`; - } else itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); - if (this.minimatch.match(itemPath)) return this.trailingSeparator ? internal_match_kind_1$1.MatchKind.Directory : internal_match_kind_1$1.MatchKind.All; - return internal_match_kind_1$1.MatchKind.None; + itemPath = pathHelper$3.normalizeSeparators(itemPath); + if (!itemPath.endsWith(path$9.sep) && this.isImplicitPattern === false) itemPath = `${itemPath}${path$9.sep}`; + } else itemPath = pathHelper$3.safeTrimTrailingSeparator(itemPath); + if (this.minimatch.match(itemPath)) return this.trailingSeparator ? internal_match_kind_1$4.MatchKind.Directory : internal_match_kind_1$4.MatchKind.All; + return internal_match_kind_1$4.MatchKind.None; } /** * Indicates whether the pattern may match descendants of the specified path */ partialMatch(itemPath) { - itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); - if (pathHelper.dirname(itemPath) === itemPath) return this.rootRegExp.test(itemPath); - return this.minimatch.matchOne(itemPath.split(IS_WINDOWS$2 ? /\\+/ : /\/+/), this.minimatch.set[0], true); + itemPath = pathHelper$3.safeTrimTrailingSeparator(itemPath); + if (pathHelper$3.dirname(itemPath) === itemPath) return this.rootRegExp.test(itemPath); + return this.minimatch.matchOne(itemPath.split(IS_WINDOWS$7 ? /\\+/ : /\/+/), this.minimatch.set[0], true); } /** * Escapes glob patterns within a path */ static globEscape(s$1) { - return (IS_WINDOWS$2 ? s$1 : s$1.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); + return (IS_WINDOWS$7 ? s$1 : s$1.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); } /** * Normalizes slashes and ensures absolute root */ static fixupPattern(pattern, homedir) { - assert_1$6.default(pattern, "pattern cannot be empty"); - const literalSegments = new internal_path_1.Path(pattern).segments.map((x) => Pattern.getLiteral(x)); - assert_1$6.default(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); - assert_1$6.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); - pattern = pathHelper.normalizeSeparators(pattern); - if (pattern === "." || pattern.startsWith(`.${path$4.sep}`)) pattern = Pattern.globEscape(process.cwd()) + pattern.substr(1); - else if (pattern === "~" || pattern.startsWith(`~${path$4.sep}`)) { - homedir = homedir || os$2.homedir(); - assert_1$6.default(homedir, "Unable to determine HOME directory"); - assert_1$6.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); - pattern = Pattern.globEscape(homedir) + pattern.substr(1); - } else if (IS_WINDOWS$2 && (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { - let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", pattern.substr(0, 2)); + assert_1$9.default(pattern, "pattern cannot be empty"); + const literalSegments = new internal_path_1$1.Path(pattern).segments.map((x) => Pattern$1.getLiteral(x)); + assert_1$9.default(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); + assert_1$9.default(!pathHelper$3.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); + pattern = pathHelper$3.normalizeSeparators(pattern); + if (pattern === "." || pattern.startsWith(`.${path$9.sep}`)) pattern = Pattern$1.globEscape(process.cwd()) + pattern.substr(1); + else if (pattern === "~" || pattern.startsWith(`~${path$9.sep}`)) { + homedir = homedir || os$3.homedir(); + assert_1$9.default(homedir, "Unable to determine HOME directory"); + assert_1$9.default(pathHelper$3.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); + pattern = Pattern$1.globEscape(homedir) + pattern.substr(1); + } else if (IS_WINDOWS$7 && (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { + let root = pathHelper$3.ensureAbsoluteRoot("C:\\dummy-root", pattern.substr(0, 2)); if (pattern.length > 2 && !root.endsWith("\\")) root += "\\"; - pattern = Pattern.globEscape(root) + pattern.substr(2); - } else if (IS_WINDOWS$2 && (pattern === "\\" || pattern.match(/^\\[^\\]/))) { - let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", "\\"); + pattern = Pattern$1.globEscape(root) + pattern.substr(2); + } else if (IS_WINDOWS$7 && (pattern === "\\" || pattern.match(/^\\[^\\]/))) { + let root = pathHelper$3.ensureAbsoluteRoot("C:\\dummy-root", "\\"); if (!root.endsWith("\\")) root += "\\"; - pattern = Pattern.globEscape(root) + pattern.substr(1); - } else pattern = pathHelper.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()), pattern); - return pathHelper.normalizeSeparators(pattern); + pattern = Pattern$1.globEscape(root) + pattern.substr(1); + } else pattern = pathHelper$3.ensureAbsoluteRoot(Pattern$1.globEscape(process.cwd()), pattern); + return pathHelper$3.normalizeSeparators(pattern); } /** * Attempts to unescape a pattern segment to create a literal path segment. @@ -1287,7 +1287,7 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. let literal = ""; for (let i = 0; i < segment.length; i++) { const c = segment[i]; - if (c === "\\" && !IS_WINDOWS$2 && i + 1 < segment.length) { + if (c === "\\" && !IS_WINDOWS$7 && i + 1 < segment.length) { literal += segment[++i]; continue; } else if (c === "*" || c === "?") return ""; @@ -1296,7 +1296,7 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. let closed = -1; for (let i2 = i + 1; i2 < segment.length; i2++) { const c2 = segment[i2]; - if (c2 === "\\" && !IS_WINDOWS$2 && i2 + 1 < segment.length) { + if (c2 === "\\" && !IS_WINDOWS$7 && i2 + 1 < segment.length) { set += segment[++i2]; continue; } else if (c2 === "]") { @@ -1325,27 +1325,27 @@ var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0. return s$1.replace(/[[\\^$.|?*+()]/g, "\\$&"); } }; - exports.Pattern = Pattern; + exports.Pattern = Pattern$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-search-state.js -var require_internal_search_state = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-search-state.js"(exports) { +var require_internal_search_state$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-search-state.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchState = void 0; - var SearchState = class { - constructor(path$8, level) { - this.path = path$8; + var SearchState$1 = class { + constructor(path$13, level) { + this.path = path$13; this.level = level; } }; - exports.SearchState = SearchState; + exports.SearchState = SearchState$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-globber.js -var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-globber.js"(exports) { - var __createBinding$13 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { +var require_internal_globber$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-globber.js"(exports) { + var __createBinding$20 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -1357,7 +1357,7 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$12 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$19 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -1365,16 +1365,16 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. } : function(o, v) { o["default"] = v; }); - var __importStar$13 = exports && exports.__importStar || function(mod) { + var __importStar$20 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$13(result, mod, k); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding$20(result, mod, k); } - __setModuleDefault$12(result, mod); + __setModuleDefault$19(result, mod); return result; }; - var __awaiter$15 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$18 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -1401,7 +1401,7 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues$2 = exports && exports.__asyncValues || function(o) { + var __asyncValues$4 = exports && exports.__asyncValues || function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m$1 = o[Symbol.asyncIterator], i; return m$1 ? m$1.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { @@ -1423,10 +1423,10 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. }, reject); } }; - var __await$1 = exports && exports.__await || function(v) { - return this instanceof __await$1 ? (this.v = v, this) : new __await$1(v); + var __await$2 = exports && exports.__await || function(v) { + return this instanceof __await$2 ? (this.v = v, this) : new __await$2(v); }; - var __asyncGenerator$1 = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) { + var __asyncGenerator$2 = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { @@ -1452,7 +1452,7 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. } } function step(r) { - r.value instanceof __await$1 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + r.value instanceof __await$2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume$1("next", value); @@ -1466,30 +1466,30 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultGlobber = void 0; - const core$7 = __importStar$13(require_core()); - const fs$4 = __importStar$13(__require("fs")); - const globOptionsHelper = __importStar$13(require_internal_glob_options_helper()); - const path$3 = __importStar$13(__require("path")); - const patternHelper = __importStar$13(require_internal_pattern_helper()); - const internal_match_kind_1 = require_internal_match_kind(); - const internal_pattern_1 = require_internal_pattern(); - const internal_search_state_1 = require_internal_search_state(); - const IS_WINDOWS$1 = process.platform === "win32"; - var DefaultGlobber = class DefaultGlobber { + const core$10 = __importStar$20(require_core()); + const fs$6 = __importStar$20(__require("fs")); + const globOptionsHelper$1 = __importStar$20(require_internal_glob_options_helper$1()); + const path$8 = __importStar$20(__require("path")); + const patternHelper$1 = __importStar$20(require_internal_pattern_helper$1()); + const internal_match_kind_1$3 = require_internal_match_kind$1(); + const internal_pattern_1$1 = require_internal_pattern$1(); + const internal_search_state_1$1 = require_internal_search_state$1(); + const IS_WINDOWS$6 = process.platform === "win32"; + var DefaultGlobber$1 = class DefaultGlobber$1 { constructor(options) { this.patterns = []; this.searchPaths = []; - this.options = globOptionsHelper.getOptions(options); + this.options = globOptionsHelper$1.getOptions(options); } getSearchPaths() { return this.searchPaths.slice(); } glob() { var e_1, _a$2; - return __awaiter$15(this, void 0, void 0, function* () { + return __awaiter$18(this, void 0, void 0, function* () { const result = []; try { - for (var _b$1 = __asyncValues$2(this.globGenerator()), _c$1; _c$1 = yield _b$1.next(), !_c$1.done;) { + for (var _b$1 = __asyncValues$4(this.globGenerator()), _c$1; _c$1 = yield _b$1.next(), !_c$1.done;) { const itemPath = _c$1.value; result.push(itemPath); } @@ -1506,42 +1506,42 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. }); } globGenerator() { - return __asyncGenerator$1(this, arguments, function* globGenerator_1() { - const options = globOptionsHelper.getOptions(this.options); + return __asyncGenerator$2(this, arguments, function* globGenerator_1() { + const options = globOptionsHelper$1.getOptions(this.options); const patterns = []; for (const pattern of this.patterns) { patterns.push(pattern); - if (options.implicitDescendants && (pattern.trailingSeparator || pattern.segments[pattern.segments.length - 1] !== "**")) patterns.push(new internal_pattern_1.Pattern(pattern.negate, true, pattern.segments.concat("**"))); + if (options.implicitDescendants && (pattern.trailingSeparator || pattern.segments[pattern.segments.length - 1] !== "**")) patterns.push(new internal_pattern_1$1.Pattern(pattern.negate, true, pattern.segments.concat("**"))); } const stack = []; - for (const searchPath of patternHelper.getSearchPaths(patterns)) { - core$7.debug(`Search path '${searchPath}'`); + for (const searchPath of patternHelper$1.getSearchPaths(patterns)) { + core$10.debug(`Search path '${searchPath}'`); try { - yield __await$1(fs$4.promises.lstat(searchPath)); + yield __await$2(fs$6.promises.lstat(searchPath)); } catch (err) { if (err.code === "ENOENT") continue; throw err; } - stack.unshift(new internal_search_state_1.SearchState(searchPath, 1)); + stack.unshift(new internal_search_state_1$1.SearchState(searchPath, 1)); } const traversalChain = []; while (stack.length) { const item = stack.pop(); - const match$1 = patternHelper.match(patterns, item.path); - const partialMatch$1 = !!match$1 || patternHelper.partialMatch(patterns, item.path); - if (!match$1 && !partialMatch$1) continue; - const stats = yield __await$1( - DefaultGlobber.stat(item, options, traversalChain) + const match$2 = patternHelper$1.match(patterns, item.path); + const partialMatch$2 = !!match$2 || patternHelper$1.partialMatch(patterns, item.path); + if (!match$2 && !partialMatch$2) continue; + const stats = yield __await$2( + DefaultGlobber$1.stat(item, options, traversalChain) // Broken symlink, or symlink cycle detected, or no longer exists ); if (!stats) continue; if (stats.isDirectory()) { - if (match$1 & internal_match_kind_1.MatchKind.Directory) yield yield __await$1(item.path); - else if (!partialMatch$1) continue; + if (match$2 & internal_match_kind_1$3.MatchKind.Directory) yield yield __await$2(item.path); + else if (!partialMatch$2) continue; const childLevel = item.level + 1; - const childItems = (yield __await$1(fs$4.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path$3.join(item.path, x), childLevel)); + const childItems = (yield __await$2(fs$6.promises.readdir(item.path))).map((x) => new internal_search_state_1$1.SearchState(path$8.join(item.path, x), childLevel)); stack.push(...childItems.reverse()); - } else if (match$1 & internal_match_kind_1.MatchKind.File) yield yield __await$1(item.path); + } else if (match$2 & internal_match_kind_1$3.MatchKind.File) yield yield __await$2(item.path); } }); } @@ -1549,40 +1549,40 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. * Constructs a DefaultGlobber */ static create(patterns, options) { - return __awaiter$15(this, void 0, void 0, function* () { - const result = new DefaultGlobber(options); - if (IS_WINDOWS$1) { + return __awaiter$18(this, void 0, void 0, function* () { + const result = new DefaultGlobber$1(options); + if (IS_WINDOWS$6) { patterns = patterns.replace(/\r\n/g, "\n"); patterns = patterns.replace(/\r/g, "\n"); } const lines = patterns.split("\n").map((x) => x.trim()); for (const line of lines) if (!line || line.startsWith("#")) continue; - else result.patterns.push(new internal_pattern_1.Pattern(line)); - result.searchPaths.push(...patternHelper.getSearchPaths(result.patterns)); + else result.patterns.push(new internal_pattern_1$1.Pattern(line)); + result.searchPaths.push(...patternHelper$1.getSearchPaths(result.patterns)); return result; }); } static stat(item, options, traversalChain) { - return __awaiter$15(this, void 0, void 0, function* () { + return __awaiter$18(this, void 0, void 0, function* () { let stats; if (options.followSymbolicLinks) try { - stats = yield fs$4.promises.stat(item.path); + stats = yield fs$6.promises.stat(item.path); } catch (err) { if (err.code === "ENOENT") { if (options.omitBrokenSymbolicLinks) { - core$7.debug(`Broken symlink '${item.path}'`); + core$10.debug(`Broken symlink '${item.path}'`); return void 0; } throw new Error(`No information found for the path '${item.path}'. This may indicate a broken symbolic link.`); } throw err; } - else stats = yield fs$4.promises.lstat(item.path); + else stats = yield fs$6.promises.lstat(item.path); if (stats.isDirectory() && options.followSymbolicLinks) { - const realPath = yield fs$4.promises.realpath(item.path); + const realPath = yield fs$6.promises.realpath(item.path); while (traversalChain.length >= item.level) traversalChain.pop(); if (traversalChain.some((x) => x === realPath)) { - core$7.debug(`Symlink cycle detected for path '${item.path}' and realpath '${realPath}'`); + core$10.debug(`Symlink cycle detected for path '${item.path}' and realpath '${realPath}'`); return void 0; } traversalChain.push(realPath); @@ -1591,13 +1591,13 @@ var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0. }); } }; - exports.DefaultGlobber = DefaultGlobber; + exports.DefaultGlobber = DefaultGlobber$1; } }); //#endregion //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/glob.js -var require_glob = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/glob.js"(exports) { - var __awaiter$14 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { +var require_glob$1 = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/glob.js"(exports) { + var __awaiter$17 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -1626,19 +1626,19 @@ var require_glob = __commonJS({ "node_modules/.deno/@actions+glob@0.1.2/node_mod }; Object.defineProperty(exports, "__esModule", { value: true }); exports.create = void 0; - const internal_globber_1 = require_internal_globber(); + const internal_globber_1$1 = require_internal_globber$1(); /** * Constructs a globber * * @param patterns Patterns separated by newlines * @param options Glob options */ - function create(patterns, options) { - return __awaiter$14(this, void 0, void 0, function* () { - return yield internal_globber_1.DefaultGlobber.create(patterns, options); + function create$1(patterns, options) { + return __awaiter$17(this, void 0, void 0, function* () { + return yield internal_globber_1$1.DefaultGlobber.create(patterns, options); }); } - exports.create = create; + exports.create = create$1; } }); //#endregion @@ -1675,7 +1675,7 @@ var require_constants$3 = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/cacheUtils.js var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/cacheUtils.js"(exports) { - var __createBinding$12 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$19 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -1689,7 +1689,7 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$11 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$18 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -1697,16 +1697,16 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n } : function(o, v) { o["default"] = v; }); - var __importStar$12 = exports && exports.__importStar || function(mod) { + var __importStar$19 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$12(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$19(result, mod, k); } - __setModuleDefault$11(result, mod); + __setModuleDefault$18(result, mod); return result; }; - var __awaiter$13 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$16 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -1733,7 +1733,7 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues$1 = exports && exports.__asyncValues || function(o) { + var __asyncValues$3 = exports && exports.__asyncValues || function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m$1 = o[Symbol.asyncIterator], i; return m$1 ? m$1.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { @@ -1757,52 +1757,52 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeToken = exports.getCacheVersion = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0; - const core$6 = __importStar$12(require_core()); - const exec = __importStar$12(require_exec()); - const glob = __importStar$12(require_glob()); - const io$1 = __importStar$12(require_io()); - const crypto$1 = __importStar$12(__require("crypto")); - const fs$3 = __importStar$12(__require("fs")); - const path$2 = __importStar$12(__require("path")); - const semver = __importStar$12(require_semver()); - const util$3 = __importStar$12(__require("util")); + const core$9 = __importStar$19(require_core()); + const exec$1 = __importStar$19(require_exec()); + const glob = __importStar$19(require_glob$1()); + const io$1 = __importStar$19(require_io()); + const crypto$2 = __importStar$19(__require("crypto")); + const fs$5 = __importStar$19(__require("fs")); + const path$7 = __importStar$19(__require("path")); + const semver = __importStar$19(require_semver()); + const util$4 = __importStar$19(__require("util")); const constants_1$4 = require_constants$3(); const versionSalt = "1.0"; function createTempDirectory() { - return __awaiter$13(this, void 0, void 0, function* () { - const IS_WINDOWS$6 = process.platform === "win32"; + return __awaiter$16(this, void 0, void 0, function* () { + const IS_WINDOWS$11 = process.platform === "win32"; let tempDirectory = process.env["RUNNER_TEMP"] || ""; if (!tempDirectory) { let baseLocation; - if (IS_WINDOWS$6) baseLocation = process.env["USERPROFILE"] || "C:\\"; + if (IS_WINDOWS$11) baseLocation = process.env["USERPROFILE"] || "C:\\"; else if (process.platform === "darwin") baseLocation = "/Users"; else baseLocation = "/home"; - tempDirectory = path$2.join(baseLocation, "actions", "temp"); + tempDirectory = path$7.join(baseLocation, "actions", "temp"); } - const dest = path$2.join(tempDirectory, crypto$1.randomUUID()); + const dest = path$7.join(tempDirectory, crypto$2.randomUUID()); yield io$1.mkdirP(dest); return dest; }); } exports.createTempDirectory = createTempDirectory; function getArchiveFileSizeInBytes(filePath) { - return fs$3.statSync(filePath).size; + return fs$5.statSync(filePath).size; } exports.getArchiveFileSizeInBytes = getArchiveFileSizeInBytes; function resolvePaths(patterns) { var _a$2, e_1, _b$1, _c$1; var _d$1; - return __awaiter$13(this, void 0, void 0, function* () { + return __awaiter$16(this, void 0, void 0, function* () { const paths = []; const workspace = (_d$1 = process.env["GITHUB_WORKSPACE"]) !== null && _d$1 !== void 0 ? _d$1 : process.cwd(); const globber = yield glob.create(patterns.join("\n"), { implicitDescendants: false }); try { - for (var _e = true, _f = __asyncValues$1(globber.globGenerator()), _g; _g = yield _f.next(), _a$2 = _g.done, !_a$2; _e = true) { + for (var _e = true, _f = __asyncValues$3(globber.globGenerator()), _g; _g = yield _f.next(), _a$2 = _g.done, !_a$2; _e = true) { _c$1 = _g.value; _e = false; const file = _c$1; - const relativeFile = path$2.relative(workspace, file).replace(new RegExp(`\\${path$2.sep}`, "g"), "/"); - core$6.debug(`Matched: ${relativeFile}`); + const relativeFile = path$7.relative(workspace, file).replace(new RegExp(`\\${path$7.sep}`, "g"), "/"); + core$9.debug(`Matched: ${relativeFile}`); if (relativeFile === "") paths.push("."); else paths.push(`${relativeFile}`); } @@ -1820,18 +1820,18 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n } exports.resolvePaths = resolvePaths; function unlinkFile(filePath) { - return __awaiter$13(this, void 0, void 0, function* () { - return util$3.promisify(fs$3.unlink)(filePath); + return __awaiter$16(this, void 0, void 0, function* () { + return util$4.promisify(fs$5.unlink)(filePath); }); } exports.unlinkFile = unlinkFile; function getVersion(app, additionalArgs = []) { - return __awaiter$13(this, void 0, void 0, function* () { + return __awaiter$16(this, void 0, void 0, function* () { let versionOutput = ""; additionalArgs.push("--version"); - core$6.debug(`Checking ${app} ${additionalArgs.join(" ")}`); + core$9.debug(`Checking ${app} ${additionalArgs.join(" ")}`); try { - yield exec.exec(`${app}`, additionalArgs, { + yield exec$1.exec(`${app}`, additionalArgs, { ignoreReturnCode: true, silent: true, listeners: { @@ -1840,18 +1840,18 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n } }); } catch (err) { - core$6.debug(err.message); + core$9.debug(err.message); } versionOutput = versionOutput.trim(); - core$6.debug(versionOutput); + core$9.debug(versionOutput); return versionOutput; }); } function getCompressionMethod() { - return __awaiter$13(this, void 0, void 0, function* () { + return __awaiter$16(this, void 0, void 0, function* () { const versionOutput = yield getVersion("zstd", ["--quiet"]); const version$1 = semver.clean(versionOutput); - core$6.debug(`zstd version: ${version$1}`); + core$9.debug(`zstd version: ${version$1}`); if (versionOutput === "") return constants_1$4.CompressionMethod.Gzip; else return constants_1$4.CompressionMethod.ZstdWithoutLong; }); @@ -1862,8 +1862,8 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n } exports.getCacheFileName = getCacheFileName; function getGnuTarPathOnWindows() { - return __awaiter$13(this, void 0, void 0, function* () { - if (fs$3.existsSync(constants_1$4.GnuTarPathOnWindows)) return constants_1$4.GnuTarPathOnWindows; + return __awaiter$16(this, void 0, void 0, function* () { + if (fs$5.existsSync(constants_1$4.GnuTarPathOnWindows)) return constants_1$4.GnuTarPathOnWindows; const versionOutput = yield getVersion("tar"); return versionOutput.toLowerCase().includes("gnu tar") ? io$1.which("tar") : ""; }); @@ -1879,7 +1879,7 @@ var require_cacheUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n if (compressionMethod) components.push(compressionMethod); if (process.platform === "win32" && !enableCrossOsArchive) components.push("windows-only"); components.push(versionSalt); - return crypto$1.createHash("sha256").update(components.join("|")).digest("hex"); + return crypto$2.createHash("sha256").update(components.join("|")).digest("hex"); } exports.getCacheVersion = getCacheVersion; function getRuntimeToken() { @@ -1930,7 +1930,7 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts var __propKey; var __setFunctionName; var __metadata; - var __awaiter$12; + var __awaiter$15; var __generator; var __exportStar$1; var __values$1; @@ -1938,17 +1938,17 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts var __spread; var __spreadArrays; var __spreadArray; - var __await; - var __asyncGenerator; + var __await$1; + var __asyncGenerator$1; var __asyncDelegator; - var __asyncValues; + var __asyncValues$2; var __makeTemplateObject; - var __importStar$11; - var __importDefault$3; + var __importStar$18; + var __importDefault$6; var __classPrivateFieldGet; var __classPrivateFieldSet; var __classPrivateFieldIn; - var __createBinding$11; + var __createBinding$18; var __addDisposableResource; var __disposeResources; var __rewriteRelativeImportExtension; @@ -2057,7 +2057,7 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts __metadata = function(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); }; - __awaiter$12 = function(thisArg, _arguments, P, generator) { + __awaiter$15 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -2165,9 +2165,9 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts } }; __exportStar$1 = function(m$1, o) { - for (var p in m$1) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding$11(o, m$1, p); + for (var p in m$1) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding$18(o, m$1, p); }; - __createBinding$11 = Object.create ? function(o, m$1, k, k2) { + __createBinding$18 = Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -2230,10 +2230,10 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts } return to.concat(ar || Array.prototype.slice.call(from)); }; - __await = function(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); + __await$1 = function(v) { + return this instanceof __await$1 ? (this.v = v, this) : new __await$1(v); }; - __asyncGenerator = function(thisArg, _arguments, generator) { + __asyncGenerator$1 = function(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() { @@ -2267,7 +2267,7 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts } } function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + r.value instanceof __await$1 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume$1("next", value); @@ -2289,13 +2289,13 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts function verb(n, f) { i[n] = o[n] ? function(v) { return (p = !p) ? { - value: __await(o[n](v)), + value: __await$1(o[n](v)), done: false } : f ? f(v) : v; } : f; } }; - __asyncValues = function(o) { + __asyncValues$2 = function(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m$1 = o[Symbol.asyncIterator], i; return m$1 ? m$1.call(o) : (o = typeof __values$1 === "function" ? __values$1(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { @@ -2322,7 +2322,7 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts else cooked.raw = raw; return cooked; }; - var __setModuleDefault$18 = Object.create ? function(o, v) { + var __setModuleDefault$25 = Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -2338,16 +2338,16 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts }; return ownKeys(o); }; - __importStar$11 = function(mod) { + __importStar$18 = function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$11(result, mod, k[i]); + for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$18(result, mod, k[i]); } - __setModuleDefault$18(result, mod); + __setModuleDefault$25(result, mod); return result; }; - __importDefault$3 = function(mod) { + __importDefault$6 = function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; __classPrivateFieldGet = function(receiver, state$1, kind, f) { @@ -2422,11 +2422,11 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts } return next(); }; - __rewriteRelativeImportExtension = function(path$8, preserveJsx) { - if (typeof path$8 === "string" && /^\.\.?\//.test(path$8)) return path$8.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m$1, tsx, d$1, ext$1, cm) { + __rewriteRelativeImportExtension = function(path$13, preserveJsx) { + if (typeof path$13 === "string" && /^\.\.?\//.test(path$13)) return path$13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m$1, tsx, d$1, ext$1, cm) { return tsx ? preserveJsx ? ".jsx" : ".js" : d$1 && (!ext$1 || !cm) ? m$1 : d$1 + ext$1 + "." + cm.toLowerCase() + "js"; }); - return path$8; + return path$13; }; exporter("__extends", __extends); exporter("__assign", __assign); @@ -2438,22 +2438,22 @@ var require_tslib = __commonJS({ "node_modules/.deno/tslib@2.8.1/node_modules/ts exporter("__propKey", __propKey); exporter("__setFunctionName", __setFunctionName); exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter$12); + exporter("__awaiter", __awaiter$15); exporter("__generator", __generator); exporter("__exportStar", __exportStar$1); - exporter("__createBinding", __createBinding$11); + exporter("__createBinding", __createBinding$18); exporter("__values", __values$1); exporter("__read", __read); exporter("__spread", __spread); exporter("__spreadArrays", __spreadArrays); exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); + exporter("__await", __await$1); + exporter("__asyncGenerator", __asyncGenerator$1); exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); + exporter("__asyncValues", __asyncValues$2); exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar$11); - exporter("__importDefault", __importDefault$3); + exporter("__importStar", __importStar$18); + exporter("__importDefault", __importDefault$6); exporter("__classPrivateFieldGet", __classPrivateFieldGet); exporter("__classPrivateFieldSet", __classPrivateFieldSet); exporter("__classPrivateFieldIn", __classPrivateFieldIn); @@ -3342,18 +3342,18 @@ var require_nodeHttpClient = __commonJS({ "node_modules/.deno/@typespec+ts-http- function isReadableStream$1(body$1) { return body$1 && typeof body$1.pipe === "function"; } - function isStreamComplete(stream$2) { - if (stream$2.readable === false) return Promise.resolve(); + function isStreamComplete(stream$3) { + if (stream$3.readable === false) return Promise.resolve(); return new Promise((resolve) => { const handler = () => { resolve(); - stream$2.removeListener("close", handler); - stream$2.removeListener("end", handler); - stream$2.removeListener("error", handler); + stream$3.removeListener("close", handler); + stream$3.removeListener("end", handler); + stream$3.removeListener("error", handler); }; - stream$2.on("close", handler); - stream$2.on("end", handler); - stream$2.on("error", handler); + stream$3.on("close", handler); + stream$3.on("end", handler); + stream$3.on("error", handler); }); } function isArrayBuffer(body$1) { @@ -3532,30 +3532,30 @@ var require_nodeHttpClient = __commonJS({ "node_modules/.deno/@typespec+ts-http- } return headers; } - function getDecodedResponseStream(stream$2, headers) { + function getDecodedResponseStream(stream$3, headers) { const contentEncoding = headers.get("Content-Encoding"); if (contentEncoding === "gzip") { const unzip = zlib.createGunzip(); - stream$2.pipe(unzip); + stream$3.pipe(unzip); return unzip; } else if (contentEncoding === "deflate") { const inflate = zlib.createInflate(); - stream$2.pipe(inflate); + stream$3.pipe(inflate); return inflate; } - return stream$2; + return stream$3; } - function streamToText(stream$2) { + function streamToText(stream$3) { return new Promise((resolve, reject) => { const buffer$2 = []; - stream$2.on("data", (chunk) => { + stream$3.on("data", (chunk) => { if (Buffer.isBuffer(chunk)) buffer$2.push(chunk); else buffer$2.push(Buffer.from(chunk)); }); - stream$2.on("end", () => { + stream$3.on("end", () => { resolve(Buffer.concat(buffer$2).toString("utf8")); }); - stream$2.on("error", (e) => { + stream$3.on("error", (e) => { if (e && (e === null || e === void 0 ? void 0 : e.name) === "AbortError") reject(e); else reject(new restError_js_1$7.RestError(`Error reading response as text: ${e.message}`, { code: restError_js_1$7.RestError.PARSE_ERROR })); }); @@ -3686,7 +3686,7 @@ var require_userAgentPlatform$1 = __commonJS({ "node_modules/.deno/@typespec+ts- exports.getHeaderName = getHeaderName$1; exports.setPlatformSpecificData = setPlatformSpecificData$1; const tslib_1$6 = require_tslib(); - const os$1 = tslib_1$6.__importStar(__require("node:os")); + const os$2 = tslib_1$6.__importStar(__require("node:os")); const process$3 = tslib_1$6.__importStar(__require("node:process")); /** * @internal @@ -3704,7 +3704,7 @@ var require_userAgentPlatform$1 = __commonJS({ "node_modules/.deno/@typespec+ts- else if (versions.deno) map.set("Deno", versions.deno); else if (versions.node) map.set("Node", versions.node); } - map.set("OS", `(${os$1.arch()}-${os$1.type()}-${os$1.release()})`); + map.set("OS", `(${os$2.arch()}-${os$2.type()}-${os$2.release()})`); } } }); @@ -4299,10 +4299,10 @@ var require_ms = __commonJS({ "node_modules/.deno/ms@2.1.3/node_modules/ms/index function parse$1(str) { str = String(str); if (str.length > 100) return; - var match$1 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); - if (!match$1) return; - var n = parseFloat(match$1[1]); - var type = (match$1[2] || "ms").toLowerCase(); + var match$2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); + if (!match$2) return; + var n = parseFloat(match$2[1]); + var type = (match$2[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": @@ -4446,17 +4446,17 @@ var require_common = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/d args[0] = createDebug.coerce(args[0]); if (typeof args[0] !== "string") args.unshift("%O"); let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match$1, format) => { - if (match$1 === "%%") return "%"; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match$2, format) => { + if (match$2 === "%%") return "%"; index++; const formatter = createDebug.formatters[format]; if (typeof formatter === "function") { const val = args[index]; - match$1 = formatter.call(self$1, val); + match$2 = formatter.call(self$1, val); args.splice(index, 1); index--; } - return match$1; + return match$2; }); createDebug.formatArgs.call(self$1, args); const logFn = self$1.log || createDebug.log; @@ -4708,10 +4708,10 @@ var require_browser = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/ args.splice(1, 0, c, "color: inherit"); let index = 0; let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, (match$1) => { - if (match$1 === "%%") return; + args[0].replace(/%[a-zA-Z%]/g, (match$2) => { + if (match$2 === "%%") return; index++; - if (match$1 === "%c") lastC = index; + if (match$2 === "%c") lastC = index; }); args.splice(lastC, 0, c); } @@ -4786,7 +4786,7 @@ var require_node = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/deb * Module dependencies. */ const tty = __require("tty"); - const util$2 = __require("util"); + const util$3 = __require("util"); /** * This is the Node.js implementation of `debug()`. */ @@ -4796,7 +4796,7 @@ var require_node = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/deb exports.save = save; exports.load = load; exports.useColors = useColors; - exports.destroy = util$2.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); + exports.destroy = util$3.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); /** * Colors. */ @@ -4937,7 +4937,7 @@ var require_node = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/deb * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. */ function log(...args) { - return process.stderr.write(util$2.formatWithOptions(exports.inspectOpts, ...args) + "\n"); + return process.stderr.write(util$3.formatWithOptions(exports.inspectOpts, ...args) + "\n"); } /** * Save `namespaces`. @@ -4976,14 +4976,14 @@ var require_node = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/deb */ formatters.o = function(v) { this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); + return util$3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); }; /** * Map %O to `util.inspect()`, allowing multiple lines if needed. */ formatters.O = function(v) { this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts); + return util$3.inspect(v, this.inspectOpts); }; } }); @@ -5001,7 +5001,7 @@ var require_src = __commonJS({ "node_modules/.deno/debug@4.4.0/node_modules/debu //#endregion //#region node_modules/.deno/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js var require_helpers = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js"(exports) { - var __createBinding$10 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$17 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -5015,7 +5015,7 @@ var require_helpers = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_mod if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$10 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$17 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -5023,31 +5023,31 @@ var require_helpers = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_mod } : function(o, v) { o["default"] = v; }); - var __importStar$10 = exports && exports.__importStar || function(mod) { + var __importStar$17 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$10(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$17(result, mod, k); } - __setModuleDefault$10(result, mod); + __setModuleDefault$17(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.req = exports.json = exports.toBuffer = void 0; - const http$1 = __importStar$10(__require("http")); - const https = __importStar$10(__require("https")); - async function toBuffer(stream$2) { + const http$1 = __importStar$17(__require("http")); + const https = __importStar$17(__require("https")); + async function toBuffer(stream$3) { let length = 0; const chunks = []; - for await (const chunk of stream$2) { + for await (const chunk of stream$3) { length += chunk.length; chunks.push(chunk); } return Buffer.concat(chunks, length); } exports.toBuffer = toBuffer; - async function json(stream$2) { - const buf = await toBuffer(stream$2); + async function json(stream$3) { + const buf = await toBuffer(stream$3); const str = buf.toString("utf8"); try { return JSON.parse(str); @@ -5073,7 +5073,7 @@ var require_helpers = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_mod //#endregion //#region node_modules/.deno/agent-base@7.1.3/node_modules/agent-base/dist/index.js var require_dist$4 = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_modules/agent-base/dist/index.js"(exports) { - var __createBinding$9 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$16 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -5087,7 +5087,7 @@ var require_dist$4 = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_modu if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$9 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$16 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -5095,22 +5095,22 @@ var require_dist$4 = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_modu } : function(o, v) { o["default"] = v; }); - var __importStar$9 = exports && exports.__importStar || function(mod) { + var __importStar$16 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$9(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$16(result, mod, k); } - __setModuleDefault$9(result, mod); + __setModuleDefault$16(result, mod); return result; }; var __exportStar = exports && exports.__exportStar || function(m$1, exports$1) { - for (var p in m$1) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding$9(exports$1, m$1, p); + for (var p in m$1) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding$16(exports$1, m$1, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Agent = void 0; - const net$2 = __importStar$9(__require("net")); - const http = __importStar$9(__require("http")); + const net$2 = __importStar$16(__require("net")); + const http = __importStar$16(__require("http")); const https_1 = __require("https"); __exportStar(require_helpers(), exports); const INTERNAL = Symbol("AgentBaseInternalState"); @@ -5200,12 +5200,12 @@ var require_dist$4 = __commonJS({ "node_modules/.deno/agent-base@7.1.3/node_modu //#endregion //#region node_modules/.deno/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/parse-proxy-response.js var require_parse_proxy_response = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) { - var __importDefault$2 = exports && exports.__importDefault || function(mod) { + var __importDefault$5 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseProxyResponse = void 0; - const debug_1$2 = __importDefault$2(require_src()); + const debug_1$2 = __importDefault$5(require_src()); const debug$2 = (0, debug_1$2.default)("https-proxy-agent:parse-proxy-response"); function parseProxyResponse(socket) { return new Promise((resolve, reject) => { @@ -5287,7 +5287,7 @@ var require_parse_proxy_response = __commonJS({ "node_modules/.deno/https-proxy- //#endregion //#region node_modules/.deno/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js var require_dist$3 = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js"(exports) { - var __createBinding$8 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$15 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -5301,7 +5301,7 @@ var require_dist$3 = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/no if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$8 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$15 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -5309,24 +5309,24 @@ var require_dist$3 = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/no } : function(o, v) { o["default"] = v; }); - var __importStar$8 = exports && exports.__importStar || function(mod) { + var __importStar$15 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$8(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$15(result, mod, k); } - __setModuleDefault$8(result, mod); + __setModuleDefault$15(result, mod); return result; }; - var __importDefault$1 = exports && exports.__importDefault || function(mod) { + var __importDefault$4 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpsProxyAgent = void 0; - const net$1 = __importStar$8(__require("net")); - const tls$1 = __importStar$8(__require("tls")); - const assert_1$5 = __importDefault$1(__require("assert")); - const debug_1$1 = __importDefault$1(require_src()); + const net$1 = __importStar$15(__require("net")); + const tls$1 = __importStar$15(__require("tls")); + const assert_1$8 = __importDefault$4(__require("assert")); + const debug_1$1 = __importDefault$4(require_src()); const agent_base_1$1 = require_dist$4(); const url_1$2 = __require("url"); const parse_proxy_response_1 = require_parse_proxy_response(); @@ -5412,7 +5412,7 @@ var require_dist$3 = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/no fakeSocket.readable = true; req$1.once("socket", (s$1) => { debug$1("Replaying proxy buffer for failed request"); - (0, assert_1$5.default)(s$1.listenerCount("data") > 0); + (0, assert_1$8.default)(s$1.listenerCount("data") > 0); s$1.push(buffered); s$1.push(null); }); @@ -5435,7 +5435,7 @@ var require_dist$3 = __commonJS({ "node_modules/.deno/https-proxy-agent@7.0.6/no //#endregion //#region node_modules/.deno/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js var require_dist$2 = __commonJS({ "node_modules/.deno/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js"(exports) { - var __createBinding$7 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$14 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -5449,7 +5449,7 @@ var require_dist$2 = __commonJS({ "node_modules/.deno/http-proxy-agent@7.0.2/nod if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$7 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$14 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -5457,23 +5457,23 @@ var require_dist$2 = __commonJS({ "node_modules/.deno/http-proxy-agent@7.0.2/nod } : function(o, v) { o["default"] = v; }); - var __importStar$7 = exports && exports.__importStar || function(mod) { + var __importStar$14 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$7(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$14(result, mod, k); } - __setModuleDefault$7(result, mod); + __setModuleDefault$14(result, mod); return result; }; - var __importDefault = exports && exports.__importDefault || function(mod) { + var __importDefault$3 = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpProxyAgent = void 0; - const net = __importStar$7(__require("net")); - const tls = __importStar$7(__require("tls")); - const debug_1 = __importDefault(require_src()); + const net = __importStar$14(__require("net")); + const tls = __importStar$14(__require("tls")); + const debug_1 = __importDefault$3(require_src()); const events_1 = __require("events"); const agent_base_1 = require_dist$4(); const url_1$1 = __require("url"); @@ -5796,11 +5796,11 @@ var require_concat = __commonJS({ "node_modules/.deno/@typespec+ts-http-runtime@ if (!webStream[Symbol.asyncIterator]) webStream[Symbol.asyncIterator] = streamAsyncIterator.bind(webStream); if (!webStream.values) webStream.values = streamAsyncIterator.bind(webStream); } - function ensureNodeStream(stream$2) { - if (stream$2 instanceof ReadableStream) { - makeAsyncIterable(stream$2); - return stream_1.Readable.fromWeb(stream$2); - } else return stream$2; + function ensureNodeStream(stream$3) { + if (stream$3 instanceof ReadableStream) { + makeAsyncIterable(stream$3); + return stream_1.Readable.fromWeb(stream$3); + } else return stream$3; } function toStream(source) { if (source instanceof Uint8Array) return stream_1.Readable.from(Buffer.from(source)); @@ -5822,8 +5822,8 @@ var require_concat = __commonJS({ "node_modules/.deno/@typespec+ts-http-runtime@ return stream_1.Readable.from(function() { return tslib_1$5.__asyncGenerator(this, arguments, function* () { var _a$2, e_1, _b$1, _c$1; - for (const stream$2 of streams) try { - for (var _d$1 = true, stream_2 = (e_1 = void 0, tslib_1$5.__asyncValues(stream$2)), stream_2_1; stream_2_1 = yield tslib_1$5.__await(stream_2.next()), _a$2 = stream_2_1.done, !_a$2; _d$1 = true) { + for (const stream$3 of streams) try { + for (var _d$1 = true, stream_2 = (e_1 = void 0, tslib_1$5.__asyncValues(stream$3)), stream_2_1; stream_2_1 = yield tslib_1$5.__await(stream_2.next()), _a$2 = stream_2_1.done, !_a$2; _d$1 = true) { _c$1 = stream_2_1.value; _d$1 = false; const chunk = _c$1; @@ -6353,9 +6353,9 @@ var require_sendRequest = __commonJS({ "node_modules/.deno/@typespec+ts-http-run try { const response = await pipeline.sendRequest(httpClient, request); const headers = response.headers.toJSON(); - const stream$2 = (_a$2 = response.readableStreamBody) !== null && _a$2 !== void 0 ? _a$2 : response.browserStreamBody; - const parsedBody = options.responseAsStream || stream$2 !== void 0 ? void 0 : getResponseBody(response); - const body$1 = stream$2 !== null && stream$2 !== void 0 ? stream$2 : parsedBody; + const stream$3 = (_a$2 = response.readableStreamBody) !== null && _a$2 !== void 0 ? _a$2 : response.browserStreamBody; + const parsedBody = options.responseAsStream || stream$3 !== void 0 ? void 0 : getResponseBody(response); + const body$1 = stream$3 !== null && stream$3 !== void 0 ? stream$3 : parsedBody; if (options === null || options === void 0 ? void 0 : options.onResponse) options.onResponse(Object.assign(Object.assign({}, response), { request, rawHeaders: headers, @@ -6599,8 +6599,8 @@ var require_getClient = __commonJS({ "node_modules/.deno/@typespec+ts-http-runti } const { allowInsecureConnection: allowInsecureConnection$1, httpClient } = clientOptions; const endpointUrl = (_c$1 = clientOptions.endpoint) !== null && _c$1 !== void 0 ? _c$1 : endpoint; - const client = (path$8, ...args) => { - const getUrl = (requestOptions) => (0, urlHelpers_js_1$1.buildRequestUrl)(endpointUrl, path$8, args, Object.assign({ allowInsecureConnection: allowInsecureConnection$1 }, requestOptions)); + const client = (path$13, ...args) => { + const getUrl = (requestOptions) => (0, urlHelpers_js_1$1.buildRequestUrl)(endpointUrl, path$13, args, Object.assign({ allowInsecureConnection: allowInsecureConnection$1 }, requestOptions)); return { get: (requestOptions = {}) => { return buildOperation("GET", getUrl(requestOptions), pipeline, requestOptions, allowInsecureConnection$1, httpClient); @@ -7241,7 +7241,7 @@ var require_userAgentPlatform = __commonJS({ "node_modules/.deno/@azure+core-res exports.getHeaderName = getHeaderName; exports.setPlatformSpecificData = setPlatformSpecificData; const tslib_1$3 = require_tslib(); - const os = tslib_1$3.__importStar(__require("node:os")); + const os$1 = tslib_1$3.__importStar(__require("node:os")); const process$2 = tslib_1$3.__importStar(__require("node:process")); /** * @internal @@ -7259,7 +7259,7 @@ var require_userAgentPlatform = __commonJS({ "node_modules/.deno/@azure+core-res else if (versions.deno) map.set("Deno", versions.deno); else if (versions.node) map.set("Node", versions.node); } - map.set("OS", `(${os.arch()}-${os.type()}-${os.release()})`); + map.set("OS", `(${os$1.arch()}-${os$1.type()}-${os$1.release()})`); } } }); @@ -7957,7 +7957,7 @@ var require_file = __commonJS({ "node_modules/.deno/@azure+core-rest-pipeline@1. * @param name - the name of the file. * @param options - optional metadata about the file, e.g. file name, file size, MIME type. */ - function createFileFromStream(stream$2, name, options = {}) { + function createFileFromStream(stream$3, name, options = {}) { var _a$2, _b$1, _c$1, _d$1; return Object.assign(Object.assign({}, unimplementedMethods), { type: (_a$2 = options.type) !== null && _a$2 !== void 0 ? _a$2 : "", @@ -7966,11 +7966,11 @@ var require_file = __commonJS({ "node_modules/.deno/@azure+core-rest-pipeline@1. size: (_d$1 = options.size) !== null && _d$1 !== void 0 ? _d$1 : -1, name, stream: () => { - const s$1 = stream$2(); + const s$1 = stream$3(); if (isNodeReadableStream(s$1)) throw new Error("Not supported: a Node stream was provided as input to createFileFromStream."); return s$1; }, - [rawContent]: stream$2 + [rawContent]: stream$3 }); } /** @@ -9084,10 +9084,10 @@ var require_bearerTokenAuthenticationPolicy = __commonJS({ "node_modules/.deno/@ const challengeRegex = /(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g; const paramRegex = /(\w+)="([^"]*)"/g; const parsedChallenges = []; - let match$1; - while ((match$1 = challengeRegex.exec(challenges)) !== null) { - const scheme = match$1[1]; - const paramsString = match$1[2]; + let match$2; + while ((match$2 = challengeRegex.exec(challenges)) !== null) { + const scheme = match$2[1]; + const paramsString = match$2[2]; const params = {}; let paramMatch; while ((paramMatch = paramRegex.exec(paramsString)) !== null) params[paramMatch[1]] = paramMatch[2]; @@ -9968,7 +9968,7 @@ var require_serializer = __commonJS({ "node_modules/.deno/@azure+core-client@1.9 throw new Error(`"${objectName}" with value "${value}" should satisfy the constraint "${constraintName}": ${constraintValue}.`); }; if (mapper.constraints && value !== void 0 && value !== null) { - const { ExclusiveMaximum, ExclusiveMinimum, InclusiveMaximum, InclusiveMinimum, MaxItems, MaxLength, MinItems, MinLength, MultipleOf, Pattern: Pattern$1, UniqueItems } = mapper.constraints; + const { ExclusiveMaximum, ExclusiveMinimum, InclusiveMaximum, InclusiveMinimum, MaxItems, MaxLength, MinItems, MinLength, MultipleOf, Pattern: Pattern$2, UniqueItems } = mapper.constraints; if (ExclusiveMaximum !== void 0 && value >= ExclusiveMaximum) failValidation("ExclusiveMaximum", ExclusiveMaximum); if (ExclusiveMinimum !== void 0 && value <= ExclusiveMinimum) failValidation("ExclusiveMinimum", ExclusiveMinimum); if (InclusiveMaximum !== void 0 && value > InclusiveMaximum) failValidation("InclusiveMaximum", InclusiveMaximum); @@ -9978,9 +9978,9 @@ var require_serializer = __commonJS({ "node_modules/.deno/@azure+core-client@1.9 if (MinItems !== void 0 && value.length < MinItems) failValidation("MinItems", MinItems); if (MinLength !== void 0 && value.length < MinLength) failValidation("MinLength", MinLength); if (MultipleOf !== void 0 && value % MultipleOf !== 0) failValidation("MultipleOf", MultipleOf); - if (Pattern$1) { - const pattern = typeof Pattern$1 === "string" ? new RegExp(Pattern$1) : Pattern$1; - if (typeof value !== "string" || value.match(pattern) === null) failValidation("Pattern", Pattern$1); + if (Pattern$2) { + const pattern = typeof Pattern$2 === "string" ? new RegExp(Pattern$2) : Pattern$2; + if (typeof value !== "string" || value.match(pattern) === null) failValidation("Pattern", Pattern$2); } if (UniqueItems && value.some((item, i, ar) => ar.indexOf(item) !== i)) failValidation("UniqueItems", UniqueItems); } @@ -10990,12 +10990,12 @@ var require_urlHelpers = __commonJS({ "node_modules/.deno/@azure+core-client@1.9 let isAbsolutePath = false; let requestUrl = replaceAll(baseUri, urlReplacements); if (operationSpec.path) { - let path$8 = replaceAll(operationSpec.path, urlReplacements); - if (operationSpec.path === "/{nextLink}" && path$8.startsWith("/")) path$8 = path$8.substring(1); - if (isAbsoluteUrl(path$8)) { - requestUrl = path$8; + let path$13 = replaceAll(operationSpec.path, urlReplacements); + if (operationSpec.path === "/{nextLink}" && path$13.startsWith("/")) path$13 = path$13.substring(1); + if (isAbsoluteUrl(path$13)) { + requestUrl = path$13; isAbsolutePath = true; - } else requestUrl = appendPath(requestUrl, path$8); + } else requestUrl = appendPath(requestUrl, path$13); } const { queryParams, sequenceParams } = calculateQueryParameters(operationSpec, operationArguments, fallbackObject); /** @@ -11035,9 +11035,9 @@ var require_urlHelpers = __commonJS({ "node_modules/.deno/@azure+core-client@1.9 if (pathToAppend.startsWith("/")) pathToAppend = pathToAppend.substring(1); const searchStart = pathToAppend.indexOf("?"); if (searchStart !== -1) { - const path$8 = pathToAppend.substring(0, searchStart); + const path$13 = pathToAppend.substring(0, searchStart); const search = pathToAppend.substring(searchStart + 1); - newPath = newPath + path$8; + newPath = newPath + path$13; if (search) parsedUrl.search = parsedUrl.search ? `${parsedUrl.search}&${search}` : search; } else newPath = newPath + pathToAppend; parsedUrl.pathname = newPath; @@ -14258,13 +14258,13 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. var coreXml = require_commonjs$3(); var logger$1 = require_commonjs$11(); var abortController = require_commonjs$10(); - var crypto = __require("crypto"); + var crypto$1 = __require("crypto"); var coreTracing = require_commonjs$8(); - var stream$1 = __require("stream"); + var stream$2 = __require("stream"); var coreLro = require_commonjs$2(); var events = __require("events"); - var fs$2 = __require("fs"); - var util$1 = __require("util"); + var fs$4 = __require("fs"); + var util$2 = __require("util"); var buffer$1 = __require("buffer"); function _interopNamespaceDefault(e) { var n = Object.create(null); @@ -14284,8 +14284,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. } var coreHttpCompat__namespace = /* @__PURE__ */ _interopNamespaceDefault(coreHttpCompat); var coreClient__namespace = /* @__PURE__ */ _interopNamespaceDefault(coreClient); - var fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs$2); - var util__namespace = /* @__PURE__ */ _interopNamespaceDefault(util$1); + var fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs$4); + var util__namespace = /* @__PURE__ */ _interopNamespaceDefault(util$2); /** * The `@azure/logger` configuration for this package. */ @@ -14580,10 +14580,10 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. */ function escapeURLPath(url$1) { const urlParsed = new URL(url$1); - let path$8 = urlParsed.pathname; - path$8 = path$8 || "/"; - path$8 = escape(path$8); - urlParsed.pathname = path$8; + let path$13 = urlParsed.pathname; + path$13 = path$13 || "/"; + path$13 = escape(path$13); + urlParsed.pathname = path$13; return urlParsed.toString(); } function getProxyUriFromDevConnString(connectionString) { @@ -14670,9 +14670,9 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. */ function appendToURLPath(url$1, name) { const urlParsed = new URL(url$1); - let path$8 = urlParsed.pathname; - path$8 = path$8 ? path$8.endsWith("/") ? `${path$8}${name}` : `${path$8}/${name}` : name; - urlParsed.pathname = path$8; + let path$13 = urlParsed.pathname; + path$13 = path$13 ? path$13.endsWith("/") ? `${path$13}${name}` : `${path$13}/${name}` : name; + urlParsed.pathname = path$13; return urlParsed.toString(); } /** @@ -15776,9 +15776,9 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param request - */ getCanonicalizedResourceString(request) { - const path$8 = getURLPath(request.url) || "/"; + const path$13 = getURLPath(request.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${this.factory.accountName}${path$8}`; + canonicalizedResourceString += `/${this.factory.accountName}${path$13}`; const queries = getURLQueries(request.url); const lowercaseQueries = {}; if (queries) { @@ -15840,7 +15840,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param stringToSign - */ computeHMACSHA256(stringToSign) { - return crypto.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64"); + return crypto$1.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64"); } }; /** @@ -16063,7 +16063,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE), getHeaderValueToSign(request, HeaderConstants.RANGE) ].join("\n") + "\n" + getCanonicalizedHeadersString(request) + getCanonicalizedResourceString(request); - const signature = crypto.createHmac("sha256", options.accountKey).update(stringToSign, "utf8").digest("base64"); + const signature = crypto$1.createHmac("sha256", options.accountKey).update(stringToSign, "utf8").digest("base64"); request.headers.set(HeaderConstants.AUTHORIZATION, `SharedKey ${options.accountName}:${signature}`); } /** @@ -16108,9 +16108,9 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. return canonicalizedHeadersStringToSign; } function getCanonicalizedResourceString(request) { - const path$8 = getURLPath(request.url) || "/"; + const path$13 = getURLPath(request.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${options.accountName}${path$8}`; + canonicalizedResourceString += `/${options.accountName}${path$13}`; const queries = getURLQueries(request.url); const lowercaseQueries = {}; if (queries) { @@ -27975,7 +27975,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param stringToSign - */ computeHMACSHA256(stringToSign) { - return crypto.createHmac("sha256", this.key).update(stringToSign, "utf8").digest("base64"); + return crypto$1.createHmac("sha256", this.key).update(stringToSign, "utf8").digest("base64"); } }; /** @@ -28746,7 +28746,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * * A Node.js ReadableStream will internally retry when internal ReadableStream unexpected ends. */ - var RetriableReadableStream = class extends stream$1.Readable { + var RetriableReadableStream = class extends stream$2.Readable { /** * Creates an instance of RetriableReadableStream. * @@ -29301,8 +29301,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param length - * @param options - */ - static async readFixedBytes(stream$2, length, options = {}) { - const bytes = await stream$2.read(length, { abortSignal: options.abortSignal }); + static async readFixedBytes(stream$3, length, options = {}) { + const bytes = await stream$3.read(length, { abortSignal: options.abortSignal }); if (bytes.length !== length) throw new Error("Hit stream end."); return bytes; } @@ -29312,16 +29312,16 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param stream - * @param options - */ - static async readByte(stream$2, options = {}) { - const buf = await AvroParser.readFixedBytes(stream$2, 1, options); + static async readByte(stream$3, options = {}) { + const buf = await AvroParser.readFixedBytes(stream$3, 1, options); return buf[0]; } - static async readZigZagLong(stream$2, options = {}) { + static async readZigZagLong(stream$3, options = {}) { let zigZagEncoded = 0; let significanceInBit = 0; let byte, haveMoreByte, significanceInFloat; do { - byte = await AvroParser.readByte(stream$2, options); + byte = await AvroParser.readByte(stream$3, options); haveMoreByte = byte & 128; zigZagEncoded |= (byte & 127) << significanceInBit; significanceInBit += 7; @@ -29330,7 +29330,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. zigZagEncoded = zigZagEncoded; significanceInFloat = 268435456; do { - byte = await AvroParser.readByte(stream$2, options); + byte = await AvroParser.readByte(stream$3, options); zigZagEncoded += (byte & 127) * significanceInFloat; significanceInFloat *= 128; } while (byte & 128); @@ -29340,67 +29340,67 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. } return zigZagEncoded >> 1 ^ -(zigZagEncoded & 1); } - static async readLong(stream$2, options = {}) { - return AvroParser.readZigZagLong(stream$2, options); + static async readLong(stream$3, options = {}) { + return AvroParser.readZigZagLong(stream$3, options); } - static async readInt(stream$2, options = {}) { - return AvroParser.readZigZagLong(stream$2, options); + static async readInt(stream$3, options = {}) { + return AvroParser.readZigZagLong(stream$3, options); } static async readNull() { return null; } - static async readBoolean(stream$2, options = {}) { - const b = await AvroParser.readByte(stream$2, options); + static async readBoolean(stream$3, options = {}) { + const b = await AvroParser.readByte(stream$3, options); if (b === 1) return true; else if (b === 0) return false; else throw new Error("Byte was not a boolean."); } - static async readFloat(stream$2, options = {}) { - const u8arr = await AvroParser.readFixedBytes(stream$2, 4, options); + static async readFloat(stream$3, options = {}) { + const u8arr = await AvroParser.readFixedBytes(stream$3, 4, options); const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength); return view.getFloat32(0, true); } - static async readDouble(stream$2, options = {}) { - const u8arr = await AvroParser.readFixedBytes(stream$2, 8, options); + static async readDouble(stream$3, options = {}) { + const u8arr = await AvroParser.readFixedBytes(stream$3, 8, options); const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength); return view.getFloat64(0, true); } - static async readBytes(stream$2, options = {}) { - const size = await AvroParser.readLong(stream$2, options); + static async readBytes(stream$3, options = {}) { + const size = await AvroParser.readLong(stream$3, options); if (size < 0) throw new Error("Bytes size was negative."); - return stream$2.read(size, { abortSignal: options.abortSignal }); + return stream$3.read(size, { abortSignal: options.abortSignal }); } - static async readString(stream$2, options = {}) { - const u8arr = await AvroParser.readBytes(stream$2, options); + static async readString(stream$3, options = {}) { + const u8arr = await AvroParser.readBytes(stream$3, options); const utf8decoder = new TextDecoder(); return utf8decoder.decode(u8arr); } - static async readMapPair(stream$2, readItemMethod, options = {}) { - const key = await AvroParser.readString(stream$2, options); - const value = await readItemMethod(stream$2, options); + static async readMapPair(stream$3, readItemMethod, options = {}) { + const key = await AvroParser.readString(stream$3, options); + const value = await readItemMethod(stream$3, options); return { key, value }; } - static async readMap(stream$2, readItemMethod, options = {}) { + static async readMap(stream$3, readItemMethod, options = {}) { const readPairMethod = (s$1, opts = {}) => { return AvroParser.readMapPair(s$1, readItemMethod, opts); }; - const pairs = await AvroParser.readArray(stream$2, readPairMethod, options); + const pairs = await AvroParser.readArray(stream$3, readPairMethod, options); const dict = {}; for (const pair of pairs) dict[pair.key] = pair.value; return dict; } - static async readArray(stream$2, readItemMethod, options = {}) { + static async readArray(stream$3, readItemMethod, options = {}) { const items = []; - for (let count = await AvroParser.readLong(stream$2, options); count !== 0; count = await AvroParser.readLong(stream$2, options)) { + for (let count = await AvroParser.readLong(stream$3, options); count !== 0; count = await AvroParser.readLong(stream$3, options)) { if (count < 0) { - await AvroParser.readLong(stream$2, options); + await AvroParser.readLong(stream$3, options); count = -count; } while (count--) { - const item = await readItemMethod(stream$2, options); + const item = await readItemMethod(stream$3, options); items.push(item); } } @@ -29483,16 +29483,16 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. super(); this._primitive = primitive; } - read(stream$2, options = {}) { + read(stream$3, options = {}) { switch (this._primitive) { case AvroPrimitive.NULL: return AvroParser.readNull(); - case AvroPrimitive.BOOLEAN: return AvroParser.readBoolean(stream$2, options); - case AvroPrimitive.INT: return AvroParser.readInt(stream$2, options); - case AvroPrimitive.LONG: return AvroParser.readLong(stream$2, options); - case AvroPrimitive.FLOAT: return AvroParser.readFloat(stream$2, options); - case AvroPrimitive.DOUBLE: return AvroParser.readDouble(stream$2, options); - case AvroPrimitive.BYTES: return AvroParser.readBytes(stream$2, options); - case AvroPrimitive.STRING: return AvroParser.readString(stream$2, options); + case AvroPrimitive.BOOLEAN: return AvroParser.readBoolean(stream$3, options); + case AvroPrimitive.INT: return AvroParser.readInt(stream$3, options); + case AvroPrimitive.LONG: return AvroParser.readLong(stream$3, options); + case AvroPrimitive.FLOAT: return AvroParser.readFloat(stream$3, options); + case AvroPrimitive.DOUBLE: return AvroParser.readDouble(stream$3, options); + case AvroPrimitive.BYTES: return AvroParser.readBytes(stream$3, options); + case AvroPrimitive.STRING: return AvroParser.readString(stream$3, options); default: throw new Error("Unknown Avro Primitive"); } } @@ -29502,8 +29502,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. super(); this._symbols = symbols; } - async read(stream$2, options = {}) { - const value = await AvroParser.readInt(stream$2, options); + async read(stream$3, options = {}) { + const value = await AvroParser.readInt(stream$3, options); return this._symbols[value]; } }; @@ -29512,9 +29512,9 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. super(); this._types = types; } - async read(stream$2, options = {}) { - const typeIndex = await AvroParser.readInt(stream$2, options); - return this._types[typeIndex].read(stream$2, options); + async read(stream$3, options = {}) { + const typeIndex = await AvroParser.readInt(stream$3, options); + return this._types[typeIndex].read(stream$3, options); } }; var AvroMapType = class extends AvroType { @@ -29522,11 +29522,11 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. super(); this._itemType = itemType; } - read(stream$2, options = {}) { + read(stream$3, options = {}) { const readItemMethod = (s$1, opts) => { return this._itemType.read(s$1, opts); }; - return AvroParser.readMap(stream$2, readItemMethod, options); + return AvroParser.readMap(stream$3, readItemMethod, options); } }; var AvroRecordType = class extends AvroType { @@ -29535,10 +29535,10 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. this._fields = fields; this._name = name; } - async read(stream$2, options = {}) { + async read(stream$3, options = {}) { const record = {}; record["$schema"] = this._name; - for (const key in this._fields) if (Object.prototype.hasOwnProperty.call(this._fields, key)) record[key] = await this._fields[key].read(stream$2, options); + for (const key in this._fields) if (Object.prototype.hasOwnProperty.call(this._fields, key)) record[key] = await this._fields[key].read(stream$3, options); return record; } }; @@ -29671,7 +29671,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * * A Node.js BlobQuickQueryStream will internally parse avro data stream for blob query. */ - var BlobQuickQueryStream = class extends stream$1.Readable { + var BlobQuickQueryStream = class extends stream$2.Readable { /** * Creates an instance of BlobQuickQueryStream. * @@ -30458,7 +30458,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. /** * This class generates a readable stream from the data in an array of buffers. */ - var BuffersStream = class extends stream$1.Readable { + var BuffersStream = class extends stream$2.Readable { /** * Creates an instance of BuffersStream that will emit the data * contained in the array of buffers. @@ -30805,30 +30805,30 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param end - To which position in the buffer to be filled, exclusive * @param encoding - Encoding of the Readable stream */ - async function streamToBuffer(stream$2, buffer$2, offset, end, encoding) { + async function streamToBuffer(stream$3, buffer$2, offset, end, encoding) { let pos = 0; const count = end - offset; return new Promise((resolve, reject) => { const timeout = setTimeout(() => reject(new Error(`The operation cannot be completed in timeout.`)), REQUEST_TIMEOUT); - stream$2.on("readable", () => { + stream$3.on("readable", () => { if (pos >= count) { clearTimeout(timeout); resolve(); return; } - let chunk = stream$2.read(); + let chunk = stream$3.read(); if (!chunk) return; if (typeof chunk === "string") chunk = Buffer.from(chunk, encoding); const chunkLength = pos + chunk.length > count ? count - pos : chunk.length; buffer$2.fill(chunk.slice(0, chunkLength), offset + pos, offset + pos + chunkLength); pos += chunkLength; }); - stream$2.on("end", () => { + stream$3.on("end", () => { clearTimeout(timeout); if (pos < count) reject(new Error(`Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`)); resolve(); }); - stream$2.on("error", (msg) => { + stream$3.on("error", (msg) => { clearTimeout(timeout); reject(msg); }); @@ -30843,12 +30843,12 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @returns with the count of bytes read. * @throws `RangeError` If buffer size is not big enough. */ - async function streamToBuffer2(stream$2, buffer$2, encoding) { + async function streamToBuffer2(stream$3, buffer$2, encoding) { let pos = 0; const bufferSize = buffer$2.length; return new Promise((resolve, reject) => { - stream$2.on("readable", () => { - let chunk = stream$2.read(); + stream$3.on("readable", () => { + let chunk = stream$3.read(); if (!chunk) return; if (typeof chunk === "string") chunk = Buffer.from(chunk, encoding); if (pos + chunk.length > bufferSize) { @@ -30858,10 +30858,10 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. buffer$2.fill(chunk, pos, pos + chunk.length); pos += chunk.length; }); - stream$2.on("end", () => { + stream$3.on("end", () => { resolve(pos); }); - stream$2.on("error", reject); + stream$3.on("error", reject); }); } /** @@ -31559,8 +31559,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. customerProvidedKey: options.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions }); - const stream$2 = response.readableStreamBody; - await streamToBuffer(stream$2, buffer$2, off - offset, chunkEnd - offset); + const stream$3 = response.readableStreamBody; + await streamToBuffer(stream$3, buffer$2, off - offset, chunkEnd - offset); transferProgress += chunkEnd - off; if (options.onProgress) options.onProgress({ loadedBytes: transferProgress }); }); @@ -32485,7 +32485,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. * @param options - Options to Upload Stream to Block Blob operation. * @returns Response data for the Blob Upload operation. */ - async uploadStream(stream$2, bufferSize = DEFAULT_BLOCK_BUFFER_SIZE_BYTES, maxConcurrency = 5, options = {}) { + async uploadStream(stream$3, bufferSize = DEFAULT_BLOCK_BUFFER_SIZE_BYTES, maxConcurrency = 5, options = {}) { if (!options.blobHTTPHeaders) options.blobHTTPHeaders = {}; if (!options.conditions) options.conditions = {}; return tracingClient.withSpan("BlockBlobClient-uploadStream", options, async (updatedOptions) => { @@ -32494,7 +32494,7 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. let transferProgress = 0; const blockList = []; const scheduler = new BufferScheduler( - stream$2, + stream$3, bufferSize, maxConcurrency, async (body$1, length) => { @@ -33506,8 +33506,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. } preAddSubRequest(subRequest) { if (this.operationCount >= BATCH_MAX_REQUEST) throw new RangeError(`Cannot exceed ${BATCH_MAX_REQUEST} sub requests in a single batch`); - const path$8 = getURLPath(subRequest.url); - if (!path$8 || path$8 === "") throw new RangeError(`Invalid url for sub request: '${subRequest.url}'`); + const path$13 = getURLPath(subRequest.url); + if (!path$13 || path$13 === "") throw new RangeError(`Invalid url for sub request: '${subRequest.url}'`); } postAddSubRequest(subRequest) { this.subRequests.set(this.operationCount, subRequest); @@ -33559,8 +33559,8 @@ var require_dist$1 = __commonJS({ "node_modules/.deno/@azure+storage-blob@12.27. else if (!credentialOrPipeline) pipeline = newPipeline(new AnonymousCredential(), options); else pipeline = newPipeline(credentialOrPipeline, options); const storageClientContext = new StorageContextClient(url$1, getCoreClientOptions(pipeline)); - const path$8 = getURLPath(url$1); - if (path$8 && path$8 !== "/") this.serviceOrContainerContext = storageClientContext.container; + const path$13 = getURLPath(url$1); + if (path$13 && path$13 !== "/") this.serviceOrContainerContext = storageClientContext.container; else this.serviceOrContainerContext = storageClientContext.service; } /** @@ -35807,7 +35807,7 @@ var require_errors = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_ //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/uploadUtils.js var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/uploadUtils.js"(exports) { - var __createBinding$6 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$13 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -35821,7 +35821,7 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$6 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$13 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -35829,16 +35829,16 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ } : function(o, v) { o["default"] = v; }); - var __importStar$6 = exports && exports.__importStar || function(mod) { + var __importStar$13 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$6(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$13(result, mod, k); } - __setModuleDefault$6(result, mod); + __setModuleDefault$13(result, mod); return result; }; - var __awaiter$11 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$14 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -35867,7 +35867,7 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.uploadCacheArchiveSDK = exports.UploadProgress = void 0; - const core$5 = __importStar$6(require_core()); + const core$8 = __importStar$13(require_core()); const storage_blob_1$1 = require_dist$1(); const errors_1$1 = require_errors(); /** @@ -35910,7 +35910,7 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ const percentage = (100 * (transferredBytes / this.contentLength)).toFixed(1); const elapsedTime = Date.now() - this.startTime; const uploadSpeed = (transferredBytes / (1024 * 1024) / (elapsedTime / 1e3)).toFixed(1); - core$5.info(`Sent ${transferredBytes} of ${this.contentLength} (${percentage}%), ${uploadSpeed} MBs/sec`); + core$8.info(`Sent ${transferredBytes} of ${this.contentLength} (${percentage}%), ${uploadSpeed} MBs/sec`); if (this.isDone()) this.displayedComplete = true; } /** @@ -35959,7 +35959,7 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ */ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { var _a$2; - return __awaiter$11(this, void 0, void 0, function* () { + return __awaiter$14(this, void 0, void 0, function* () { const blobClient = new storage_blob_1$1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); const uploadProgress = new UploadProgress((_a$2 = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a$2 !== void 0 ? _a$2 : 0); @@ -35971,12 +35971,12 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ }; try { uploadProgress.startDisplayTimer(); - core$5.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); + core$8.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); if (response._response.status >= 400) throw new errors_1$1.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${response._response.status}`); return response; } catch (error) { - core$5.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${error.message}`); + core$8.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${error.message}`); throw error; } finally { uploadProgress.stopDisplayTimer(); @@ -35989,7 +35989,7 @@ var require_uploadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/ //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/requestUtils.js var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/requestUtils.js"(exports) { - var __createBinding$5 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$12 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -36003,7 +36003,7 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$5 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$12 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -36011,16 +36011,16 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 } : function(o, v) { o["default"] = v; }); - var __importStar$5 = exports && exports.__importStar || function(mod) { + var __importStar$12 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$5(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$12(result, mod, k); } - __setModuleDefault$5(result, mod); + __setModuleDefault$12(result, mod); return result; }; - var __awaiter$10 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$13 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -36049,7 +36049,7 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 }; Object.defineProperty(exports, "__esModule", { value: true }); exports.retryHttpClientResponse = exports.retryTypedResponse = exports.retry = exports.isRetryableStatusCode = exports.isServerErrorStatusCode = exports.isSuccessStatusCode = void 0; - const core$4 = __importStar$5(require_core()); + const core$7 = __importStar$12(require_core()); const http_client_1$3 = require_lib(); const constants_1$3 = require_constants$3(); function isSuccessStatusCode(statusCode) { @@ -36073,12 +36073,12 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 } exports.isRetryableStatusCode = isRetryableStatusCode; function sleep(milliseconds) { - return __awaiter$10(this, void 0, void 0, function* () { + return __awaiter$13(this, void 0, void 0, function* () { return new Promise((resolve) => setTimeout(resolve, milliseconds)); }); } function retry(name, method, getStatusCode, maxAttempts = constants_1$3.DefaultRetryAttempts, delay$4 = constants_1$3.DefaultRetryDelay, onError = void 0) { - return __awaiter$10(this, void 0, void 0, function* () { + return __awaiter$13(this, void 0, void 0, function* () { let errorMessage = ""; let attempt = 1; while (attempt <= maxAttempts) { @@ -36100,9 +36100,9 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 isRetryable = isRetryableStatusCode(statusCode); errorMessage = `Cache service responded with ${statusCode}`; } - core$4.debug(`${name} - Attempt ${attempt} of ${maxAttempts} failed with error: ${errorMessage}`); + core$7.debug(`${name} - Attempt ${attempt} of ${maxAttempts} failed with error: ${errorMessage}`); if (!isRetryable) { - core$4.debug(`${name} - Error is not retryable`); + core$7.debug(`${name} - Error is not retryable`); break; } yield sleep(delay$4); @@ -36113,7 +36113,7 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 } exports.retry = retry; function retryTypedResponse(name, method, maxAttempts = constants_1$3.DefaultRetryAttempts, delay$4 = constants_1$3.DefaultRetryDelay) { - return __awaiter$10(this, void 0, void 0, function* () { + return __awaiter$13(this, void 0, void 0, function* () { return yield retry( name, method, @@ -36136,7 +36136,7 @@ var require_requestUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3 } exports.retryTypedResponse = retryTypedResponse; function retryHttpClientResponse(name, method, maxAttempts = constants_1$3.DefaultRetryAttempts, delay$4 = constants_1$3.DefaultRetryDelay) { - return __awaiter$10(this, void 0, void 0, function* () { + return __awaiter$13(this, void 0, void 0, function* () { return yield retry(name, method, (response) => response.message.statusCode, maxAttempts, delay$4); }); } @@ -36339,7 +36339,7 @@ var require_dist = __commonJS({ "node_modules/.deno/@azure+abort-controller@1.1. //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/downloadUtils.js var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/downloadUtils.js"(exports) { - var __createBinding$4 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$11 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -36353,7 +36353,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$4 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$11 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -36361,16 +36361,16 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. } : function(o, v) { o["default"] = v; }); - var __importStar$4 = exports && exports.__importStar || function(mod) { + var __importStar$11 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$4(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$11(result, mod, k); } - __setModuleDefault$4(result, mod); + __setModuleDefault$11(result, mod); return result; }; - var __awaiter$9 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$12 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -36399,14 +36399,14 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. }; Object.defineProperty(exports, "__esModule", { value: true }); exports.downloadCacheStorageSDK = exports.downloadCacheHttpClientConcurrent = exports.downloadCacheHttpClient = exports.DownloadProgress = void 0; - const core$3 = __importStar$4(require_core()); + const core$6 = __importStar$11(require_core()); const http_client_1$2 = require_lib(); const storage_blob_1 = require_dist$1(); - const buffer = __importStar$4(__require("buffer")); - const fs$1 = __importStar$4(__require("fs")); - const stream = __importStar$4(__require("stream")); - const util = __importStar$4(__require("util")); - const utils$3 = __importStar$4(require_cacheUtils()); + const buffer = __importStar$11(__require("buffer")); + const fs$3 = __importStar$11(__require("fs")); + const stream$1 = __importStar$11(__require("stream")); + const util$1 = __importStar$11(__require("util")); + const utils$3 = __importStar$11(require_cacheUtils()); const constants_1$2 = require_constants$3(); const requestUtils_1$1 = require_requestUtils(); const abort_controller_1 = require_dist(); @@ -36417,8 +36417,8 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. * @param output the writable stream */ function pipeResponseToStream(response, output) { - return __awaiter$9(this, void 0, void 0, function* () { - const pipeline = util.promisify(stream.pipeline); + return __awaiter$12(this, void 0, void 0, function* () { + const pipeline = util$1.promisify(stream$1.pipeline); yield pipeline(response.message, output); }); } @@ -36446,7 +36446,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. this.segmentIndex = this.segmentIndex + 1; this.segmentSize = segmentSize; this.receivedBytes = 0; - core$3.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`); + core$6.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`); } /** * Sets the number of bytes received for the current segment. @@ -36478,7 +36478,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. const percentage = (100 * (transferredBytes / this.contentLength)).toFixed(1); const elapsedTime = Date.now() - this.startTime; const downloadSpeed = (transferredBytes / (1024 * 1024) / (elapsedTime / 1e3)).toFixed(1); - core$3.info(`Received ${transferredBytes} of ${this.contentLength} (${percentage}%), ${downloadSpeed} MBs/sec`); + core$6.info(`Received ${transferredBytes} of ${this.contentLength} (${percentage}%), ${downloadSpeed} MBs/sec`); if (this.isDone()) this.displayedComplete = true; } /** @@ -36522,15 +36522,15 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. * @param archivePath the local path where the cache is saved */ function downloadCacheHttpClient(archiveLocation, archivePath) { - return __awaiter$9(this, void 0, void 0, function* () { - const writeStream = fs$1.createWriteStream(archivePath); + return __awaiter$12(this, void 0, void 0, function* () { + const writeStream = fs$3.createWriteStream(archivePath); const httpClient = new http_client_1$2.HttpClient("actions/cache"); - const downloadResponse = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCache", () => __awaiter$9(this, void 0, void 0, function* () { + const downloadResponse = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCache", () => __awaiter$12(this, void 0, void 0, function* () { return httpClient.get(archiveLocation); })); downloadResponse.message.socket.setTimeout(constants_1$2.SocketTimeout, () => { downloadResponse.message.destroy(); - core$3.debug(`Aborting download, socket timed out after ${constants_1$2.SocketTimeout} ms`); + core$6.debug(`Aborting download, socket timed out after ${constants_1$2.SocketTimeout} ms`); }); yield pipeResponseToStream(downloadResponse, writeStream); const contentLengthHeader = downloadResponse.message.headers["content-length"]; @@ -36538,7 +36538,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. const expectedLength = parseInt(contentLengthHeader); const actualLength = utils$3.getArchiveFileSizeInBytes(archivePath); if (actualLength !== expectedLength) throw new Error(`Incomplete download. Expected file size: ${expectedLength}, actual file size: ${actualLength}`); - } else core$3.debug("Unable to validate download, no Content-Length header"); + } else core$6.debug("Unable to validate download, no Content-Length header"); }); } exports.downloadCacheHttpClient = downloadCacheHttpClient; @@ -36550,14 +36550,14 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. */ function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options) { var _a$2; - return __awaiter$9(this, void 0, void 0, function* () { - const archiveDescriptor = yield fs$1.promises.open(archivePath, "w"); + return __awaiter$12(this, void 0, void 0, function* () { + const archiveDescriptor = yield fs$3.promises.open(archivePath, "w"); const httpClient = new http_client_1$2.HttpClient("actions/cache", void 0, { socketTimeout: options.timeoutInMs, keepAlive: true }); try { - const res = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCacheMetadata", () => __awaiter$9(this, void 0, void 0, function* () { + const res = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCacheMetadata", () => __awaiter$12(this, void 0, void 0, function* () { return yield httpClient.request("HEAD", archiveLocation, null, {}); })); const lengthHeader = res.message.headers["content-length"]; @@ -36570,7 +36570,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. const count = Math.min(blockSize, length - offset); downloads.push({ offset, - promiseGetter: () => __awaiter$9(this, void 0, void 0, function* () { + promiseGetter: () => __awaiter$12(this, void 0, void 0, function* () { return yield downloadSegmentRetry(httpClient, archiveLocation, offset, count); }) }); @@ -36583,7 +36583,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. const progressFn = progress.onProgress(); const activeDownloads = []; let nextDownload; - const waitAndWrite = () => __awaiter$9(this, void 0, void 0, function* () { + const waitAndWrite = () => __awaiter$12(this, void 0, void 0, function* () { const segment = yield Promise.race(Object.values(activeDownloads)); yield archiveDescriptor.write(segment.buffer, 0, segment.count, segment.offset); actives--; @@ -36605,7 +36605,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. } exports.downloadCacheHttpClientConcurrent = downloadCacheHttpClientConcurrent; function downloadSegmentRetry(httpClient, archiveLocation, offset, count) { - return __awaiter$9(this, void 0, void 0, function* () { + return __awaiter$12(this, void 0, void 0, function* () { const retries = 5; let failures = 0; while (true) try { @@ -36620,8 +36620,8 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. }); } function downloadSegment(httpClient, archiveLocation, offset, count) { - return __awaiter$9(this, void 0, void 0, function* () { - const partRes = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCachePart", () => __awaiter$9(this, void 0, void 0, function* () { + return __awaiter$12(this, void 0, void 0, function* () { + const partRes = yield (0, requestUtils_1$1.retryHttpClientResponse)("downloadCachePart", () => __awaiter$12(this, void 0, void 0, function* () { return yield httpClient.get(archiveLocation, { Range: `bytes=${offset}-${offset + count - 1}` }); })); if (!partRes.readBodyBuffer) throw new Error("Expected HttpClientResponse to implement readBodyBuffer"); @@ -36642,17 +36642,17 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. */ function downloadCacheStorageSDK(archiveLocation, archivePath, options) { var _a$2; - return __awaiter$9(this, void 0, void 0, function* () { + return __awaiter$12(this, void 0, void 0, function* () { const client = new storage_blob_1.BlockBlobClient(archiveLocation, void 0, { retryOptions: { tryTimeoutInMs: options.timeoutInMs } }); const properties = yield client.getProperties(); const contentLength$1 = (_a$2 = properties.contentLength) !== null && _a$2 !== void 0 ? _a$2 : -1; if (contentLength$1 < 0) { - core$3.debug("Unable to determine content length, downloading file with http-client..."); + core$6.debug("Unable to determine content length, downloading file with http-client..."); yield downloadCacheHttpClient(archiveLocation, archivePath); } else { const maxSegmentSize = Math.min(134217728, buffer.constants.MAX_LENGTH); const downloadProgress = new DownloadProgress(contentLength$1); - const fd = fs$1.openSync(archivePath, "w"); + const fd = fs$3.openSync(archivePath, "w"); try { downloadProgress.startDisplayTimer(); const controller = new abort_controller_1.AbortController(); @@ -36669,17 +36669,17 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. if (result === "timeout") { controller.abort(); throw new Error("Aborting cache download as the download time exceeded the timeout."); - } else if (Buffer.isBuffer(result)) fs$1.writeFileSync(fd, result); + } else if (Buffer.isBuffer(result)) fs$3.writeFileSync(fd, result); } } finally { downloadProgress.stopDisplayTimer(); - fs$1.closeSync(fd); + fs$3.closeSync(fd); } } }); } exports.downloadCacheStorageSDK = downloadCacheStorageSDK; - const promiseWithTimeout = (timeoutMs, promise) => __awaiter$9(void 0, void 0, void 0, function* () { + const promiseWithTimeout = (timeoutMs, promise) => __awaiter$12(void 0, void 0, void 0, function* () { let timeoutHandle; const timeoutPromise = new Promise((resolve) => { timeoutHandle = setTimeout(() => resolve("timeout"), timeoutMs); @@ -36694,7 +36694,7 @@ var require_downloadUtils = __commonJS({ "node_modules/.deno/@actions+cache@4.0. //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/options.js var require_options = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/options.js"(exports) { - var __createBinding$3 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$10 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -36708,7 +36708,7 @@ var require_options = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$3 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$10 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -36716,18 +36716,18 @@ var require_options = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node } : function(o, v) { o["default"] = v; }); - var __importStar$3 = exports && exports.__importStar || function(mod) { + var __importStar$10 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$3(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$10(result, mod, k); } - __setModuleDefault$3(result, mod); + __setModuleDefault$10(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDownloadOptions = exports.getUploadOptions = void 0; - const core$2 = __importStar$3(require_core()); + const core$5 = __importStar$10(require_core()); /** * Returns a copy of the upload options with defaults filled in. * @@ -36749,9 +36749,9 @@ var require_options = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node */ result.uploadConcurrency = !isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"])) ? Math.min(32, Number(process.env["CACHE_UPLOAD_CONCURRENCY"])) : result.uploadConcurrency; result.uploadChunkSize = !isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])) ? Math.min(128 * 1024 * 1024, Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]) * 1024 * 1024) : result.uploadChunkSize; - core$2.debug(`Use Azure SDK: ${result.useAzureSdk}`); - core$2.debug(`Upload concurrency: ${result.uploadConcurrency}`); - core$2.debug(`Upload chunk size: ${result.uploadChunkSize}`); + core$5.debug(`Use Azure SDK: ${result.useAzureSdk}`); + core$5.debug(`Upload concurrency: ${result.uploadConcurrency}`); + core$5.debug(`Upload chunk size: ${result.uploadChunkSize}`); return result; } exports.getUploadOptions = getUploadOptions; @@ -36779,12 +36779,12 @@ var require_options = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node } const segmentDownloadTimeoutMins = process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]; if (segmentDownloadTimeoutMins && !isNaN(Number(segmentDownloadTimeoutMins)) && isFinite(Number(segmentDownloadTimeoutMins))) result.segmentTimeoutInMs = Number(segmentDownloadTimeoutMins) * 60 * 1e3; - core$2.debug(`Use Azure SDK: ${result.useAzureSdk}`); - core$2.debug(`Download concurrency: ${result.downloadConcurrency}`); - core$2.debug(`Request timeout (ms): ${result.timeoutInMs}`); - core$2.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`); - core$2.debug(`Segment download timeout (ms): ${result.segmentTimeoutInMs}`); - core$2.debug(`Lookup only: ${result.lookupOnly}`); + core$5.debug(`Use Azure SDK: ${result.useAzureSdk}`); + core$5.debug(`Download concurrency: ${result.downloadConcurrency}`); + core$5.debug(`Request timeout (ms): ${result.timeoutInMs}`); + core$5.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`); + core$5.debug(`Segment download timeout (ms): ${result.segmentTimeoutInMs}`); + core$5.debug(`Lookup only: ${result.lookupOnly}`); return result; } exports.getDownloadOptions = getDownloadOptions; @@ -36892,7 +36892,7 @@ var require_user_agent = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/n //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/cacheHttpClient.js var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/cacheHttpClient.js"(exports) { - var __createBinding$2 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$9 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -36906,7 +36906,7 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$9 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -36914,16 +36914,16 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. } : function(o, v) { o["default"] = v; }); - var __importStar$2 = exports && exports.__importStar || function(mod) { + var __importStar$9 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$2(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$9(result, mod, k); } - __setModuleDefault$2(result, mod); + __setModuleDefault$9(result, mod); return result; }; - var __awaiter$8 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$11 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -36952,12 +36952,12 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. }; Object.defineProperty(exports, "__esModule", { value: true }); exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = void 0; - const core$1 = __importStar$2(require_core()); + const core$4 = __importStar$9(require_core()); const http_client_1$1 = require_lib(); const auth_1$1 = require_auth(); - const fs = __importStar$2(__require("fs")); + const fs$2 = __importStar$9(__require("fs")); const url_1 = __require("url"); - const utils$2 = __importStar$2(require_cacheUtils()); + const utils$2 = __importStar$9(require_cacheUtils()); const uploadUtils_1 = require_uploadUtils(); const downloadUtils_1 = require_downloadUtils(); const options_1 = require_options(); @@ -36968,7 +36968,7 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. const baseUrl = (0, config_1$2.getCacheServiceURL)(); if (!baseUrl) throw new Error("Cache Service Url not found, unable to restore cache."); const url$1 = `${baseUrl}_apis/artifactcache/${resource}`; - core$1.debug(`Resource Url: ${url$1}`); + core$4.debug(`Resource Url: ${url$1}`); return url$1; } function createAcceptHeader(type, apiVersion) { @@ -36984,46 +36984,46 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. return new http_client_1$1.HttpClient((0, user_agent_1$1.getUserAgentString)(), [bearerCredentialHandler], getRequestOptions()); } function getCacheEntry(keys, paths, options) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const httpClient = createHttpClient(); const version$1 = utils$2.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive); const resource = `cache?keys=${encodeURIComponent(keys.join(","))}&version=${version$1}`; - const response = yield (0, requestUtils_1.retryTypedResponse)("getCacheEntry", () => __awaiter$8(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("getCacheEntry", () => __awaiter$11(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); })); if (response.statusCode === 204) { - if (core$1.isDebug()) yield printCachesListForDiagnostics(keys[0], httpClient, version$1); + if (core$4.isDebug()) yield printCachesListForDiagnostics(keys[0], httpClient, version$1); return null; } if (!(0, requestUtils_1.isSuccessStatusCode)(response.statusCode)) throw new Error(`Cache service responded with ${response.statusCode}`); const cacheResult = response.result; const cacheDownloadUrl = cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.archiveLocation; if (!cacheDownloadUrl) throw new Error("Cache not found."); - core$1.setSecret(cacheDownloadUrl); - core$1.debug(`Cache Result:`); - core$1.debug(JSON.stringify(cacheResult)); + core$4.setSecret(cacheDownloadUrl); + core$4.debug(`Cache Result:`); + core$4.debug(JSON.stringify(cacheResult)); return cacheResult; }); } exports.getCacheEntry = getCacheEntry; function printCachesListForDiagnostics(key, httpClient, version$1) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const resource = `caches?key=${encodeURIComponent(key)}`; - const response = yield (0, requestUtils_1.retryTypedResponse)("listCache", () => __awaiter$8(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("listCache", () => __awaiter$11(this, void 0, void 0, function* () { return httpClient.getJson(getCacheApiUrl(resource)); })); if (response.statusCode === 200) { const cacheListResult = response.result; const totalCount = cacheListResult === null || cacheListResult === void 0 ? void 0 : cacheListResult.totalCount; if (totalCount && totalCount > 0) { - core$1.debug(`No matching cache found for cache key '${key}', version '${version$1} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`); - for (const cacheEntry of (cacheListResult === null || cacheListResult === void 0 ? void 0 : cacheListResult.artifactCaches) || []) core$1.debug(`Cache Key: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cacheKey}, Cache Version: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cacheVersion}, Cache Scope: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.scope}, Cache Created: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.creationTime}`); + core$4.debug(`No matching cache found for cache key '${key}', version '${version$1} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`); + for (const cacheEntry of (cacheListResult === null || cacheListResult === void 0 ? void 0 : cacheListResult.artifactCaches) || []) core$4.debug(`Cache Key: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cacheKey}, Cache Version: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cacheVersion}, Cache Scope: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.scope}, Cache Created: ${cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.creationTime}`); } } }); } function downloadCache(archiveLocation, archivePath, options) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const archiveUrl = new url_1.URL(archiveLocation); const downloadOptions = (0, options_1.getDownloadOptions)(options); if (archiveUrl.hostname.endsWith(".blob.core.windows.net")) if (downloadOptions.useAzureSdk) yield (0, downloadUtils_1.downloadCacheStorageSDK)(archiveLocation, archivePath, downloadOptions); @@ -37034,7 +37034,7 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. } exports.downloadCache = downloadCache; function reserveCache(key, paths, options) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const httpClient = createHttpClient(); const version$1 = utils$2.getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive); const reserveCacheRequest = { @@ -37042,7 +37042,7 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. version: version$1, cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize }; - const response = yield (0, requestUtils_1.retryTypedResponse)("reserveCache", () => __awaiter$8(this, void 0, void 0, function* () { + const response = yield (0, requestUtils_1.retryTypedResponse)("reserveCache", () => __awaiter$11(this, void 0, void 0, function* () { return httpClient.postJson(getCacheApiUrl("caches"), reserveCacheRequest); })); return response; @@ -37053,37 +37053,37 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. return `bytes ${start}-${end}/*`; } function uploadChunk(httpClient, resourceUrl, openStream, start, end) { - return __awaiter$8(this, void 0, void 0, function* () { - core$1.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`); + return __awaiter$11(this, void 0, void 0, function* () { + core$4.debug(`Uploading chunk of size ${end - start + 1} bytes at offset ${start} with content range: ${getContentRange(start, end)}`); const additionalHeaders = { "Content-Type": "application/octet-stream", "Content-Range": getContentRange(start, end) }; - const uploadChunkResponse = yield (0, requestUtils_1.retryHttpClientResponse)(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter$8(this, void 0, void 0, function* () { + const uploadChunkResponse = yield (0, requestUtils_1.retryHttpClientResponse)(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter$11(this, void 0, void 0, function* () { return httpClient.sendStream("PATCH", resourceUrl, openStream(), additionalHeaders); })); if (!(0, requestUtils_1.isSuccessStatusCode)(uploadChunkResponse.message.statusCode)) throw new Error(`Cache service responded with ${uploadChunkResponse.message.statusCode} during upload chunk.`); }); } function uploadFile(httpClient, cacheId, archivePath, options) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const fileSize = utils$2.getArchiveFileSizeInBytes(archivePath); const resourceUrl = getCacheApiUrl(`caches/${cacheId.toString()}`); - const fd = fs.openSync(archivePath, "r"); + const fd = fs$2.openSync(archivePath, "r"); const uploadOptions = (0, options_1.getUploadOptions)(options); const concurrency = utils$2.assertDefined("uploadConcurrency", uploadOptions.uploadConcurrency); const maxChunkSize = utils$2.assertDefined("uploadChunkSize", uploadOptions.uploadChunkSize); const parallelUploads = [...new Array(concurrency).keys()]; - core$1.debug("Awaiting all uploads"); + core$4.debug("Awaiting all uploads"); let offset = 0; try { - yield Promise.all(parallelUploads.map(() => __awaiter$8(this, void 0, void 0, function* () { + yield Promise.all(parallelUploads.map(() => __awaiter$11(this, void 0, void 0, function* () { while (offset < fileSize) { const chunkSize = Math.min(fileSize - offset, maxChunkSize); const start = offset; const end = offset + chunkSize - 1; offset += maxChunkSize; - yield uploadChunk(httpClient, resourceUrl, () => fs.createReadStream(archivePath, { + yield uploadChunk(httpClient, resourceUrl, () => fs$2.createReadStream(archivePath, { fd, start, end, @@ -37094,35 +37094,35 @@ var require_cacheHttpClient = __commonJS({ "node_modules/.deno/@actions+cache@4. } }))); } finally { - fs.closeSync(fd); + fs$2.closeSync(fd); } return; }); } function commitCache(httpClient, cacheId, filesize) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const commitCacheRequest = { size: filesize }; - return yield (0, requestUtils_1.retryTypedResponse)("commitCache", () => __awaiter$8(this, void 0, void 0, function* () { + return yield (0, requestUtils_1.retryTypedResponse)("commitCache", () => __awaiter$11(this, void 0, void 0, function* () { return httpClient.postJson(getCacheApiUrl(`caches/${cacheId.toString()}`), commitCacheRequest); })); }); } function saveCache$2(cacheId, archivePath, signedUploadURL, options) { - return __awaiter$8(this, void 0, void 0, function* () { + return __awaiter$11(this, void 0, void 0, function* () { const uploadOptions = (0, options_1.getUploadOptions)(options); if (uploadOptions.useAzureSdk) { if (!signedUploadURL) throw new Error("Azure Storage SDK can only be used when a signed URL is provided."); yield (0, uploadUtils_1.uploadCacheArchiveSDK)(signedUploadURL, archivePath, options); } else { const httpClient = createHttpClient(); - core$1.debug("Upload cache"); + core$4.debug("Upload cache"); yield uploadFile(httpClient, cacheId, archivePath, options); - core$1.debug("Commiting cache"); + core$4.debug("Commiting cache"); const cacheSize = utils$2.getArchiveFileSizeInBytes(archivePath); - core$1.info(`Cache Size: ~${Math.round(cacheSize / (1024 * 1024))} MB (${cacheSize} B)`); + core$4.info(`Cache Size: ~${Math.round(cacheSize / (1024 * 1024))} MB (${cacheSize} B)`); const commitCacheResponse = yield commitCache(httpClient, cacheId, cacheSize); if (!(0, requestUtils_1.isSuccessStatusCode)(commitCacheResponse.statusCode)) throw new Error(`Cache service responded with ${commitCacheResponse.statusCode} during commit cache.`); - core$1.info("Cache saved successfully"); + core$4.info("Cache saved successfully"); } }); } @@ -38038,7 +38038,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim exports.BinaryWriter = exports.binaryWriteOptions = void 0; const pb_long_1$5 = require_pb_long(); const goog_varint_1 = require_goog_varint(); - const assert_1$4 = require_assert(); + const assert_1$7 = require_assert(); const defaultsWrite$1 = { writeUnknownFields: true, writerFactory: () => new BinaryWriter() @@ -38129,7 +38129,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `uint32` value, an unsigned 32 bit varint. */ uint32(value) { - assert_1$4.assertUInt32(value); + assert_1$7.assertUInt32(value); while (value > 127) { this.buf.push(value & 127 | 128); value = value >>> 7; @@ -38141,7 +38141,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `int32` value, a signed 32 bit varint. */ int32(value) { - assert_1$4.assertInt32(value); + assert_1$7.assertInt32(value); goog_varint_1.varint32write(value, this.buf); return this; } @@ -38171,7 +38171,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `float` value, 32-bit floating point number. */ float(value) { - assert_1$4.assertFloat32(value); + assert_1$7.assertFloat32(value); let chunk = new Uint8Array(4); new DataView(chunk.buffer).setFloat32(0, value, true); return this.raw(chunk); @@ -38188,7 +38188,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. */ fixed32(value) { - assert_1$4.assertUInt32(value); + assert_1$7.assertUInt32(value); let chunk = new Uint8Array(4); new DataView(chunk.buffer).setUint32(0, value, true); return this.raw(chunk); @@ -38197,7 +38197,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. */ sfixed32(value) { - assert_1$4.assertInt32(value); + assert_1$7.assertInt32(value); let chunk = new Uint8Array(4); new DataView(chunk.buffer).setInt32(0, value, true); return this.raw(chunk); @@ -38206,7 +38206,7 @@ var require_binary_writer = __commonJS({ "node_modules/.deno/@protobuf-ts+runtim * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. */ sint32(value) { - assert_1$4.assertInt32(value); + assert_1$7.assertInt32(value); value = (value << 1 ^ value >> 31) >>> 0; goog_varint_1.varint32write(value, this.buf); return this; @@ -38788,7 +38788,7 @@ var require_reflection_json_reader = __commonJS({ "node_modules/.deno/@protobuf- const base64_1$2 = require_base64(); const reflection_info_1$9 = require_reflection_info$1(); const pb_long_1$4 = require_pb_long(); - const assert_1$3 = require_assert(); + const assert_1$6 = require_assert(); const reflection_long_convert_1$2 = require_reflection_long_convert(); /** * Reads proto3 messages in canonical JSON format using reflection information. @@ -38918,21 +38918,21 @@ var require_reflection_json_reader = __commonJS({ "node_modules/.deno/@protobuf- * google.protobuf.NullValue accepts only JSON `null` (or the old `"NULL_VALUE"`). */ enum(type, json$1, fieldName, ignoreUnknownFields) { - if (type[0] == "google.protobuf.NullValue") assert_1$3.assert(json$1 === null || json$1 === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`); + if (type[0] == "google.protobuf.NullValue") assert_1$6.assert(json$1 === null || json$1 === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`); if (json$1 === null) return 0; switch (typeof json$1) { case "number": - assert_1$3.assert(Number.isInteger(json$1), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json$1}.`); + assert_1$6.assert(Number.isInteger(json$1), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json$1}.`); return json$1; case "string": let localEnumName = json$1; if (type[2] && json$1.substring(0, type[2].length) === type[2]) localEnumName = json$1.substring(type[2].length); let enumNumber = type[1][localEnumName]; if (typeof enumNumber === "undefined" && ignoreUnknownFields) return false; - assert_1$3.assert(typeof enumNumber == "number", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for "${json$1}".`); + assert_1$6.assert(typeof enumNumber == "number", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for "${json$1}".`); return enumNumber; } - assert_1$3.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json$1}".`); + assert_1$6.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json$1}".`); } scalar(json$1, type, longType, fieldName) { let e; @@ -38962,7 +38962,7 @@ var require_reflection_json_reader = __commonJS({ "node_modules/.deno/@protobuf- e = "too large or small"; break; } - if (type == reflection_info_1$9.ScalarType.FLOAT) assert_1$3.assertFloat32(float); + if (type == reflection_info_1$9.ScalarType.FLOAT) assert_1$6.assertFloat32(float); return float; case reflection_info_1$9.ScalarType.INT32: case reflection_info_1$9.ScalarType.FIXED32: @@ -38976,8 +38976,8 @@ var require_reflection_json_reader = __commonJS({ "node_modules/.deno/@protobuf- else if (typeof json$1 == "string") if (json$1.trim().length !== json$1.length) e = "extra whitespace"; else int32 = Number(json$1); if (int32 === void 0) break; - if (type == reflection_info_1$9.ScalarType.UINT32) assert_1$3.assertUInt32(int32); - else assert_1$3.assertInt32(int32); + if (type == reflection_info_1$9.ScalarType.UINT32) assert_1$6.assertUInt32(int32); + else assert_1$6.assertInt32(int32); return int32; case reflection_info_1$9.ScalarType.INT64: case reflection_info_1$9.ScalarType.SFIXED64: @@ -39029,7 +39029,7 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- const base64_1$1 = require_base64(); const pb_long_1$3 = require_pb_long(); const reflection_info_1$8 = require_reflection_info$1(); - const assert_1$2 = require_assert(); + const assert_1$5 = require_assert(); /** * Writes proto3 messages in canonical JSON format using reflection * information. @@ -39056,7 +39056,7 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- if (group.oneofKind !== field.localName) continue; const opt = field.kind == "scalar" || field.kind == "enum" ? Object.assign(Object.assign({}, options), { emitDefaultValues: true }) : options; let jsonValue = this.field(field, group[field.localName], opt); - assert_1$2.assert(jsonValue !== void 0); + assert_1$5.assert(jsonValue !== void 0); json$1[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue; } return json$1; @@ -39064,13 +39064,13 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- field(field, value, options) { let jsonValue = void 0; if (field.kind == "map") { - assert_1$2.assert(typeof value == "object" && value !== null); + assert_1$5.assert(typeof value == "object" && value !== null); const jsonObj = {}; switch (field.V.kind) { case "scalar": for (const [entryKey, entryValue] of Object.entries(value)) { const val = this.scalar(field.V.T, entryValue, field.name, false, true); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonObj[entryKey.toString()] = val; } break; @@ -39078,38 +39078,38 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- const messageType = field.V.T(); for (const [entryKey, entryValue] of Object.entries(value)) { const val = this.message(messageType, entryValue, field.name, options); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonObj[entryKey.toString()] = val; } break; case "enum": const enumInfo = field.V.T(); for (const [entryKey, entryValue] of Object.entries(value)) { - assert_1$2.assert(entryValue === void 0 || typeof entryValue == "number"); + assert_1$5.assert(entryValue === void 0 || typeof entryValue == "number"); const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonObj[entryKey.toString()] = val; } break; } if (options.emitDefaultValues || Object.keys(jsonObj).length > 0) jsonValue = jsonObj; } else if (field.repeat) { - assert_1$2.assert(Array.isArray(value)); + assert_1$5.assert(Array.isArray(value)); const jsonArr = []; switch (field.kind) { case "scalar": for (let i = 0; i < value.length; i++) { const val = this.scalar(field.T, value[i], field.name, field.opt, true); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonArr.push(val); } break; case "enum": const enumInfo = field.T(); for (let i = 0; i < value.length; i++) { - assert_1$2.assert(value[i] === void 0 || typeof value[i] == "number"); + assert_1$5.assert(value[i] === void 0 || typeof value[i] == "number"); const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonArr.push(val); } break; @@ -39117,7 +39117,7 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- const messageType = field.T(); for (let i = 0; i < value.length; i++) { const val = this.message(messageType, value[i], field.name, options); - assert_1$2.assert(val !== void 0); + assert_1$5.assert(val !== void 0); jsonArr.push(val); } break; @@ -39142,12 +39142,12 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) { if (type[0] == "google.protobuf.NullValue") return !emitDefaultValues && !optional ? void 0 : null; if (value === void 0) { - assert_1$2.assert(optional); + assert_1$5.assert(optional); return void 0; } if (value === 0 && !emitDefaultValues && !optional) return void 0; - assert_1$2.assert(typeof value == "number"); - assert_1$2.assert(Number.isInteger(value)); + assert_1$5.assert(typeof value == "number"); + assert_1$5.assert(Number.isInteger(value)); if (enumAsInteger || !type[1].hasOwnProperty(value)) return value; if (type[2]) return type[2] + type[1][value]; return type[1][value]; @@ -39158,7 +39158,7 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- } scalar(type, value, fieldName, optional, emitDefaultValues) { if (value === void 0) { - assert_1$2.assert(optional); + assert_1$5.assert(optional); return void 0; } const ed = emitDefaultValues || optional; @@ -39167,44 +39167,44 @@ var require_reflection_json_writer = __commonJS({ "node_modules/.deno/@protobuf- case reflection_info_1$8.ScalarType.SFIXED32: case reflection_info_1$8.ScalarType.SINT32: if (value === 0) return ed ? 0 : void 0; - assert_1$2.assertInt32(value); + assert_1$5.assertInt32(value); return value; case reflection_info_1$8.ScalarType.FIXED32: case reflection_info_1$8.ScalarType.UINT32: if (value === 0) return ed ? 0 : void 0; - assert_1$2.assertUInt32(value); + assert_1$5.assertUInt32(value); return value; - case reflection_info_1$8.ScalarType.FLOAT: assert_1$2.assertFloat32(value); + case reflection_info_1$8.ScalarType.FLOAT: assert_1$5.assertFloat32(value); case reflection_info_1$8.ScalarType.DOUBLE: if (value === 0) return ed ? 0 : void 0; - assert_1$2.assert(typeof value == "number"); + assert_1$5.assert(typeof value == "number"); if (Number.isNaN(value)) return "NaN"; if (value === Number.POSITIVE_INFINITY) return "Infinity"; if (value === Number.NEGATIVE_INFINITY) return "-Infinity"; return value; case reflection_info_1$8.ScalarType.STRING: if (value === "") return ed ? "" : void 0; - assert_1$2.assert(typeof value == "string"); + assert_1$5.assert(typeof value == "string"); return value; case reflection_info_1$8.ScalarType.BOOL: if (value === false) return ed ? false : void 0; - assert_1$2.assert(typeof value == "boolean"); + assert_1$5.assert(typeof value == "boolean"); return value; case reflection_info_1$8.ScalarType.UINT64: case reflection_info_1$8.ScalarType.FIXED64: - assert_1$2.assert(typeof value == "number" || typeof value == "string" || typeof value == "bigint"); + assert_1$5.assert(typeof value == "number" || typeof value == "string" || typeof value == "bigint"); let ulong = pb_long_1$3.PbULong.from(value); if (ulong.isZero() && !ed) return void 0; return ulong.toString(); case reflection_info_1$8.ScalarType.INT64: case reflection_info_1$8.ScalarType.SFIXED64: case reflection_info_1$8.ScalarType.SINT64: - assert_1$2.assert(typeof value == "number" || typeof value == "string" || typeof value == "bigint"); + assert_1$5.assert(typeof value == "number" || typeof value == "string" || typeof value == "bigint"); let long = pb_long_1$3.PbLong.from(value); if (long.isZero() && !ed) return void 0; return long.toString(); case reflection_info_1$8.ScalarType.BYTES: - assert_1$2.assert(value instanceof Uint8Array); + assert_1$5.assert(value instanceof Uint8Array); if (!value.byteLength) return ed ? "" : void 0; return base64_1$1.base64encode(value); } @@ -39398,7 +39398,7 @@ var require_reflection_binary_writer = __commonJS({ "node_modules/.deno/@protobu exports.ReflectionBinaryWriter = void 0; const binary_format_contract_1$1 = require_binary_format_contract(); const reflection_info_1$5 = require_reflection_info$1(); - const assert_1$1 = require_assert(); + const assert_1$4 = require_assert(); const pb_long_1$1 = require_pb_long(); /** * Writes proto3 messages in binary format using reflection information. @@ -39436,20 +39436,20 @@ var require_reflection_binary_writer = __commonJS({ "node_modules/.deno/@protobu case "enum": let T = field.kind == "enum" ? reflection_info_1$5.ScalarType.INT32 : field.T; if (repeated) { - assert_1$1.assert(Array.isArray(value)); + assert_1$4.assert(Array.isArray(value)); if (repeated == reflection_info_1$5.RepeatType.PACKED) this.packed(writer, T, field.no, value); else for (const item of value) this.scalar(writer, T, field.no, item, true); - } else if (value === void 0) assert_1$1.assert(field.opt); + } else if (value === void 0) assert_1$4.assert(field.opt); else this.scalar(writer, T, field.no, value, emitDefault || field.opt); break; case "message": if (repeated) { - assert_1$1.assert(Array.isArray(value)); + assert_1$4.assert(Array.isArray(value)); for (const item of value) this.message(writer, options, field.T(), field.no, item); } else this.message(writer, options, field.T(), field.no, value); break; case "map": - assert_1$1.assert(typeof value == "object" && value !== null); + assert_1$4.assert(typeof value == "object" && value !== null); for (const [key, val] of Object.entries(value)) this.mapEntry(writer, options, field, key, val); break; } @@ -39470,7 +39470,7 @@ var require_reflection_binary_writer = __commonJS({ "node_modules/.deno/@protobu keyValue = Number.parseInt(key); break; case reflection_info_1$5.ScalarType.BOOL: - assert_1$1.assert(key == "true" || key == "false"); + assert_1$4.assert(key == "true" || key == "false"); keyValue = key == "true"; break; } @@ -39508,7 +39508,7 @@ var require_reflection_binary_writer = __commonJS({ "node_modules/.deno/@protobu */ packed(writer, type, fieldNo, value) { if (!value.length) return; - assert_1$1.assert(type !== reflection_info_1$5.ScalarType.BYTES && type !== reflection_info_1$5.ScalarType.STRING); + assert_1$4.assert(type !== reflection_info_1$5.ScalarType.BYTES && type !== reflection_info_1$5.ScalarType.STRING); writer.tag(fieldNo, binary_format_contract_1$1.WireType.LengthDelimited); writer.fork(); let [, method] = this.scalarInfo(type); @@ -40358,35 +40358,35 @@ var require_commonjs$1 = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime@2 return lower_camel_case_1.lowerCamelCase; } }); - var assert_1 = require_assert(); + var assert_1$3 = require_assert(); Object.defineProperty(exports, "assert", { enumerable: true, get: function() { - return assert_1.assert; + return assert_1$3.assert; } }); Object.defineProperty(exports, "assertNever", { enumerable: true, get: function() { - return assert_1.assertNever; + return assert_1$3.assertNever; } }); Object.defineProperty(exports, "assertInt32", { enumerable: true, get: function() { - return assert_1.assertInt32; + return assert_1$3.assertInt32; } }); Object.defineProperty(exports, "assertUInt32", { enumerable: true, get: function() { - return assert_1.assertUInt32; + return assert_1$3.assertUInt32; } }); Object.defineProperty(exports, "assertFloat32", { enumerable: true, get: function() { - return assert_1.assertFloat32; + return assert_1$3.assertFloat32; } }); } }); @@ -40788,7 +40788,7 @@ var require_rpc_output_stream = __commonJS({ "node_modules/.deno/@protobuf-ts+ru //#endregion //#region node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js var require_unary_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js"(exports) { - var __awaiter$7 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$10 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -40839,7 +40839,7 @@ var require_unary_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-r return this.promiseFinished().then((value) => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, (reason) => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason)); } promiseFinished() { - return __awaiter$7(this, void 0, void 0, function* () { + return __awaiter$10(this, void 0, void 0, function* () { let [headers, response, status, trailers] = yield Promise.all([ this.headers, this.response, @@ -40864,7 +40864,7 @@ var require_unary_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-r //#endregion //#region node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js var require_server_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js"(exports) { - var __awaiter$6 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$9 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -40917,7 +40917,7 @@ var require_server_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t return this.promiseFinished().then((value) => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, (reason) => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason)); } promiseFinished() { - return __awaiter$6(this, void 0, void 0, function* () { + return __awaiter$9(this, void 0, void 0, function* () { let [headers, status, trailers] = yield Promise.all([ this.headers, this.status, @@ -40940,7 +40940,7 @@ var require_server_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t //#endregion //#region node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js var require_client_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js"(exports) { - var __awaiter$5 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$8 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -40993,7 +40993,7 @@ var require_client_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t return this.promiseFinished().then((value) => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, (reason) => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason)); } promiseFinished() { - return __awaiter$5(this, void 0, void 0, function* () { + return __awaiter$8(this, void 0, void 0, function* () { let [headers, response, status, trailers] = yield Promise.all([ this.headers, this.response, @@ -41017,7 +41017,7 @@ var require_client_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t //#endregion //#region node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js var require_duplex_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js"(exports) { - var __awaiter$4 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$7 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -41070,7 +41070,7 @@ var require_duplex_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t return this.promiseFinished().then((value) => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, (reason) => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason)); } promiseFinished() { - return __awaiter$4(this, void 0, void 0, function* () { + return __awaiter$7(this, void 0, void 0, function* () { let [headers, status, trailers] = yield Promise.all([ this.headers, this.status, @@ -41092,7 +41092,7 @@ var require_duplex_streaming_call = __commonJS({ "node_modules/.deno/@protobuf-t //#endregion //#region node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js var require_test_transport = __commonJS({ "node_modules/.deno/@protobuf-ts+runtime-rpc@2.10.0/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js"(exports) { - var __awaiter$3 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$6 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -41189,8 +41189,8 @@ var require_test_transport = __commonJS({ "node_modules/.deno/@protobuf-ts+runti * The returned promise resolves when the stream is closed. It should * not reject. If it does, code is broken. */ - streamResponses(method, stream$2, abort) { - return __awaiter$3(this, void 0, void 0, function* () { + streamResponses(method, stream$3, abort) { + return __awaiter$6(this, void 0, void 0, function* () { const messages = []; if (this.data.response === void 0) messages.push(method.O.create()); else if (Array.isArray(this.data.response)) for (let msg of this.data.response) { @@ -41204,31 +41204,31 @@ var require_test_transport = __commonJS({ "node_modules/.deno/@protobuf-ts+runti try { yield delay(this.responseDelay, abort)(void 0); } catch (error) { - stream$2.notifyError(error); + stream$3.notifyError(error); return; } if (this.data.response instanceof rpc_error_1$1.RpcError) { - stream$2.notifyError(this.data.response); + stream$3.notifyError(this.data.response); return; } for (let msg of messages) { - stream$2.notifyMessage(msg); + stream$3.notifyMessage(msg); try { yield delay(this.betweenResponseDelay, abort)(void 0); } catch (error) { - stream$2.notifyError(error); + stream$3.notifyError(error); return; } } if (this.data.status instanceof rpc_error_1$1.RpcError) { - stream$2.notifyError(this.data.status); + stream$3.notifyError(this.data.status); return; } if (this.data.trailers instanceof rpc_error_1$1.RpcError) { - stream$2.notifyError(this.data.trailers); + stream$3.notifyError(this.data.trailers); return; } - stream$2.notifyComplete(); + stream$3.notifyComplete(); }); } promiseStatus() { @@ -42347,7 +42347,7 @@ var require_util = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mo //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js var require_cacheTwirpClient = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js"(exports) { - var __awaiter$2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$5 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -42405,12 +42405,12 @@ var require_cacheTwirpClient = __commonJS({ "node_modules/.deno/@actions+cache@4 this.httpClient = new http_client_1.HttpClient(userAgent, [new auth_1.BearerCredentialHandler(token)]); } request(service, method, contentType$1, data) { - return __awaiter$2(this, void 0, void 0, function* () { + return __awaiter$5(this, void 0, void 0, function* () { const url$1 = new URL(`/twirp/${service}/${method}`, this.baseUrl).href; (0, core_1.debug)(`[Request] ${method} ${url$1}`); const headers = { "Content-Type": contentType$1 }; try { - const { body: body$1 } = yield this.retryableRequest(() => __awaiter$2(this, void 0, void 0, function* () { + const { body: body$1 } = yield this.retryableRequest(() => __awaiter$5(this, void 0, void 0, function* () { return this.httpClient.post(url$1, JSON.stringify(data), headers); })); return body$1; @@ -42420,7 +42420,7 @@ var require_cacheTwirpClient = __commonJS({ "node_modules/.deno/@actions+cache@4 }); } retryableRequest(operation) { - return __awaiter$2(this, void 0, void 0, function* () { + return __awaiter$5(this, void 0, void 0, function* () { let attempt = 0; let errorMessage = ""; let rawBody = ""; @@ -42478,7 +42478,7 @@ var require_cacheTwirpClient = __commonJS({ "node_modules/.deno/@actions+cache@4 return retryableStatusCodes.includes(statusCode); } sleep(milliseconds) { - return __awaiter$2(this, void 0, void 0, function* () { + return __awaiter$5(this, void 0, void 0, function* () { return new Promise((resolve) => setTimeout(resolve, milliseconds)); }); } @@ -42500,7 +42500,7 @@ var require_cacheTwirpClient = __commonJS({ "node_modules/.deno/@actions+cache@4 //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/tar.js var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/internal/tar.js"(exports) { - var __createBinding$1 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$8 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -42514,7 +42514,7 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$8 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -42522,16 +42522,16 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod } : function(o, v) { o["default"] = v; }); - var __importStar$1 = exports && exports.__importStar || function(mod) { + var __importStar$8 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$1(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$8(result, mod, k); } - __setModuleDefault$1(result, mod); + __setModuleDefault$8(result, mod); return result; }; - var __awaiter$1 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$4 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -42561,14 +42561,14 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod Object.defineProperty(exports, "__esModule", { value: true }); exports.createTar = exports.extractTar = exports.listTar = void 0; const exec_1 = require_exec(); - const io = __importStar$1(require_io()); + const io = __importStar$8(require_io()); const fs_1 = __require("fs"); - const path$1 = __importStar$1(__require("path")); - const utils$1 = __importStar$1(require_cacheUtils()); + const path$6 = __importStar$8(__require("path")); + const utils$1 = __importStar$8(require_cacheUtils()); const constants_1$1 = require_constants$3(); - const IS_WINDOWS = process.platform === "win32"; + const IS_WINDOWS$5 = process.platform === "win32"; function getTarPath() { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { switch (process.platform) { case "win32": { const gnuTar = yield utils$1.getGnuTarPathOnWindows(); @@ -42603,21 +42603,21 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod }); } function getTarArgs(tarPath, compressionMethod, type, archivePath = "") { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { const args = [`"${tarPath.path}"`]; const cacheFileName = utils$1.getCacheFileName(compressionMethod); const tarFile = "cache.tar"; const workingDirectory = getWorkingDirectory(); - const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS; + const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS$5; switch (type) { case "create": - args.push("--posix", "-cf", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), "--exclude", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), "--files-from", constants_1$1.ManifestFilename); + args.push("--posix", "-cf", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), "--exclude", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), "--files-from", constants_1$1.ManifestFilename); break; case "extract": - args.push("-xf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path$1.sep}`, "g"), "/")); + args.push("-xf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path$6.sep}`, "g"), "/")); break; case "list": - args.push("-tf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), "-P"); + args.push("-tf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), "-P"); break; } if (tarPath.type === constants_1$1.ArchiveToolType.GNU) switch (process.platform) { @@ -42632,12 +42632,12 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod }); } function getCommands(compressionMethod, type, archivePath = "") { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { let args; const tarPath = yield getTarPath(); const tarArgs = yield getTarArgs(tarPath, compressionMethod, type, archivePath); const compressionArgs = type !== "create" ? yield getDecompressionProgram(tarPath, compressionMethod, archivePath) : yield getCompressionProgram(tarPath, compressionMethod); - const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS; + const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS$5; if (BSD_TAR_ZSTD && type !== "create") args = [[...compressionArgs].join(" "), [...tarArgs].join(" ")]; else args = [[...tarArgs].join(" "), [...compressionArgs].join(" ")]; if (BSD_TAR_ZSTD) return args; @@ -42649,44 +42649,44 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod return (_a$2 = process.env["GITHUB_WORKSPACE"]) !== null && _a$2 !== void 0 ? _a$2 : process.cwd(); } function getDecompressionProgram(tarPath, compressionMethod, archivePath) { - return __awaiter$1(this, void 0, void 0, function* () { - const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS; + return __awaiter$4(this, void 0, void 0, function* () { + const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS$5; switch (compressionMethod) { case constants_1$1.CompressionMethod.Zstd: return BSD_TAR_ZSTD ? [ "zstd -d --long=30 --force -o", constants_1$1.TarFilename, - archivePath.replace(new RegExp(`\\${path$1.sep}`, "g"), "/") - ] : ["--use-compress-program", IS_WINDOWS ? "\"zstd -d --long=30\"" : "unzstd --long=30"]; + archivePath.replace(new RegExp(`\\${path$6.sep}`, "g"), "/") + ] : ["--use-compress-program", IS_WINDOWS$5 ? "\"zstd -d --long=30\"" : "unzstd --long=30"]; case constants_1$1.CompressionMethod.ZstdWithoutLong: return BSD_TAR_ZSTD ? [ "zstd -d --force -o", constants_1$1.TarFilename, - archivePath.replace(new RegExp(`\\${path$1.sep}`, "g"), "/") - ] : ["--use-compress-program", IS_WINDOWS ? "\"zstd -d\"" : "unzstd"]; + archivePath.replace(new RegExp(`\\${path$6.sep}`, "g"), "/") + ] : ["--use-compress-program", IS_WINDOWS$5 ? "\"zstd -d\"" : "unzstd"]; default: return ["-z"]; } }); } function getCompressionProgram(tarPath, compressionMethod) { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { const cacheFileName = utils$1.getCacheFileName(compressionMethod); - const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS; + const BSD_TAR_ZSTD = tarPath.type === constants_1$1.ArchiveToolType.BSD && compressionMethod !== constants_1$1.CompressionMethod.Gzip && IS_WINDOWS$5; switch (compressionMethod) { case constants_1$1.CompressionMethod.Zstd: return BSD_TAR_ZSTD ? [ "zstd -T0 --long=30 --force -o", - cacheFileName.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), + cacheFileName.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), constants_1$1.TarFilename - ] : ["--use-compress-program", IS_WINDOWS ? "\"zstd -T0 --long=30\"" : "zstdmt --long=30"]; + ] : ["--use-compress-program", IS_WINDOWS$5 ? "\"zstd -T0 --long=30\"" : "zstdmt --long=30"]; case constants_1$1.CompressionMethod.ZstdWithoutLong: return BSD_TAR_ZSTD ? [ "zstd -T0 --force -o", - cacheFileName.replace(new RegExp(`\\${path$1.sep}`, "g"), "/"), + cacheFileName.replace(new RegExp(`\\${path$6.sep}`, "g"), "/"), constants_1$1.TarFilename - ] : ["--use-compress-program", IS_WINDOWS ? "\"zstd -T0\"" : "zstdmt"]; + ] : ["--use-compress-program", IS_WINDOWS$5 ? "\"zstd -T0\"" : "zstdmt"]; default: return ["-z"]; } }); } function execCommands(commands, cwd) { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { for (const command of commands) try { yield (0, exec_1.exec)(command, void 0, { cwd, @@ -42698,14 +42698,14 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod }); } function listTar(archivePath, compressionMethod) { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { const commands = yield getCommands(compressionMethod, "list", archivePath); yield execCommands(commands); }); } exports.listTar = listTar; function extractTar(archivePath, compressionMethod) { - return __awaiter$1(this, void 0, void 0, function* () { + return __awaiter$4(this, void 0, void 0, function* () { const workingDirectory = getWorkingDirectory(); yield io.mkdirP(workingDirectory); const commands = yield getCommands(compressionMethod, "extract", archivePath); @@ -42714,8 +42714,8 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod } exports.extractTar = extractTar; function createTar(archiveFolder, sourceDirectories, compressionMethod) { - return __awaiter$1(this, void 0, void 0, function* () { - (0, fs_1.writeFileSync)(path$1.join(archiveFolder, constants_1$1.ManifestFilename), sourceDirectories.join("\n")); + return __awaiter$4(this, void 0, void 0, function* () { + (0, fs_1.writeFileSync)(path$6.join(archiveFolder, constants_1$1.ManifestFilename), sourceDirectories.join("\n")); const commands = yield getCommands(compressionMethod, "create"); yield execCommands(commands, archiveFolder); }); @@ -42726,7 +42726,7 @@ var require_tar = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_mod //#endregion //#region node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/cache.js var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_modules/@actions/cache/lib/cache.js"(exports) { - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + var __createBinding$7 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m$1, k); if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { @@ -42740,7 +42740,7 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m if (k2 === void 0) k2 = k; o[k2] = m$1[k]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + var __setModuleDefault$7 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -42748,16 +42748,16 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m } : function(o, v) { o["default"] = v; }); - var __importStar = exports && exports.__importStar || function(mod) { + var __importStar$7 = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$7(result, mod, k); } - __setModuleDefault(result, mod); + __setModuleDefault$7(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter$3 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -42786,11 +42786,11 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m }; Object.defineProperty(exports, "__esModule", { value: true }); exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0; - const core = __importStar(require_core()); - const path = __importStar(__require("path")); - const utils = __importStar(require_cacheUtils()); - const cacheHttpClient = __importStar(require_cacheHttpClient()); - const cacheTwirpClient = __importStar(require_cacheTwirpClient()); + const core$3 = __importStar$7(require_core()); + const path$5 = __importStar$7(__require("path")); + const utils = __importStar$7(require_cacheUtils()); + const cacheHttpClient = __importStar$7(require_cacheHttpClient()); + const cacheTwirpClient = __importStar$7(require_cacheTwirpClient()); const config_1 = require_config(); const tar_1 = require_tar(); const constants_1 = require_constants$3(); @@ -42838,9 +42838,9 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m * @returns string returns the key for the cache hit, otherwise returns undefined */ function restoreCache$1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { const cacheServiceVersion = (0, config_1.getCacheServiceVersion)(); - core.debug(`Cache service version: ${cacheServiceVersion}`); + core$3.debug(`Cache service version: ${cacheServiceVersion}`); checkPaths(paths); switch (cacheServiceVersion) { case "v2": return yield restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive); @@ -42861,11 +42861,11 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m * @returns string returns the key for the cache hit, otherwise returns undefined */ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; - core.debug("Resolved Keys:"); - core.debug(JSON.stringify(keys)); + core$3.debug("Resolved Keys:"); + core$3.debug(JSON.stringify(keys)); if (keys.length > 10) throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`); for (const key of keys) checkKey(key); const compressionMethod = yield utils.getCompressionMethod(); @@ -42877,27 +42877,27 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m }); if (!(cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.archiveLocation)) return void 0; if (options === null || options === void 0 ? void 0 : options.lookupOnly) { - core.info("Lookup only - skipping download"); + core$3.info("Lookup only - skipping download"); return cacheEntry.cacheKey; } - archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); - core.debug(`Archive Path: ${archivePath}`); + archivePath = path$5.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); + core$3.debug(`Archive Path: ${archivePath}`); yield cacheHttpClient.downloadCache(cacheEntry.archiveLocation, archivePath, options); - if (core.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); + if (core$3.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); - core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); + core$3.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); yield (0, tar_1.extractTar)(archivePath, compressionMethod); - core.info("Cache restored successfully"); + core$3.info("Cache restored successfully"); return cacheEntry.cacheKey; } catch (error) { const typedError = error; if (typedError.name === ValidationError.name) throw error; - else core.warning(`Failed to restore: ${error.message}`); + else core$3.warning(`Failed to restore: ${error.message}`); } finally { try { yield utils.unlinkFile(archivePath); } catch (error) { - core.debug(`Failed to delete archive: ${error}`); + core$3.debug(`Failed to delete archive: ${error}`); } } return void 0; @@ -42914,12 +42914,12 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m * @returns string returns the key for the cache hit, otherwise returns undefined */ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; - core.debug("Resolved Keys:"); - core.debug(JSON.stringify(keys)); + core$3.debug("Resolved Keys:"); + core$3.debug(JSON.stringify(keys)); if (keys.length > 10) throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`); for (const key of keys) checkKey(key); let archivePath = ""; @@ -42933,33 +42933,33 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m }; const response = yield twirpClient.GetCacheEntryDownloadURL(request); if (!response.ok) { - core.debug(`Cache not found for version ${request.version} of keys: ${keys.join(", ")}`); + core$3.debug(`Cache not found for version ${request.version} of keys: ${keys.join(", ")}`); return void 0; } - core.info(`Cache hit for: ${request.key}`); + core$3.info(`Cache hit for: ${request.key}`); if (options === null || options === void 0 ? void 0 : options.lookupOnly) { - core.info("Lookup only - skipping download"); + core$3.info("Lookup only - skipping download"); return response.matchedKey; } - archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); - core.debug(`Archive path: ${archivePath}`); - core.debug(`Starting download of archive to: ${archivePath}`); + archivePath = path$5.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); + core$3.debug(`Archive path: ${archivePath}`); + core$3.debug(`Starting download of archive to: ${archivePath}`); yield cacheHttpClient.downloadCache(response.signedDownloadUrl, archivePath, options); const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); - core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); - if (core.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); + core$3.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); + if (core$3.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); yield (0, tar_1.extractTar)(archivePath, compressionMethod); - core.info("Cache restored successfully"); + core$3.info("Cache restored successfully"); return response.matchedKey; } catch (error) { const typedError = error; if (typedError.name === ValidationError.name) throw error; - else core.warning(`Failed to restore: ${error.message}`); + else core$3.warning(`Failed to restore: ${error.message}`); } finally { try { if (archivePath) yield utils.unlinkFile(archivePath); } catch (error) { - core.debug(`Failed to delete archive: ${error}`); + core$3.debug(`Failed to delete archive: ${error}`); } } return void 0; @@ -42975,9 +42975,9 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m * @returns number returns cacheId if the cache was saved successfully and throws an error if save fails */ function saveCache$1(paths, key, options, enableCrossOsArchive = false) { - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { const cacheServiceVersion = (0, config_1.getCacheServiceVersion)(); - core.debug(`Cache service version: ${cacheServiceVersion}`); + core$3.debug(`Cache service version: ${cacheServiceVersion}`); checkPaths(paths); checkKey(key); switch (cacheServiceVersion) { @@ -42999,24 +42999,24 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m */ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) { var _a$2, _b$1, _c$1, _d$1, _e; - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { const compressionMethod = yield utils.getCompressionMethod(); let cacheId = -1; const cachePaths = yield utils.resolvePaths(paths); - core.debug("Cache Paths:"); - core.debug(`${JSON.stringify(cachePaths)}`); + core$3.debug("Cache Paths:"); + core$3.debug(`${JSON.stringify(cachePaths)}`); if (cachePaths.length === 0) throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`); const archiveFolder = yield utils.createTempDirectory(); - const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod)); - core.debug(`Archive Path: ${archivePath}`); + const archivePath = path$5.join(archiveFolder, utils.getCacheFileName(compressionMethod)); + core$3.debug(`Archive Path: ${archivePath}`); try { yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod); - if (core.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); + if (core$3.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); const fileSizeLimit = 10 * 1024 * 1024 * 1024; const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); - core.debug(`File Size: ${archiveFileSize}`); + core$3.debug(`File Size: ${archiveFileSize}`); if (archiveFileSize > fileSizeLimit && !(0, config_1.isGhes)()) throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); - core.debug("Reserving Cache"); + core$3.debug("Reserving Cache"); const reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, { compressionMethod, enableCrossOsArchive, @@ -43025,18 +43025,18 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m if ((_a$2 = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.result) === null || _a$2 === void 0 ? void 0 : _a$2.cacheId) cacheId = (_b$1 = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.result) === null || _b$1 === void 0 ? void 0 : _b$1.cacheId; else if ((reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.statusCode) === 400) throw new Error((_d$1 = (_c$1 = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _c$1 === void 0 ? void 0 : _c$1.message) !== null && _d$1 !== void 0 ? _d$1 : `Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`); else throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache. More details: ${(_e = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _e === void 0 ? void 0 : _e.message}`); - core.debug(`Saving Cache (ID: ${cacheId})`); + core$3.debug(`Saving Cache (ID: ${cacheId})`); yield cacheHttpClient.saveCache(cacheId, archivePath, "", options); } catch (error) { const typedError = error; if (typedError.name === ValidationError.name) throw error; - else if (typedError.name === ReserveCacheError.name) core.info(`Failed to save: ${typedError.message}`); - else core.warning(`Failed to save: ${typedError.message}`); + else if (typedError.name === ReserveCacheError.name) core$3.info(`Failed to save: ${typedError.message}`); + else core$3.warning(`Failed to save: ${typedError.message}`); } finally { try { yield utils.unlinkFile(archivePath); } catch (error) { - core.debug(`Failed to delete archive: ${error}`); + core$3.debug(`Failed to delete archive: ${error}`); } } return cacheId; @@ -43052,7 +43052,7 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m * @returns */ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { - return __awaiter(this, void 0, void 0, function* () { + return __awaiter$3(this, void 0, void 0, function* () { options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, @@ -43062,20 +43062,20 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m const twirpClient = cacheTwirpClient.internalCacheTwirpClient(); let cacheId = -1; const cachePaths = yield utils.resolvePaths(paths); - core.debug("Cache Paths:"); - core.debug(`${JSON.stringify(cachePaths)}`); + core$3.debug("Cache Paths:"); + core$3.debug(`${JSON.stringify(cachePaths)}`); if (cachePaths.length === 0) throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`); const archiveFolder = yield utils.createTempDirectory(); - const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod)); - core.debug(`Archive Path: ${archivePath}`); + const archivePath = path$5.join(archiveFolder, utils.getCacheFileName(compressionMethod)); + core$3.debug(`Archive Path: ${archivePath}`); try { yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod); - if (core.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); + if (core$3.isDebug()) yield (0, tar_1.listTar)(archivePath, compressionMethod); const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); - core.debug(`File Size: ${archiveFileSize}`); + core$3.debug(`File Size: ${archiveFileSize}`); if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); options.archiveSizeBytes = archiveFileSize; - core.debug("Reserving Cache"); + core$3.debug("Reserving Cache"); const version$1 = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive); const request = { key, @@ -43087,10 +43087,10 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m if (!response.ok) throw new Error("Response was not ok"); signedUploadUrl = response.signedUploadUrl; } catch (error) { - core.debug(`Failed to reserve cache: ${error}`); + core$3.debug(`Failed to reserve cache: ${error}`); throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`); } - core.debug(`Attempting to upload cache located at: ${archivePath}`); + core$3.debug(`Attempting to upload cache located at: ${archivePath}`); yield cacheHttpClient.saveCache(cacheId, archivePath, signedUploadUrl, options); const finalizeRequest = { key, @@ -43098,19 +43098,19 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m sizeBytes: `${archiveFileSize}` }; const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest); - core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); + core$3.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); if (!finalizeResponse.ok) throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`); cacheId = parseInt(finalizeResponse.entryId); } catch (error) { const typedError = error; if (typedError.name === ValidationError.name) throw error; - else if (typedError.name === ReserveCacheError.name) core.info(`Failed to save: ${typedError.message}`); - else core.warning(`Failed to save: ${typedError.message}`); + else if (typedError.name === ReserveCacheError.name) core$3.info(`Failed to save: ${typedError.message}`); + else core$3.warning(`Failed to save: ${typedError.message}`); } finally { try { yield utils.unlinkFile(archivePath); } catch (error) { - core.debug(`Failed to delete archive: ${error}`); + core$3.debug(`Failed to delete archive: ${error}`); } } return cacheId; @@ -43119,6 +43119,1109 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m } }); var import_cache = __toESM(require_cache()); +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-glob-options-helper.js +var require_internal_glob_options_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-glob-options-helper.js"(exports) { + var __createBinding$6 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$6 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$6 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$6(result, mod, k); + } + __setModuleDefault$6(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getOptions = void 0; + const core$2 = __importStar$6(require_core()); + /** + * Returns a copy with defaults filled in. + */ + function getOptions(copy$1) { + const result = { + followSymbolicLinks: true, + implicitDescendants: true, + matchDirectories: true, + omitBrokenSymbolicLinks: true, + excludeHiddenFiles: false + }; + if (copy$1) { + if (typeof copy$1.followSymbolicLinks === "boolean") { + result.followSymbolicLinks = copy$1.followSymbolicLinks; + core$2.debug(`followSymbolicLinks '${result.followSymbolicLinks}'`); + } + if (typeof copy$1.implicitDescendants === "boolean") { + result.implicitDescendants = copy$1.implicitDescendants; + core$2.debug(`implicitDescendants '${result.implicitDescendants}'`); + } + if (typeof copy$1.matchDirectories === "boolean") { + result.matchDirectories = copy$1.matchDirectories; + core$2.debug(`matchDirectories '${result.matchDirectories}'`); + } + if (typeof copy$1.omitBrokenSymbolicLinks === "boolean") { + result.omitBrokenSymbolicLinks = copy$1.omitBrokenSymbolicLinks; + core$2.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); + } + if (typeof copy$1.excludeHiddenFiles === "boolean") { + result.excludeHiddenFiles = copy$1.excludeHiddenFiles; + core$2.debug(`excludeHiddenFiles '${result.excludeHiddenFiles}'`); + } + } + return result; + } + exports.getOptions = getOptions; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-path-helper.js +var require_internal_path_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-path-helper.js"(exports) { + var __createBinding$5 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$5 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$5 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$5(result, mod, k); + } + __setModuleDefault$5(result, mod); + return result; + }; + var __importDefault$2 = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0; + const path$4 = __importStar$5(__require("path")); + const assert_1$2 = __importDefault$2(__require("assert")); + const IS_WINDOWS$4 = process.platform === "win32"; + /** + * Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths. + * + * For example, on Linux/macOS: + * - `/ => /` + * - `/hello => /` + * + * For example, on Windows: + * - `C:\ => C:\` + * - `C:\hello => C:\` + * - `C: => C:` + * - `C:hello => C:` + * - `\ => \` + * - `\hello => \` + * - `\\hello => \\hello` + * - `\\hello\world => \\hello\world` + */ + function dirname(p) { + p = safeTrimTrailingSeparator(p); + if (IS_WINDOWS$4 && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p)) return p; + let result = path$4.dirname(p); + if (IS_WINDOWS$4 && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) result = safeTrimTrailingSeparator(result); + return result; + } + exports.dirname = dirname; + /** + * Roots the path if not already rooted. On Windows, relative roots like `\` + * or `C:` are expanded based on the current working directory. + */ + function ensureAbsoluteRoot(root, itemPath) { + (0, assert_1$2.default)(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); + (0, assert_1$2.default)(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); + if (hasAbsoluteRoot(itemPath)) return itemPath; + if (IS_WINDOWS$4) { + if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { + let cwd = process.cwd(); + (0, assert_1$2.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) if (itemPath.length === 2) return `${itemPath[0]}:\\${cwd.substr(3)}`; + else { + if (!cwd.endsWith("\\")) cwd += "\\"; + return `${itemPath[0]}:\\${cwd.substr(3)}${itemPath.substr(2)}`; + } + else return `${itemPath[0]}:\\${itemPath.substr(2)}`; + } else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { + const cwd = process.cwd(); + (0, assert_1$2.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); + return `${cwd[0]}:\\${itemPath.substr(1)}`; + } + } + (0, assert_1$2.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); + if (root.endsWith("/") || IS_WINDOWS$4 && root.endsWith("\\")) {} else root += path$4.sep; + return root + itemPath; + } + exports.ensureAbsoluteRoot = ensureAbsoluteRoot; + /** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\\hello\share` and `C:\hello` (and using alternate separator). + */ + function hasAbsoluteRoot(itemPath) { + (0, assert_1$2.default)(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); + itemPath = normalizeSeparators(itemPath); + if (IS_WINDOWS$4) return itemPath.startsWith("\\\\") || /^[A-Z]:\\/i.test(itemPath); + return itemPath.startsWith("/"); + } + exports.hasAbsoluteRoot = hasAbsoluteRoot; + /** + * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: + * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator). + */ + function hasRoot(itemPath) { + (0, assert_1$2.default)(itemPath, `isRooted parameter 'itemPath' must not be empty`); + itemPath = normalizeSeparators(itemPath); + if (IS_WINDOWS$4) return itemPath.startsWith("\\") || /^[A-Z]:/i.test(itemPath); + return itemPath.startsWith("/"); + } + exports.hasRoot = hasRoot; + /** + * Removes redundant slashes and converts `/` to `\` on Windows + */ + function normalizeSeparators(p) { + p = p || ""; + if (IS_WINDOWS$4) { + p = p.replace(/\//g, "\\"); + const isUnc = /^\\\\+[^\\]/.test(p); + return (isUnc ? "\\" : "") + p.replace(/\\\\+/g, "\\"); + } + return p.replace(/\/\/+/g, "/"); + } + exports.normalizeSeparators = normalizeSeparators; + /** + * Normalizes the path separators and trims the trailing separator (when safe). + * For example, `/foo/ => /foo` but `/ => /` + */ + function safeTrimTrailingSeparator(p) { + if (!p) return ""; + p = normalizeSeparators(p); + if (!p.endsWith(path$4.sep)) return p; + if (p === path$4.sep) return p; + if (IS_WINDOWS$4 && /^[A-Z]:\\$/i.test(p)) return p; + return p.substr(0, p.length - 1); + } + exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-match-kind.js +var require_internal_match_kind = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-match-kind.js"(exports) { + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MatchKind = void 0; + /** + * Indicates whether a pattern matches a path + */ + var MatchKind; + (function(MatchKind$2) { + /** Not matched */ + MatchKind$2[MatchKind$2["None"] = 0] = "None"; + /** Matched if the path is a directory */ + MatchKind$2[MatchKind$2["Directory"] = 1] = "Directory"; + /** Matched if the path is a regular file */ + MatchKind$2[MatchKind$2["File"] = 2] = "File"; + /** Matched */ + MatchKind$2[MatchKind$2["All"] = 3] = "All"; + })(MatchKind || (exports.MatchKind = MatchKind = {})); +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-pattern-helper.js +var require_internal_pattern_helper = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-pattern-helper.js"(exports) { + var __createBinding$4 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$4 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$4 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$4(result, mod, k); + } + __setModuleDefault$4(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.partialMatch = exports.match = exports.getSearchPaths = void 0; + const pathHelper$2 = __importStar$4(require_internal_path_helper()); + const internal_match_kind_1$2 = require_internal_match_kind(); + const IS_WINDOWS$3 = process.platform === "win32"; + /** + * Given an array of patterns, returns an array of paths to search. + * Duplicates and paths under other included paths are filtered out. + */ + function getSearchPaths(patterns) { + patterns = patterns.filter((x) => !x.negate); + const searchPathMap = {}; + for (const pattern of patterns) { + const key = IS_WINDOWS$3 ? pattern.searchPath.toUpperCase() : pattern.searchPath; + searchPathMap[key] = "candidate"; + } + const result = []; + for (const pattern of patterns) { + const key = IS_WINDOWS$3 ? pattern.searchPath.toUpperCase() : pattern.searchPath; + if (searchPathMap[key] === "included") continue; + let foundAncestor = false; + let tempKey = key; + let parent = pathHelper$2.dirname(tempKey); + while (parent !== tempKey) { + if (searchPathMap[parent]) { + foundAncestor = true; + break; + } + tempKey = parent; + parent = pathHelper$2.dirname(tempKey); + } + if (!foundAncestor) { + result.push(pattern.searchPath); + searchPathMap[key] = "included"; + } + } + return result; + } + exports.getSearchPaths = getSearchPaths; + /** + * Matches the patterns against the path + */ + function match(patterns, itemPath) { + let result = internal_match_kind_1$2.MatchKind.None; + for (const pattern of patterns) if (pattern.negate) result &= ~pattern.match(itemPath); + else result |= pattern.match(itemPath); + return result; + } + exports.match = match; + /** + * Checks whether to descend further into the directory + */ + function partialMatch(patterns, itemPath) { + return patterns.some((x) => !x.negate && x.partialMatch(itemPath)); + } + exports.partialMatch = partialMatch; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-path.js +var require_internal_path = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-path.js"(exports) { + var __createBinding$3 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$3 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$3 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$3(result, mod, k); + } + __setModuleDefault$3(result, mod); + return result; + }; + var __importDefault$1 = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Path = void 0; + const path$3 = __importStar$3(__require("path")); + const pathHelper$1 = __importStar$3(require_internal_path_helper()); + const assert_1$1 = __importDefault$1(__require("assert")); + const IS_WINDOWS$2 = process.platform === "win32"; + /** + * Helper class for parsing paths into segments + */ + var Path = class { + /** + * Constructs a Path + * @param itemPath Path or array of segments + */ + constructor(itemPath) { + this.segments = []; + if (typeof itemPath === "string") { + (0, assert_1$1.default)(itemPath, `Parameter 'itemPath' must not be empty`); + itemPath = pathHelper$1.safeTrimTrailingSeparator(itemPath); + if (!pathHelper$1.hasRoot(itemPath)) this.segments = itemPath.split(path$3.sep); + else { + let remaining = itemPath; + let dir = pathHelper$1.dirname(remaining); + while (dir !== remaining) { + const basename = path$3.basename(remaining); + this.segments.unshift(basename); + remaining = dir; + dir = pathHelper$1.dirname(remaining); + } + this.segments.unshift(remaining); + } + } else { + (0, assert_1$1.default)(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); + for (let i = 0; i < itemPath.length; i++) { + let segment = itemPath[i]; + (0, assert_1$1.default)(segment, `Parameter 'itemPath' must not contain any empty segments`); + segment = pathHelper$1.normalizeSeparators(itemPath[i]); + if (i === 0 && pathHelper$1.hasRoot(segment)) { + segment = pathHelper$1.safeTrimTrailingSeparator(segment); + (0, assert_1$1.default)(segment === pathHelper$1.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); + this.segments.push(segment); + } else { + (0, assert_1$1.default)(!segment.includes(path$3.sep), `Parameter 'itemPath' contains unexpected path separators`); + this.segments.push(segment); + } + } + } + } + /** + * Converts the path to it's string representation + */ + toString() { + let result = this.segments[0]; + let skipSlash = result.endsWith(path$3.sep) || IS_WINDOWS$2 && /^[A-Z]:$/i.test(result); + for (let i = 1; i < this.segments.length; i++) { + if (skipSlash) skipSlash = false; + else result += path$3.sep; + result += this.segments[i]; + } + return result; + } + }; + exports.Path = Path; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-pattern.js +var require_internal_pattern = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-pattern.js"(exports) { + var __createBinding$2 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$2 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$2(result, mod, k); + } + __setModuleDefault$2(result, mod); + return result; + }; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Pattern = void 0; + const os = __importStar$2(__require("os")); + const path$2 = __importStar$2(__require("path")); + const pathHelper = __importStar$2(require_internal_path_helper()); + const assert_1 = __importDefault(__require("assert")); + const minimatch_1 = require_minimatch(); + const internal_match_kind_1$1 = require_internal_match_kind(); + const internal_path_1 = require_internal_path(); + const IS_WINDOWS$1 = process.platform === "win32"; + var Pattern = class Pattern { + constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) { + /** + * Indicates whether matches should be excluded from the result set + */ + this.negate = false; + let pattern; + if (typeof patternOrNegate === "string") pattern = patternOrNegate.trim(); + else { + segments = segments || []; + (0, assert_1.default)(segments.length, `Parameter 'segments' must not empty`); + const root = Pattern.getLiteral(segments[0]); + (0, assert_1.default)(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); + pattern = new internal_path_1.Path(segments).toString().trim(); + if (patternOrNegate) pattern = `!${pattern}`; + } + while (pattern.startsWith("!")) { + this.negate = !this.negate; + pattern = pattern.substr(1).trim(); + } + pattern = Pattern.fixupPattern(pattern, homedir); + this.segments = new internal_path_1.Path(pattern).segments; + this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path$2.sep); + pattern = pathHelper.safeTrimTrailingSeparator(pattern); + let foundGlob = false; + const searchSegments = this.segments.map((x) => Pattern.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); + this.searchPath = new internal_path_1.Path(searchSegments).toString(); + this.rootRegExp = new RegExp(Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS$1 ? "i" : ""); + this.isImplicitPattern = isImplicitPattern; + const minimatchOptions = { + dot: true, + nobrace: true, + nocase: IS_WINDOWS$1, + nocomment: true, + noext: true, + nonegate: true + }; + pattern = IS_WINDOWS$1 ? pattern.replace(/\\/g, "/") : pattern; + this.minimatch = new minimatch_1.Minimatch(pattern, minimatchOptions); + } + /** + * Matches the pattern against the specified path + */ + match(itemPath) { + if (this.segments[this.segments.length - 1] === "**") { + itemPath = pathHelper.normalizeSeparators(itemPath); + if (!itemPath.endsWith(path$2.sep) && this.isImplicitPattern === false) itemPath = `${itemPath}${path$2.sep}`; + } else itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + if (this.minimatch.match(itemPath)) return this.trailingSeparator ? internal_match_kind_1$1.MatchKind.Directory : internal_match_kind_1$1.MatchKind.All; + return internal_match_kind_1$1.MatchKind.None; + } + /** + * Indicates whether the pattern may match descendants of the specified path + */ + partialMatch(itemPath) { + itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); + if (pathHelper.dirname(itemPath) === itemPath) return this.rootRegExp.test(itemPath); + return this.minimatch.matchOne(itemPath.split(IS_WINDOWS$1 ? /\\+/ : /\/+/), this.minimatch.set[0], true); + } + /** + * Escapes glob patterns within a path + */ + static globEscape(s$1) { + return (IS_WINDOWS$1 ? s$1 : s$1.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); + } + /** + * Normalizes slashes and ensures absolute root + */ + static fixupPattern(pattern, homedir) { + (0, assert_1.default)(pattern, "pattern cannot be empty"); + const literalSegments = new internal_path_1.Path(pattern).segments.map((x) => Pattern.getLiteral(x)); + (0, assert_1.default)(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); + (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); + pattern = pathHelper.normalizeSeparators(pattern); + if (pattern === "." || pattern.startsWith(`.${path$2.sep}`)) pattern = Pattern.globEscape(process.cwd()) + pattern.substr(1); + else if (pattern === "~" || pattern.startsWith(`~${path$2.sep}`)) { + homedir = homedir || os.homedir(); + (0, assert_1.default)(homedir, "Unable to determine HOME directory"); + (0, assert_1.default)(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); + pattern = Pattern.globEscape(homedir) + pattern.substr(1); + } else if (IS_WINDOWS$1 && (pattern.match(/^[A-Z]:$/i) || pattern.match(/^[A-Z]:[^\\]/i))) { + let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", pattern.substr(0, 2)); + if (pattern.length > 2 && !root.endsWith("\\")) root += "\\"; + pattern = Pattern.globEscape(root) + pattern.substr(2); + } else if (IS_WINDOWS$1 && (pattern === "\\" || pattern.match(/^\\[^\\]/))) { + let root = pathHelper.ensureAbsoluteRoot("C:\\dummy-root", "\\"); + if (!root.endsWith("\\")) root += "\\"; + pattern = Pattern.globEscape(root) + pattern.substr(1); + } else pattern = pathHelper.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()), pattern); + return pathHelper.normalizeSeparators(pattern); + } + /** + * Attempts to unescape a pattern segment to create a literal path segment. + * Otherwise returns empty string. + */ + static getLiteral(segment) { + let literal = ""; + for (let i = 0; i < segment.length; i++) { + const c = segment[i]; + if (c === "\\" && !IS_WINDOWS$1 && i + 1 < segment.length) { + literal += segment[++i]; + continue; + } else if (c === "*" || c === "?") return ""; + else if (c === "[" && i + 1 < segment.length) { + let set = ""; + let closed = -1; + for (let i2 = i + 1; i2 < segment.length; i2++) { + const c2 = segment[i2]; + if (c2 === "\\" && !IS_WINDOWS$1 && i2 + 1 < segment.length) { + set += segment[++i2]; + continue; + } else if (c2 === "]") { + closed = i2; + break; + } else set += c2; + } + if (closed >= 0) { + if (set.length > 1) return ""; + if (set) { + literal += set; + i = closed; + continue; + } + } + } + literal += c; + } + return literal; + } + /** + * Escapes regexp special characters + * https://javascript.info/regexp-escaping + */ + static regExpEscape(s$1) { + return s$1.replace(/[[\\^$.|?*+()]/g, "\\$&"); + } + }; + exports.Pattern = Pattern; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-search-state.js +var require_internal_search_state = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-search-state.js"(exports) { + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SearchState = void 0; + var SearchState = class { + constructor(path$13, level) { + this.path = path$13; + this.level = level; + } + }; + exports.SearchState = SearchState; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-globber.js +var require_internal_globber = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-globber.js"(exports) { + var __createBinding$1 = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar$1 = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$1(result, mod, k); + } + __setModuleDefault$1(result, mod); + return result; + }; + var __awaiter$2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __asyncValues$1 = exports && exports.__asyncValues || function(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m$1 = o[Symbol.asyncIterator], i; + return m$1 ? m$1.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d$1, v) { + Promise.resolve(v).then(function(v$1) { + resolve({ + value: v$1, + done: d$1 + }); + }, reject); + } + }; + var __await = exports && exports.__await || function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + var __asyncGenerator = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) i[n] = function(v) { + return new Promise(function(a, b) { + q.push([ + n, + v, + a, + b + ]) > 1 || resume$1(n, v); + }); + }; + } + function resume$1(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume$1("next", value); + } + function reject(value) { + resume$1("throw", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) resume$1(q[0][0], q[0][1]); + } + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DefaultGlobber = void 0; + const core$1 = __importStar$1(require_core()); + const fs$1 = __importStar$1(__require("fs")); + const globOptionsHelper = __importStar$1(require_internal_glob_options_helper()); + const path$1 = __importStar$1(__require("path")); + const patternHelper = __importStar$1(require_internal_pattern_helper()); + const internal_match_kind_1 = require_internal_match_kind(); + const internal_pattern_1 = require_internal_pattern(); + const internal_search_state_1 = require_internal_search_state(); + const IS_WINDOWS = process.platform === "win32"; + var DefaultGlobber = class DefaultGlobber { + constructor(options) { + this.patterns = []; + this.searchPaths = []; + this.options = globOptionsHelper.getOptions(options); + } + getSearchPaths() { + return this.searchPaths.slice(); + } + glob() { + var _a$2, e_1, _b$1, _c$1; + return __awaiter$2(this, void 0, void 0, function* () { + const result = []; + try { + for (var _d$1 = true, _e = __asyncValues$1(this.globGenerator()), _f; _f = yield _e.next(), _a$2 = _f.done, !_a$2; _d$1 = true) { + _c$1 = _f.value; + _d$1 = false; + const itemPath = _c$1; + result.push(itemPath); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (!_d$1 && !_a$2 && (_b$1 = _e.return)) yield _b$1.call(_e); + } finally { + if (e_1) throw e_1.error; + } + } + return result; + }); + } + globGenerator() { + return __asyncGenerator(this, arguments, function* globGenerator_1() { + const options = globOptionsHelper.getOptions(this.options); + const patterns = []; + for (const pattern of this.patterns) { + patterns.push(pattern); + if (options.implicitDescendants && (pattern.trailingSeparator || pattern.segments[pattern.segments.length - 1] !== "**")) patterns.push(new internal_pattern_1.Pattern(pattern.negate, true, pattern.segments.concat("**"))); + } + const stack = []; + for (const searchPath of patternHelper.getSearchPaths(patterns)) { + core$1.debug(`Search path '${searchPath}'`); + try { + yield __await(fs$1.promises.lstat(searchPath)); + } catch (err) { + if (err.code === "ENOENT") continue; + throw err; + } + stack.unshift(new internal_search_state_1.SearchState(searchPath, 1)); + } + const traversalChain = []; + while (stack.length) { + const item = stack.pop(); + const match$2 = patternHelper.match(patterns, item.path); + const partialMatch$2 = !!match$2 || patternHelper.partialMatch(patterns, item.path); + if (!match$2 && !partialMatch$2) continue; + const stats = yield __await( + DefaultGlobber.stat(item, options, traversalChain) + // Broken symlink, or symlink cycle detected, or no longer exists +); + if (!stats) continue; + if (options.excludeHiddenFiles && path$1.basename(item.path).match(/^\./)) continue; + if (stats.isDirectory()) { + if (match$2 & internal_match_kind_1.MatchKind.Directory && options.matchDirectories) yield yield __await(item.path); + else if (!partialMatch$2) continue; + const childLevel = item.level + 1; + const childItems = (yield __await(fs$1.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path$1.join(item.path, x), childLevel)); + stack.push(...childItems.reverse()); + } else if (match$2 & internal_match_kind_1.MatchKind.File) yield yield __await(item.path); + } + }); + } + /** + * Constructs a DefaultGlobber + */ + static create(patterns, options) { + return __awaiter$2(this, void 0, void 0, function* () { + const result = new DefaultGlobber(options); + if (IS_WINDOWS) { + patterns = patterns.replace(/\r\n/g, "\n"); + patterns = patterns.replace(/\r/g, "\n"); + } + const lines = patterns.split("\n").map((x) => x.trim()); + for (const line of lines) if (!line || line.startsWith("#")) continue; + else result.patterns.push(new internal_pattern_1.Pattern(line)); + result.searchPaths.push(...patternHelper.getSearchPaths(result.patterns)); + return result; + }); + } + static stat(item, options, traversalChain) { + return __awaiter$2(this, void 0, void 0, function* () { + let stats; + if (options.followSymbolicLinks) try { + stats = yield fs$1.promises.stat(item.path); + } catch (err) { + if (err.code === "ENOENT") { + if (options.omitBrokenSymbolicLinks) { + core$1.debug(`Broken symlink '${item.path}'`); + return void 0; + } + throw new Error(`No information found for the path '${item.path}'. This may indicate a broken symbolic link.`); + } + throw err; + } + else stats = yield fs$1.promises.lstat(item.path); + if (stats.isDirectory() && options.followSymbolicLinks) { + const realPath = yield fs$1.promises.realpath(item.path); + while (traversalChain.length >= item.level) traversalChain.pop(); + if (traversalChain.some((x) => x === realPath)) { + core$1.debug(`Symlink cycle detected for path '${item.path}' and realpath '${realPath}'`); + return void 0; + } + traversalChain.push(realPath); + } + return stats; + }); + } + }; + exports.DefaultGlobber = DefaultGlobber; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-hash-files.js +var require_internal_hash_files = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-hash-files.js"(exports) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m$1, k); + if (!desc || ("get" in desc ? !m$1.__esModule : desc.writable || desc.configurable)) desc = { + enumerable: true, + get: function() { + return m$1[k]; + } + }; + Object.defineProperty(o, k2, desc); + } : function(o, m$1, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m$1[k]; + }); + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + var __awaiter$1 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __asyncValues = exports && exports.__asyncValues || function(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m$1 = o[Symbol.asyncIterator], i; + return m$1 ? m$1.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d$1, v) { + Promise.resolve(v).then(function(v$1) { + resolve({ + value: v$1, + done: d$1 + }); + }, reject); + } + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.hashFiles = void 0; + const crypto = __importStar(__require("crypto")); + const core = __importStar(require_core()); + const fs = __importStar(__require("fs")); + const stream = __importStar(__require("stream")); + const util = __importStar(__require("util")); + const path = __importStar(__require("path")); + function hashFiles$1(globber, currentWorkspace, verbose = false) { + var _a$2, e_1, _b$1, _c$1; + var _d$1; + return __awaiter$1(this, void 0, void 0, function* () { + const writeDelegate = verbose ? core.info : core.debug; + let hasMatch = false; + const githubWorkspace = currentWorkspace ? currentWorkspace : (_d$1 = process.env["GITHUB_WORKSPACE"]) !== null && _d$1 !== void 0 ? _d$1 : process.cwd(); + const result = crypto.createHash("sha256"); + let count = 0; + try { + for (var _e = true, _f = __asyncValues(globber.globGenerator()), _g; _g = yield _f.next(), _a$2 = _g.done, !_a$2; _e = true) { + _c$1 = _g.value; + _e = false; + const file = _c$1; + writeDelegate(file); + if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { + writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); + continue; + } + if (fs.statSync(file).isDirectory()) { + writeDelegate(`Skip directory '${file}'.`); + continue; + } + const hash = crypto.createHash("sha256"); + const pipeline = util.promisify(stream.pipeline); + yield pipeline(fs.createReadStream(file), hash); + result.write(hash.digest()); + count++; + if (!hasMatch) hasMatch = true; + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (!_e && !_a$2 && (_b$1 = _f.return)) yield _b$1.call(_f); + } finally { + if (e_1) throw e_1.error; + } + } + result.end(); + if (hasMatch) { + writeDelegate(`Found ${count} files to hash.`); + return result.digest("hex"); + } else { + writeDelegate(`No matches found for glob`); + return ""; + } + }); + } + exports.hashFiles = hashFiles$1; +} }); + +//#endregion +//#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/glob.js +var require_glob = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/glob.js"(exports) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.hashFiles = exports.create = void 0; + const internal_globber_1 = require_internal_globber(); + const internal_hash_files_1 = require_internal_hash_files(); + /** + * Constructs a globber + * + * @param patterns Patterns separated by newlines + * @param options Glob options + */ + function create(patterns, options) { + return __awaiter(this, void 0, void 0, function* () { + return yield internal_globber_1.DefaultGlobber.create(patterns, options); + }); + } + exports.create = create; + /** + * Computes the sha256 hash of a glob + * + * @param patterns Patterns separated by newlines + * @param currentWorkspace Workspace used when matching files + * @param options Glob options + * @param verbose Enables verbose logging + */ + function hashFiles(patterns, currentWorkspace = "", options, verbose = false) { + return __awaiter(this, void 0, void 0, function* () { + let followSymbolicLinks = true; + if (options && typeof options.followSymbolicLinks === "boolean") followSymbolicLinks = options.followSymbolicLinks; + const globber = yield create(patterns, { followSymbolicLinks }); + return (0, internal_hash_files_1.hashFiles)(globber, currentWorkspace, verbose); + }); + } + exports.hashFiles = hashFiles; +} }); +var import_glob = __toESM(require_glob()); + //#endregion //#region src/cache.ts const state = { @@ -43147,6 +44250,7 @@ async function restoreCache(cacheHash) { try { const denoDir = await resolveDenoDir(); import_core.saveState(state.DENO_DIR, denoDir); + if (cacheHash.length === 0) cacheHash = await resolveDefaultCacheKey(); const { GITHUB_JOB, RUNNER_OS, RUNNER_ARCH } = process$1.env; const restoreKey = `deno-cache-${RUNNER_OS}-${RUNNER_ARCH}`; const primaryKey = `${restoreKey}-${GITHUB_JOB}-${cacheHash}`; @@ -43158,20 +44262,27 @@ async function restoreCache(cacheHash) { const message = loadedCacheKey ? `Cache key used: "${loadedCacheKey}".` : `No cache found for restore key: "${restoreKey}".`; import_core.info(message); } catch (err) { - import_core.warning(new Error("Failed to restore cache. Continuing without cache.", { cause: err })); + import_core.warning(new Error("Failed to restore cache. Continuing without cache.")); + import_core.warning(err); } } +function resolveDefaultCacheKey() { + return (0, import_glob.hashFiles)("**/deno.lock", process$1.env.GITHUB_WORKSPACE); +} async function resolveDenoDir() { const { DENO_DIR } = process$1.env; if (DENO_DIR) return DENO_DIR; - const { exec: exec$1 } = await import("node:child_process"); - const output = await new Promise((res, rej) => { - exec$1("deno info --json", (err, stdout) => err ? rej(err) : res(stdout)); - }); + const output = await exec("deno info --json"); const info = JSON.parse(output); if (typeof info.denoDir !== "string") throw new Error("`deno info --json` output did not contain a denoDir property. Maybe try updating this action or your Deno version if either are old."); return info.denoDir; } +async function exec(command) { + const { exec: exec$2 } = await import("node:child_process"); + return await new Promise((res, rej) => { + exec$2(command, (err, stdout) => err ? rej(err) : res(stdout)); + }); +} //#endregion export { restoreCache, saveCache }; \ No newline at end of file diff --git a/dist/main.mjs b/dist/main.mjs index 6471450..af1b48d 100644 --- a/dist/main.mjs +++ b/dist/main.mjs @@ -20318,6 +20318,9 @@ function exit(message) { import_core.setFailed(message); process$1.exit(); } +function isCachingEnabled() { + return import_core.getInput("cache") === "true" || import_core.getInput("cache-hash").length > 0; +} async function main() { try { const denoVersionFile = import_core.getInput("deno-version-file"); @@ -20331,8 +20334,8 @@ async function main() { import_core.setOutput("deno-version", version.version); import_core.setOutput("release-channel", version.kind); import_core.info("Installation complete."); - if (import_core.getInput("cache") === "true") { - const { restoreCache } = await import("./cache-ByPW8-iO.mjs"); + if (isCachingEnabled()) { + const { restoreCache } = await import("./cache-D7LLZXo3.mjs"); await restoreCache(import_core.getInput("cache-hash")); } } catch (err) { diff --git a/dist/post.mjs b/dist/post.mjs index ace44bf..67b6eef 100644 --- a/dist/post.mjs +++ b/dist/post.mjs @@ -1,5 +1,5 @@ import { import_core } from "./semver-DmxAwBYV.mjs"; -import { saveCache } from "./cache-DzONlZ-I.mjs"; +import { saveCache } from "./cache-zjpbixka.mjs"; import process from "node:process"; //#region src/post.ts diff --git a/src/cache.ts b/src/cache.ts index 9303290..d4d94e1 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -1,6 +1,7 @@ import process from "node:process"; import cache from "@actions/cache"; import core from "@actions/core"; +import { hashFiles } from "@actions/glob"; const state = { DENO_DIR: "DENO_DIR", @@ -35,6 +36,10 @@ export async function restoreCache(cacheHash: string) { const denoDir = await resolveDenoDir(); core.saveState(state.DENO_DIR, denoDir); + if (cacheHash.length === 0) { + cacheHash = await resolveDefaultCacheKey(); + } + const { GITHUB_JOB, RUNNER_OS, RUNNER_ARCH } = process.env; const restoreKey = `deno-cache-${RUNNER_OS}-${RUNNER_ARCH}`; // CI jobs often download different dependencies, so include Job ID in the cache key. @@ -54,22 +59,28 @@ export async function restoreCache(cacheHash: string) { core.info(message); } catch (err) { core.warning( - new Error("Failed to restore cache. Continuing without cache.", { - cause: err, - }), + new Error("Failed to restore cache. Continuing without cache."), ); + // core.warning doesn't log error causes, so explicititly log the error + core.warning(err as Error); } } +function resolveDefaultCacheKey(): Promise { + return hashFiles( + "**/deno.lock", + process.env.GITHUB_WORKSPACE, + ); +} + async function resolveDenoDir(): Promise { const { DENO_DIR } = process.env; - if (DENO_DIR) return DENO_DIR; + if (DENO_DIR) { + return DENO_DIR; + } // Retrieve the DENO_DIR from `deno info --json` - const { exec } = await import("node:child_process"); - const output = await new Promise((res, rej) => { - exec("deno info --json", (err, stdout) => err ? rej(err) : res(stdout)); - }); + const output = await exec("deno info --json"); const info = JSON.parse(output); if (typeof info.denoDir !== "string") { throw new Error( @@ -79,3 +90,10 @@ async function resolveDenoDir(): Promise { } return info.denoDir; } + +async function exec(command: string) { + const { exec } = await import("node:child_process"); + return await new Promise((res, rej) => { + exec(command, (err, stdout) => err ? rej(err) : res(stdout)); + }); +} diff --git a/src/main.ts b/src/main.ts index 95fd50a..39d1f08 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,6 +20,11 @@ function exit(message: string): never { process.exit(); } +function isCachingEnabled() { + return core.getInput("cache") === "true" || + core.getInput("cache-hash").length > 0; +} + async function main() { try { const denoVersionFile = core.getInput("deno-version-file"); @@ -57,7 +62,7 @@ async function main() { core.info("Installation complete."); - if (core.getInput("cache") === "true") { + if (isCachingEnabled()) { const { restoreCache } = await import("./cache.ts"); await restoreCache(core.getInput("cache-hash")); }